hadoop_1.0.0.xml 3.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062
  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 Thu Dec 15 16:38:47 UTC 2011 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 1.0.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /grid/0/dev/mfoley/hadoop-1.0/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/grid/0/dev/mfoley/hadoop-1.0/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /grid/0/dev/mfoley/hadoop-1.0/build/classes:/grid/0/dev/mfoley/hadoop-1.0/lib/hsqldb-1.8.0.10.jar:/grid/0/dev/mfoley/hadoop-1.0/lib/jsp-2.1/jsp-2.1.jar:/grid/0/dev/mfoley/hadoop-1.0/lib/jsp-2.1/jsp-api-2.1.jar:/grid/0/dev/mfoley/hadoop-1.0/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/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-1.4.1.jar:/homes/hortonfo/.ivy2/cache/oro/oro/jars/oro-2.0.8.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/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.0.1.jar:/homes/hortonfo/.ivy2/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.0.1.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.5.jar:/homes/hortonfo/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.5.jar:/homes/hortonfo/.ivy2/cache/org.vafer/jdeb/maven-plugins/jdeb-0.8.jar:/grid/0/dev/mfoley/hadoop-1.0/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:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-launcher.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/xml-apis.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-antlr.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-junit.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/xercesImpl.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-javamail.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-jmf.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-bcel.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-commons-logging.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-jai.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-swing.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-jsch.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-netrexx.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-testutil.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-commons-net.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-oro.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-resolver.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-weblogic.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-trax.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-starteam.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-nodeps.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-log4j.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-stylebook.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-jdepend.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-bsf.jar:/grid/0/dev/acm/tools/apache-ant-1.7.1/lib/ant-apache-regexp.jar:/grid/0/dev/acm/tools/jdk1.6.0_26-x64/lib/tools.jar -sourcepath /grid/0/dev/mfoley/hadoop-1.0/src/core:/grid/0/dev/mfoley/hadoop-1.0/src/mapred:/grid/0/dev/mfoley/hadoop-1.0/src/tools -apidir /grid/0/dev/mfoley/hadoop-1.0/lib/jdiff -apiname hadoop 1.0.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. <doc>
  61. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  62. </doc>
  63. </interface>
  64. <!-- end interface org.apache.hadoop.HadoopVersionAnnotation -->
  65. </package>
  66. <package name="org.apache.hadoop.classification">
  67. <!-- start class org.apache.hadoop.classification.InterfaceAudience -->
  68. <class name="InterfaceAudience" extends="java.lang.Object"
  69. abstract="false"
  70. static="false" final="false" visibility="public"
  71. deprecated="not deprecated">
  72. <doc>
  73. <![CDATA[Annotation to inform users of a package, class or method's intended audience.]]>
  74. </doc>
  75. </class>
  76. <!-- end class org.apache.hadoop.classification.InterfaceAudience -->
  77. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  78. <interface name="InterfaceAudience.LimitedPrivate" abstract="true"
  79. static="true" final="false" visibility="public"
  80. deprecated="not deprecated">
  81. <implements name="java.lang.annotation.Annotation"/>
  82. <method name="value" return="java.lang.String[]"
  83. abstract="false" native="false" synchronized="false"
  84. static="false" final="false" visibility="public"
  85. deprecated="not deprecated">
  86. </method>
  87. <doc>
  88. <![CDATA[Intended only for the project(s) specified in the annotation.
  89. For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".]]>
  90. </doc>
  91. </interface>
  92. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  93. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  94. <interface name="InterfaceAudience.Private" abstract="true"
  95. static="true" final="false" visibility="public"
  96. deprecated="not deprecated">
  97. <implements name="java.lang.annotation.Annotation"/>
  98. <doc>
  99. <![CDATA[Intended for use only within Hadoop itself.]]>
  100. </doc>
  101. </interface>
  102. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  103. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  104. <interface name="InterfaceAudience.Public" 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 by any project or application.]]>
  110. </doc>
  111. </interface>
  112. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  113. <!-- start class org.apache.hadoop.classification.InterfaceStability -->
  114. <class name="InterfaceStability" extends="java.lang.Object"
  115. abstract="false"
  116. static="false" final="false" visibility="public"
  117. deprecated="not deprecated">
  118. <constructor name="InterfaceStability"
  119. static="false" final="false" visibility="public"
  120. deprecated="not deprecated">
  121. </constructor>
  122. <doc>
  123. <![CDATA[Annotation to inform users of how much to rely on a particular package,
  124. class or method not changing over time.]]>
  125. </doc>
  126. </class>
  127. <!-- end class org.apache.hadoop.classification.InterfaceStability -->
  128. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  129. <interface name="InterfaceStability.Evolving" abstract="true"
  130. static="true" final="false" visibility="public"
  131. deprecated="not deprecated">
  132. <implements name="java.lang.annotation.Annotation"/>
  133. <doc>
  134. <![CDATA[Evolving, but can break compatibility at minor release (i.e. m.x)]]>
  135. </doc>
  136. </interface>
  137. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  138. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  139. <interface name="InterfaceStability.Stable" abstract="true"
  140. static="true" final="false" visibility="public"
  141. deprecated="not deprecated">
  142. <implements name="java.lang.annotation.Annotation"/>
  143. <doc>
  144. <![CDATA[Can evolve while retaining compatibility for minor release boundaries.;
  145. can break compatibility only at major release (ie. at m.0).]]>
  146. </doc>
  147. </interface>
  148. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  149. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  150. <interface name="InterfaceStability.Unstable" abstract="true"
  151. static="true" final="false" visibility="public"
  152. deprecated="not deprecated">
  153. <implements name="java.lang.annotation.Annotation"/>
  154. <doc>
  155. <![CDATA[No guarantee is provided as to reliability or stability across any
  156. level of release granularity.]]>
  157. </doc>
  158. </interface>
  159. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  160. </package>
  161. <package name="org.apache.hadoop.conf">
  162. <!-- start interface org.apache.hadoop.conf.Configurable -->
  163. <interface name="Configurable" abstract="true"
  164. static="false" final="false" visibility="public"
  165. deprecated="not deprecated">
  166. <method name="setConf"
  167. abstract="false" native="false" synchronized="false"
  168. static="false" final="false" visibility="public"
  169. deprecated="not deprecated">
  170. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  171. <doc>
  172. <![CDATA[Set the configuration to be used by this object.]]>
  173. </doc>
  174. </method>
  175. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  176. abstract="false" native="false" synchronized="false"
  177. static="false" final="false" visibility="public"
  178. deprecated="not deprecated">
  179. <doc>
  180. <![CDATA[Return the configuration used by this object.]]>
  181. </doc>
  182. </method>
  183. <doc>
  184. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  185. </doc>
  186. </interface>
  187. <!-- end interface org.apache.hadoop.conf.Configurable -->
  188. <!-- start class org.apache.hadoop.conf.Configuration -->
  189. <class name="Configuration" extends="java.lang.Object"
  190. abstract="false"
  191. static="false" final="false" visibility="public"
  192. deprecated="not deprecated">
  193. <implements name="java.lang.Iterable"/>
  194. <implements name="org.apache.hadoop.io.Writable"/>
  195. <constructor name="Configuration"
  196. static="false" final="false" visibility="public"
  197. deprecated="not deprecated">
  198. <doc>
  199. <![CDATA[A new configuration.]]>
  200. </doc>
  201. </constructor>
  202. <constructor name="Configuration" type="boolean"
  203. static="false" final="false" visibility="public"
  204. deprecated="not deprecated">
  205. <doc>
  206. <![CDATA[A new configuration where the behavior of reading from the default
  207. resources can be turned off.
  208. If the parameter {@code loadDefaults} is false, the new instance
  209. will not load resources from the default files.
  210. @param loadDefaults specifies whether to load from the default files]]>
  211. </doc>
  212. </constructor>
  213. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  214. static="false" final="false" visibility="public"
  215. deprecated="not deprecated">
  216. <doc>
  217. <![CDATA[A new configuration with the same settings cloned from another.
  218. @param other the configuration from which to clone settings.]]>
  219. </doc>
  220. </constructor>
  221. <method name="addDefaultResource"
  222. abstract="false" native="false" synchronized="true"
  223. static="true" final="false" visibility="public"
  224. deprecated="not deprecated">
  225. <param name="name" type="java.lang.String"/>
  226. <doc>
  227. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  228. added.
  229. @param name file name. File should be present in the classpath.]]>
  230. </doc>
  231. </method>
  232. <method name="addResource"
  233. abstract="false" native="false" synchronized="false"
  234. static="false" final="false" visibility="public"
  235. deprecated="not deprecated">
  236. <param name="name" type="java.lang.String"/>
  237. <doc>
  238. <![CDATA[Add a configuration resource.
  239. The properties of this resource will override properties of previously
  240. added resources, unless they were marked <a href="#Final">final</a>.
  241. @param name resource to be added, the classpath is examined for a file
  242. with that name.]]>
  243. </doc>
  244. </method>
  245. <method name="addResource"
  246. abstract="false" native="false" synchronized="false"
  247. static="false" final="false" visibility="public"
  248. deprecated="not deprecated">
  249. <param name="url" type="java.net.URL"/>
  250. <doc>
  251. <![CDATA[Add a configuration resource.
  252. The properties of this resource will override properties of previously
  253. added resources, unless they were marked <a href="#Final">final</a>.
  254. @param url url of the resource to be added, the local filesystem is
  255. examined directly to find the resource, without referring to
  256. the classpath.]]>
  257. </doc>
  258. </method>
  259. <method name="addResource"
  260. abstract="false" native="false" synchronized="false"
  261. static="false" final="false" visibility="public"
  262. deprecated="not deprecated">
  263. <param name="file" type="org.apache.hadoop.fs.Path"/>
  264. <doc>
  265. <![CDATA[Add a configuration resource.
  266. The properties of this resource will override properties of previously
  267. added resources, unless they were marked <a href="#Final">final</a>.
  268. @param file file-path of resource to be added, the local filesystem is
  269. examined directly to find the resource, without referring to
  270. the classpath.]]>
  271. </doc>
  272. </method>
  273. <method name="addResource"
  274. abstract="false" native="false" synchronized="false"
  275. static="false" final="false" visibility="public"
  276. deprecated="not deprecated">
  277. <param name="in" type="java.io.InputStream"/>
  278. <doc>
  279. <![CDATA[Add a configuration resource.
  280. The properties of this resource will override properties of previously
  281. added resources, unless they were marked <a href="#Final">final</a>.
  282. @param in InputStream to deserialize the object from.]]>
  283. </doc>
  284. </method>
  285. <method name="reloadConfiguration"
  286. abstract="false" native="false" synchronized="true"
  287. static="false" final="false" visibility="public"
  288. deprecated="not deprecated">
  289. <doc>
  290. <![CDATA[Reload configuration from previously added resources.
  291. This method will clear all the configuration read from the added
  292. resources, and final parameters. This will make the resources to
  293. be read again before accessing the values. Values that are added
  294. via set methods will overlay values read from the resources.]]>
  295. </doc>
  296. </method>
  297. <method name="get" return="java.lang.String"
  298. abstract="false" native="false" synchronized="false"
  299. static="false" final="false" visibility="public"
  300. deprecated="not deprecated">
  301. <param name="name" type="java.lang.String"/>
  302. <doc>
  303. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  304. no such property exists.
  305. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  306. before being returned.
  307. @param name the property name.
  308. @return the value of the <code>name</code> property,
  309. or null if no such property exists.]]>
  310. </doc>
  311. </method>
  312. <method name="getRaw" return="java.lang.String"
  313. abstract="false" native="false" synchronized="false"
  314. static="false" final="false" visibility="public"
  315. deprecated="not deprecated">
  316. <param name="name" type="java.lang.String"/>
  317. <doc>
  318. <![CDATA[Get the value of the <code>name</code> property, without doing
  319. <a href="#VariableExpansion">variable expansion</a>.
  320. @param name the property name.
  321. @return the value of the <code>name</code> property,
  322. or null if no such property exists.]]>
  323. </doc>
  324. </method>
  325. <method name="set"
  326. abstract="false" native="false" synchronized="false"
  327. static="false" final="false" visibility="public"
  328. deprecated="not deprecated">
  329. <param name="name" type="java.lang.String"/>
  330. <param name="value" type="java.lang.String"/>
  331. <doc>
  332. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  333. @param name property name.
  334. @param value property value.]]>
  335. </doc>
  336. </method>
  337. <method name="setIfUnset"
  338. abstract="false" native="false" synchronized="false"
  339. static="false" final="false" visibility="public"
  340. deprecated="not deprecated">
  341. <param name="name" type="java.lang.String"/>
  342. <param name="value" type="java.lang.String"/>
  343. <doc>
  344. <![CDATA[Sets a property if it is currently unset.
  345. @param name the property name
  346. @param value the new value]]>
  347. </doc>
  348. </method>
  349. <method name="get" return="java.lang.String"
  350. abstract="false" native="false" synchronized="false"
  351. static="false" final="false" visibility="public"
  352. deprecated="not deprecated">
  353. <param name="name" type="java.lang.String"/>
  354. <param name="defaultValue" type="java.lang.String"/>
  355. <doc>
  356. <![CDATA[Get the value of the <code>name</code> property. If no such property
  357. exists, then <code>defaultValue</code> is returned.
  358. @param name property name.
  359. @param defaultValue default value.
  360. @return property value, or <code>defaultValue</code> if the property
  361. doesn't exist.]]>
  362. </doc>
  363. </method>
  364. <method name="getInt" return="int"
  365. abstract="false" native="false" synchronized="false"
  366. static="false" final="false" visibility="public"
  367. deprecated="not deprecated">
  368. <param name="name" type="java.lang.String"/>
  369. <param name="defaultValue" type="int"/>
  370. <doc>
  371. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  372. If no such property exists, or if the specified value is not a valid
  373. <code>int</code>, then <code>defaultValue</code> is returned.
  374. @param name property name.
  375. @param defaultValue default value.
  376. @return property value as an <code>int</code>,
  377. or <code>defaultValue</code>.]]>
  378. </doc>
  379. </method>
  380. <method name="setInt"
  381. abstract="false" native="false" synchronized="false"
  382. static="false" final="false" visibility="public"
  383. deprecated="not deprecated">
  384. <param name="name" type="java.lang.String"/>
  385. <param name="value" type="int"/>
  386. <doc>
  387. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  388. @param name property name.
  389. @param value <code>int</code> value of the property.]]>
  390. </doc>
  391. </method>
  392. <method name="getLong" return="long"
  393. abstract="false" native="false" synchronized="false"
  394. static="false" final="false" visibility="public"
  395. deprecated="not deprecated">
  396. <param name="name" type="java.lang.String"/>
  397. <param name="defaultValue" type="long"/>
  398. <doc>
  399. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  400. If no such property is specified, or if the specified value is not a valid
  401. <code>long</code>, then <code>defaultValue</code> is returned.
  402. @param name property name.
  403. @param defaultValue default value.
  404. @return property value as a <code>long</code>,
  405. or <code>defaultValue</code>.]]>
  406. </doc>
  407. </method>
  408. <method name="setLong"
  409. abstract="false" native="false" synchronized="false"
  410. static="false" final="false" visibility="public"
  411. deprecated="not deprecated">
  412. <param name="name" type="java.lang.String"/>
  413. <param name="value" type="long"/>
  414. <doc>
  415. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  416. @param name property name.
  417. @param value <code>long</code> value of the property.]]>
  418. </doc>
  419. </method>
  420. <method name="getFloat" return="float"
  421. abstract="false" native="false" synchronized="false"
  422. static="false" final="false" visibility="public"
  423. deprecated="not deprecated">
  424. <param name="name" type="java.lang.String"/>
  425. <param name="defaultValue" type="float"/>
  426. <doc>
  427. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  428. If no such property is specified, or if the specified value is not a valid
  429. <code>float</code>, then <code>defaultValue</code> is returned.
  430. @param name property name.
  431. @param defaultValue default value.
  432. @return property value as a <code>float</code>,
  433. or <code>defaultValue</code>.]]>
  434. </doc>
  435. </method>
  436. <method name="setFloat"
  437. abstract="false" native="false" synchronized="false"
  438. static="false" final="false" visibility="public"
  439. deprecated="not deprecated">
  440. <param name="name" type="java.lang.String"/>
  441. <param name="value" type="float"/>
  442. <doc>
  443. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  444. @param name property name.
  445. @param value property value.]]>
  446. </doc>
  447. </method>
  448. <method name="getBoolean" return="boolean"
  449. abstract="false" native="false" synchronized="false"
  450. static="false" final="false" visibility="public"
  451. deprecated="not deprecated">
  452. <param name="name" type="java.lang.String"/>
  453. <param name="defaultValue" type="boolean"/>
  454. <doc>
  455. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  456. If no such property is specified, or if the specified value is not a valid
  457. <code>boolean</code>, then <code>defaultValue</code> is returned.
  458. @param name property name.
  459. @param defaultValue default value.
  460. @return property value as a <code>boolean</code>,
  461. or <code>defaultValue</code>.]]>
  462. </doc>
  463. </method>
  464. <method name="setBoolean"
  465. abstract="false" native="false" synchronized="false"
  466. static="false" final="false" visibility="public"
  467. deprecated="not deprecated">
  468. <param name="name" type="java.lang.String"/>
  469. <param name="value" type="boolean"/>
  470. <doc>
  471. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  472. @param name property name.
  473. @param value <code>boolean</code> value of the property.]]>
  474. </doc>
  475. </method>
  476. <method name="setBooleanIfUnset"
  477. abstract="false" native="false" synchronized="false"
  478. static="false" final="false" visibility="public"
  479. deprecated="not deprecated">
  480. <param name="name" type="java.lang.String"/>
  481. <param name="value" type="boolean"/>
  482. <doc>
  483. <![CDATA[Set the given property, if it is currently unset.
  484. @param name property name
  485. @param value new value]]>
  486. </doc>
  487. </method>
  488. <method name="setEnum"
  489. abstract="false" native="false" synchronized="false"
  490. static="false" final="false" visibility="public"
  491. deprecated="not deprecated">
  492. <param name="name" type="java.lang.String"/>
  493. <param name="value" type="java.lang.Enum"/>
  494. <doc>
  495. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  496. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  497. @param name property name
  498. @param value new value]]>
  499. </doc>
  500. </method>
  501. <method name="getEnum" return="java.lang.Enum"
  502. abstract="false" native="false" synchronized="false"
  503. static="false" final="false" visibility="public"
  504. deprecated="not deprecated">
  505. <param name="name" type="java.lang.String"/>
  506. <param name="defaultValue" type="java.lang.Enum"/>
  507. <doc>
  508. <![CDATA[Return value matching this enumerated type.
  509. @param name Property name
  510. @param defaultValue Value returned if no mapping exists
  511. @throws IllegalArgumentException If mapping is illegal for the type
  512. provided]]>
  513. </doc>
  514. </method>
  515. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  516. abstract="false" native="false" synchronized="false"
  517. static="false" final="false" visibility="public"
  518. deprecated="not deprecated">
  519. <param name="name" type="java.lang.String"/>
  520. <param name="defaultValue" type="java.lang.String"/>
  521. <doc>
  522. <![CDATA[Parse the given attribute as a set of integer ranges
  523. @param name the attribute name
  524. @param defaultValue the default value if it is not set
  525. @return a new set of ranges from the configured value]]>
  526. </doc>
  527. </method>
  528. <method name="getStringCollection" return="java.util.Collection"
  529. abstract="false" native="false" synchronized="false"
  530. static="false" final="false" visibility="public"
  531. deprecated="not deprecated">
  532. <param name="name" type="java.lang.String"/>
  533. <doc>
  534. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  535. a collection of <code>String</code>s.
  536. If no such property is specified then empty collection is returned.
  537. <p>
  538. This is an optimized version of {@link #getStrings(String)}
  539. @param name property name.
  540. @return property value as a collection of <code>String</code>s.]]>
  541. </doc>
  542. </method>
  543. <method name="getStrings" return="java.lang.String[]"
  544. abstract="false" native="false" synchronized="false"
  545. static="false" final="false" visibility="public"
  546. deprecated="not deprecated">
  547. <param name="name" type="java.lang.String"/>
  548. <doc>
  549. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  550. an array of <code>String</code>s.
  551. If no such property is specified then <code>null</code> is returned.
  552. @param name property name.
  553. @return property value as an array of <code>String</code>s,
  554. or <code>null</code>.]]>
  555. </doc>
  556. </method>
  557. <method name="getStrings" return="java.lang.String[]"
  558. abstract="false" native="false" synchronized="false"
  559. static="false" final="false" visibility="public"
  560. deprecated="not deprecated">
  561. <param name="name" type="java.lang.String"/>
  562. <param name="defaultValue" type="java.lang.String[]"/>
  563. <doc>
  564. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  565. an array of <code>String</code>s.
  566. If no such property is specified then default value is returned.
  567. @param name property name.
  568. @param defaultValue The default value
  569. @return property value as an array of <code>String</code>s,
  570. or default value.]]>
  571. </doc>
  572. </method>
  573. <method name="setStrings"
  574. abstract="false" native="false" synchronized="false"
  575. static="false" final="false" visibility="public"
  576. deprecated="not deprecated">
  577. <param name="name" type="java.lang.String"/>
  578. <param name="values" type="java.lang.String[]"/>
  579. <doc>
  580. <![CDATA[Set the array of string values for the <code>name</code> property as
  581. as comma delimited values.
  582. @param name property name.
  583. @param values The values]]>
  584. </doc>
  585. </method>
  586. <method name="getClassByName" return="java.lang.Class"
  587. abstract="false" native="false" synchronized="false"
  588. static="false" final="false" visibility="public"
  589. deprecated="not deprecated">
  590. <param name="name" type="java.lang.String"/>
  591. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  592. <doc>
  593. <![CDATA[Load a class by name.
  594. @param name the class name.
  595. @return the class object.
  596. @throws ClassNotFoundException if the class is not found.]]>
  597. </doc>
  598. </method>
  599. <method name="getClasses" return="java.lang.Class[]"
  600. abstract="false" native="false" synchronized="false"
  601. static="false" final="false" visibility="public"
  602. deprecated="not deprecated">
  603. <param name="name" type="java.lang.String"/>
  604. <param name="defaultValue" type="java.lang.Class[]"/>
  605. <doc>
  606. <![CDATA[Get the value of the <code>name</code> property
  607. as an array of <code>Class</code>.
  608. The value of the property specifies a list of comma separated class names.
  609. If no such property is specified, then <code>defaultValue</code> is
  610. returned.
  611. @param name the property name.
  612. @param defaultValue default value.
  613. @return property value as a <code>Class[]</code>,
  614. or <code>defaultValue</code>.]]>
  615. </doc>
  616. </method>
  617. <method name="getClass" return="java.lang.Class"
  618. abstract="false" native="false" synchronized="false"
  619. static="false" final="false" visibility="public"
  620. deprecated="not deprecated">
  621. <param name="name" type="java.lang.String"/>
  622. <param name="defaultValue" type="java.lang.Class"/>
  623. <doc>
  624. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  625. If no such property is specified, then <code>defaultValue</code> is
  626. returned.
  627. @param name the class name.
  628. @param defaultValue default value.
  629. @return property value as a <code>Class</code>,
  630. or <code>defaultValue</code>.]]>
  631. </doc>
  632. </method>
  633. <method name="getClass" return="java.lang.Class"
  634. abstract="false" native="false" synchronized="false"
  635. static="false" final="false" visibility="public"
  636. deprecated="not deprecated">
  637. <param name="name" type="java.lang.String"/>
  638. <param name="defaultValue" type="java.lang.Class"/>
  639. <param name="xface" type="java.lang.Class"/>
  640. <doc>
  641. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  642. implementing the interface specified by <code>xface</code>.
  643. If no such property is specified, then <code>defaultValue</code> is
  644. returned.
  645. An exception is thrown if the returned class does not implement the named
  646. interface.
  647. @param name the class name.
  648. @param defaultValue default value.
  649. @param xface the interface implemented by the named class.
  650. @return property value as a <code>Class</code>,
  651. or <code>defaultValue</code>.]]>
  652. </doc>
  653. </method>
  654. <method name="setClass"
  655. abstract="false" native="false" synchronized="false"
  656. static="false" final="false" visibility="public"
  657. deprecated="not deprecated">
  658. <param name="name" type="java.lang.String"/>
  659. <param name="theClass" type="java.lang.Class"/>
  660. <param name="xface" type="java.lang.Class"/>
  661. <doc>
  662. <![CDATA[Set the value of the <code>name</code> property to the name of a
  663. <code>theClass</code> implementing the given interface <code>xface</code>.
  664. An exception is thrown if <code>theClass</code> does not implement the
  665. interface <code>xface</code>.
  666. @param name property name.
  667. @param theClass property value.
  668. @param xface the interface implemented by the named class.]]>
  669. </doc>
  670. </method>
  671. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  672. abstract="false" native="false" synchronized="false"
  673. static="false" final="false" visibility="public"
  674. deprecated="not deprecated">
  675. <param name="dirsProp" type="java.lang.String"/>
  676. <param name="path" type="java.lang.String"/>
  677. <exception name="IOException" type="java.io.IOException"/>
  678. <doc>
  679. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  680. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  681. then one is chosen based on <i>path</i>'s hash code. If the selected
  682. directory does not exist, an attempt is made to create it.
  683. @param dirsProp directory in which to locate the file.
  684. @param path file-path.
  685. @return local file under the directory with the given path.]]>
  686. </doc>
  687. </method>
  688. <method name="getFile" return="java.io.File"
  689. abstract="false" native="false" synchronized="false"
  690. static="false" final="false" visibility="public"
  691. deprecated="not deprecated">
  692. <param name="dirsProp" type="java.lang.String"/>
  693. <param name="path" type="java.lang.String"/>
  694. <exception name="IOException" type="java.io.IOException"/>
  695. <doc>
  696. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  697. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  698. then one is chosen based on <i>path</i>'s hash code. If the selected
  699. directory does not exist, an attempt is made to create it.
  700. @param dirsProp directory in which to locate the file.
  701. @param path file-path.
  702. @return local file under the directory with the given path.]]>
  703. </doc>
  704. </method>
  705. <method name="getResource" return="java.net.URL"
  706. abstract="false" native="false" synchronized="false"
  707. static="false" final="false" visibility="public"
  708. deprecated="not deprecated">
  709. <param name="name" type="java.lang.String"/>
  710. <doc>
  711. <![CDATA[Get the {@link URL} for the named resource.
  712. @param name resource name.
  713. @return the url for the named resource.]]>
  714. </doc>
  715. </method>
  716. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  717. abstract="false" native="false" synchronized="false"
  718. static="false" final="false" visibility="public"
  719. deprecated="not deprecated">
  720. <param name="name" type="java.lang.String"/>
  721. <doc>
  722. <![CDATA[Get an input stream attached to the configuration resource with the
  723. given <code>name</code>.
  724. @param name configuration resource name.
  725. @return an input stream attached to the resource.]]>
  726. </doc>
  727. </method>
  728. <method name="getConfResourceAsReader" return="java.io.Reader"
  729. abstract="false" native="false" synchronized="false"
  730. static="false" final="false" visibility="public"
  731. deprecated="not deprecated">
  732. <param name="name" type="java.lang.String"/>
  733. <doc>
  734. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  735. given <code>name</code>.
  736. @param name configuration resource name.
  737. @return a reader attached to the resource.]]>
  738. </doc>
  739. </method>
  740. <method name="size" return="int"
  741. abstract="false" native="false" synchronized="false"
  742. static="false" final="false" visibility="public"
  743. deprecated="not deprecated">
  744. <doc>
  745. <![CDATA[Return the number of keys in the configuration.
  746. @return number of keys in the configuration.]]>
  747. </doc>
  748. </method>
  749. <method name="clear"
  750. abstract="false" native="false" synchronized="false"
  751. static="false" final="false" visibility="public"
  752. deprecated="not deprecated">
  753. <doc>
  754. <![CDATA[Clears all keys from the configuration.]]>
  755. </doc>
  756. </method>
  757. <method name="iterator" return="java.util.Iterator"
  758. abstract="false" native="false" synchronized="false"
  759. static="false" final="false" visibility="public"
  760. deprecated="not deprecated">
  761. <doc>
  762. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  763. key-value pairs in the configuration.
  764. @return an iterator over the entries.]]>
  765. </doc>
  766. </method>
  767. <method name="writeXml"
  768. abstract="false" native="false" synchronized="false"
  769. static="false" final="false" visibility="public"
  770. deprecated="not deprecated">
  771. <param name="out" type="java.io.OutputStream"/>
  772. <exception name="IOException" type="java.io.IOException"/>
  773. <doc>
  774. <![CDATA[Write out the non-default properties in this configuration to the give
  775. {@link OutputStream}.
  776. @param out the output stream to write to.]]>
  777. </doc>
  778. </method>
  779. <method name="dumpConfiguration"
  780. abstract="false" native="false" synchronized="false"
  781. static="true" final="false" visibility="public"
  782. deprecated="not deprecated">
  783. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  784. <param name="out" type="java.io.Writer"/>
  785. <exception name="IOException" type="java.io.IOException"/>
  786. <doc>
  787. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  788. the given {@link Writer}
  789. The format of the output would be
  790. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  791. key2.isFinal,key2.resource}... ] }
  792. It does not output the parameters of the configuration object which is
  793. loaded from an input stream.
  794. @param out the Writer to write to
  795. @throws IOException]]>
  796. </doc>
  797. </method>
  798. <method name="getClassLoader" return="java.lang.ClassLoader"
  799. abstract="false" native="false" synchronized="false"
  800. static="false" final="false" visibility="public"
  801. deprecated="not deprecated">
  802. <doc>
  803. <![CDATA[Get the {@link ClassLoader} for this job.
  804. @return the correct class loader.]]>
  805. </doc>
  806. </method>
  807. <method name="setClassLoader"
  808. abstract="false" native="false" synchronized="false"
  809. static="false" final="false" visibility="public"
  810. deprecated="not deprecated">
  811. <param name="classLoader" type="java.lang.ClassLoader"/>
  812. <doc>
  813. <![CDATA[Set the class loader that will be used to load the various objects.
  814. @param classLoader the new class loader.]]>
  815. </doc>
  816. </method>
  817. <method name="toString" return="java.lang.String"
  818. abstract="false" native="false" synchronized="false"
  819. static="false" final="false" visibility="public"
  820. deprecated="not deprecated">
  821. </method>
  822. <method name="setQuietMode"
  823. abstract="false" native="false" synchronized="true"
  824. static="false" final="false" visibility="public"
  825. deprecated="not deprecated">
  826. <param name="quietmode" type="boolean"/>
  827. <doc>
  828. <![CDATA[Set the quietness-mode.
  829. In the quiet-mode, error and informational messages might not be logged.
  830. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  831. to turn it off.]]>
  832. </doc>
  833. </method>
  834. <method name="main"
  835. abstract="false" native="false" synchronized="false"
  836. static="true" final="false" visibility="public"
  837. deprecated="not deprecated">
  838. <param name="args" type="java.lang.String[]"/>
  839. <exception name="Exception" type="java.lang.Exception"/>
  840. <doc>
  841. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  842. </doc>
  843. </method>
  844. <method name="readFields"
  845. abstract="false" native="false" synchronized="false"
  846. static="false" final="false" visibility="public"
  847. deprecated="not deprecated">
  848. <param name="in" type="java.io.DataInput"/>
  849. <exception name="IOException" type="java.io.IOException"/>
  850. </method>
  851. <method name="write"
  852. abstract="false" native="false" synchronized="false"
  853. static="false" final="false" visibility="public"
  854. deprecated="not deprecated">
  855. <param name="out" type="java.io.DataOutput"/>
  856. <exception name="IOException" type="java.io.IOException"/>
  857. </method>
  858. <method name="getValByRegex" return="java.util.Map"
  859. abstract="false" native="false" synchronized="false"
  860. static="false" final="false" visibility="public"
  861. deprecated="not deprecated">
  862. <param name="regex" type="java.lang.String"/>
  863. <doc>
  864. <![CDATA[get keys matching the the regex
  865. @param regex
  866. @return Map<String,String> with matching keys]]>
  867. </doc>
  868. </method>
  869. <doc>
  870. <![CDATA[Provides access to configuration parameters.
  871. <h4 id="Resources">Resources</h4>
  872. <p>Configurations are specified by resources. A resource contains a set of
  873. name/value pairs as XML data. Each resource is named by either a
  874. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  875. then the classpath is examined for a file with that name. If named by a
  876. <code>Path</code>, then the local filesystem is examined directly, without
  877. referring to the classpath.
  878. <p>Unless explicitly turned off, Hadoop by default specifies two
  879. resources, loaded in-order from the classpath: <ol>
  880. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  881. </tt>: Read-only defaults for hadoop.</li>
  882. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  883. installation.</li>
  884. </ol>
  885. Applications may add additional resources, which are loaded
  886. subsequent to these resources in the order they are added.
  887. <h4 id="FinalParams">Final Parameters</h4>
  888. <p>Configuration parameters may be declared <i>final</i>.
  889. Once a resource declares a value final, no subsequently-loaded
  890. resource can alter that value.
  891. For example, one might define a final parameter with:
  892. <tt><pre>
  893. &lt;property&gt;
  894. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  895. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  896. <b>&lt;final&gt;true&lt;/final&gt;</b>
  897. &lt;/property&gt;</pre></tt>
  898. Administrators typically define parameters as final in
  899. <tt>core-site.xml</tt> for values that user applications may not alter.
  900. <h4 id="VariableExpansion">Variable Expansion</h4>
  901. <p>Value strings are first processed for <i>variable expansion</i>. The
  902. available properties are:<ol>
  903. <li>Other properties defined in this Configuration; and, if a name is
  904. undefined here,</li>
  905. <li>Properties in {@link System#getProperties()}.</li>
  906. </ol>
  907. <p>For example, if a configuration resource contains the following property
  908. definitions:
  909. <tt><pre>
  910. &lt;property&gt;
  911. &lt;name&gt;basedir&lt;/name&gt;
  912. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  913. &lt;/property&gt;
  914. &lt;property&gt;
  915. &lt;name&gt;tempdir&lt;/name&gt;
  916. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  917. &lt;/property&gt;</pre></tt>
  918. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  919. will be resolved to another property in this Configuration, while
  920. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  921. of the System property with that name.]]>
  922. </doc>
  923. </class>
  924. <!-- end class org.apache.hadoop.conf.Configuration -->
  925. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  926. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  927. abstract="false"
  928. static="true" final="false" visibility="public"
  929. deprecated="not deprecated">
  930. <constructor name="Configuration.IntegerRanges"
  931. static="false" final="false" visibility="public"
  932. deprecated="not deprecated">
  933. </constructor>
  934. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  935. static="false" final="false" visibility="public"
  936. deprecated="not deprecated">
  937. </constructor>
  938. <method name="isIncluded" return="boolean"
  939. abstract="false" native="false" synchronized="false"
  940. static="false" final="false" visibility="public"
  941. deprecated="not deprecated">
  942. <param name="value" type="int"/>
  943. <doc>
  944. <![CDATA[Is the given value in the set of ranges
  945. @param value the value to check
  946. @return is the value in the ranges?]]>
  947. </doc>
  948. </method>
  949. <method name="toString" return="java.lang.String"
  950. abstract="false" native="false" synchronized="false"
  951. static="false" final="false" visibility="public"
  952. deprecated="not deprecated">
  953. </method>
  954. <doc>
  955. <![CDATA[A class that represents a set of positive integer ranges. It parses
  956. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  957. the lower/upper bounds are separated by dash. Either the lower or upper
  958. bound may be omitted meaning all values up to or over. So the string
  959. above means 2, 3, 5, and 7, 8, 9, ...]]>
  960. </doc>
  961. </class>
  962. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  963. <!-- start class org.apache.hadoop.conf.Configured -->
  964. <class name="Configured" extends="java.lang.Object"
  965. abstract="false"
  966. static="false" final="false" visibility="public"
  967. deprecated="not deprecated">
  968. <implements name="org.apache.hadoop.conf.Configurable"/>
  969. <constructor name="Configured"
  970. static="false" final="false" visibility="public"
  971. deprecated="not deprecated">
  972. <doc>
  973. <![CDATA[Construct a Configured.]]>
  974. </doc>
  975. </constructor>
  976. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  977. static="false" final="false" visibility="public"
  978. deprecated="not deprecated">
  979. <doc>
  980. <![CDATA[Construct a Configured.]]>
  981. </doc>
  982. </constructor>
  983. <method name="setConf"
  984. abstract="false" native="false" synchronized="false"
  985. static="false" final="false" visibility="public"
  986. deprecated="not deprecated">
  987. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  988. </method>
  989. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  990. abstract="false" native="false" synchronized="false"
  991. static="false" final="false" visibility="public"
  992. deprecated="not deprecated">
  993. </method>
  994. <doc>
  995. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  996. </doc>
  997. </class>
  998. <!-- end class org.apache.hadoop.conf.Configured -->
  999. </package>
  1000. <package name="org.apache.hadoop.fs">
  1001. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1002. <class name="BlockLocation" extends="java.lang.Object"
  1003. abstract="false"
  1004. static="false" final="false" visibility="public"
  1005. deprecated="not deprecated">
  1006. <implements name="org.apache.hadoop.io.Writable"/>
  1007. <constructor name="BlockLocation"
  1008. static="false" final="false" visibility="public"
  1009. deprecated="not deprecated">
  1010. <doc>
  1011. <![CDATA[Default Constructor]]>
  1012. </doc>
  1013. </constructor>
  1014. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1015. static="false" final="false" visibility="public"
  1016. deprecated="not deprecated">
  1017. <doc>
  1018. <![CDATA[Constructor with host, name, offset and length]]>
  1019. </doc>
  1020. </constructor>
  1021. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1022. static="false" final="false" visibility="public"
  1023. deprecated="not deprecated">
  1024. <doc>
  1025. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1026. </doc>
  1027. </constructor>
  1028. <method name="getHosts" return="java.lang.String[]"
  1029. abstract="false" native="false" synchronized="false"
  1030. static="false" final="false" visibility="public"
  1031. deprecated="not deprecated">
  1032. <exception name="IOException" type="java.io.IOException"/>
  1033. <doc>
  1034. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1035. </doc>
  1036. </method>
  1037. <method name="getNames" return="java.lang.String[]"
  1038. abstract="false" native="false" synchronized="false"
  1039. static="false" final="false" visibility="public"
  1040. deprecated="not deprecated">
  1041. <exception name="IOException" type="java.io.IOException"/>
  1042. <doc>
  1043. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1044. </doc>
  1045. </method>
  1046. <method name="getTopologyPaths" return="java.lang.String[]"
  1047. abstract="false" native="false" synchronized="false"
  1048. static="false" final="false" visibility="public"
  1049. deprecated="not deprecated">
  1050. <exception name="IOException" type="java.io.IOException"/>
  1051. <doc>
  1052. <![CDATA[Get the list of network topology paths for each of the hosts.
  1053. The last component of the path is the host.]]>
  1054. </doc>
  1055. </method>
  1056. <method name="getOffset" return="long"
  1057. abstract="false" native="false" synchronized="false"
  1058. static="false" final="false" visibility="public"
  1059. deprecated="not deprecated">
  1060. <doc>
  1061. <![CDATA[Get the start offset of file associated with this block]]>
  1062. </doc>
  1063. </method>
  1064. <method name="getLength" return="long"
  1065. abstract="false" native="false" synchronized="false"
  1066. static="false" final="false" visibility="public"
  1067. deprecated="not deprecated">
  1068. <doc>
  1069. <![CDATA[Get the length of the block]]>
  1070. </doc>
  1071. </method>
  1072. <method name="setOffset"
  1073. abstract="false" native="false" synchronized="false"
  1074. static="false" final="false" visibility="public"
  1075. deprecated="not deprecated">
  1076. <param name="offset" type="long"/>
  1077. <doc>
  1078. <![CDATA[Set the start offset of file associated with this block]]>
  1079. </doc>
  1080. </method>
  1081. <method name="setLength"
  1082. abstract="false" native="false" synchronized="false"
  1083. static="false" final="false" visibility="public"
  1084. deprecated="not deprecated">
  1085. <param name="length" type="long"/>
  1086. <doc>
  1087. <![CDATA[Set the length of block]]>
  1088. </doc>
  1089. </method>
  1090. <method name="setHosts"
  1091. abstract="false" native="false" synchronized="false"
  1092. static="false" final="false" visibility="public"
  1093. deprecated="not deprecated">
  1094. <param name="hosts" type="java.lang.String[]"/>
  1095. <exception name="IOException" type="java.io.IOException"/>
  1096. <doc>
  1097. <![CDATA[Set the hosts hosting this block]]>
  1098. </doc>
  1099. </method>
  1100. <method name="setNames"
  1101. abstract="false" native="false" synchronized="false"
  1102. static="false" final="false" visibility="public"
  1103. deprecated="not deprecated">
  1104. <param name="names" type="java.lang.String[]"/>
  1105. <exception name="IOException" type="java.io.IOException"/>
  1106. <doc>
  1107. <![CDATA[Set the names (host:port) hosting this block]]>
  1108. </doc>
  1109. </method>
  1110. <method name="setTopologyPaths"
  1111. abstract="false" native="false" synchronized="false"
  1112. static="false" final="false" visibility="public"
  1113. deprecated="not deprecated">
  1114. <param name="topologyPaths" type="java.lang.String[]"/>
  1115. <exception name="IOException" type="java.io.IOException"/>
  1116. <doc>
  1117. <![CDATA[Set the network topology paths of the hosts]]>
  1118. </doc>
  1119. </method>
  1120. <method name="write"
  1121. abstract="false" native="false" synchronized="false"
  1122. static="false" final="false" visibility="public"
  1123. deprecated="not deprecated">
  1124. <param name="out" type="java.io.DataOutput"/>
  1125. <exception name="IOException" type="java.io.IOException"/>
  1126. <doc>
  1127. <![CDATA[Implement write of Writable]]>
  1128. </doc>
  1129. </method>
  1130. <method name="readFields"
  1131. abstract="false" native="false" synchronized="false"
  1132. static="false" final="false" visibility="public"
  1133. deprecated="not deprecated">
  1134. <param name="in" type="java.io.DataInput"/>
  1135. <exception name="IOException" type="java.io.IOException"/>
  1136. <doc>
  1137. <![CDATA[Implement readFields of Writable]]>
  1138. </doc>
  1139. </method>
  1140. <method name="toString" return="java.lang.String"
  1141. abstract="false" native="false" synchronized="false"
  1142. static="false" final="false" visibility="public"
  1143. deprecated="not deprecated">
  1144. </method>
  1145. </class>
  1146. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1147. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1148. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1149. abstract="false"
  1150. static="false" final="false" visibility="public"
  1151. deprecated="not deprecated">
  1152. <implements name="org.apache.hadoop.fs.Seekable"/>
  1153. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1154. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1155. static="false" final="false" visibility="public"
  1156. deprecated="not deprecated">
  1157. <doc>
  1158. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1159. with the specified buffer size,
  1160. and saves its argument, the input stream
  1161. <code>in</code>, for later use. An internal
  1162. buffer array of length <code>size</code>
  1163. is created and stored in <code>buf</code>.
  1164. @param in the underlying input stream.
  1165. @param size the buffer size.
  1166. @exception IllegalArgumentException if size <= 0.]]>
  1167. </doc>
  1168. </constructor>
  1169. <method name="getPos" return="long"
  1170. abstract="false" native="false" synchronized="false"
  1171. static="false" final="false" visibility="public"
  1172. deprecated="not deprecated">
  1173. <exception name="IOException" type="java.io.IOException"/>
  1174. </method>
  1175. <method name="skip" return="long"
  1176. abstract="false" native="false" synchronized="false"
  1177. static="false" final="false" visibility="public"
  1178. deprecated="not deprecated">
  1179. <param name="n" type="long"/>
  1180. <exception name="IOException" type="java.io.IOException"/>
  1181. </method>
  1182. <method name="seek"
  1183. abstract="false" native="false" synchronized="false"
  1184. static="false" final="false" visibility="public"
  1185. deprecated="not deprecated">
  1186. <param name="pos" type="long"/>
  1187. <exception name="IOException" type="java.io.IOException"/>
  1188. </method>
  1189. <method name="seekToNewSource" return="boolean"
  1190. abstract="false" native="false" synchronized="false"
  1191. static="false" final="false" visibility="public"
  1192. deprecated="not deprecated">
  1193. <param name="targetPos" type="long"/>
  1194. <exception name="IOException" type="java.io.IOException"/>
  1195. </method>
  1196. <method name="read" return="int"
  1197. abstract="false" native="false" synchronized="false"
  1198. static="false" final="false" visibility="public"
  1199. deprecated="not deprecated">
  1200. <param name="position" type="long"/>
  1201. <param name="buffer" type="byte[]"/>
  1202. <param name="offset" type="int"/>
  1203. <param name="length" type="int"/>
  1204. <exception name="IOException" type="java.io.IOException"/>
  1205. </method>
  1206. <method name="readFully"
  1207. abstract="false" native="false" synchronized="false"
  1208. static="false" final="false" visibility="public"
  1209. deprecated="not deprecated">
  1210. <param name="position" type="long"/>
  1211. <param name="buffer" type="byte[]"/>
  1212. <param name="offset" type="int"/>
  1213. <param name="length" type="int"/>
  1214. <exception name="IOException" type="java.io.IOException"/>
  1215. </method>
  1216. <method name="readFully"
  1217. abstract="false" native="false" synchronized="false"
  1218. static="false" final="false" visibility="public"
  1219. deprecated="not deprecated">
  1220. <param name="position" type="long"/>
  1221. <param name="buffer" type="byte[]"/>
  1222. <exception name="IOException" type="java.io.IOException"/>
  1223. </method>
  1224. <doc>
  1225. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1226. </doc>
  1227. </class>
  1228. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1229. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1230. <class name="ChecksumException" extends="java.io.IOException"
  1231. abstract="false"
  1232. static="false" final="false" visibility="public"
  1233. deprecated="not deprecated">
  1234. <constructor name="ChecksumException" type="java.lang.String, long"
  1235. static="false" final="false" visibility="public"
  1236. deprecated="not deprecated">
  1237. </constructor>
  1238. <method name="getPos" return="long"
  1239. abstract="false" native="false" synchronized="false"
  1240. static="false" final="false" visibility="public"
  1241. deprecated="not deprecated">
  1242. </method>
  1243. <doc>
  1244. <![CDATA[Thrown for checksum errors.]]>
  1245. </doc>
  1246. </class>
  1247. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1248. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1249. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1250. abstract="true"
  1251. static="false" final="false" visibility="public"
  1252. deprecated="not deprecated">
  1253. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1254. static="false" final="false" visibility="public"
  1255. deprecated="not deprecated">
  1256. </constructor>
  1257. <method name="getApproxChkSumLength" return="double"
  1258. abstract="false" native="false" synchronized="false"
  1259. static="true" final="false" visibility="public"
  1260. deprecated="not deprecated">
  1261. <param name="size" type="long"/>
  1262. </method>
  1263. <method name="setConf"
  1264. abstract="false" native="false" synchronized="false"
  1265. static="false" final="false" visibility="public"
  1266. deprecated="not deprecated">
  1267. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1268. </method>
  1269. <method name="setVerifyChecksum"
  1270. abstract="false" native="false" synchronized="false"
  1271. static="false" final="false" visibility="public"
  1272. deprecated="not deprecated">
  1273. <param name="verifyChecksum" type="boolean"/>
  1274. <doc>
  1275. <![CDATA[Set whether to verify checksum.]]>
  1276. </doc>
  1277. </method>
  1278. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1279. abstract="false" native="false" synchronized="false"
  1280. static="false" final="false" visibility="public"
  1281. deprecated="not deprecated">
  1282. <doc>
  1283. <![CDATA[get the raw file system]]>
  1284. </doc>
  1285. </method>
  1286. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1287. abstract="false" native="false" synchronized="false"
  1288. static="false" final="false" visibility="public"
  1289. deprecated="not deprecated">
  1290. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1291. <doc>
  1292. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1293. </doc>
  1294. </method>
  1295. <method name="isChecksumFile" return="boolean"
  1296. abstract="false" native="false" synchronized="false"
  1297. static="true" final="false" visibility="public"
  1298. deprecated="not deprecated">
  1299. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1300. <doc>
  1301. <![CDATA[Return true iff file is a checksum file name.]]>
  1302. </doc>
  1303. </method>
  1304. <method name="getChecksumFileLength" return="long"
  1305. abstract="false" native="false" synchronized="false"
  1306. static="false" final="false" visibility="public"
  1307. deprecated="not deprecated">
  1308. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1309. <param name="fileSize" type="long"/>
  1310. <doc>
  1311. <![CDATA[Return the length of the checksum file given the size of the
  1312. actual file.]]>
  1313. </doc>
  1314. </method>
  1315. <method name="getBytesPerSum" return="int"
  1316. abstract="false" native="false" synchronized="false"
  1317. static="false" final="false" visibility="public"
  1318. deprecated="not deprecated">
  1319. <doc>
  1320. <![CDATA[Return the bytes Per Checksum]]>
  1321. </doc>
  1322. </method>
  1323. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1324. abstract="false" native="false" synchronized="false"
  1325. static="false" final="false" visibility="public"
  1326. deprecated="not deprecated">
  1327. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1328. <param name="bufferSize" type="int"/>
  1329. <exception name="IOException" type="java.io.IOException"/>
  1330. <doc>
  1331. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1332. @param f the file name to open
  1333. @param bufferSize the size of the buffer to be used.]]>
  1334. </doc>
  1335. </method>
  1336. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1337. abstract="false" native="false" synchronized="false"
  1338. static="false" final="false" visibility="public"
  1339. deprecated="not deprecated">
  1340. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1341. <param name="bufferSize" type="int"/>
  1342. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1343. <exception name="IOException" type="java.io.IOException"/>
  1344. <doc>
  1345. <![CDATA[{@inheritDoc}]]>
  1346. </doc>
  1347. </method>
  1348. <method name="getChecksumLength" return="long"
  1349. abstract="false" native="false" synchronized="false"
  1350. static="true" final="false" visibility="public"
  1351. deprecated="not deprecated">
  1352. <param name="size" type="long"/>
  1353. <param name="bytesPerSum" type="int"/>
  1354. <doc>
  1355. <![CDATA[Calculated the length of the checksum file in bytes.
  1356. @param size the length of the data file in bytes
  1357. @param bytesPerSum the number of bytes in a checksum block
  1358. @return the number of bytes in the checksum file]]>
  1359. </doc>
  1360. </method>
  1361. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1362. abstract="false" native="false" synchronized="false"
  1363. static="false" final="false" visibility="public"
  1364. deprecated="not deprecated">
  1365. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1366. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1367. <param name="overwrite" type="boolean"/>
  1368. <param name="bufferSize" type="int"/>
  1369. <param name="replication" type="short"/>
  1370. <param name="blockSize" type="long"/>
  1371. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1372. <exception name="IOException" type="java.io.IOException"/>
  1373. <doc>
  1374. <![CDATA[{@inheritDoc}]]>
  1375. </doc>
  1376. </method>
  1377. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  1378. abstract="false" native="false" synchronized="false"
  1379. static="false" final="false" visibility="public"
  1380. deprecated="not deprecated">
  1381. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1382. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1383. <param name="overwrite" type="boolean"/>
  1384. <param name="bufferSize" type="int"/>
  1385. <param name="replication" type="short"/>
  1386. <param name="blockSize" type="long"/>
  1387. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1388. <exception name="IOException" type="java.io.IOException"/>
  1389. <doc>
  1390. <![CDATA[{@inheritDoc}]]>
  1391. </doc>
  1392. </method>
  1393. <method name="setReplication" return="boolean"
  1394. abstract="false" native="false" synchronized="false"
  1395. static="false" final="false" visibility="public"
  1396. deprecated="not deprecated">
  1397. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1398. <param name="replication" type="short"/>
  1399. <exception name="IOException" type="java.io.IOException"/>
  1400. <doc>
  1401. <![CDATA[Set replication for an existing file.
  1402. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1403. @param src file name
  1404. @param replication new replication
  1405. @throws IOException
  1406. @return true if successful;
  1407. false if file does not exist or is a directory]]>
  1408. </doc>
  1409. </method>
  1410. <method name="rename" return="boolean"
  1411. abstract="false" native="false" synchronized="false"
  1412. static="false" final="false" visibility="public"
  1413. deprecated="not deprecated">
  1414. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1415. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1416. <exception name="IOException" type="java.io.IOException"/>
  1417. <doc>
  1418. <![CDATA[Rename files/dirs]]>
  1419. </doc>
  1420. </method>
  1421. <method name="delete" return="boolean"
  1422. abstract="false" native="false" synchronized="false"
  1423. static="false" final="false" visibility="public"
  1424. deprecated="not deprecated">
  1425. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1426. <param name="recursive" type="boolean"/>
  1427. <exception name="IOException" type="java.io.IOException"/>
  1428. <doc>
  1429. <![CDATA[Implement the delete(Path, boolean) in checksum
  1430. file system.]]>
  1431. </doc>
  1432. </method>
  1433. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1434. abstract="false" native="false" synchronized="false"
  1435. static="false" final="false" visibility="public"
  1436. deprecated="not deprecated">
  1437. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1438. <exception name="IOException" type="java.io.IOException"/>
  1439. <doc>
  1440. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1441. a directory.
  1442. @param f
  1443. given path
  1444. @return the statuses of the files/directories in the given patch
  1445. @throws IOException]]>
  1446. </doc>
  1447. </method>
  1448. <method name="mkdirs" return="boolean"
  1449. abstract="false" native="false" synchronized="false"
  1450. static="false" final="false" visibility="public"
  1451. deprecated="not deprecated">
  1452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1453. <exception name="IOException" type="java.io.IOException"/>
  1454. </method>
  1455. <method name="copyFromLocalFile"
  1456. abstract="false" native="false" synchronized="false"
  1457. static="false" final="false" visibility="public"
  1458. deprecated="not deprecated">
  1459. <param name="delSrc" type="boolean"/>
  1460. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1461. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1462. <exception name="IOException" type="java.io.IOException"/>
  1463. </method>
  1464. <method name="copyToLocalFile"
  1465. abstract="false" native="false" synchronized="false"
  1466. static="false" final="false" visibility="public"
  1467. deprecated="not deprecated">
  1468. <param name="delSrc" type="boolean"/>
  1469. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1470. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1471. <exception name="IOException" type="java.io.IOException"/>
  1472. <doc>
  1473. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1474. Copy it from FS control to the local dst name.]]>
  1475. </doc>
  1476. </method>
  1477. <method name="copyToLocalFile"
  1478. abstract="false" native="false" synchronized="false"
  1479. static="false" final="false" visibility="public"
  1480. deprecated="not deprecated">
  1481. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1482. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1483. <param name="copyCrc" type="boolean"/>
  1484. <exception name="IOException" type="java.io.IOException"/>
  1485. <doc>
  1486. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1487. Copy it from FS control to the local dst name.
  1488. If src and dst are directories, the copyCrc parameter
  1489. determines whether to copy CRC files.]]>
  1490. </doc>
  1491. </method>
  1492. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1493. abstract="false" native="false" synchronized="false"
  1494. static="false" final="false" visibility="public"
  1495. deprecated="not deprecated">
  1496. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1497. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1498. <exception name="IOException" type="java.io.IOException"/>
  1499. </method>
  1500. <method name="completeLocalOutput"
  1501. abstract="false" native="false" synchronized="false"
  1502. static="false" final="false" visibility="public"
  1503. deprecated="not deprecated">
  1504. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1505. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1506. <exception name="IOException" type="java.io.IOException"/>
  1507. </method>
  1508. <method name="reportChecksumFailure" return="boolean"
  1509. abstract="false" native="false" synchronized="false"
  1510. static="false" final="false" visibility="public"
  1511. deprecated="not deprecated">
  1512. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1513. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1514. <param name="inPos" type="long"/>
  1515. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1516. <param name="sumsPos" type="long"/>
  1517. <doc>
  1518. <![CDATA[Report a checksum error to the file system.
  1519. @param f the file name containing the error
  1520. @param in the stream open on the file
  1521. @param inPos the position of the beginning of the bad data in the file
  1522. @param sums the stream open on the checksum file
  1523. @param sumsPos the position of the beginning of the bad data in the checksum file
  1524. @return if retry is neccessary]]>
  1525. </doc>
  1526. </method>
  1527. <doc>
  1528. <![CDATA[Abstract Checksumed FileSystem.
  1529. It provide a basice implementation of a Checksumed FileSystem,
  1530. which creates a checksum file for each raw file.
  1531. It generates & verifies checksums at the client side.]]>
  1532. </doc>
  1533. </class>
  1534. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1535. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1536. <class name="CommonConfigurationKeys" extends="java.lang.Object"
  1537. abstract="false"
  1538. static="false" final="false" visibility="public"
  1539. deprecated="not deprecated">
  1540. <constructor name="CommonConfigurationKeys"
  1541. static="false" final="false" visibility="public"
  1542. deprecated="not deprecated">
  1543. </constructor>
  1544. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  1545. transient="false" volatile="false"
  1546. static="true" final="true" visibility="public"
  1547. deprecated="not deprecated">
  1548. <doc>
  1549. <![CDATA[See src/core/core-default.xml]]>
  1550. </doc>
  1551. </field>
  1552. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  1553. transient="false" volatile="false"
  1554. static="true" final="true" visibility="public"
  1555. deprecated="not deprecated">
  1556. </field>
  1557. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  1558. transient="false" volatile="false"
  1559. static="true" final="true" visibility="public"
  1560. deprecated="not deprecated">
  1561. <doc>
  1562. <![CDATA[See src/core/core-default.xml]]>
  1563. </doc>
  1564. </field>
  1565. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  1566. transient="false" volatile="false"
  1567. static="true" final="true" visibility="public"
  1568. deprecated="not deprecated">
  1569. <doc>
  1570. <![CDATA[See src/core/core-default.xml]]>
  1571. </doc>
  1572. </field>
  1573. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  1574. transient="false" volatile="false"
  1575. static="true" final="true" visibility="public"
  1576. deprecated="not deprecated">
  1577. <doc>
  1578. <![CDATA[See src/core/core-default.xml]]>
  1579. </doc>
  1580. </field>
  1581. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  1582. transient="false" volatile="false"
  1583. static="true" final="true" visibility="public"
  1584. deprecated="not deprecated">
  1585. <doc>
  1586. <![CDATA[See src/core/core-default.xml]]>
  1587. </doc>
  1588. </field>
  1589. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP" type="java.lang.String"
  1590. transient="false" volatile="false"
  1591. static="true" final="true" visibility="public"
  1592. deprecated="not deprecated">
  1593. <doc>
  1594. <![CDATA[See src/core/core-default.xml]]>
  1595. </doc>
  1596. </field>
  1597. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP_DEFAULT" type="boolean"
  1598. transient="false" volatile="false"
  1599. static="true" final="true" visibility="public"
  1600. deprecated="not deprecated">
  1601. </field>
  1602. <field name="IPC_SERVER_RPC_READ_THREADS_KEY" type="java.lang.String"
  1603. transient="false" volatile="false"
  1604. static="true" final="true" visibility="public"
  1605. deprecated="not deprecated">
  1606. </field>
  1607. <field name="IPC_SERVER_RPC_READ_THREADS_DEFAULT" type="int"
  1608. transient="false" volatile="false"
  1609. static="true" final="true" visibility="public"
  1610. deprecated="not deprecated">
  1611. </field>
  1612. <doc>
  1613. <![CDATA[This class contains constants for configuration keys used
  1614. in the common code.]]>
  1615. </doc>
  1616. </class>
  1617. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1618. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1619. <class name="ContentSummary" extends="java.lang.Object"
  1620. abstract="false"
  1621. static="false" final="false" visibility="public"
  1622. deprecated="not deprecated">
  1623. <implements name="org.apache.hadoop.io.Writable"/>
  1624. <constructor name="ContentSummary"
  1625. static="false" final="false" visibility="public"
  1626. deprecated="not deprecated">
  1627. <doc>
  1628. <![CDATA[Constructor]]>
  1629. </doc>
  1630. </constructor>
  1631. <constructor name="ContentSummary" type="long, long, long"
  1632. static="false" final="false" visibility="public"
  1633. deprecated="not deprecated">
  1634. <doc>
  1635. <![CDATA[Constructor]]>
  1636. </doc>
  1637. </constructor>
  1638. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1639. static="false" final="false" visibility="public"
  1640. deprecated="not deprecated">
  1641. <doc>
  1642. <![CDATA[Constructor]]>
  1643. </doc>
  1644. </constructor>
  1645. <method name="getLength" return="long"
  1646. abstract="false" native="false" synchronized="false"
  1647. static="false" final="false" visibility="public"
  1648. deprecated="not deprecated">
  1649. <doc>
  1650. <![CDATA[@return the length]]>
  1651. </doc>
  1652. </method>
  1653. <method name="getDirectoryCount" return="long"
  1654. abstract="false" native="false" synchronized="false"
  1655. static="false" final="false" visibility="public"
  1656. deprecated="not deprecated">
  1657. <doc>
  1658. <![CDATA[@return the directory count]]>
  1659. </doc>
  1660. </method>
  1661. <method name="getFileCount" return="long"
  1662. abstract="false" native="false" synchronized="false"
  1663. static="false" final="false" visibility="public"
  1664. deprecated="not deprecated">
  1665. <doc>
  1666. <![CDATA[@return the file count]]>
  1667. </doc>
  1668. </method>
  1669. <method name="getQuota" return="long"
  1670. abstract="false" native="false" synchronized="false"
  1671. static="false" final="false" visibility="public"
  1672. deprecated="not deprecated">
  1673. <doc>
  1674. <![CDATA[Return the directory quota]]>
  1675. </doc>
  1676. </method>
  1677. <method name="getSpaceConsumed" return="long"
  1678. abstract="false" native="false" synchronized="false"
  1679. static="false" final="false" visibility="public"
  1680. deprecated="not deprecated">
  1681. <doc>
  1682. <![CDATA[Retuns (disk) space consumed]]>
  1683. </doc>
  1684. </method>
  1685. <method name="getSpaceQuota" return="long"
  1686. abstract="false" native="false" synchronized="false"
  1687. static="false" final="false" visibility="public"
  1688. deprecated="not deprecated">
  1689. <doc>
  1690. <![CDATA[Returns (disk) space quota]]>
  1691. </doc>
  1692. </method>
  1693. <method name="write"
  1694. abstract="false" native="false" synchronized="false"
  1695. static="false" final="false" visibility="public"
  1696. deprecated="not deprecated">
  1697. <param name="out" type="java.io.DataOutput"/>
  1698. <exception name="IOException" type="java.io.IOException"/>
  1699. <doc>
  1700. <![CDATA[{@inheritDoc}]]>
  1701. </doc>
  1702. </method>
  1703. <method name="readFields"
  1704. abstract="false" native="false" synchronized="false"
  1705. static="false" final="false" visibility="public"
  1706. deprecated="not deprecated">
  1707. <param name="in" type="java.io.DataInput"/>
  1708. <exception name="IOException" type="java.io.IOException"/>
  1709. <doc>
  1710. <![CDATA[{@inheritDoc}]]>
  1711. </doc>
  1712. </method>
  1713. <method name="getHeader" return="java.lang.String"
  1714. abstract="false" native="false" synchronized="false"
  1715. static="true" final="false" visibility="public"
  1716. deprecated="not deprecated">
  1717. <param name="qOption" type="boolean"/>
  1718. <doc>
  1719. <![CDATA[Return the header of the output.
  1720. if qOption is false, output directory count, file count, and content size;
  1721. if qOption is true, output quota and remaining quota as well.
  1722. @param qOption a flag indicating if quota needs to be printed or not
  1723. @return the header of the output]]>
  1724. </doc>
  1725. </method>
  1726. <method name="toString" return="java.lang.String"
  1727. abstract="false" native="false" synchronized="false"
  1728. static="false" final="false" visibility="public"
  1729. deprecated="not deprecated">
  1730. <doc>
  1731. <![CDATA[{@inheritDoc}]]>
  1732. </doc>
  1733. </method>
  1734. <method name="toString" return="java.lang.String"
  1735. abstract="false" native="false" synchronized="false"
  1736. static="false" final="false" visibility="public"
  1737. deprecated="not deprecated">
  1738. <param name="qOption" type="boolean"/>
  1739. <doc>
  1740. <![CDATA[Return the string representation of the object in the output format.
  1741. if qOption is false, output directory count, file count, and content size;
  1742. if qOption is true, output quota and remaining quota as well.
  1743. @param qOption a flag indicating if quota needs to be printed or not
  1744. @return the string representation of the object]]>
  1745. </doc>
  1746. </method>
  1747. <doc>
  1748. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1749. </doc>
  1750. </class>
  1751. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1752. <!-- start class org.apache.hadoop.fs.DF -->
  1753. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1754. abstract="false"
  1755. static="false" final="false" visibility="public"
  1756. deprecated="not deprecated">
  1757. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1758. static="false" final="false" visibility="public"
  1759. deprecated="not deprecated">
  1760. <exception name="IOException" type="java.io.IOException"/>
  1761. </constructor>
  1762. <constructor name="DF" type="java.io.File, long"
  1763. static="false" final="false" visibility="public"
  1764. deprecated="not deprecated">
  1765. <exception name="IOException" type="java.io.IOException"/>
  1766. </constructor>
  1767. <method name="getDirPath" return="java.lang.String"
  1768. abstract="false" native="false" synchronized="false"
  1769. static="false" final="false" visibility="public"
  1770. deprecated="not deprecated">
  1771. <doc>
  1772. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1773. </doc>
  1774. </method>
  1775. <method name="getFilesystem" return="java.lang.String"
  1776. abstract="false" native="false" synchronized="false"
  1777. static="false" final="false" visibility="public"
  1778. deprecated="not deprecated">
  1779. <exception name="IOException" type="java.io.IOException"/>
  1780. <doc>
  1781. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1782. </doc>
  1783. </method>
  1784. <method name="getCapacity" return="long"
  1785. abstract="false" native="false" synchronized="false"
  1786. static="false" final="false" visibility="public"
  1787. deprecated="not deprecated">
  1788. <doc>
  1789. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1790. </doc>
  1791. </method>
  1792. <method name="getUsed" return="long"
  1793. abstract="false" native="false" synchronized="false"
  1794. static="false" final="false" visibility="public"
  1795. deprecated="not deprecated">
  1796. <doc>
  1797. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1798. </doc>
  1799. </method>
  1800. <method name="getAvailable" return="long"
  1801. abstract="false" native="false" synchronized="false"
  1802. static="false" final="false" visibility="public"
  1803. deprecated="not deprecated">
  1804. <doc>
  1805. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1806. </doc>
  1807. </method>
  1808. <method name="getPercentUsed" return="int"
  1809. abstract="false" native="false" synchronized="false"
  1810. static="false" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. <doc>
  1813. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1814. </doc>
  1815. </method>
  1816. <method name="getMount" return="java.lang.String"
  1817. abstract="false" native="false" synchronized="false"
  1818. static="false" final="false" visibility="public"
  1819. deprecated="not deprecated">
  1820. <exception name="IOException" type="java.io.IOException"/>
  1821. <doc>
  1822. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  1823. </doc>
  1824. </method>
  1825. <method name="toString" return="java.lang.String"
  1826. abstract="false" native="false" synchronized="false"
  1827. static="false" final="false" visibility="public"
  1828. deprecated="not deprecated">
  1829. </method>
  1830. <method name="getExecString" return="java.lang.String[]"
  1831. abstract="false" native="false" synchronized="false"
  1832. static="false" final="false" visibility="protected"
  1833. deprecated="not deprecated">
  1834. </method>
  1835. <method name="parseExecResult"
  1836. abstract="false" native="false" synchronized="false"
  1837. static="false" final="false" visibility="protected"
  1838. deprecated="not deprecated">
  1839. <param name="lines" type="java.io.BufferedReader"/>
  1840. <exception name="IOException" type="java.io.IOException"/>
  1841. </method>
  1842. <method name="main"
  1843. abstract="false" native="false" synchronized="false"
  1844. static="true" final="false" visibility="public"
  1845. deprecated="not deprecated">
  1846. <param name="args" type="java.lang.String[]"/>
  1847. <exception name="Exception" type="java.lang.Exception"/>
  1848. </method>
  1849. <field name="DF_INTERVAL_DEFAULT" type="long"
  1850. transient="false" volatile="false"
  1851. static="true" final="true" visibility="public"
  1852. deprecated="not deprecated">
  1853. <doc>
  1854. <![CDATA[Default DF refresh interval.]]>
  1855. </doc>
  1856. </field>
  1857. <doc>
  1858. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  1859. mount points, and java.io.File for space utilization. Tested on Linux,
  1860. FreeBSD, Cygwin.]]>
  1861. </doc>
  1862. </class>
  1863. <!-- end class org.apache.hadoop.fs.DF -->
  1864. <!-- start class org.apache.hadoop.fs.DU -->
  1865. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1866. abstract="false"
  1867. static="false" final="false" visibility="public"
  1868. deprecated="not deprecated">
  1869. <constructor name="DU" type="java.io.File, long"
  1870. static="false" final="false" visibility="public"
  1871. deprecated="not deprecated">
  1872. <exception name="IOException" type="java.io.IOException"/>
  1873. <doc>
  1874. <![CDATA[Keeps track of disk usage.
  1875. @param path the path to check disk usage in
  1876. @param interval refresh the disk usage at this interval
  1877. @throws IOException if we fail to refresh the disk usage]]>
  1878. </doc>
  1879. </constructor>
  1880. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1881. static="false" final="false" visibility="public"
  1882. deprecated="not deprecated">
  1883. <exception name="IOException" type="java.io.IOException"/>
  1884. <doc>
  1885. <![CDATA[Keeps track of disk usage.
  1886. @param path the path to check disk usage in
  1887. @param conf configuration object
  1888. @throws IOException if we fail to refresh the disk usage]]>
  1889. </doc>
  1890. </constructor>
  1891. <method name="decDfsUsed"
  1892. abstract="false" native="false" synchronized="false"
  1893. static="false" final="false" visibility="public"
  1894. deprecated="not deprecated">
  1895. <param name="value" type="long"/>
  1896. <doc>
  1897. <![CDATA[Decrease how much disk space we use.
  1898. @param value decrease by this value]]>
  1899. </doc>
  1900. </method>
  1901. <method name="incDfsUsed"
  1902. abstract="false" native="false" synchronized="false"
  1903. static="false" final="false" visibility="public"
  1904. deprecated="not deprecated">
  1905. <param name="value" type="long"/>
  1906. <doc>
  1907. <![CDATA[Increase how much disk space we use.
  1908. @param value increase by this value]]>
  1909. </doc>
  1910. </method>
  1911. <method name="getUsed" return="long"
  1912. abstract="false" native="false" synchronized="false"
  1913. static="false" final="false" visibility="public"
  1914. deprecated="not deprecated">
  1915. <exception name="IOException" type="java.io.IOException"/>
  1916. <doc>
  1917. <![CDATA[@return disk space used
  1918. @throws IOException if the shell command fails]]>
  1919. </doc>
  1920. </method>
  1921. <method name="getDirPath" return="java.lang.String"
  1922. abstract="false" native="false" synchronized="false"
  1923. static="false" final="false" visibility="public"
  1924. deprecated="not deprecated">
  1925. <doc>
  1926. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  1927. </doc>
  1928. </method>
  1929. <method name="start"
  1930. abstract="false" native="false" synchronized="false"
  1931. static="false" final="false" visibility="public"
  1932. deprecated="not deprecated">
  1933. <doc>
  1934. <![CDATA[Start the disk usage checking thread.]]>
  1935. </doc>
  1936. </method>
  1937. <method name="shutdown"
  1938. abstract="false" native="false" synchronized="false"
  1939. static="false" final="false" visibility="public"
  1940. deprecated="not deprecated">
  1941. <doc>
  1942. <![CDATA[Shut down the refreshing thread.]]>
  1943. </doc>
  1944. </method>
  1945. <method name="toString" return="java.lang.String"
  1946. abstract="false" native="false" synchronized="false"
  1947. static="false" final="false" visibility="public"
  1948. deprecated="not deprecated">
  1949. </method>
  1950. <method name="getExecString" return="java.lang.String[]"
  1951. abstract="false" native="false" synchronized="false"
  1952. static="false" final="false" visibility="protected"
  1953. deprecated="not deprecated">
  1954. </method>
  1955. <method name="parseExecResult"
  1956. abstract="false" native="false" synchronized="false"
  1957. static="false" final="false" visibility="protected"
  1958. deprecated="not deprecated">
  1959. <param name="lines" type="java.io.BufferedReader"/>
  1960. <exception name="IOException" type="java.io.IOException"/>
  1961. </method>
  1962. <method name="main"
  1963. abstract="false" native="false" synchronized="false"
  1964. static="true" final="false" visibility="public"
  1965. deprecated="not deprecated">
  1966. <param name="args" type="java.lang.String[]"/>
  1967. <exception name="Exception" type="java.lang.Exception"/>
  1968. </method>
  1969. <doc>
  1970. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  1971. </doc>
  1972. </class>
  1973. <!-- end class org.apache.hadoop.fs.DU -->
  1974. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  1975. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  1976. abstract="false"
  1977. static="false" final="false" visibility="public"
  1978. deprecated="not deprecated">
  1979. <constructor name="FileAlreadyExistsException"
  1980. static="false" final="false" visibility="public"
  1981. deprecated="not deprecated">
  1982. </constructor>
  1983. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  1984. static="false" final="false" visibility="public"
  1985. deprecated="not deprecated">
  1986. </constructor>
  1987. <doc>
  1988. <![CDATA[Used when target file already exists for any operation and
  1989. is not configured to be overwritten.]]>
  1990. </doc>
  1991. </class>
  1992. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  1993. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  1994. <class name="FileChecksum" extends="java.lang.Object"
  1995. abstract="true"
  1996. static="false" final="false" visibility="public"
  1997. deprecated="not deprecated">
  1998. <implements name="org.apache.hadoop.io.Writable"/>
  1999. <constructor name="FileChecksum"
  2000. static="false" final="false" visibility="public"
  2001. deprecated="not deprecated">
  2002. </constructor>
  2003. <method name="getAlgorithmName" return="java.lang.String"
  2004. abstract="true" native="false" synchronized="false"
  2005. static="false" final="false" visibility="public"
  2006. deprecated="not deprecated">
  2007. <doc>
  2008. <![CDATA[The checksum algorithm name]]>
  2009. </doc>
  2010. </method>
  2011. <method name="getLength" return="int"
  2012. abstract="true" native="false" synchronized="false"
  2013. static="false" final="false" visibility="public"
  2014. deprecated="not deprecated">
  2015. <doc>
  2016. <![CDATA[The length of the checksum in bytes]]>
  2017. </doc>
  2018. </method>
  2019. <method name="getBytes" return="byte[]"
  2020. abstract="true" native="false" synchronized="false"
  2021. static="false" final="false" visibility="public"
  2022. deprecated="not deprecated">
  2023. <doc>
  2024. <![CDATA[The value of the checksum in bytes]]>
  2025. </doc>
  2026. </method>
  2027. <method name="equals" return="boolean"
  2028. abstract="false" native="false" synchronized="false"
  2029. static="false" final="false" visibility="public"
  2030. deprecated="not deprecated">
  2031. <param name="other" type="java.lang.Object"/>
  2032. <doc>
  2033. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2034. </doc>
  2035. </method>
  2036. <method name="hashCode" return="int"
  2037. abstract="false" native="false" synchronized="false"
  2038. static="false" final="false" visibility="public"
  2039. deprecated="not deprecated">
  2040. <doc>
  2041. <![CDATA[{@inheritDoc}]]>
  2042. </doc>
  2043. </method>
  2044. <doc>
  2045. <![CDATA[An abstract class representing file checksums for files.]]>
  2046. </doc>
  2047. </class>
  2048. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2049. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2050. <class name="FileStatus" extends="java.lang.Object"
  2051. abstract="false"
  2052. static="false" final="false" visibility="public"
  2053. deprecated="not deprecated">
  2054. <implements name="org.apache.hadoop.io.Writable"/>
  2055. <implements name="java.lang.Comparable"/>
  2056. <constructor name="FileStatus"
  2057. static="false" final="false" visibility="public"
  2058. deprecated="not deprecated">
  2059. </constructor>
  2060. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2061. static="false" final="false" visibility="public"
  2062. deprecated="not deprecated">
  2063. </constructor>
  2064. <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"
  2065. static="false" final="false" visibility="public"
  2066. deprecated="not deprecated">
  2067. </constructor>
  2068. <method name="getLen" return="long"
  2069. abstract="false" native="false" synchronized="false"
  2070. static="false" final="false" visibility="public"
  2071. deprecated="not deprecated">
  2072. </method>
  2073. <method name="isDir" return="boolean"
  2074. abstract="false" native="false" synchronized="false"
  2075. static="false" final="false" visibility="public"
  2076. deprecated="not deprecated">
  2077. <doc>
  2078. <![CDATA[Is this a directory?
  2079. @return true if this is a directory]]>
  2080. </doc>
  2081. </method>
  2082. <method name="getBlockSize" return="long"
  2083. abstract="false" native="false" synchronized="false"
  2084. static="false" final="false" visibility="public"
  2085. deprecated="not deprecated">
  2086. <doc>
  2087. <![CDATA[Get the block size of the file.
  2088. @return the number of bytes]]>
  2089. </doc>
  2090. </method>
  2091. <method name="getReplication" return="short"
  2092. abstract="false" native="false" synchronized="false"
  2093. static="false" final="false" visibility="public"
  2094. deprecated="not deprecated">
  2095. <doc>
  2096. <![CDATA[Get the replication factor of a file.
  2097. @return the replication factor of a file.]]>
  2098. </doc>
  2099. </method>
  2100. <method name="getModificationTime" return="long"
  2101. abstract="false" native="false" synchronized="false"
  2102. static="false" final="false" visibility="public"
  2103. deprecated="not deprecated">
  2104. <doc>
  2105. <![CDATA[Get the modification time of the file.
  2106. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2107. </doc>
  2108. </method>
  2109. <method name="getAccessTime" return="long"
  2110. abstract="false" native="false" synchronized="false"
  2111. static="false" final="false" visibility="public"
  2112. deprecated="not deprecated">
  2113. <doc>
  2114. <![CDATA[Get the access time of the file.
  2115. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2116. </doc>
  2117. </method>
  2118. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2119. abstract="false" native="false" synchronized="false"
  2120. static="false" final="false" visibility="public"
  2121. deprecated="not deprecated">
  2122. <doc>
  2123. <![CDATA[Get FsPermission associated with the file.
  2124. @return permssion. If a filesystem does not have a notion of permissions
  2125. or if permissions could not be determined, then default
  2126. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2127. </doc>
  2128. </method>
  2129. <method name="getOwner" return="java.lang.String"
  2130. abstract="false" native="false" synchronized="false"
  2131. static="false" final="false" visibility="public"
  2132. deprecated="not deprecated">
  2133. <doc>
  2134. <![CDATA[Get the owner of the file.
  2135. @return owner of the file. The string could be empty if there is no
  2136. notion of owner of a file in a filesystem or if it could not
  2137. be determined (rare).]]>
  2138. </doc>
  2139. </method>
  2140. <method name="getGroup" return="java.lang.String"
  2141. abstract="false" native="false" synchronized="false"
  2142. static="false" final="false" visibility="public"
  2143. deprecated="not deprecated">
  2144. <doc>
  2145. <![CDATA[Get the group associated with the file.
  2146. @return group for the file. The string could be empty if there is no
  2147. notion of group of a file in a filesystem or if it could not
  2148. be determined (rare).]]>
  2149. </doc>
  2150. </method>
  2151. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2152. abstract="false" native="false" synchronized="false"
  2153. static="false" final="false" visibility="public"
  2154. deprecated="not deprecated">
  2155. </method>
  2156. <method name="setPermission"
  2157. abstract="false" native="false" synchronized="false"
  2158. static="false" final="false" visibility="protected"
  2159. deprecated="not deprecated">
  2160. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2161. <doc>
  2162. <![CDATA[Sets permission.
  2163. @param permission if permission is null, default value is set]]>
  2164. </doc>
  2165. </method>
  2166. <method name="setOwner"
  2167. abstract="false" native="false" synchronized="false"
  2168. static="false" final="false" visibility="protected"
  2169. deprecated="not deprecated">
  2170. <param name="owner" type="java.lang.String"/>
  2171. <doc>
  2172. <![CDATA[Sets owner.
  2173. @param owner if it is null, default value is set]]>
  2174. </doc>
  2175. </method>
  2176. <method name="setGroup"
  2177. abstract="false" native="false" synchronized="false"
  2178. static="false" final="false" visibility="protected"
  2179. deprecated="not deprecated">
  2180. <param name="group" type="java.lang.String"/>
  2181. <doc>
  2182. <![CDATA[Sets group.
  2183. @param group if it is null, default value is set]]>
  2184. </doc>
  2185. </method>
  2186. <method name="write"
  2187. abstract="false" native="false" synchronized="false"
  2188. static="false" final="false" visibility="public"
  2189. deprecated="not deprecated">
  2190. <param name="out" type="java.io.DataOutput"/>
  2191. <exception name="IOException" type="java.io.IOException"/>
  2192. </method>
  2193. <method name="readFields"
  2194. abstract="false" native="false" synchronized="false"
  2195. static="false" final="false" visibility="public"
  2196. deprecated="not deprecated">
  2197. <param name="in" type="java.io.DataInput"/>
  2198. <exception name="IOException" type="java.io.IOException"/>
  2199. </method>
  2200. <method name="compareTo" return="int"
  2201. abstract="false" native="false" synchronized="false"
  2202. static="false" final="false" visibility="public"
  2203. deprecated="not deprecated">
  2204. <param name="o" type="java.lang.Object"/>
  2205. <doc>
  2206. <![CDATA[Compare this object to another object
  2207. @param o the object to be compared.
  2208. @return a negative integer, zero, or a positive integer as this object
  2209. is less than, equal to, or greater than the specified object.
  2210. @throws ClassCastException if the specified object's is not of
  2211. type FileStatus]]>
  2212. </doc>
  2213. </method>
  2214. <method name="equals" return="boolean"
  2215. abstract="false" native="false" synchronized="false"
  2216. static="false" final="false" visibility="public"
  2217. deprecated="not deprecated">
  2218. <param name="o" type="java.lang.Object"/>
  2219. <doc>
  2220. <![CDATA[Compare if this object is equal to another object
  2221. @param o the object to be compared.
  2222. @return true if two file status has the same path name; false if not.]]>
  2223. </doc>
  2224. </method>
  2225. <method name="hashCode" return="int"
  2226. abstract="false" native="false" synchronized="false"
  2227. static="false" final="false" visibility="public"
  2228. deprecated="not deprecated">
  2229. <doc>
  2230. <![CDATA[Returns a hash code value for the object, which is defined as
  2231. the hash code of the path name.
  2232. @return a hash code value for the path name.]]>
  2233. </doc>
  2234. </method>
  2235. <doc>
  2236. <![CDATA[Interface that represents the client side information for a file.]]>
  2237. </doc>
  2238. </class>
  2239. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2240. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2241. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2242. abstract="true"
  2243. static="false" final="false" visibility="public"
  2244. deprecated="not deprecated">
  2245. <implements name="java.io.Closeable"/>
  2246. <constructor name="FileSystem"
  2247. static="false" final="false" visibility="protected"
  2248. deprecated="not deprecated">
  2249. </constructor>
  2250. <method name="addFileSystemForTesting"
  2251. abstract="false" native="false" synchronized="false"
  2252. static="true" final="false" visibility="public"
  2253. deprecated="not deprecated">
  2254. <param name="uri" type="java.net.URI"/>
  2255. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2256. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2257. <exception name="IOException" type="java.io.IOException"/>
  2258. <doc>
  2259. <![CDATA[This method adds a file system for testing so that we can find it later.
  2260. It is only for testing.
  2261. @param uri the uri to store it under
  2262. @param conf the configuration to store it under
  2263. @param fs the file system to store
  2264. @throws IOException]]>
  2265. </doc>
  2266. </method>
  2267. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2268. abstract="false" native="false" synchronized="false"
  2269. static="true" final="false" visibility="public"
  2270. deprecated="not deprecated">
  2271. <param name="uri" type="java.net.URI"/>
  2272. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2273. <param name="user" type="java.lang.String"/>
  2274. <exception name="IOException" type="java.io.IOException"/>
  2275. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2276. </method>
  2277. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2278. abstract="false" native="false" synchronized="false"
  2279. static="true" final="false" visibility="public"
  2280. deprecated="not deprecated">
  2281. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2282. <exception name="IOException" type="java.io.IOException"/>
  2283. <doc>
  2284. <![CDATA[Returns the configured filesystem implementation.]]>
  2285. </doc>
  2286. </method>
  2287. <method name="getDefaultUri" return="java.net.URI"
  2288. abstract="false" native="false" synchronized="false"
  2289. static="true" final="false" visibility="public"
  2290. deprecated="not deprecated">
  2291. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2292. <doc>
  2293. <![CDATA[Get the default filesystem URI from a configuration.
  2294. @param conf the configuration to access
  2295. @return the uri of the default filesystem]]>
  2296. </doc>
  2297. </method>
  2298. <method name="setDefaultUri"
  2299. abstract="false" native="false" synchronized="false"
  2300. static="true" final="false" visibility="public"
  2301. deprecated="not deprecated">
  2302. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2303. <param name="uri" type="java.net.URI"/>
  2304. <doc>
  2305. <![CDATA[Set the default filesystem URI in a configuration.
  2306. @param conf the configuration to alter
  2307. @param uri the new default filesystem uri]]>
  2308. </doc>
  2309. </method>
  2310. <method name="setDefaultUri"
  2311. abstract="false" native="false" synchronized="false"
  2312. static="true" final="false" visibility="public"
  2313. deprecated="not deprecated">
  2314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2315. <param name="uri" type="java.lang.String"/>
  2316. <doc>
  2317. <![CDATA[Set the default filesystem URI in a configuration.
  2318. @param conf the configuration to alter
  2319. @param uri the new default filesystem uri]]>
  2320. </doc>
  2321. </method>
  2322. <method name="initialize"
  2323. abstract="false" native="false" synchronized="false"
  2324. static="false" final="false" visibility="public"
  2325. deprecated="not deprecated">
  2326. <param name="name" type="java.net.URI"/>
  2327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2328. <exception name="IOException" type="java.io.IOException"/>
  2329. <doc>
  2330. <![CDATA[Called after a new FileSystem instance is constructed.
  2331. @param name a uri whose authority section names the host, port, etc.
  2332. for this FileSystem
  2333. @param conf the configuration]]>
  2334. </doc>
  2335. </method>
  2336. <method name="getUri" return="java.net.URI"
  2337. abstract="true" native="false" synchronized="false"
  2338. static="false" final="false" visibility="public"
  2339. deprecated="not deprecated">
  2340. <doc>
  2341. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2342. </doc>
  2343. </method>
  2344. <method name="getCanonicalUri" return="java.net.URI"
  2345. abstract="false" native="false" synchronized="false"
  2346. static="false" final="false" visibility="protected"
  2347. deprecated="not deprecated">
  2348. <doc>
  2349. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  2350. @return URI
  2351. @see NetUtils#getCanonicalUri(URI, int)]]>
  2352. </doc>
  2353. </method>
  2354. <method name="getDefaultPort" return="int"
  2355. abstract="false" native="false" synchronized="false"
  2356. static="false" final="false" visibility="protected"
  2357. deprecated="not deprecated">
  2358. <doc>
  2359. <![CDATA[Get the default port for this file system.
  2360. @return the default port or 0 if there isn't one]]>
  2361. </doc>
  2362. </method>
  2363. <method name="getCanonicalServiceName" return="java.lang.String"
  2364. abstract="false" native="false" synchronized="false"
  2365. static="false" final="false" visibility="public"
  2366. deprecated="not deprecated">
  2367. <doc>
  2368. <![CDATA[Get a canonical service name for this file system. The token cache is
  2369. the only user of this value, and uses it to lookup this filesystem's
  2370. service tokens. The token cache will not attempt to acquire tokens if the
  2371. service is null.
  2372. @return a service string that uniquely identifies this file system, null
  2373. if the filesystem does not implement tokens
  2374. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2375. </doc>
  2376. </method>
  2377. <method name="getName" return="java.lang.String"
  2378. abstract="false" native="false" synchronized="false"
  2379. static="false" final="false" visibility="public"
  2380. deprecated="call #getUri() instead.">
  2381. <doc>
  2382. <![CDATA[@deprecated call #getUri() instead.]]>
  2383. </doc>
  2384. </method>
  2385. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2386. abstract="false" native="false" synchronized="false"
  2387. static="true" final="false" visibility="public"
  2388. deprecated="call #get(URI,Configuration) instead.">
  2389. <param name="name" type="java.lang.String"/>
  2390. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2391. <exception name="IOException" type="java.io.IOException"/>
  2392. <doc>
  2393. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2394. </doc>
  2395. </method>
  2396. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2397. abstract="false" native="false" synchronized="false"
  2398. static="true" final="false" visibility="public"
  2399. deprecated="not deprecated">
  2400. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2401. <exception name="IOException" type="java.io.IOException"/>
  2402. <doc>
  2403. <![CDATA[Get the local file syste
  2404. @param conf the configuration to configure the file system with
  2405. @return a LocalFileSystem]]>
  2406. </doc>
  2407. </method>
  2408. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2409. abstract="false" native="false" synchronized="false"
  2410. static="true" final="false" visibility="public"
  2411. deprecated="not deprecated">
  2412. <param name="uri" type="java.net.URI"/>
  2413. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2414. <exception name="IOException" type="java.io.IOException"/>
  2415. <doc>
  2416. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2417. of the URI determines a configuration property name,
  2418. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2419. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2420. </doc>
  2421. </method>
  2422. <method name="closeAll"
  2423. abstract="false" native="false" synchronized="false"
  2424. static="true" final="false" visibility="public"
  2425. deprecated="not deprecated">
  2426. <exception name="IOException" type="java.io.IOException"/>
  2427. <doc>
  2428. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2429. used anymore.
  2430. @throws IOException]]>
  2431. </doc>
  2432. </method>
  2433. <method name="closeAllForUGI"
  2434. abstract="false" native="false" synchronized="false"
  2435. static="true" final="false" visibility="public"
  2436. deprecated="not deprecated">
  2437. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2438. <exception name="IOException" type="java.io.IOException"/>
  2439. <doc>
  2440. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2441. are not used anymore.
  2442. @param ugi
  2443. @throws IOException]]>
  2444. </doc>
  2445. </method>
  2446. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2447. abstract="false" native="false" synchronized="false"
  2448. static="false" final="false" visibility="public"
  2449. deprecated="not deprecated">
  2450. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2451. <doc>
  2452. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2453. </doc>
  2454. </method>
  2455. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2456. abstract="false" native="false" synchronized="false"
  2457. static="true" final="false" visibility="public"
  2458. deprecated="not deprecated">
  2459. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2460. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2461. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2462. <exception name="IOException" type="java.io.IOException"/>
  2463. <doc>
  2464. <![CDATA[create a file with the provided permission
  2465. The permission of the file is set to be the provided permission as in
  2466. setPermission, not permission&~umask
  2467. It is implemented using two RPCs. It is understood that it is inefficient,
  2468. but the implementation is thread-safe. The other option is to change the
  2469. value of umask in configuration to be 0, but it is not thread-safe.
  2470. @param fs file system handle
  2471. @param file the name of the file to be created
  2472. @param permission the permission of the file
  2473. @return an output stream
  2474. @throws IOException]]>
  2475. </doc>
  2476. </method>
  2477. <method name="mkdirs" return="boolean"
  2478. abstract="false" native="false" synchronized="false"
  2479. static="true" final="false" visibility="public"
  2480. deprecated="not deprecated">
  2481. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2482. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2483. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2484. <exception name="IOException" type="java.io.IOException"/>
  2485. <doc>
  2486. <![CDATA[create a directory with the provided permission
  2487. The permission of the directory is set to be the provided permission as in
  2488. setPermission, not permission&~umask
  2489. @see #create(FileSystem, Path, FsPermission)
  2490. @param fs file system handle
  2491. @param dir the name of the directory to be created
  2492. @param permission the permission of the directory
  2493. @return true if the directory creation succeeds; false otherwise
  2494. @throws IOException]]>
  2495. </doc>
  2496. </method>
  2497. <method name="checkPath"
  2498. abstract="false" native="false" synchronized="false"
  2499. static="false" final="false" visibility="protected"
  2500. deprecated="not deprecated">
  2501. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2502. <doc>
  2503. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2504. </doc>
  2505. </method>
  2506. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2507. abstract="false" native="false" synchronized="false"
  2508. static="false" final="false" visibility="public"
  2509. deprecated="not deprecated">
  2510. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2511. <param name="start" type="long"/>
  2512. <param name="len" type="long"/>
  2513. <exception name="IOException" type="java.io.IOException"/>
  2514. <doc>
  2515. <![CDATA[Return an array containing hostnames, offset and size of
  2516. portions of the given file. For a nonexistent
  2517. file or regions, null will be returned.
  2518. This call is most helpful with DFS, where it returns
  2519. hostnames of machines that contain the given file.
  2520. The FileSystem will simply return an elt containing 'localhost'.]]>
  2521. </doc>
  2522. </method>
  2523. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2524. abstract="true" native="false" synchronized="false"
  2525. static="false" final="false" visibility="public"
  2526. deprecated="not deprecated">
  2527. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2528. <param name="bufferSize" type="int"/>
  2529. <exception name="IOException" type="java.io.IOException"/>
  2530. <doc>
  2531. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2532. @param f the file name to open
  2533. @param bufferSize the size of the buffer to be used.]]>
  2534. </doc>
  2535. </method>
  2536. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2537. abstract="false" native="false" synchronized="false"
  2538. static="false" final="false" visibility="public"
  2539. deprecated="not deprecated">
  2540. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2541. <exception name="IOException" type="java.io.IOException"/>
  2542. <doc>
  2543. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2544. @param f the file to open]]>
  2545. </doc>
  2546. </method>
  2547. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2548. abstract="false" native="false" synchronized="false"
  2549. static="false" final="false" visibility="public"
  2550. deprecated="not deprecated">
  2551. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2552. <exception name="IOException" type="java.io.IOException"/>
  2553. <doc>
  2554. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2555. Files are overwritten by default.]]>
  2556. </doc>
  2557. </method>
  2558. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2559. abstract="false" native="false" synchronized="false"
  2560. static="false" final="false" visibility="public"
  2561. deprecated="not deprecated">
  2562. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2563. <param name="overwrite" type="boolean"/>
  2564. <exception name="IOException" type="java.io.IOException"/>
  2565. <doc>
  2566. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2567. </doc>
  2568. </method>
  2569. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2570. abstract="false" native="false" synchronized="false"
  2571. static="false" final="false" visibility="public"
  2572. deprecated="not deprecated">
  2573. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2574. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2575. <exception name="IOException" type="java.io.IOException"/>
  2576. <doc>
  2577. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2578. reporting.
  2579. Files are overwritten by default.]]>
  2580. </doc>
  2581. </method>
  2582. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2583. abstract="false" native="false" synchronized="false"
  2584. static="false" final="false" visibility="public"
  2585. deprecated="not deprecated">
  2586. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2587. <param name="replication" type="short"/>
  2588. <exception name="IOException" type="java.io.IOException"/>
  2589. <doc>
  2590. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2591. Files are overwritten by default.]]>
  2592. </doc>
  2593. </method>
  2594. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2595. abstract="false" native="false" synchronized="false"
  2596. static="false" final="false" visibility="public"
  2597. deprecated="not deprecated">
  2598. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2599. <param name="replication" type="short"/>
  2600. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2601. <exception name="IOException" type="java.io.IOException"/>
  2602. <doc>
  2603. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2604. reporting.
  2605. Files are overwritten by default.]]>
  2606. </doc>
  2607. </method>
  2608. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2609. abstract="false" native="false" synchronized="false"
  2610. static="false" final="false" visibility="public"
  2611. deprecated="not deprecated">
  2612. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2613. <param name="overwrite" type="boolean"/>
  2614. <param name="bufferSize" type="int"/>
  2615. <exception name="IOException" type="java.io.IOException"/>
  2616. <doc>
  2617. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2618. @param f the file name to open
  2619. @param overwrite if a file with this name already exists, then if true,
  2620. the file will be overwritten, and if false an error will be thrown.
  2621. @param bufferSize the size of the buffer to be used.]]>
  2622. </doc>
  2623. </method>
  2624. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2625. abstract="false" native="false" synchronized="false"
  2626. static="false" final="false" visibility="public"
  2627. deprecated="not deprecated">
  2628. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2629. <param name="overwrite" type="boolean"/>
  2630. <param name="bufferSize" type="int"/>
  2631. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2632. <exception name="IOException" type="java.io.IOException"/>
  2633. <doc>
  2634. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2635. reporting.
  2636. @param f the file name to open
  2637. @param overwrite if a file with this name already exists, then if true,
  2638. the file will be overwritten, and if false an error will be thrown.
  2639. @param bufferSize the size of the buffer to be used.]]>
  2640. </doc>
  2641. </method>
  2642. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2643. abstract="false" native="false" synchronized="false"
  2644. static="false" final="false" visibility="public"
  2645. deprecated="not deprecated">
  2646. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2647. <param name="overwrite" type="boolean"/>
  2648. <param name="bufferSize" type="int"/>
  2649. <param name="replication" type="short"/>
  2650. <param name="blockSize" type="long"/>
  2651. <exception name="IOException" type="java.io.IOException"/>
  2652. <doc>
  2653. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2654. @param f the file name to open
  2655. @param overwrite if a file with this name already exists, then if true,
  2656. the file will be overwritten, and if false an error will be thrown.
  2657. @param bufferSize the size of the buffer to be used.
  2658. @param replication required block replication for the file.]]>
  2659. </doc>
  2660. </method>
  2661. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2662. abstract="false" native="false" synchronized="false"
  2663. static="false" final="false" visibility="public"
  2664. deprecated="not deprecated">
  2665. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2666. <param name="overwrite" type="boolean"/>
  2667. <param name="bufferSize" type="int"/>
  2668. <param name="replication" type="short"/>
  2669. <param name="blockSize" type="long"/>
  2670. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2671. <exception name="IOException" type="java.io.IOException"/>
  2672. <doc>
  2673. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2674. reporting.
  2675. @param f the file name to open
  2676. @param overwrite if a file with this name already exists, then if true,
  2677. the file will be overwritten, and if false an error will be thrown.
  2678. @param bufferSize the size of the buffer to be used.
  2679. @param replication required block replication for the file.]]>
  2680. </doc>
  2681. </method>
  2682. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2683. abstract="true" native="false" synchronized="false"
  2684. static="false" final="false" visibility="public"
  2685. deprecated="not deprecated">
  2686. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2687. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2688. <param name="overwrite" type="boolean"/>
  2689. <param name="bufferSize" type="int"/>
  2690. <param name="replication" type="short"/>
  2691. <param name="blockSize" type="long"/>
  2692. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2693. <exception name="IOException" type="java.io.IOException"/>
  2694. <doc>
  2695. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2696. reporting.
  2697. @param f the file name to open
  2698. @param permission
  2699. @param overwrite if a file with this name already exists, then if true,
  2700. the file will be overwritten, and if false an error will be thrown.
  2701. @param bufferSize the size of the buffer to be used.
  2702. @param replication required block replication for the file.
  2703. @param blockSize
  2704. @param progress
  2705. @throws IOException
  2706. @see #setPermission(Path, FsPermission)]]>
  2707. </doc>
  2708. </method>
  2709. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2710. abstract="false" native="false" synchronized="false"
  2711. static="false" final="false" visibility="public"
  2712. deprecated="API only for 0.20-append">
  2713. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2714. <param name="overwrite" type="boolean"/>
  2715. <param name="bufferSize" type="int"/>
  2716. <param name="replication" type="short"/>
  2717. <param name="blockSize" type="long"/>
  2718. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2719. <exception name="IOException" type="java.io.IOException"/>
  2720. <doc>
  2721. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2722. reporting. Same as create(), except fails if parent directory doesn't
  2723. already exist.
  2724. @param f the file name to open
  2725. @param overwrite if a file with this name already exists, then if true,
  2726. the file will be overwritten, and if false an error will be thrown.
  2727. @param bufferSize the size of the buffer to be used.
  2728. @param replication required block replication for the file.
  2729. @param blockSize
  2730. @param progress
  2731. @throws IOException
  2732. @see #setPermission(Path, FsPermission)
  2733. @deprecated API only for 0.20-append]]>
  2734. </doc>
  2735. </method>
  2736. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2737. abstract="false" native="false" synchronized="false"
  2738. static="false" final="false" visibility="public"
  2739. deprecated="API only for 0.20-append">
  2740. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2741. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2742. <param name="overwrite" type="boolean"/>
  2743. <param name="bufferSize" type="int"/>
  2744. <param name="replication" type="short"/>
  2745. <param name="blockSize" type="long"/>
  2746. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2747. <exception name="IOException" type="java.io.IOException"/>
  2748. <doc>
  2749. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2750. reporting. Same as create(), except fails if parent directory doesn't
  2751. already exist.
  2752. @param f the file name to open
  2753. @param permission
  2754. @param overwrite if a file with this name already exists, then if true,
  2755. the file will be overwritten, and if false an error will be thrown.
  2756. @param bufferSize the size of the buffer to be used.
  2757. @param replication required block replication for the file.
  2758. @param blockSize
  2759. @param progress
  2760. @throws IOException
  2761. @see #setPermission(Path, FsPermission)
  2762. @deprecated API only for 0.20-append]]>
  2763. </doc>
  2764. </method>
  2765. <method name="createNewFile" return="boolean"
  2766. abstract="false" native="false" synchronized="false"
  2767. static="false" final="false" visibility="public"
  2768. deprecated="not deprecated">
  2769. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2770. <exception name="IOException" type="java.io.IOException"/>
  2771. <doc>
  2772. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2773. create fails, or if it already existed, return false.]]>
  2774. </doc>
  2775. </method>
  2776. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2777. abstract="false" native="false" synchronized="false"
  2778. static="false" final="false" visibility="public"
  2779. deprecated="not deprecated">
  2780. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2781. <exception name="IOException" type="java.io.IOException"/>
  2782. <doc>
  2783. <![CDATA[Append to an existing file (optional operation).
  2784. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2785. @param f the existing file to be appended.
  2786. @throws IOException]]>
  2787. </doc>
  2788. </method>
  2789. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2790. abstract="false" native="false" synchronized="false"
  2791. static="false" final="false" visibility="public"
  2792. deprecated="not deprecated">
  2793. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2794. <param name="bufferSize" type="int"/>
  2795. <exception name="IOException" type="java.io.IOException"/>
  2796. <doc>
  2797. <![CDATA[Append to an existing file (optional operation).
  2798. Same as append(f, bufferSize, null).
  2799. @param f the existing file to be appended.
  2800. @param bufferSize the size of the buffer to be used.
  2801. @throws IOException]]>
  2802. </doc>
  2803. </method>
  2804. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2805. abstract="true" native="false" synchronized="false"
  2806. static="false" final="false" visibility="public"
  2807. deprecated="not deprecated">
  2808. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2809. <param name="bufferSize" type="int"/>
  2810. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2811. <exception name="IOException" type="java.io.IOException"/>
  2812. <doc>
  2813. <![CDATA[Append to an existing file (optional operation).
  2814. @param f the existing file to be appended.
  2815. @param bufferSize the size of the buffer to be used.
  2816. @param progress for reporting progress if it is not null.
  2817. @throws IOException]]>
  2818. </doc>
  2819. </method>
  2820. <method name="getReplication" return="short"
  2821. abstract="false" native="false" synchronized="false"
  2822. static="false" final="false" visibility="public"
  2823. deprecated="Use getFileStatus() instead">
  2824. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2825. <exception name="IOException" type="java.io.IOException"/>
  2826. <doc>
  2827. <![CDATA[Get replication.
  2828. @deprecated Use getFileStatus() instead
  2829. @param src file name
  2830. @return file replication
  2831. @throws IOException]]>
  2832. </doc>
  2833. </method>
  2834. <method name="setReplication" return="boolean"
  2835. abstract="false" native="false" synchronized="false"
  2836. static="false" final="false" visibility="public"
  2837. deprecated="not deprecated">
  2838. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2839. <param name="replication" type="short"/>
  2840. <exception name="IOException" type="java.io.IOException"/>
  2841. <doc>
  2842. <![CDATA[Set replication for an existing file.
  2843. @param src file name
  2844. @param replication new replication
  2845. @throws IOException
  2846. @return true if successful;
  2847. false if file does not exist or is a directory]]>
  2848. </doc>
  2849. </method>
  2850. <method name="rename" return="boolean"
  2851. abstract="true" native="false" synchronized="false"
  2852. static="false" final="false" visibility="public"
  2853. deprecated="not deprecated">
  2854. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2855. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2856. <exception name="IOException" type="java.io.IOException"/>
  2857. <doc>
  2858. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2859. or remote DFS.]]>
  2860. </doc>
  2861. </method>
  2862. <method name="delete" return="boolean"
  2863. abstract="true" native="false" synchronized="false"
  2864. static="false" final="false" visibility="public"
  2865. deprecated="Use delete(Path, boolean) instead">
  2866. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2867. <exception name="IOException" type="java.io.IOException"/>
  2868. <doc>
  2869. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2870. </doc>
  2871. </method>
  2872. <method name="delete" return="boolean"
  2873. abstract="true" native="false" synchronized="false"
  2874. static="false" final="false" visibility="public"
  2875. deprecated="not deprecated">
  2876. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2877. <param name="recursive" type="boolean"/>
  2878. <exception name="IOException" type="java.io.IOException"/>
  2879. <doc>
  2880. <![CDATA[Delete a file.
  2881. @param f the path to delete.
  2882. @param recursive if path is a directory and set to
  2883. true, the directory is deleted else throws an exception. In
  2884. case of a file the recursive can be set to either true or false.
  2885. @return true if delete is successful else false.
  2886. @throws IOException]]>
  2887. </doc>
  2888. </method>
  2889. <method name="deleteOnExit" return="boolean"
  2890. abstract="false" native="false" synchronized="false"
  2891. static="false" final="false" visibility="public"
  2892. deprecated="not deprecated">
  2893. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2894. <exception name="IOException" type="java.io.IOException"/>
  2895. <doc>
  2896. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2897. When the JVM shuts down,
  2898. all FileSystem objects will be closed automatically.
  2899. Then,
  2900. the marked path will be deleted as a result of closing the FileSystem.
  2901. The path has to exist in the file system.
  2902. @param f the path to delete.
  2903. @return true if deleteOnExit is successful, otherwise false.
  2904. @throws IOException]]>
  2905. </doc>
  2906. </method>
  2907. <method name="processDeleteOnExit"
  2908. abstract="false" native="false" synchronized="false"
  2909. static="false" final="false" visibility="protected"
  2910. deprecated="not deprecated">
  2911. <doc>
  2912. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  2913. deletes all files in the specified paths.]]>
  2914. </doc>
  2915. </method>
  2916. <method name="exists" return="boolean"
  2917. abstract="false" native="false" synchronized="false"
  2918. static="false" final="false" visibility="public"
  2919. deprecated="not deprecated">
  2920. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2921. <exception name="IOException" type="java.io.IOException"/>
  2922. <doc>
  2923. <![CDATA[Check if exists.
  2924. @param f source file]]>
  2925. </doc>
  2926. </method>
  2927. <method name="isDirectory" return="boolean"
  2928. abstract="false" native="false" synchronized="false"
  2929. static="false" final="false" visibility="public"
  2930. deprecated="Use getFileStatus() instead">
  2931. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2932. <exception name="IOException" type="java.io.IOException"/>
  2933. <doc>
  2934. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2935. </doc>
  2936. </method>
  2937. <method name="isFile" return="boolean"
  2938. abstract="false" native="false" synchronized="false"
  2939. static="false" final="false" visibility="public"
  2940. deprecated="not deprecated">
  2941. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2942. <exception name="IOException" type="java.io.IOException"/>
  2943. <doc>
  2944. <![CDATA[True iff the named path is a regular file.]]>
  2945. </doc>
  2946. </method>
  2947. <method name="getLength" return="long"
  2948. abstract="false" native="false" synchronized="false"
  2949. static="false" final="false" visibility="public"
  2950. deprecated="Use getFileStatus() instead">
  2951. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2952. <exception name="IOException" type="java.io.IOException"/>
  2953. <doc>
  2954. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2955. </doc>
  2956. </method>
  2957. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  2958. abstract="false" native="false" synchronized="false"
  2959. static="false" final="false" visibility="public"
  2960. deprecated="not deprecated">
  2961. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2962. <exception name="IOException" type="java.io.IOException"/>
  2963. <doc>
  2964. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  2965. </doc>
  2966. </method>
  2967. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2968. abstract="true" native="false" synchronized="false"
  2969. static="false" final="false" visibility="public"
  2970. deprecated="not deprecated">
  2971. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2972. <exception name="IOException" type="java.io.IOException"/>
  2973. <doc>
  2974. <![CDATA[List the statuses of the files/directories in the given path if the path is
  2975. a directory.
  2976. @param f
  2977. given path
  2978. @return the statuses of the files/directories in the given patch
  2979. returns null, if Path f does not exist in the FileSystem
  2980. @throws IOException]]>
  2981. </doc>
  2982. </method>
  2983. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2984. abstract="false" native="false" synchronized="false"
  2985. static="false" final="false" visibility="public"
  2986. deprecated="not deprecated">
  2987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2988. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  2989. <exception name="IOException" type="java.io.IOException"/>
  2990. <doc>
  2991. <![CDATA[Filter files/directories in the given path using the user-supplied path
  2992. filter.
  2993. @param f
  2994. a path name
  2995. @param filter
  2996. the user-supplied path filter
  2997. @return an array of FileStatus objects for the files under the given path
  2998. after applying the filter
  2999. @throws IOException
  3000. if encounter any problem while fetching the status]]>
  3001. </doc>
  3002. </method>
  3003. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3004. abstract="false" native="false" synchronized="false"
  3005. static="false" final="false" visibility="public"
  3006. deprecated="not deprecated">
  3007. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3008. <exception name="IOException" type="java.io.IOException"/>
  3009. <doc>
  3010. <![CDATA[Filter files/directories in the given list of paths using default
  3011. path filter.
  3012. @param files
  3013. a list of paths
  3014. @return a list of statuses for the files under the given paths after
  3015. applying the filter default Path filter
  3016. @exception IOException]]>
  3017. </doc>
  3018. </method>
  3019. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3020. abstract="false" native="false" synchronized="false"
  3021. static="false" final="false" visibility="public"
  3022. deprecated="not deprecated">
  3023. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3024. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3025. <exception name="IOException" type="java.io.IOException"/>
  3026. <doc>
  3027. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3028. path filter.
  3029. @param files
  3030. a list of paths
  3031. @param filter
  3032. the user-supplied path filter
  3033. @return a list of statuses for the files under the given paths after
  3034. applying the filter
  3035. @exception IOException]]>
  3036. </doc>
  3037. </method>
  3038. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3039. abstract="false" native="false" synchronized="false"
  3040. static="false" final="false" visibility="public"
  3041. deprecated="not deprecated">
  3042. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3043. <exception name="IOException" type="java.io.IOException"/>
  3044. <doc>
  3045. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3046. files. Results are sorted by their names.
  3047. <p>
  3048. A filename pattern is composed of <i>regular</i> characters and
  3049. <i>special pattern matching</i> characters, which are:
  3050. <dl>
  3051. <dd>
  3052. <dl>
  3053. <p>
  3054. <dt> <tt> ? </tt>
  3055. <dd> Matches any single character.
  3056. <p>
  3057. <dt> <tt> * </tt>
  3058. <dd> Matches zero or more characters.
  3059. <p>
  3060. <dt> <tt> [<i>abc</i>] </tt>
  3061. <dd> Matches a single character from character set
  3062. <tt>{<i>a,b,c</i>}</tt>.
  3063. <p>
  3064. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3065. <dd> Matches a single character from the character range
  3066. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3067. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3068. <p>
  3069. <dt> <tt> [^<i>a</i>] </tt>
  3070. <dd> Matches a single character that is not from character set or range
  3071. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3072. immediately to the right of the opening bracket.
  3073. <p>
  3074. <dt> <tt> \<i>c</i> </tt>
  3075. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3076. <p>
  3077. <dt> <tt> {ab,cd} </tt>
  3078. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3079. <p>
  3080. <dt> <tt> {ab,c{de,fh}} </tt>
  3081. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3082. </dl>
  3083. </dd>
  3084. </dl>
  3085. @param pathPattern a regular expression specifying a pth pattern
  3086. @return an array of paths that match the path pattern
  3087. @throws IOException]]>
  3088. </doc>
  3089. </method>
  3090. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3091. abstract="false" native="false" synchronized="false"
  3092. static="false" final="false" visibility="public"
  3093. deprecated="not deprecated">
  3094. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3095. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3096. <exception name="IOException" type="java.io.IOException"/>
  3097. <doc>
  3098. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3099. and is accepted by the user-supplied path filter. Results are sorted by
  3100. their path names.
  3101. Return null if pathPattern has no glob and the path does not exist.
  3102. Return an empty array if pathPattern has a glob and no path matches it.
  3103. @param pathPattern
  3104. a regular expression specifying the path pattern
  3105. @param filter
  3106. a user-supplied path filter
  3107. @return an array of FileStatus objects
  3108. @throws IOException if any I/O error occurs when fetching file status]]>
  3109. </doc>
  3110. </method>
  3111. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3112. abstract="false" native="false" synchronized="false"
  3113. static="false" final="false" visibility="public"
  3114. deprecated="not deprecated">
  3115. <doc>
  3116. <![CDATA[Return the current user's home directory in this filesystem.
  3117. The default implementation returns "/user/$USER/".]]>
  3118. </doc>
  3119. </method>
  3120. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3121. abstract="false" native="false" synchronized="false"
  3122. static="false" final="false" visibility="public"
  3123. deprecated="not deprecated">
  3124. <param name="renewer" type="java.lang.String"/>
  3125. <exception name="IOException" type="java.io.IOException"/>
  3126. <doc>
  3127. <![CDATA[Get a new delegation token for this file system.
  3128. @param renewer the account name that is allowed to renew the token.
  3129. @return a new delegation token
  3130. @throws IOException]]>
  3131. </doc>
  3132. </method>
  3133. <method name="setWorkingDirectory"
  3134. abstract="true" native="false" synchronized="false"
  3135. static="false" final="false" visibility="public"
  3136. deprecated="not deprecated">
  3137. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3138. <doc>
  3139. <![CDATA[Set the current working directory for the given file system. All relative
  3140. paths will be resolved relative to it.
  3141. @param new_dir]]>
  3142. </doc>
  3143. </method>
  3144. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3145. abstract="true" native="false" synchronized="false"
  3146. static="false" final="false" visibility="public"
  3147. deprecated="not deprecated">
  3148. <doc>
  3149. <![CDATA[Get the current working directory for the given file system
  3150. @return the directory pathname]]>
  3151. </doc>
  3152. </method>
  3153. <method name="mkdirs" return="boolean"
  3154. abstract="false" native="false" synchronized="false"
  3155. static="false" final="false" visibility="public"
  3156. deprecated="not deprecated">
  3157. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3158. <exception name="IOException" type="java.io.IOException"/>
  3159. <doc>
  3160. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3161. </doc>
  3162. </method>
  3163. <method name="mkdirs" return="boolean"
  3164. abstract="true" native="false" synchronized="false"
  3165. static="false" final="false" visibility="public"
  3166. deprecated="not deprecated">
  3167. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3168. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3169. <exception name="IOException" type="java.io.IOException"/>
  3170. <doc>
  3171. <![CDATA[Make the given file and all non-existent parents into
  3172. directories. Has the semantics of Unix 'mkdir -p'.
  3173. Existence of the directory hierarchy is not an error.]]>
  3174. </doc>
  3175. </method>
  3176. <method name="copyFromLocalFile"
  3177. abstract="false" native="false" synchronized="false"
  3178. static="false" final="false" visibility="public"
  3179. deprecated="not deprecated">
  3180. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3181. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3182. <exception name="IOException" type="java.io.IOException"/>
  3183. <doc>
  3184. <![CDATA[The src file is on the local disk. Add it to FS at
  3185. the given dst name and the source is kept intact afterwards]]>
  3186. </doc>
  3187. </method>
  3188. <method name="moveFromLocalFile"
  3189. abstract="false" native="false" synchronized="false"
  3190. static="false" final="false" visibility="public"
  3191. deprecated="not deprecated">
  3192. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3193. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3194. <exception name="IOException" type="java.io.IOException"/>
  3195. <doc>
  3196. <![CDATA[The src files is on the local disk. Add it to FS at
  3197. the given dst name, removing the source afterwards.]]>
  3198. </doc>
  3199. </method>
  3200. <method name="moveFromLocalFile"
  3201. abstract="false" native="false" synchronized="false"
  3202. static="false" final="false" visibility="public"
  3203. deprecated="not deprecated">
  3204. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3205. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3206. <exception name="IOException" type="java.io.IOException"/>
  3207. <doc>
  3208. <![CDATA[The src file is on the local disk. Add it to FS at
  3209. the given dst name, removing the source afterwards.]]>
  3210. </doc>
  3211. </method>
  3212. <method name="copyFromLocalFile"
  3213. abstract="false" native="false" synchronized="false"
  3214. static="false" final="false" visibility="public"
  3215. deprecated="not deprecated">
  3216. <param name="delSrc" type="boolean"/>
  3217. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3218. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3219. <exception name="IOException" type="java.io.IOException"/>
  3220. <doc>
  3221. <![CDATA[The src file is on the local disk. Add it to FS at
  3222. the given dst name.
  3223. delSrc indicates if the source should be removed]]>
  3224. </doc>
  3225. </method>
  3226. <method name="copyFromLocalFile"
  3227. abstract="false" native="false" synchronized="false"
  3228. static="false" final="false" visibility="public"
  3229. deprecated="not deprecated">
  3230. <param name="delSrc" type="boolean"/>
  3231. <param name="overwrite" type="boolean"/>
  3232. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3233. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3234. <exception name="IOException" type="java.io.IOException"/>
  3235. <doc>
  3236. <![CDATA[The src files are on the local disk. Add it to FS at
  3237. the given dst name.
  3238. delSrc indicates if the source should be removed]]>
  3239. </doc>
  3240. </method>
  3241. <method name="copyFromLocalFile"
  3242. abstract="false" native="false" synchronized="false"
  3243. static="false" final="false" visibility="public"
  3244. deprecated="not deprecated">
  3245. <param name="delSrc" type="boolean"/>
  3246. <param name="overwrite" type="boolean"/>
  3247. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3248. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3249. <exception name="IOException" type="java.io.IOException"/>
  3250. <doc>
  3251. <![CDATA[The src file is on the local disk. Add it to FS at
  3252. the given dst name.
  3253. delSrc indicates if the source should be removed]]>
  3254. </doc>
  3255. </method>
  3256. <method name="copyToLocalFile"
  3257. abstract="false" native="false" synchronized="false"
  3258. static="false" final="false" visibility="public"
  3259. deprecated="not deprecated">
  3260. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3261. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3262. <exception name="IOException" type="java.io.IOException"/>
  3263. <doc>
  3264. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3265. Copy it from FS control to the local dst name.]]>
  3266. </doc>
  3267. </method>
  3268. <method name="moveToLocalFile"
  3269. abstract="false" native="false" synchronized="false"
  3270. static="false" final="false" visibility="public"
  3271. deprecated="not deprecated">
  3272. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3273. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3274. <exception name="IOException" type="java.io.IOException"/>
  3275. <doc>
  3276. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3277. Copy it from FS control to the local dst name.
  3278. Remove the source afterwards]]>
  3279. </doc>
  3280. </method>
  3281. <method name="copyToLocalFile"
  3282. abstract="false" native="false" synchronized="false"
  3283. static="false" final="false" visibility="public"
  3284. deprecated="not deprecated">
  3285. <param name="delSrc" type="boolean"/>
  3286. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3287. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3288. <exception name="IOException" type="java.io.IOException"/>
  3289. <doc>
  3290. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3291. Copy it from FS control to the local dst name.
  3292. delSrc indicates if the src will be removed or not.]]>
  3293. </doc>
  3294. </method>
  3295. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3296. abstract="false" native="false" synchronized="false"
  3297. static="false" final="false" visibility="public"
  3298. deprecated="not deprecated">
  3299. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3300. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3301. <exception name="IOException" type="java.io.IOException"/>
  3302. <doc>
  3303. <![CDATA[Returns a local File that the user can write output to. The caller
  3304. provides both the eventual FS target name and the local working
  3305. file. If the FS is local, we write directly into the target. If
  3306. the FS is remote, we write into the tmp local area.]]>
  3307. </doc>
  3308. </method>
  3309. <method name="completeLocalOutput"
  3310. abstract="false" native="false" synchronized="false"
  3311. static="false" final="false" visibility="public"
  3312. deprecated="not deprecated">
  3313. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3314. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3315. <exception name="IOException" type="java.io.IOException"/>
  3316. <doc>
  3317. <![CDATA[Called when we're all done writing to the target. A local FS will
  3318. do nothing, because we've written to exactly the right place. A remote
  3319. FS will copy the contents of tmpLocalFile to the correct target at
  3320. fsOutputFile.]]>
  3321. </doc>
  3322. </method>
  3323. <method name="close"
  3324. abstract="false" native="false" synchronized="false"
  3325. static="false" final="false" visibility="public"
  3326. deprecated="not deprecated">
  3327. <exception name="IOException" type="java.io.IOException"/>
  3328. <doc>
  3329. <![CDATA[No more filesystem operations are needed. Will
  3330. release any held locks.]]>
  3331. </doc>
  3332. </method>
  3333. <method name="getUsed" return="long"
  3334. abstract="false" native="false" synchronized="false"
  3335. static="false" final="false" visibility="public"
  3336. deprecated="not deprecated">
  3337. <exception name="IOException" type="java.io.IOException"/>
  3338. <doc>
  3339. <![CDATA[Return the total size of all files in the filesystem.]]>
  3340. </doc>
  3341. </method>
  3342. <method name="getBlockSize" return="long"
  3343. abstract="false" native="false" synchronized="false"
  3344. static="false" final="false" visibility="public"
  3345. deprecated="Use getFileStatus() instead">
  3346. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3347. <exception name="IOException" type="java.io.IOException"/>
  3348. <doc>
  3349. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3350. </doc>
  3351. </method>
  3352. <method name="getDefaultBlockSize" return="long"
  3353. abstract="false" native="false" synchronized="false"
  3354. static="false" final="false" visibility="public"
  3355. deprecated="not deprecated">
  3356. <doc>
  3357. <![CDATA[Return the number of bytes that large input files should be optimally
  3358. be split into to minimize i/o time.]]>
  3359. </doc>
  3360. </method>
  3361. <method name="getDefaultReplication" return="short"
  3362. abstract="false" native="false" synchronized="false"
  3363. static="false" final="false" visibility="public"
  3364. deprecated="not deprecated">
  3365. <doc>
  3366. <![CDATA[Get the default replication.]]>
  3367. </doc>
  3368. </method>
  3369. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3370. abstract="true" native="false" synchronized="false"
  3371. static="false" final="false" visibility="public"
  3372. deprecated="not deprecated">
  3373. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3374. <exception name="IOException" type="java.io.IOException"/>
  3375. <doc>
  3376. <![CDATA[Return a file status object that represents the path.
  3377. @param f The path we want information from
  3378. @return a FileStatus object
  3379. @throws FileNotFoundException when the path does not exist;
  3380. IOException see specific implementation]]>
  3381. </doc>
  3382. </method>
  3383. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3384. abstract="false" native="false" synchronized="false"
  3385. static="false" final="false" visibility="public"
  3386. deprecated="not deprecated">
  3387. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3388. <exception name="IOException" type="java.io.IOException"/>
  3389. <doc>
  3390. <![CDATA[Get the checksum of a file.
  3391. @param f The file path
  3392. @return The file checksum. The default return value is null,
  3393. which indicates that no checksum algorithm is implemented
  3394. in the corresponding FileSystem.]]>
  3395. </doc>
  3396. </method>
  3397. <method name="setVerifyChecksum"
  3398. abstract="false" native="false" synchronized="false"
  3399. static="false" final="false" visibility="public"
  3400. deprecated="not deprecated">
  3401. <param name="verifyChecksum" type="boolean"/>
  3402. <doc>
  3403. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3404. corresponding FileSystem supports checksum. By default doesn't do anything.
  3405. @param verifyChecksum]]>
  3406. </doc>
  3407. </method>
  3408. <method name="setPermission"
  3409. abstract="false" native="false" synchronized="false"
  3410. static="false" final="false" visibility="public"
  3411. deprecated="not deprecated">
  3412. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3413. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3414. <exception name="IOException" type="java.io.IOException"/>
  3415. <doc>
  3416. <![CDATA[Set permission of a path.
  3417. @param p
  3418. @param permission]]>
  3419. </doc>
  3420. </method>
  3421. <method name="setOwner"
  3422. abstract="false" native="false" synchronized="false"
  3423. static="false" final="false" visibility="public"
  3424. deprecated="not deprecated">
  3425. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3426. <param name="username" type="java.lang.String"/>
  3427. <param name="groupname" type="java.lang.String"/>
  3428. <exception name="IOException" type="java.io.IOException"/>
  3429. <doc>
  3430. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3431. The parameters username and groupname cannot both be null.
  3432. @param p The path
  3433. @param username If it is null, the original username remains unchanged.
  3434. @param groupname If it is null, the original groupname remains unchanged.]]>
  3435. </doc>
  3436. </method>
  3437. <method name="setTimes"
  3438. abstract="false" native="false" synchronized="false"
  3439. static="false" final="false" visibility="public"
  3440. deprecated="not deprecated">
  3441. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3442. <param name="mtime" type="long"/>
  3443. <param name="atime" type="long"/>
  3444. <exception name="IOException" type="java.io.IOException"/>
  3445. <doc>
  3446. <![CDATA[Set access time of a file
  3447. @param p The path
  3448. @param mtime Set the modification time of this file.
  3449. The number of milliseconds since Jan 1, 1970.
  3450. A value of -1 means that this call should not set modification time.
  3451. @param atime Set the access time of this file.
  3452. The number of milliseconds since Jan 1, 1970.
  3453. A value of -1 means that this call should not set access time.]]>
  3454. </doc>
  3455. </method>
  3456. <method name="getStatistics" return="java.util.Map"
  3457. abstract="false" native="false" synchronized="true"
  3458. static="true" final="false" visibility="public"
  3459. deprecated="use {@link #getAllStatistics} instead">
  3460. <doc>
  3461. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3462. @return a Map having a key as URI scheme and value as Statistics object
  3463. @deprecated use {@link #getAllStatistics} instead]]>
  3464. </doc>
  3465. </method>
  3466. <method name="getAllStatistics" return="java.util.List"
  3467. abstract="false" native="false" synchronized="true"
  3468. static="true" final="false" visibility="public"
  3469. deprecated="not deprecated">
  3470. <doc>
  3471. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3472. </doc>
  3473. </method>
  3474. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3475. abstract="false" native="false" synchronized="true"
  3476. static="true" final="false" visibility="public"
  3477. deprecated="not deprecated">
  3478. <param name="scheme" type="java.lang.String"/>
  3479. <param name="cls" type="java.lang.Class"/>
  3480. <doc>
  3481. <![CDATA[Get the statistics for a particular file system
  3482. @param cls the class to lookup
  3483. @return a statistics object]]>
  3484. </doc>
  3485. </method>
  3486. <method name="clearStatistics"
  3487. abstract="false" native="false" synchronized="true"
  3488. static="true" final="false" visibility="public"
  3489. deprecated="not deprecated">
  3490. </method>
  3491. <method name="printStatistics"
  3492. abstract="false" native="false" synchronized="true"
  3493. static="true" final="false" visibility="public"
  3494. deprecated="not deprecated">
  3495. <exception name="IOException" type="java.io.IOException"/>
  3496. </method>
  3497. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3498. transient="false" volatile="false"
  3499. static="true" final="true" visibility="public"
  3500. deprecated="not deprecated">
  3501. </field>
  3502. <field name="LOG" type="org.apache.commons.logging.Log"
  3503. transient="false" volatile="false"
  3504. static="true" final="true" visibility="public"
  3505. deprecated="not deprecated">
  3506. </field>
  3507. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3508. transient="false" volatile="false"
  3509. static="false" final="false" visibility="protected"
  3510. deprecated="not deprecated">
  3511. <doc>
  3512. <![CDATA[The statistics for this file system.]]>
  3513. </doc>
  3514. </field>
  3515. <doc>
  3516. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3517. may be implemented as a distributed filesystem, or as a "local"
  3518. one that reflects the locally-connected disk. The local version
  3519. exists for small Hadoop instances and for testing.
  3520. <p>
  3521. All user code that may potentially use the Hadoop Distributed
  3522. File System should be written to use a FileSystem object. The
  3523. Hadoop DFS is a multi-machine system that appears as a single
  3524. disk. It's useful because of its fault tolerance and potentially
  3525. very large capacity.
  3526. <p>
  3527. The local implementation is {@link LocalFileSystem} and distributed
  3528. implementation is DistributedFileSystem.]]>
  3529. </doc>
  3530. </class>
  3531. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3532. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3533. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3534. abstract="false"
  3535. static="true" final="true" visibility="public"
  3536. deprecated="not deprecated">
  3537. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3538. static="false" final="false" visibility="public"
  3539. deprecated="not deprecated">
  3540. </constructor>
  3541. <method name="incrementBytesRead"
  3542. abstract="false" native="false" synchronized="false"
  3543. static="false" final="false" visibility="public"
  3544. deprecated="not deprecated">
  3545. <param name="newBytes" type="long"/>
  3546. <doc>
  3547. <![CDATA[Increment the bytes read in the statistics
  3548. @param newBytes the additional bytes read]]>
  3549. </doc>
  3550. </method>
  3551. <method name="incrementBytesWritten"
  3552. abstract="false" native="false" synchronized="false"
  3553. static="false" final="false" visibility="public"
  3554. deprecated="not deprecated">
  3555. <param name="newBytes" type="long"/>
  3556. <doc>
  3557. <![CDATA[Increment the bytes written in the statistics
  3558. @param newBytes the additional bytes written]]>
  3559. </doc>
  3560. </method>
  3561. <method name="incrementReadOps"
  3562. abstract="false" native="false" synchronized="false"
  3563. static="false" final="false" visibility="public"
  3564. deprecated="not deprecated">
  3565. <param name="count" type="int"/>
  3566. <doc>
  3567. <![CDATA[Increment the number of read operations
  3568. @param count number of read operations]]>
  3569. </doc>
  3570. </method>
  3571. <method name="incrementLargeReadOps"
  3572. abstract="false" native="false" synchronized="false"
  3573. static="false" final="false" visibility="public"
  3574. deprecated="not deprecated">
  3575. <param name="count" type="int"/>
  3576. <doc>
  3577. <![CDATA[Increment the number of large read operations
  3578. @param count number of large read operations]]>
  3579. </doc>
  3580. </method>
  3581. <method name="incrementWriteOps"
  3582. abstract="false" native="false" synchronized="false"
  3583. static="false" final="false" visibility="public"
  3584. deprecated="not deprecated">
  3585. <param name="count" type="int"/>
  3586. <doc>
  3587. <![CDATA[Increment the number of write operations
  3588. @param count number of write operations]]>
  3589. </doc>
  3590. </method>
  3591. <method name="getBytesRead" return="long"
  3592. abstract="false" native="false" synchronized="false"
  3593. static="false" final="false" visibility="public"
  3594. deprecated="not deprecated">
  3595. <doc>
  3596. <![CDATA[Get the total number of bytes read
  3597. @return the number of bytes]]>
  3598. </doc>
  3599. </method>
  3600. <method name="getBytesWritten" return="long"
  3601. abstract="false" native="false" synchronized="false"
  3602. static="false" final="false" visibility="public"
  3603. deprecated="not deprecated">
  3604. <doc>
  3605. <![CDATA[Get the total number of bytes written
  3606. @return the number of bytes]]>
  3607. </doc>
  3608. </method>
  3609. <method name="getReadOps" return="int"
  3610. abstract="false" native="false" synchronized="false"
  3611. static="false" final="false" visibility="public"
  3612. deprecated="not deprecated">
  3613. <doc>
  3614. <![CDATA[Get the number of file system read operations such as list files
  3615. @return number of read operations]]>
  3616. </doc>
  3617. </method>
  3618. <method name="getLargeReadOps" return="int"
  3619. abstract="false" native="false" synchronized="false"
  3620. static="false" final="false" visibility="public"
  3621. deprecated="not deprecated">
  3622. <doc>
  3623. <![CDATA[Get the number of large file system read operations such as list files
  3624. under a large directory
  3625. @return number of large read operations]]>
  3626. </doc>
  3627. </method>
  3628. <method name="getWriteOps" return="int"
  3629. abstract="false" native="false" synchronized="false"
  3630. static="false" final="false" visibility="public"
  3631. deprecated="not deprecated">
  3632. <doc>
  3633. <![CDATA[Get the number of file system write operations such as create, append
  3634. rename etc.
  3635. @return number of write operations]]>
  3636. </doc>
  3637. </method>
  3638. <method name="toString" return="java.lang.String"
  3639. abstract="false" native="false" synchronized="false"
  3640. static="false" final="false" visibility="public"
  3641. deprecated="not deprecated">
  3642. </method>
  3643. <method name="reset"
  3644. abstract="false" native="false" synchronized="false"
  3645. static="false" final="false" visibility="public"
  3646. deprecated="not deprecated">
  3647. <doc>
  3648. <![CDATA[Reset the counts of bytes to 0.]]>
  3649. </doc>
  3650. </method>
  3651. <method name="getScheme" return="java.lang.String"
  3652. abstract="false" native="false" synchronized="false"
  3653. static="false" final="false" visibility="public"
  3654. deprecated="not deprecated">
  3655. <doc>
  3656. <![CDATA[Get the uri scheme associated with this statistics object.
  3657. @return the schema associated with this set of statistics]]>
  3658. </doc>
  3659. </method>
  3660. </class>
  3661. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3662. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3663. <class name="FileUtil" extends="java.lang.Object"
  3664. abstract="false"
  3665. static="false" final="false" visibility="public"
  3666. deprecated="not deprecated">
  3667. <constructor name="FileUtil"
  3668. static="false" final="false" visibility="public"
  3669. deprecated="not deprecated">
  3670. </constructor>
  3671. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3672. abstract="false" native="false" synchronized="false"
  3673. static="true" final="false" visibility="public"
  3674. deprecated="not deprecated">
  3675. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3676. <doc>
  3677. <![CDATA[convert an array of FileStatus to an array of Path
  3678. @param stats
  3679. an array of FileStatus objects
  3680. @return an array of paths corresponding to the input]]>
  3681. </doc>
  3682. </method>
  3683. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3684. abstract="false" native="false" synchronized="false"
  3685. static="true" final="false" visibility="public"
  3686. deprecated="not deprecated">
  3687. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3688. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3689. <doc>
  3690. <![CDATA[convert an array of FileStatus to an array of Path.
  3691. If stats if null, return path
  3692. @param stats
  3693. an array of FileStatus objects
  3694. @param path
  3695. default path to return in stats is null
  3696. @return an array of paths corresponding to the input]]>
  3697. </doc>
  3698. </method>
  3699. <method name="fullyDelete" return="boolean"
  3700. abstract="false" native="false" synchronized="false"
  3701. static="true" final="false" visibility="public"
  3702. deprecated="not deprecated">
  3703. <param name="dir" type="java.io.File"/>
  3704. <exception name="IOException" type="java.io.IOException"/>
  3705. <doc>
  3706. <![CDATA[Delete a directory and all its contents. If
  3707. we return false, the directory may be partially-deleted.]]>
  3708. </doc>
  3709. </method>
  3710. <method name="fullyDeleteContents" return="boolean"
  3711. abstract="false" native="false" synchronized="false"
  3712. static="true" final="false" visibility="public"
  3713. deprecated="not deprecated">
  3714. <param name="dir" type="java.io.File"/>
  3715. <exception name="IOException" type="java.io.IOException"/>
  3716. <doc>
  3717. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3718. we return false, the directory may be partially-deleted.]]>
  3719. </doc>
  3720. </method>
  3721. <method name="fullyDelete"
  3722. abstract="false" native="false" synchronized="false"
  3723. static="true" final="false" visibility="public"
  3724. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3725. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3726. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3727. <exception name="IOException" type="java.io.IOException"/>
  3728. <doc>
  3729. <![CDATA[Recursively delete a directory.
  3730. @param fs {@link FileSystem} on which the path is present
  3731. @param dir directory to recursively delete
  3732. @throws IOException
  3733. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3734. </doc>
  3735. </method>
  3736. <method name="copy" return="boolean"
  3737. abstract="false" native="false" synchronized="false"
  3738. static="true" final="false" visibility="public"
  3739. deprecated="not deprecated">
  3740. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3741. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3742. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3743. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3744. <param name="deleteSource" type="boolean"/>
  3745. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3746. <exception name="IOException" type="java.io.IOException"/>
  3747. <doc>
  3748. <![CDATA[Copy files between FileSystems.]]>
  3749. </doc>
  3750. </method>
  3751. <method name="copy" return="boolean"
  3752. abstract="false" native="false" synchronized="false"
  3753. static="true" final="false" visibility="public"
  3754. deprecated="not deprecated">
  3755. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3756. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3757. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3758. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3759. <param name="deleteSource" type="boolean"/>
  3760. <param name="overwrite" type="boolean"/>
  3761. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3762. <exception name="IOException" type="java.io.IOException"/>
  3763. </method>
  3764. <method name="copy" return="boolean"
  3765. abstract="false" native="false" synchronized="false"
  3766. static="true" final="false" visibility="public"
  3767. deprecated="not deprecated">
  3768. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3769. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3770. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3771. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3772. <param name="deleteSource" type="boolean"/>
  3773. <param name="overwrite" type="boolean"/>
  3774. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3775. <exception name="IOException" type="java.io.IOException"/>
  3776. <doc>
  3777. <![CDATA[Copy files between FileSystems.]]>
  3778. </doc>
  3779. </method>
  3780. <method name="copyMerge" return="boolean"
  3781. abstract="false" native="false" synchronized="false"
  3782. static="true" final="false" visibility="public"
  3783. deprecated="not deprecated">
  3784. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3785. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3786. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3787. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3788. <param name="deleteSource" type="boolean"/>
  3789. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3790. <param name="addString" type="java.lang.String"/>
  3791. <exception name="IOException" type="java.io.IOException"/>
  3792. <doc>
  3793. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3794. </doc>
  3795. </method>
  3796. <method name="copy" return="boolean"
  3797. abstract="false" native="false" synchronized="false"
  3798. static="true" final="false" visibility="public"
  3799. deprecated="not deprecated">
  3800. <param name="src" type="java.io.File"/>
  3801. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3802. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3803. <param name="deleteSource" type="boolean"/>
  3804. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3805. <exception name="IOException" type="java.io.IOException"/>
  3806. <doc>
  3807. <![CDATA[Copy local files to a FileSystem.]]>
  3808. </doc>
  3809. </method>
  3810. <method name="copy" return="boolean"
  3811. abstract="false" native="false" synchronized="false"
  3812. static="true" final="false" visibility="public"
  3813. deprecated="not deprecated">
  3814. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3815. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3816. <param name="dst" type="java.io.File"/>
  3817. <param name="deleteSource" type="boolean"/>
  3818. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3819. <exception name="IOException" type="java.io.IOException"/>
  3820. <doc>
  3821. <![CDATA[Copy FileSystem files to local files.]]>
  3822. </doc>
  3823. </method>
  3824. <method name="makeShellPath" return="java.lang.String"
  3825. abstract="false" native="false" synchronized="false"
  3826. static="true" final="false" visibility="public"
  3827. deprecated="not deprecated">
  3828. <param name="filename" type="java.lang.String"/>
  3829. <exception name="IOException" type="java.io.IOException"/>
  3830. <doc>
  3831. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3832. @param filename The filename to convert
  3833. @return The unix pathname
  3834. @throws IOException on windows, there can be problems with the subprocess]]>
  3835. </doc>
  3836. </method>
  3837. <method name="makeShellPath" return="java.lang.String"
  3838. abstract="false" native="false" synchronized="false"
  3839. static="true" final="false" visibility="public"
  3840. deprecated="not deprecated">
  3841. <param name="file" type="java.io.File"/>
  3842. <exception name="IOException" type="java.io.IOException"/>
  3843. <doc>
  3844. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3845. @param file The filename to convert
  3846. @return The unix pathname
  3847. @throws IOException on windows, there can be problems with the subprocess]]>
  3848. </doc>
  3849. </method>
  3850. <method name="makeShellPath" return="java.lang.String"
  3851. abstract="false" native="false" synchronized="false"
  3852. static="true" final="false" visibility="public"
  3853. deprecated="not deprecated">
  3854. <param name="file" type="java.io.File"/>
  3855. <param name="makeCanonicalPath" type="boolean"/>
  3856. <exception name="IOException" type="java.io.IOException"/>
  3857. <doc>
  3858. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3859. @param file The filename to convert
  3860. @param makeCanonicalPath
  3861. Whether to make canonical path for the file passed
  3862. @return The unix pathname
  3863. @throws IOException on windows, there can be problems with the subprocess]]>
  3864. </doc>
  3865. </method>
  3866. <method name="getDU" return="long"
  3867. abstract="false" native="false" synchronized="false"
  3868. static="true" final="false" visibility="public"
  3869. deprecated="not deprecated">
  3870. <param name="dir" type="java.io.File"/>
  3871. <doc>
  3872. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3873. implementation.
  3874. @param dir
  3875. The input dir to get the disk space of this local dir
  3876. @return The total disk space of the input local directory]]>
  3877. </doc>
  3878. </method>
  3879. <method name="unZip"
  3880. abstract="false" native="false" synchronized="false"
  3881. static="true" final="false" visibility="public"
  3882. deprecated="not deprecated">
  3883. <param name="inFile" type="java.io.File"/>
  3884. <param name="unzipDir" type="java.io.File"/>
  3885. <exception name="IOException" type="java.io.IOException"/>
  3886. <doc>
  3887. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3888. passed as the second parameter
  3889. @param inFile The zip file as input
  3890. @param unzipDir The unzip directory where to unzip the zip file.
  3891. @throws IOException]]>
  3892. </doc>
  3893. </method>
  3894. <method name="unTar"
  3895. abstract="false" native="false" synchronized="false"
  3896. static="true" final="false" visibility="public"
  3897. deprecated="not deprecated">
  3898. <param name="inFile" type="java.io.File"/>
  3899. <param name="untarDir" type="java.io.File"/>
  3900. <exception name="IOException" type="java.io.IOException"/>
  3901. <doc>
  3902. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  3903. passed as the second parameter
  3904. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  3905. @param inFile The tar file as input.
  3906. @param untarDir The untar directory where to untar the tar file.
  3907. @throws IOException]]>
  3908. </doc>
  3909. </method>
  3910. <method name="symLink" return="int"
  3911. abstract="false" native="false" synchronized="false"
  3912. static="true" final="false" visibility="public"
  3913. deprecated="not deprecated">
  3914. <param name="target" type="java.lang.String"/>
  3915. <param name="linkname" type="java.lang.String"/>
  3916. <exception name="IOException" type="java.io.IOException"/>
  3917. <doc>
  3918. <![CDATA[Create a soft link between a src and destination
  3919. only on a local disk. HDFS does not support this
  3920. @param target the target for symlink
  3921. @param linkname the symlink
  3922. @return value returned by the command]]>
  3923. </doc>
  3924. </method>
  3925. <method name="chmod" return="int"
  3926. abstract="false" native="false" synchronized="false"
  3927. static="true" final="false" visibility="public"
  3928. deprecated="not deprecated">
  3929. <param name="filename" type="java.lang.String"/>
  3930. <param name="perm" type="java.lang.String"/>
  3931. <exception name="IOException" type="java.io.IOException"/>
  3932. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  3933. <doc>
  3934. <![CDATA[Change the permissions on a filename.
  3935. @param filename the name of the file to change
  3936. @param perm the permission string
  3937. @return the exit code from the command
  3938. @throws IOException
  3939. @throws InterruptedException]]>
  3940. </doc>
  3941. </method>
  3942. <method name="chmod" return="int"
  3943. abstract="false" native="false" synchronized="false"
  3944. static="true" final="false" visibility="public"
  3945. deprecated="not deprecated">
  3946. <param name="filename" type="java.lang.String"/>
  3947. <param name="perm" type="java.lang.String"/>
  3948. <param name="recursive" type="boolean"/>
  3949. <exception name="IOException" type="java.io.IOException"/>
  3950. <doc>
  3951. <![CDATA[Change the permissions on a file / directory, recursively, if
  3952. needed.
  3953. @param filename name of the file whose permissions are to change
  3954. @param perm permission string
  3955. @param recursive true, if permissions should be changed recursively
  3956. @return the exit code from the command.
  3957. @throws IOException
  3958. @throws InterruptedException]]>
  3959. </doc>
  3960. </method>
  3961. <method name="setPermission"
  3962. abstract="false" native="false" synchronized="false"
  3963. static="true" final="false" visibility="public"
  3964. deprecated="not deprecated">
  3965. <param name="f" type="java.io.File"/>
  3966. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3967. <exception name="IOException" type="java.io.IOException"/>
  3968. <doc>
  3969. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  3970. of forking if group == other.
  3971. @param f the file to change
  3972. @param permission the new permissions
  3973. @throws IOException]]>
  3974. </doc>
  3975. </method>
  3976. <method name="createLocalTempFile" return="java.io.File"
  3977. abstract="false" native="false" synchronized="false"
  3978. static="true" final="true" visibility="public"
  3979. deprecated="not deprecated">
  3980. <param name="basefile" type="java.io.File"/>
  3981. <param name="prefix" type="java.lang.String"/>
  3982. <param name="isDeleteOnExit" type="boolean"/>
  3983. <exception name="IOException" type="java.io.IOException"/>
  3984. <doc>
  3985. <![CDATA[Create a tmp file for a base file.
  3986. @param basefile the base file of the tmp
  3987. @param prefix file name prefix of tmp
  3988. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  3989. @return a newly created tmp file
  3990. @exception IOException If a tmp file cannot created
  3991. @see java.io.File#createTempFile(String, String, File)
  3992. @see java.io.File#deleteOnExit()]]>
  3993. </doc>
  3994. </method>
  3995. <method name="replaceFile"
  3996. abstract="false" native="false" synchronized="false"
  3997. static="true" final="false" visibility="public"
  3998. deprecated="not deprecated">
  3999. <param name="src" type="java.io.File"/>
  4000. <param name="target" type="java.io.File"/>
  4001. <exception name="IOException" type="java.io.IOException"/>
  4002. <doc>
  4003. <![CDATA[Move the src file to the name specified by target.
  4004. @param src the source file
  4005. @param target the target file
  4006. @exception IOException If this operation fails]]>
  4007. </doc>
  4008. </method>
  4009. <method name="listFiles" return="java.io.File[]"
  4010. abstract="false" native="false" synchronized="false"
  4011. static="true" final="false" visibility="public"
  4012. deprecated="not deprecated">
  4013. <param name="dir" type="java.io.File"/>
  4014. <exception name="IOException" type="java.io.IOException"/>
  4015. <doc>
  4016. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  4017. when a dir is not a directory or for any I/O error. Instead of having
  4018. null check everywhere File#listFiles() is used, we will add utility API
  4019. to get around this problem. For the majority of cases where we prefer
  4020. an IOException to be thrown.
  4021. @param dir directory for which listing should be performed
  4022. @return list of files or empty list
  4023. @exception IOException for invalid directory or for a bad disk.]]>
  4024. </doc>
  4025. </method>
  4026. <method name="list" return="java.lang.String[]"
  4027. abstract="false" native="false" synchronized="false"
  4028. static="true" final="false" visibility="public"
  4029. deprecated="not deprecated">
  4030. <param name="dir" type="java.io.File"/>
  4031. <exception name="IOException" type="java.io.IOException"/>
  4032. <doc>
  4033. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  4034. when a dir is not a directory or for any I/O error. Instead of having
  4035. null check everywhere File#list() is used, we will add utility API
  4036. to get around this problem. For the majority of cases where we prefer
  4037. an IOException to be thrown.
  4038. @param dir directory for which listing should be performed
  4039. @return list of file names or empty string list
  4040. @exception IOException for invalid directory or for a bad disk.]]>
  4041. </doc>
  4042. </method>
  4043. <doc>
  4044. <![CDATA[A collection of file-processing util methods]]>
  4045. </doc>
  4046. </class>
  4047. <!-- end class org.apache.hadoop.fs.FileUtil -->
  4048. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4049. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4050. abstract="false"
  4051. static="false" final="false" visibility="public"
  4052. deprecated="not deprecated">
  4053. <constructor name="FilterFileSystem"
  4054. static="false" final="false" visibility="public"
  4055. deprecated="not deprecated">
  4056. </constructor>
  4057. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4058. static="false" final="false" visibility="public"
  4059. deprecated="not deprecated">
  4060. </constructor>
  4061. <method name="initialize"
  4062. abstract="false" native="false" synchronized="false"
  4063. static="false" final="false" visibility="public"
  4064. deprecated="not deprecated">
  4065. <param name="name" type="java.net.URI"/>
  4066. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4067. <exception name="IOException" type="java.io.IOException"/>
  4068. <doc>
  4069. <![CDATA[Called after a new FileSystem instance is constructed.
  4070. @param name a uri whose authority section names the host, port, etc.
  4071. for this FileSystem
  4072. @param conf the configuration]]>
  4073. </doc>
  4074. </method>
  4075. <method name="getUri" return="java.net.URI"
  4076. abstract="false" native="false" synchronized="false"
  4077. static="false" final="false" visibility="public"
  4078. deprecated="not deprecated">
  4079. <doc>
  4080. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4081. </doc>
  4082. </method>
  4083. <method name="getCanonicalServiceName" return="java.lang.String"
  4084. abstract="false" native="false" synchronized="false"
  4085. static="false" final="false" visibility="public"
  4086. deprecated="not deprecated">
  4087. </method>
  4088. <method name="getName" return="java.lang.String"
  4089. abstract="false" native="false" synchronized="false"
  4090. static="false" final="false" visibility="public"
  4091. deprecated="call #getUri() instead.">
  4092. <doc>
  4093. <![CDATA[@deprecated call #getUri() instead.]]>
  4094. </doc>
  4095. </method>
  4096. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4097. abstract="false" native="false" synchronized="false"
  4098. static="false" final="false" visibility="public"
  4099. deprecated="not deprecated">
  4100. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4101. <doc>
  4102. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4103. </doc>
  4104. </method>
  4105. <method name="checkPath"
  4106. abstract="false" native="false" synchronized="false"
  4107. static="false" final="false" visibility="protected"
  4108. deprecated="not deprecated">
  4109. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4110. <doc>
  4111. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4112. </doc>
  4113. </method>
  4114. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4115. abstract="false" native="false" synchronized="false"
  4116. static="false" final="false" visibility="public"
  4117. deprecated="not deprecated">
  4118. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4119. <param name="start" type="long"/>
  4120. <param name="len" type="long"/>
  4121. <exception name="IOException" type="java.io.IOException"/>
  4122. </method>
  4123. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4124. abstract="false" native="false" synchronized="false"
  4125. static="false" final="false" visibility="public"
  4126. deprecated="not deprecated">
  4127. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4128. <param name="bufferSize" type="int"/>
  4129. <exception name="IOException" type="java.io.IOException"/>
  4130. <doc>
  4131. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4132. @param f the file name to open
  4133. @param bufferSize the size of the buffer to be used.]]>
  4134. </doc>
  4135. </method>
  4136. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4137. abstract="false" native="false" synchronized="false"
  4138. static="false" final="false" visibility="public"
  4139. deprecated="not deprecated">
  4140. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4141. <param name="bufferSize" type="int"/>
  4142. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4143. <exception name="IOException" type="java.io.IOException"/>
  4144. <doc>
  4145. <![CDATA[{@inheritDoc}]]>
  4146. </doc>
  4147. </method>
  4148. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4149. abstract="false" native="false" synchronized="false"
  4150. static="false" final="false" visibility="public"
  4151. deprecated="not deprecated">
  4152. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4153. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4154. <param name="overwrite" type="boolean"/>
  4155. <param name="bufferSize" type="int"/>
  4156. <param name="replication" type="short"/>
  4157. <param name="blockSize" type="long"/>
  4158. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4159. <exception name="IOException" type="java.io.IOException"/>
  4160. <doc>
  4161. <![CDATA[{@inheritDoc}]]>
  4162. </doc>
  4163. </method>
  4164. <method name="setReplication" return="boolean"
  4165. abstract="false" native="false" synchronized="false"
  4166. static="false" final="false" visibility="public"
  4167. deprecated="not deprecated">
  4168. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4169. <param name="replication" type="short"/>
  4170. <exception name="IOException" type="java.io.IOException"/>
  4171. <doc>
  4172. <![CDATA[Set replication for an existing file.
  4173. @param src file name
  4174. @param replication new replication
  4175. @throws IOException
  4176. @return true if successful;
  4177. false if file does not exist or is a directory]]>
  4178. </doc>
  4179. </method>
  4180. <method name="rename" return="boolean"
  4181. abstract="false" native="false" synchronized="false"
  4182. static="false" final="false" visibility="public"
  4183. deprecated="not deprecated">
  4184. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4185. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4186. <exception name="IOException" type="java.io.IOException"/>
  4187. <doc>
  4188. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4189. or remote DFS.]]>
  4190. </doc>
  4191. </method>
  4192. <method name="delete" return="boolean"
  4193. abstract="false" native="false" synchronized="false"
  4194. static="false" final="false" visibility="public"
  4195. deprecated="not deprecated">
  4196. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4197. <exception name="IOException" type="java.io.IOException"/>
  4198. <doc>
  4199. <![CDATA[Delete a file]]>
  4200. </doc>
  4201. </method>
  4202. <method name="delete" return="boolean"
  4203. abstract="false" native="false" synchronized="false"
  4204. static="false" final="false" visibility="public"
  4205. deprecated="not deprecated">
  4206. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4207. <param name="recursive" type="boolean"/>
  4208. <exception name="IOException" type="java.io.IOException"/>
  4209. <doc>
  4210. <![CDATA[Delete a file]]>
  4211. </doc>
  4212. </method>
  4213. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4214. abstract="false" native="false" synchronized="false"
  4215. static="false" final="false" visibility="public"
  4216. deprecated="not deprecated">
  4217. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4218. <exception name="IOException" type="java.io.IOException"/>
  4219. <doc>
  4220. <![CDATA[List files in a directory.]]>
  4221. </doc>
  4222. </method>
  4223. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4224. abstract="false" native="false" synchronized="false"
  4225. static="false" final="false" visibility="public"
  4226. deprecated="not deprecated">
  4227. </method>
  4228. <method name="setWorkingDirectory"
  4229. abstract="false" native="false" synchronized="false"
  4230. static="false" final="false" visibility="public"
  4231. deprecated="not deprecated">
  4232. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4233. <doc>
  4234. <![CDATA[Set the current working directory for the given file system. All relative
  4235. paths will be resolved relative to it.
  4236. @param newDir]]>
  4237. </doc>
  4238. </method>
  4239. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4240. abstract="false" native="false" synchronized="false"
  4241. static="false" final="false" visibility="public"
  4242. deprecated="not deprecated">
  4243. <doc>
  4244. <![CDATA[Get the current working directory for the given file system
  4245. @return the directory pathname]]>
  4246. </doc>
  4247. </method>
  4248. <method name="mkdirs" return="boolean"
  4249. abstract="false" native="false" synchronized="false"
  4250. static="false" final="false" visibility="public"
  4251. deprecated="not deprecated">
  4252. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4253. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4254. <exception name="IOException" type="java.io.IOException"/>
  4255. <doc>
  4256. <![CDATA[{@inheritDoc}]]>
  4257. </doc>
  4258. </method>
  4259. <method name="copyFromLocalFile"
  4260. abstract="false" native="false" synchronized="false"
  4261. static="false" final="false" visibility="public"
  4262. deprecated="not deprecated">
  4263. <param name="delSrc" type="boolean"/>
  4264. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4265. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4266. <exception name="IOException" type="java.io.IOException"/>
  4267. <doc>
  4268. <![CDATA[The src file is on the local disk. Add it to FS at
  4269. the given dst name.
  4270. delSrc indicates if the source should be removed]]>
  4271. </doc>
  4272. </method>
  4273. <method name="copyToLocalFile"
  4274. abstract="false" native="false" synchronized="false"
  4275. static="false" final="false" visibility="public"
  4276. deprecated="not deprecated">
  4277. <param name="delSrc" type="boolean"/>
  4278. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4279. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4280. <exception name="IOException" type="java.io.IOException"/>
  4281. <doc>
  4282. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4283. Copy it from FS control to the local dst name.
  4284. delSrc indicates if the src will be removed or not.]]>
  4285. </doc>
  4286. </method>
  4287. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4288. abstract="false" native="false" synchronized="false"
  4289. static="false" final="false" visibility="public"
  4290. deprecated="not deprecated">
  4291. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4292. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4293. <exception name="IOException" type="java.io.IOException"/>
  4294. <doc>
  4295. <![CDATA[Returns a local File that the user can write output to. The caller
  4296. provides both the eventual FS target name and the local working
  4297. file. If the FS is local, we write directly into the target. If
  4298. the FS is remote, we write into the tmp local area.]]>
  4299. </doc>
  4300. </method>
  4301. <method name="completeLocalOutput"
  4302. abstract="false" native="false" synchronized="false"
  4303. static="false" final="false" visibility="public"
  4304. deprecated="not deprecated">
  4305. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4306. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4307. <exception name="IOException" type="java.io.IOException"/>
  4308. <doc>
  4309. <![CDATA[Called when we're all done writing to the target. A local FS will
  4310. do nothing, because we've written to exactly the right place. A remote
  4311. FS will copy the contents of tmpLocalFile to the correct target at
  4312. fsOutputFile.]]>
  4313. </doc>
  4314. </method>
  4315. <method name="getDefaultBlockSize" return="long"
  4316. abstract="false" native="false" synchronized="false"
  4317. static="false" final="false" visibility="public"
  4318. deprecated="not deprecated">
  4319. <doc>
  4320. <![CDATA[Return the number of bytes that large input files should be optimally
  4321. be split into to minimize i/o time.]]>
  4322. </doc>
  4323. </method>
  4324. <method name="getDefaultReplication" return="short"
  4325. abstract="false" native="false" synchronized="false"
  4326. static="false" final="false" visibility="public"
  4327. deprecated="not deprecated">
  4328. <doc>
  4329. <![CDATA[Get the default replication.]]>
  4330. </doc>
  4331. </method>
  4332. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4333. abstract="false" native="false" synchronized="false"
  4334. static="false" final="false" visibility="public"
  4335. deprecated="not deprecated">
  4336. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4337. <exception name="IOException" type="java.io.IOException"/>
  4338. <doc>
  4339. <![CDATA[Get file status.]]>
  4340. </doc>
  4341. </method>
  4342. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4343. abstract="false" native="false" synchronized="false"
  4344. static="false" final="false" visibility="public"
  4345. deprecated="not deprecated">
  4346. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4347. <exception name="IOException" type="java.io.IOException"/>
  4348. <doc>
  4349. <![CDATA[{@inheritDoc}]]>
  4350. </doc>
  4351. </method>
  4352. <method name="setVerifyChecksum"
  4353. abstract="false" native="false" synchronized="false"
  4354. static="false" final="false" visibility="public"
  4355. deprecated="not deprecated">
  4356. <param name="verifyChecksum" type="boolean"/>
  4357. <doc>
  4358. <![CDATA[{@inheritDoc}]]>
  4359. </doc>
  4360. </method>
  4361. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4362. abstract="false" native="false" synchronized="false"
  4363. static="false" final="false" visibility="public"
  4364. deprecated="not deprecated">
  4365. </method>
  4366. <method name="close"
  4367. abstract="false" native="false" synchronized="false"
  4368. static="false" final="false" visibility="public"
  4369. deprecated="not deprecated">
  4370. <exception name="IOException" type="java.io.IOException"/>
  4371. </method>
  4372. <method name="setOwner"
  4373. abstract="false" native="false" synchronized="false"
  4374. static="false" final="false" visibility="public"
  4375. deprecated="not deprecated">
  4376. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4377. <param name="username" type="java.lang.String"/>
  4378. <param name="groupname" type="java.lang.String"/>
  4379. <exception name="IOException" type="java.io.IOException"/>
  4380. <doc>
  4381. <![CDATA[{@inheritDoc}]]>
  4382. </doc>
  4383. </method>
  4384. <method name="setPermission"
  4385. abstract="false" native="false" synchronized="false"
  4386. static="false" final="false" visibility="public"
  4387. deprecated="not deprecated">
  4388. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4389. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4390. <exception name="IOException" type="java.io.IOException"/>
  4391. <doc>
  4392. <![CDATA[{@inheritDoc}]]>
  4393. </doc>
  4394. </method>
  4395. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4396. transient="false" volatile="false"
  4397. static="false" final="false" visibility="protected"
  4398. deprecated="not deprecated">
  4399. </field>
  4400. <doc>
  4401. <![CDATA[A <code>FilterFileSystem</code> contains
  4402. some other file system, which it uses as
  4403. its basic file system, possibly transforming
  4404. the data along the way or providing additional
  4405. functionality. The class <code>FilterFileSystem</code>
  4406. itself simply overrides all methods of
  4407. <code>FileSystem</code> with versions that
  4408. pass all requests to the contained file
  4409. system. Subclasses of <code>FilterFileSystem</code>
  4410. may further override some of these methods
  4411. and may also provide additional methods
  4412. and fields.]]>
  4413. </doc>
  4414. </class>
  4415. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4416. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4417. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4418. abstract="false"
  4419. static="false" final="false" visibility="public"
  4420. deprecated="not deprecated">
  4421. <implements name="org.apache.hadoop.fs.Seekable"/>
  4422. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4423. <implements name="java.io.Closeable"/>
  4424. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4425. static="false" final="false" visibility="public"
  4426. deprecated="not deprecated">
  4427. <exception name="IOException" type="java.io.IOException"/>
  4428. </constructor>
  4429. <method name="seek"
  4430. abstract="false" native="false" synchronized="true"
  4431. static="false" final="false" visibility="public"
  4432. deprecated="not deprecated">
  4433. <param name="desired" type="long"/>
  4434. <exception name="IOException" type="java.io.IOException"/>
  4435. </method>
  4436. <method name="getPos" return="long"
  4437. abstract="false" native="false" synchronized="false"
  4438. static="false" final="false" visibility="public"
  4439. deprecated="not deprecated">
  4440. <exception name="IOException" type="java.io.IOException"/>
  4441. </method>
  4442. <method name="read" return="int"
  4443. abstract="false" native="false" synchronized="false"
  4444. static="false" final="false" visibility="public"
  4445. deprecated="not deprecated">
  4446. <param name="position" type="long"/>
  4447. <param name="buffer" type="byte[]"/>
  4448. <param name="offset" type="int"/>
  4449. <param name="length" type="int"/>
  4450. <exception name="IOException" type="java.io.IOException"/>
  4451. </method>
  4452. <method name="readFully"
  4453. abstract="false" native="false" synchronized="false"
  4454. static="false" final="false" visibility="public"
  4455. deprecated="not deprecated">
  4456. <param name="position" type="long"/>
  4457. <param name="buffer" type="byte[]"/>
  4458. <param name="offset" type="int"/>
  4459. <param name="length" type="int"/>
  4460. <exception name="IOException" type="java.io.IOException"/>
  4461. </method>
  4462. <method name="readFully"
  4463. abstract="false" native="false" synchronized="false"
  4464. static="false" final="false" visibility="public"
  4465. deprecated="not deprecated">
  4466. <param name="position" type="long"/>
  4467. <param name="buffer" type="byte[]"/>
  4468. <exception name="IOException" type="java.io.IOException"/>
  4469. </method>
  4470. <method name="seekToNewSource" return="boolean"
  4471. abstract="false" native="false" synchronized="false"
  4472. static="false" final="false" visibility="public"
  4473. deprecated="not deprecated">
  4474. <param name="targetPos" type="long"/>
  4475. <exception name="IOException" type="java.io.IOException"/>
  4476. </method>
  4477. <doc>
  4478. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4479. and buffers input through a {@link BufferedInputStream}.]]>
  4480. </doc>
  4481. </class>
  4482. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4483. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4484. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4485. abstract="false"
  4486. static="false" final="false" visibility="public"
  4487. deprecated="not deprecated">
  4488. <implements name="org.apache.hadoop.fs.Syncable"/>
  4489. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4490. static="false" final="false" visibility="public"
  4491. deprecated="not deprecated">
  4492. <exception name="IOException" type="java.io.IOException"/>
  4493. </constructor>
  4494. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4495. static="false" final="false" visibility="public"
  4496. deprecated="not deprecated">
  4497. <exception name="IOException" type="java.io.IOException"/>
  4498. </constructor>
  4499. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4500. static="false" final="false" visibility="public"
  4501. deprecated="not deprecated">
  4502. <exception name="IOException" type="java.io.IOException"/>
  4503. </constructor>
  4504. <method name="getPos" return="long"
  4505. abstract="false" native="false" synchronized="false"
  4506. static="false" final="false" visibility="public"
  4507. deprecated="not deprecated">
  4508. <exception name="IOException" type="java.io.IOException"/>
  4509. </method>
  4510. <method name="close"
  4511. abstract="false" native="false" synchronized="false"
  4512. static="false" final="false" visibility="public"
  4513. deprecated="not deprecated">
  4514. <exception name="IOException" type="java.io.IOException"/>
  4515. </method>
  4516. <method name="getWrappedStream" return="java.io.OutputStream"
  4517. abstract="false" native="false" synchronized="false"
  4518. static="false" final="false" visibility="public"
  4519. deprecated="not deprecated">
  4520. </method>
  4521. <method name="sync"
  4522. abstract="false" native="false" synchronized="false"
  4523. static="false" final="false" visibility="public"
  4524. deprecated="not deprecated">
  4525. <exception name="IOException" type="java.io.IOException"/>
  4526. <doc>
  4527. <![CDATA[{@inheritDoc}]]>
  4528. </doc>
  4529. </method>
  4530. <doc>
  4531. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4532. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4533. file.]]>
  4534. </doc>
  4535. </class>
  4536. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4537. <!-- start class org.apache.hadoop.fs.FSError -->
  4538. <class name="FSError" extends="java.lang.Error"
  4539. abstract="false"
  4540. static="false" final="false" visibility="public"
  4541. deprecated="not deprecated">
  4542. <doc>
  4543. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4544. in the native filesystem.]]>
  4545. </doc>
  4546. </class>
  4547. <!-- end class org.apache.hadoop.fs.FSError -->
  4548. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4549. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4550. abstract="true"
  4551. static="false" final="false" visibility="public"
  4552. deprecated="not deprecated">
  4553. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4554. static="false" final="false" visibility="protected"
  4555. deprecated="not deprecated">
  4556. <doc>
  4557. <![CDATA[Constructor
  4558. @param file The name of the file to be read
  4559. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4560. </doc>
  4561. </constructor>
  4562. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4563. static="false" final="false" visibility="protected"
  4564. deprecated="not deprecated">
  4565. <doc>
  4566. <![CDATA[Constructor
  4567. @param file The name of the file to be read
  4568. @param numOfRetries Number of read retries when ChecksumError occurs
  4569. @param sum the type of Checksum engine
  4570. @param chunkSize maximun chunk size
  4571. @param checksumSize the number byte of each checksum]]>
  4572. </doc>
  4573. </constructor>
  4574. <method name="readChunk" return="int"
  4575. abstract="true" native="false" synchronized="false"
  4576. static="false" final="false" visibility="protected"
  4577. deprecated="not deprecated">
  4578. <param name="pos" type="long"/>
  4579. <param name="buf" type="byte[]"/>
  4580. <param name="offset" type="int"/>
  4581. <param name="len" type="int"/>
  4582. <param name="checksum" type="byte[]"/>
  4583. <exception name="IOException" type="java.io.IOException"/>
  4584. <doc>
  4585. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4586. and checksum into <code>checksum</code>.
  4587. The method is used for implementing read, therefore, it should be optimized
  4588. for sequential reading
  4589. @param pos chunkPos
  4590. @param buf desitination buffer
  4591. @param offset offset in buf at which to store data
  4592. @param len maximun number of bytes to read
  4593. @return number of bytes read]]>
  4594. </doc>
  4595. </method>
  4596. <method name="getChunkPosition" return="long"
  4597. abstract="true" native="false" synchronized="false"
  4598. static="false" final="false" visibility="protected"
  4599. deprecated="not deprecated">
  4600. <param name="pos" type="long"/>
  4601. <doc>
  4602. <![CDATA[Return position of beginning of chunk containing pos.
  4603. @param pos a postion in the file
  4604. @return the starting position of the chunk which contains the byte]]>
  4605. </doc>
  4606. </method>
  4607. <method name="needChecksum" return="boolean"
  4608. abstract="false" native="false" synchronized="true"
  4609. static="false" final="false" visibility="protected"
  4610. deprecated="not deprecated">
  4611. <doc>
  4612. <![CDATA[Return true if there is a need for checksum verification]]>
  4613. </doc>
  4614. </method>
  4615. <method name="read" return="int"
  4616. abstract="false" native="false" synchronized="true"
  4617. static="false" final="false" visibility="public"
  4618. deprecated="not deprecated">
  4619. <exception name="IOException" type="java.io.IOException"/>
  4620. <doc>
  4621. <![CDATA[Read one checksum-verified byte
  4622. @return the next byte of data, or <code>-1</code> if the end of the
  4623. stream is reached.
  4624. @exception IOException if an I/O error occurs.]]>
  4625. </doc>
  4626. </method>
  4627. <method name="read" return="int"
  4628. abstract="false" native="false" synchronized="true"
  4629. static="false" final="false" visibility="public"
  4630. deprecated="not deprecated">
  4631. <param name="b" type="byte[]"/>
  4632. <param name="off" type="int"/>
  4633. <param name="len" type="int"/>
  4634. <exception name="IOException" type="java.io.IOException"/>
  4635. <doc>
  4636. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4637. the specified byte array, starting at the given offset.
  4638. <p> This method implements the general contract of the corresponding
  4639. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4640. the <code>{@link InputStream}</code> class. As an additional
  4641. convenience, it attempts to read as many bytes as possible by repeatedly
  4642. invoking the <code>read</code> method of the underlying stream. This
  4643. iterated <code>read</code> continues until one of the following
  4644. conditions becomes true: <ul>
  4645. <li> The specified number of bytes have been read,
  4646. <li> The <code>read</code> method of the underlying stream returns
  4647. <code>-1</code>, indicating end-of-file.
  4648. </ul> If the first <code>read</code> on the underlying stream returns
  4649. <code>-1</code> to indicate end-of-file then this method returns
  4650. <code>-1</code>. Otherwise this method returns the number of bytes
  4651. actually read.
  4652. @param b destination buffer.
  4653. @param off offset at which to start storing bytes.
  4654. @param len maximum number of bytes to read.
  4655. @return the number of bytes read, or <code>-1</code> if the end of
  4656. the stream has been reached.
  4657. @exception IOException if an I/O error occurs.
  4658. ChecksumException if any checksum error occurs]]>
  4659. </doc>
  4660. </method>
  4661. <method name="checksum2long" return="long"
  4662. abstract="false" native="false" synchronized="false"
  4663. static="true" final="false" visibility="public"
  4664. deprecated="not deprecated">
  4665. <param name="checksum" type="byte[]"/>
  4666. <doc>
  4667. <![CDATA[Convert a checksum byte array to a long]]>
  4668. </doc>
  4669. </method>
  4670. <method name="getPos" return="long"
  4671. abstract="false" native="false" synchronized="true"
  4672. static="false" final="false" visibility="public"
  4673. deprecated="not deprecated">
  4674. <exception name="IOException" type="java.io.IOException"/>
  4675. </method>
  4676. <method name="available" return="int"
  4677. abstract="false" native="false" synchronized="true"
  4678. static="false" final="false" visibility="public"
  4679. deprecated="not deprecated">
  4680. <exception name="IOException" type="java.io.IOException"/>
  4681. </method>
  4682. <method name="skip" return="long"
  4683. abstract="false" native="false" synchronized="true"
  4684. static="false" final="false" visibility="public"
  4685. deprecated="not deprecated">
  4686. <param name="n" type="long"/>
  4687. <exception name="IOException" type="java.io.IOException"/>
  4688. <doc>
  4689. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4690. input stream.
  4691. <p>This method may skip more bytes than are remaining in the backing
  4692. file. This produces no exception and the number of bytes skipped
  4693. may include some number of bytes that were beyond the EOF of the
  4694. backing file. Attempting to read from the stream after skipping past
  4695. the end will result in -1 indicating the end of the file.
  4696. <p>If <code>n</code> is negative, no bytes are skipped.
  4697. @param n the number of bytes to be skipped.
  4698. @return the actual number of bytes skipped.
  4699. @exception IOException if an I/O error occurs.
  4700. ChecksumException if the chunk to skip to is corrupted]]>
  4701. </doc>
  4702. </method>
  4703. <method name="seek"
  4704. abstract="false" native="false" synchronized="true"
  4705. static="false" final="false" visibility="public"
  4706. deprecated="not deprecated">
  4707. <param name="pos" type="long"/>
  4708. <exception name="IOException" type="java.io.IOException"/>
  4709. <doc>
  4710. <![CDATA[Seek to the given position in the stream.
  4711. The next read() will be from that position.
  4712. <p>This method may seek past the end of the file.
  4713. This produces no exception and an attempt to read from
  4714. the stream will result in -1 indicating the end of the file.
  4715. @param pos the postion to seek to.
  4716. @exception IOException if an I/O error occurs.
  4717. ChecksumException if the chunk to seek to is corrupted]]>
  4718. </doc>
  4719. </method>
  4720. <method name="readFully" return="int"
  4721. abstract="false" native="false" synchronized="false"
  4722. static="true" final="false" visibility="protected"
  4723. deprecated="not deprecated">
  4724. <param name="stm" type="java.io.InputStream"/>
  4725. <param name="buf" type="byte[]"/>
  4726. <param name="offset" type="int"/>
  4727. <param name="len" type="int"/>
  4728. <exception name="IOException" type="java.io.IOException"/>
  4729. <doc>
  4730. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4731. <code>stm</code>
  4732. @param stm an input stream
  4733. @param buf destiniation buffer
  4734. @param offset offset at which to store data
  4735. @param len number of bytes to read
  4736. @return actual number of bytes read
  4737. @throws IOException if there is any IO error]]>
  4738. </doc>
  4739. </method>
  4740. <method name="set"
  4741. abstract="false" native="false" synchronized="true"
  4742. static="false" final="true" visibility="protected"
  4743. deprecated="not deprecated">
  4744. <param name="verifyChecksum" type="boolean"/>
  4745. <param name="sum" type="java.util.zip.Checksum"/>
  4746. <param name="maxChunkSize" type="int"/>
  4747. <param name="checksumSize" type="int"/>
  4748. <doc>
  4749. <![CDATA[Set the checksum related parameters
  4750. @param verifyChecksum whether to verify checksum
  4751. @param sum which type of checksum to use
  4752. @param maxChunkSize maximun chunk size
  4753. @param checksumSize checksum size]]>
  4754. </doc>
  4755. </method>
  4756. <method name="markSupported" return="boolean"
  4757. abstract="false" native="false" synchronized="false"
  4758. static="false" final="true" visibility="public"
  4759. deprecated="not deprecated">
  4760. </method>
  4761. <method name="mark"
  4762. abstract="false" native="false" synchronized="false"
  4763. static="false" final="true" visibility="public"
  4764. deprecated="not deprecated">
  4765. <param name="readlimit" type="int"/>
  4766. </method>
  4767. <method name="reset"
  4768. abstract="false" native="false" synchronized="false"
  4769. static="false" final="true" visibility="public"
  4770. deprecated="not deprecated">
  4771. <exception name="IOException" type="java.io.IOException"/>
  4772. </method>
  4773. <field name="LOG" type="org.apache.commons.logging.Log"
  4774. transient="false" volatile="false"
  4775. static="true" final="true" visibility="public"
  4776. deprecated="not deprecated">
  4777. </field>
  4778. <field name="file" type="org.apache.hadoop.fs.Path"
  4779. transient="false" volatile="false"
  4780. static="false" final="false" visibility="protected"
  4781. deprecated="not deprecated">
  4782. <doc>
  4783. <![CDATA[The file name from which data is read from]]>
  4784. </doc>
  4785. </field>
  4786. <doc>
  4787. <![CDATA[This is a generic input stream for verifying checksums for
  4788. data before it is read by a user.]]>
  4789. </doc>
  4790. </class>
  4791. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4792. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4793. <class name="FSInputStream" extends="java.io.InputStream"
  4794. abstract="true"
  4795. static="false" final="false" visibility="public"
  4796. deprecated="not deprecated">
  4797. <implements name="org.apache.hadoop.fs.Seekable"/>
  4798. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4799. <constructor name="FSInputStream"
  4800. static="false" final="false" visibility="public"
  4801. deprecated="not deprecated">
  4802. </constructor>
  4803. <method name="seek"
  4804. abstract="true" native="false" synchronized="false"
  4805. static="false" final="false" visibility="public"
  4806. deprecated="not deprecated">
  4807. <param name="pos" type="long"/>
  4808. <exception name="IOException" type="java.io.IOException"/>
  4809. <doc>
  4810. <![CDATA[Seek to the given offset from the start of the file.
  4811. The next read() will be from that location. Can't
  4812. seek past the end of the file.]]>
  4813. </doc>
  4814. </method>
  4815. <method name="getPos" return="long"
  4816. abstract="true" native="false" synchronized="false"
  4817. static="false" final="false" visibility="public"
  4818. deprecated="not deprecated">
  4819. <exception name="IOException" type="java.io.IOException"/>
  4820. <doc>
  4821. <![CDATA[Return the current offset from the start of the file]]>
  4822. </doc>
  4823. </method>
  4824. <method name="seekToNewSource" return="boolean"
  4825. abstract="true" native="false" synchronized="false"
  4826. static="false" final="false" visibility="public"
  4827. deprecated="not deprecated">
  4828. <param name="targetPos" type="long"/>
  4829. <exception name="IOException" type="java.io.IOException"/>
  4830. <doc>
  4831. <![CDATA[Seeks a different copy of the data. Returns true if
  4832. found a new source, false otherwise.]]>
  4833. </doc>
  4834. </method>
  4835. <method name="read" return="int"
  4836. abstract="false" native="false" synchronized="false"
  4837. static="false" final="false" visibility="public"
  4838. deprecated="not deprecated">
  4839. <param name="position" type="long"/>
  4840. <param name="buffer" type="byte[]"/>
  4841. <param name="offset" type="int"/>
  4842. <param name="length" type="int"/>
  4843. <exception name="IOException" type="java.io.IOException"/>
  4844. </method>
  4845. <method name="readFully"
  4846. abstract="false" native="false" synchronized="false"
  4847. static="false" final="false" visibility="public"
  4848. deprecated="not deprecated">
  4849. <param name="position" type="long"/>
  4850. <param name="buffer" type="byte[]"/>
  4851. <param name="offset" type="int"/>
  4852. <param name="length" type="int"/>
  4853. <exception name="IOException" type="java.io.IOException"/>
  4854. </method>
  4855. <method name="readFully"
  4856. abstract="false" native="false" synchronized="false"
  4857. static="false" final="false" visibility="public"
  4858. deprecated="not deprecated">
  4859. <param name="position" type="long"/>
  4860. <param name="buffer" type="byte[]"/>
  4861. <exception name="IOException" type="java.io.IOException"/>
  4862. </method>
  4863. <doc>
  4864. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4865. of RAF-style seek ability.]]>
  4866. </doc>
  4867. </class>
  4868. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4869. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4870. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4871. abstract="true"
  4872. static="false" final="false" visibility="public"
  4873. deprecated="not deprecated">
  4874. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4875. static="false" final="false" visibility="protected"
  4876. deprecated="not deprecated">
  4877. </constructor>
  4878. <method name="writeChunk"
  4879. abstract="true" native="false" synchronized="false"
  4880. static="false" final="false" visibility="protected"
  4881. deprecated="not deprecated">
  4882. <param name="b" type="byte[]"/>
  4883. <param name="offset" type="int"/>
  4884. <param name="len" type="int"/>
  4885. <param name="checksum" type="byte[]"/>
  4886. <exception name="IOException" type="java.io.IOException"/>
  4887. </method>
  4888. <method name="write"
  4889. abstract="false" native="false" synchronized="true"
  4890. static="false" final="false" visibility="public"
  4891. deprecated="not deprecated">
  4892. <param name="b" type="int"/>
  4893. <exception name="IOException" type="java.io.IOException"/>
  4894. <doc>
  4895. <![CDATA[Write one byte]]>
  4896. </doc>
  4897. </method>
  4898. <method name="write"
  4899. abstract="false" native="false" synchronized="true"
  4900. static="false" final="false" visibility="public"
  4901. deprecated="not deprecated">
  4902. <param name="b" type="byte[]"/>
  4903. <param name="off" type="int"/>
  4904. <param name="len" type="int"/>
  4905. <exception name="IOException" type="java.io.IOException"/>
  4906. <doc>
  4907. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  4908. starting at offset <code>off</code> and generate a checksum for
  4909. each data chunk.
  4910. <p> This method stores bytes from the given array into this
  4911. stream's buffer before it gets checksumed. The buffer gets checksumed
  4912. and flushed to the underlying output stream when all data
  4913. in a checksum chunk are in the buffer. If the buffer is empty and
  4914. requested length is at least as large as the size of next checksum chunk
  4915. size, this method will checksum and write the chunk directly
  4916. to the underlying output stream. Thus it avoids uneccessary data copy.
  4917. @param b the data.
  4918. @param off the start offset in the data.
  4919. @param len the number of bytes to write.
  4920. @exception IOException if an I/O error occurs.]]>
  4921. </doc>
  4922. </method>
  4923. <method name="flushBuffer"
  4924. abstract="false" native="false" synchronized="true"
  4925. static="false" final="false" visibility="protected"
  4926. deprecated="not deprecated">
  4927. <exception name="IOException" type="java.io.IOException"/>
  4928. </method>
  4929. <method name="flushBuffer"
  4930. abstract="false" native="false" synchronized="true"
  4931. static="false" final="false" visibility="protected"
  4932. deprecated="not deprecated">
  4933. <param name="keep" type="boolean"/>
  4934. <exception name="IOException" type="java.io.IOException"/>
  4935. </method>
  4936. <method name="convertToByteStream" return="byte[]"
  4937. abstract="false" native="false" synchronized="false"
  4938. static="true" final="false" visibility="public"
  4939. deprecated="not deprecated">
  4940. <param name="sum" type="java.util.zip.Checksum"/>
  4941. <param name="checksumSize" type="int"/>
  4942. <doc>
  4943. <![CDATA[Converts a checksum integer value to a byte stream]]>
  4944. </doc>
  4945. </method>
  4946. <method name="resetChecksumChunk"
  4947. abstract="false" native="false" synchronized="true"
  4948. static="false" final="false" visibility="protected"
  4949. deprecated="not deprecated">
  4950. <param name="size" type="int"/>
  4951. <doc>
  4952. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  4953. </doc>
  4954. </method>
  4955. <doc>
  4956. <![CDATA[This is a generic output stream for generating checksums for
  4957. data before it is written to the underlying stream]]>
  4958. </doc>
  4959. </class>
  4960. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  4961. <!-- start class org.apache.hadoop.fs.FsShell -->
  4962. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  4963. abstract="false"
  4964. static="false" final="false" visibility="public"
  4965. deprecated="not deprecated">
  4966. <implements name="org.apache.hadoop.util.Tool"/>
  4967. <constructor name="FsShell"
  4968. static="false" final="false" visibility="public"
  4969. deprecated="not deprecated">
  4970. </constructor>
  4971. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  4972. static="false" final="false" visibility="public"
  4973. deprecated="not deprecated">
  4974. </constructor>
  4975. <method name="init"
  4976. abstract="false" native="false" synchronized="false"
  4977. static="false" final="false" visibility="protected"
  4978. deprecated="not deprecated">
  4979. <exception name="IOException" type="java.io.IOException"/>
  4980. </method>
  4981. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  4982. abstract="false" native="false" synchronized="false"
  4983. static="false" final="false" visibility="public"
  4984. deprecated="not deprecated">
  4985. <doc>
  4986. <![CDATA[Returns the Trash object associated with this shell.]]>
  4987. </doc>
  4988. </method>
  4989. <method name="byteDesc" return="java.lang.String"
  4990. abstract="false" native="false" synchronized="false"
  4991. static="true" final="false" visibility="public"
  4992. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  4993. <param name="len" type="long"/>
  4994. <doc>
  4995. <![CDATA[Return an abbreviated English-language desc of the byte length
  4996. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  4997. </doc>
  4998. </method>
  4999. <method name="limitDecimalTo2" return="java.lang.String"
  5000. abstract="false" native="false" synchronized="true"
  5001. static="true" final="false" visibility="public"
  5002. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  5003. <param name="d" type="double"/>
  5004. <doc>
  5005. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  5006. </doc>
  5007. </method>
  5008. <method name="run" return="int"
  5009. abstract="false" native="false" synchronized="false"
  5010. static="false" final="false" visibility="public"
  5011. deprecated="not deprecated">
  5012. <param name="argv" type="java.lang.String[]"/>
  5013. <exception name="Exception" type="java.lang.Exception"/>
  5014. <doc>
  5015. <![CDATA[run]]>
  5016. </doc>
  5017. </method>
  5018. <method name="close"
  5019. abstract="false" native="false" synchronized="false"
  5020. static="false" final="false" visibility="public"
  5021. deprecated="not deprecated">
  5022. <exception name="IOException" type="java.io.IOException"/>
  5023. </method>
  5024. <method name="main"
  5025. abstract="false" native="false" synchronized="false"
  5026. static="true" final="false" visibility="public"
  5027. deprecated="not deprecated">
  5028. <param name="argv" type="java.lang.String[]"/>
  5029. <exception name="Exception" type="java.lang.Exception"/>
  5030. <doc>
  5031. <![CDATA[main() has some simple utility methods]]>
  5032. </doc>
  5033. </method>
  5034. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  5035. transient="false" volatile="false"
  5036. static="false" final="false" visibility="protected"
  5037. deprecated="not deprecated">
  5038. </field>
  5039. <field name="dateForm" type="java.text.SimpleDateFormat"
  5040. transient="false" volatile="false"
  5041. static="true" final="true" visibility="public"
  5042. deprecated="not deprecated">
  5043. </field>
  5044. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5045. transient="false" volatile="false"
  5046. static="true" final="true" visibility="protected"
  5047. deprecated="not deprecated">
  5048. </field>
  5049. <doc>
  5050. <![CDATA[Provide command line access to a FileSystem.]]>
  5051. </doc>
  5052. </class>
  5053. <!-- end class org.apache.hadoop.fs.FsShell -->
  5054. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5055. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5056. abstract="false"
  5057. static="false" final="false" visibility="public"
  5058. deprecated="not deprecated">
  5059. <implements name="java.net.URLStreamHandlerFactory"/>
  5060. <constructor name="FsUrlStreamHandlerFactory"
  5061. static="false" final="false" visibility="public"
  5062. deprecated="not deprecated">
  5063. </constructor>
  5064. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5065. static="false" final="false" visibility="public"
  5066. deprecated="not deprecated">
  5067. </constructor>
  5068. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5069. abstract="false" native="false" synchronized="false"
  5070. static="false" final="false" visibility="public"
  5071. deprecated="not deprecated">
  5072. <param name="protocol" type="java.lang.String"/>
  5073. </method>
  5074. <doc>
  5075. <![CDATA[Factory for URL stream handlers.
  5076. There is only one handler whose job is to create UrlConnections. A
  5077. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5078. implementation.
  5079. Before returning our handler, we make sure that FileSystem knows an
  5080. implementation for the requested scheme/protocol.]]>
  5081. </doc>
  5082. </class>
  5083. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5084. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  5085. <class name="GlobPattern" extends="java.lang.Object"
  5086. abstract="false"
  5087. static="false" final="false" visibility="public"
  5088. deprecated="not deprecated">
  5089. <constructor name="GlobPattern" type="java.lang.String"
  5090. static="false" final="false" visibility="public"
  5091. deprecated="not deprecated">
  5092. <doc>
  5093. <![CDATA[Construct the glob pattern object with a glob pattern string
  5094. @param globPattern the glob pattern string]]>
  5095. </doc>
  5096. </constructor>
  5097. <method name="compiled" return="java.util.regex.Pattern"
  5098. abstract="false" native="false" synchronized="false"
  5099. static="false" final="false" visibility="public"
  5100. deprecated="not deprecated">
  5101. <doc>
  5102. <![CDATA[@return the compiled pattern]]>
  5103. </doc>
  5104. </method>
  5105. <method name="compile" return="java.util.regex.Pattern"
  5106. abstract="false" native="false" synchronized="false"
  5107. static="true" final="false" visibility="public"
  5108. deprecated="not deprecated">
  5109. <param name="globPattern" type="java.lang.String"/>
  5110. <doc>
  5111. <![CDATA[Compile glob pattern string
  5112. @param globPattern the glob pattern
  5113. @return the pattern object]]>
  5114. </doc>
  5115. </method>
  5116. <method name="matches" return="boolean"
  5117. abstract="false" native="false" synchronized="false"
  5118. static="false" final="false" visibility="public"
  5119. deprecated="not deprecated">
  5120. <param name="s" type="java.lang.CharSequence"/>
  5121. <doc>
  5122. <![CDATA[Match input against the compiled glob pattern
  5123. @param s input chars
  5124. @return true for successful matches]]>
  5125. </doc>
  5126. </method>
  5127. <method name="set"
  5128. abstract="false" native="false" synchronized="false"
  5129. static="false" final="false" visibility="public"
  5130. deprecated="not deprecated">
  5131. <param name="glob" type="java.lang.String"/>
  5132. <doc>
  5133. <![CDATA[Set and compile a glob pattern
  5134. @param glob the glob pattern string]]>
  5135. </doc>
  5136. </method>
  5137. <method name="hasWildcard" return="boolean"
  5138. abstract="false" native="false" synchronized="false"
  5139. static="false" final="false" visibility="public"
  5140. deprecated="not deprecated">
  5141. <doc>
  5142. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5143. </doc>
  5144. </method>
  5145. <doc>
  5146. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5147. </doc>
  5148. </class>
  5149. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5150. <!-- start class org.apache.hadoop.fs.HardLink -->
  5151. <class name="HardLink" extends="java.lang.Object"
  5152. abstract="false"
  5153. static="false" final="false" visibility="public"
  5154. deprecated="not deprecated">
  5155. <constructor name="HardLink"
  5156. static="false" final="false" visibility="public"
  5157. deprecated="not deprecated">
  5158. </constructor>
  5159. <method name="getLinkMultArgLength" return="int"
  5160. abstract="false" native="false" synchronized="false"
  5161. static="true" final="false" visibility="protected"
  5162. deprecated="not deprecated">
  5163. <param name="fileDir" type="java.io.File"/>
  5164. <param name="fileBaseNames" type="java.lang.String[]"/>
  5165. <param name="linkDir" type="java.io.File"/>
  5166. <exception name="IOException" type="java.io.IOException"/>
  5167. <doc>
  5168. <![CDATA[Calculate the nominal length of all contributors to the total
  5169. commandstring length, including fixed overhead of the OS-dependent
  5170. command. It's protected rather than private, to assist unit testing,
  5171. but real clients are not expected to need it -- see the way
  5172. createHardLinkMult() uses it internally so the user doesn't need to worry
  5173. about it.
  5174. @param fileDir - source directory, parent of fileBaseNames
  5175. @param fileBaseNames - array of path-less file names, relative
  5176. to the source directory
  5177. @param linkDir - target directory where the hardlinks will be put
  5178. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5179. @throws IOException]]>
  5180. </doc>
  5181. </method>
  5182. <method name="getMaxAllowedCmdArgLength" return="int"
  5183. abstract="false" native="false" synchronized="false"
  5184. static="true" final="false" visibility="protected"
  5185. deprecated="not deprecated">
  5186. <doc>
  5187. <![CDATA[Return this private value for use by unit tests.
  5188. Shell commands are not allowed to have a total string length
  5189. exceeding this size.]]>
  5190. </doc>
  5191. </method>
  5192. <method name="createHardLink"
  5193. abstract="false" native="false" synchronized="false"
  5194. static="true" final="false" visibility="public"
  5195. deprecated="not deprecated">
  5196. <param name="file" type="java.io.File"/>
  5197. <param name="linkName" type="java.io.File"/>
  5198. <exception name="IOException" type="java.io.IOException"/>
  5199. <doc>
  5200. <![CDATA[Creates a hardlink
  5201. @param file - existing source file
  5202. @param linkName - desired target link file]]>
  5203. </doc>
  5204. </method>
  5205. <method name="createHardLinkMult"
  5206. abstract="false" native="false" synchronized="false"
  5207. static="true" final="false" visibility="public"
  5208. deprecated="not deprecated">
  5209. <param name="parentDir" type="java.io.File"/>
  5210. <param name="fileBaseNames" type="java.lang.String[]"/>
  5211. <param name="linkDir" type="java.io.File"/>
  5212. <exception name="IOException" type="java.io.IOException"/>
  5213. <doc>
  5214. <![CDATA[Creates hardlinks from multiple existing files within one parent
  5215. directory, into one target directory.
  5216. @param parentDir - directory containing source files
  5217. @param fileBaseNames - list of path-less file names, as returned by
  5218. parentDir.list()
  5219. @param linkDir - where the hardlinks should be put. It must already exist.
  5220. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5221. we will automatically split it into multiple invocations of the
  5222. underlying method.]]>
  5223. </doc>
  5224. </method>
  5225. <method name="createHardLinkMult" return="int"
  5226. abstract="false" native="false" synchronized="false"
  5227. static="true" final="false" visibility="protected"
  5228. deprecated="not deprecated">
  5229. <param name="parentDir" type="java.io.File"/>
  5230. <param name="fileBaseNames" type="java.lang.String[]"/>
  5231. <param name="linkDir" type="java.io.File"/>
  5232. <param name="maxLength" type="int"/>
  5233. <exception name="IOException" type="java.io.IOException"/>
  5234. </method>
  5235. <method name="getLinkCount" return="int"
  5236. abstract="false" native="false" synchronized="false"
  5237. static="true" final="false" visibility="public"
  5238. deprecated="not deprecated">
  5239. <param name="fileName" type="java.io.File"/>
  5240. <exception name="IOException" type="java.io.IOException"/>
  5241. <doc>
  5242. <![CDATA[Retrieves the number of links to the specified file.]]>
  5243. </doc>
  5244. </method>
  5245. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5246. transient="false" volatile="false"
  5247. static="true" final="false" visibility="public"
  5248. deprecated="not deprecated">
  5249. </field>
  5250. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5251. transient="false" volatile="false"
  5252. static="false" final="true" visibility="public"
  5253. deprecated="not deprecated">
  5254. </field>
  5255. <doc>
  5256. <![CDATA[Class for creating hardlinks.
  5257. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5258. The HardLink class was formerly a static inner class of FSUtil,
  5259. and the methods provided were blatantly non-thread-safe.
  5260. To enable volume-parallel Update snapshots, we now provide static
  5261. threadsafe methods that allocate new buffer string arrays
  5262. upon each call. We also provide an API to hardlink all files in a
  5263. directory with a single command, which is up to 128 times more
  5264. efficient - and minimizes the impact of the extra buffer creations.]]>
  5265. </doc>
  5266. </class>
  5267. <!-- end class org.apache.hadoop.fs.HardLink -->
  5268. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5269. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5270. abstract="false"
  5271. static="true" final="false" visibility="public"
  5272. deprecated="not deprecated">
  5273. <constructor name="HardLink.LinkStats"
  5274. static="false" final="false" visibility="public"
  5275. deprecated="not deprecated">
  5276. </constructor>
  5277. <method name="clear"
  5278. abstract="false" native="false" synchronized="false"
  5279. static="false" final="false" visibility="public"
  5280. deprecated="not deprecated">
  5281. </method>
  5282. <method name="report" return="java.lang.String"
  5283. abstract="false" native="false" synchronized="false"
  5284. static="false" final="false" visibility="public"
  5285. deprecated="not deprecated">
  5286. </method>
  5287. <field name="countDirs" type="int"
  5288. transient="false" volatile="false"
  5289. static="false" final="false" visibility="public"
  5290. deprecated="not deprecated">
  5291. </field>
  5292. <field name="countSingleLinks" type="int"
  5293. transient="false" volatile="false"
  5294. static="false" final="false" visibility="public"
  5295. deprecated="not deprecated">
  5296. </field>
  5297. <field name="countMultLinks" type="int"
  5298. transient="false" volatile="false"
  5299. static="false" final="false" visibility="public"
  5300. deprecated="not deprecated">
  5301. </field>
  5302. <field name="countFilesMultLinks" type="int"
  5303. transient="false" volatile="false"
  5304. static="false" final="false" visibility="public"
  5305. deprecated="not deprecated">
  5306. </field>
  5307. <field name="countEmptyDirs" type="int"
  5308. transient="false" volatile="false"
  5309. static="false" final="false" visibility="public"
  5310. deprecated="not deprecated">
  5311. </field>
  5312. <field name="countPhysicalFileCopies" type="int"
  5313. transient="false" volatile="false"
  5314. static="false" final="false" visibility="public"
  5315. deprecated="not deprecated">
  5316. </field>
  5317. <doc>
  5318. <![CDATA[HardLink statistics counters and methods.
  5319. Not multi-thread safe, obviously.
  5320. Init is called during HardLink instantiation, above.
  5321. These are intended for use by knowledgeable clients, not internally,
  5322. because many of the internal methods are static and can't update these
  5323. per-instance counters.]]>
  5324. </doc>
  5325. </class>
  5326. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5327. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5328. <class name="HardLink.OSType" extends="java.lang.Enum"
  5329. abstract="false"
  5330. static="true" final="true" visibility="public"
  5331. deprecated="not deprecated">
  5332. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5333. abstract="false" native="false" synchronized="false"
  5334. static="true" final="false" visibility="public"
  5335. deprecated="not deprecated">
  5336. </method>
  5337. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5338. abstract="false" native="false" synchronized="false"
  5339. static="true" final="false" visibility="public"
  5340. deprecated="not deprecated">
  5341. <param name="name" type="java.lang.String"/>
  5342. </method>
  5343. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5344. transient="false" volatile="false"
  5345. static="true" final="true" visibility="public"
  5346. deprecated="not deprecated">
  5347. </field>
  5348. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5349. transient="false" volatile="false"
  5350. static="true" final="true" visibility="public"
  5351. deprecated="not deprecated">
  5352. </field>
  5353. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5354. transient="false" volatile="false"
  5355. static="true" final="true" visibility="public"
  5356. deprecated="not deprecated">
  5357. </field>
  5358. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5359. transient="false" volatile="false"
  5360. static="true" final="true" visibility="public"
  5361. deprecated="not deprecated">
  5362. </field>
  5363. </class>
  5364. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5365. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5366. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5367. abstract="false"
  5368. static="false" final="false" visibility="public"
  5369. deprecated="not deprecated">
  5370. <constructor name="HarFileSystem"
  5371. static="false" final="false" visibility="public"
  5372. deprecated="not deprecated">
  5373. <doc>
  5374. <![CDATA[public construction of harfilesystem]]>
  5375. </doc>
  5376. </constructor>
  5377. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5378. static="false" final="false" visibility="public"
  5379. deprecated="not deprecated">
  5380. <doc>
  5381. <![CDATA[Constructor to create a HarFileSystem with an
  5382. underlying filesystem.
  5383. @param fs]]>
  5384. </doc>
  5385. </constructor>
  5386. <method name="initialize"
  5387. abstract="false" native="false" synchronized="false"
  5388. static="false" final="false" visibility="public"
  5389. deprecated="not deprecated">
  5390. <param name="name" type="java.net.URI"/>
  5391. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5392. <exception name="IOException" type="java.io.IOException"/>
  5393. <doc>
  5394. <![CDATA[Initialize a Har filesystem per har archive. The
  5395. archive home directory is the top level directory
  5396. in the filesystem that contains the HAR archive.
  5397. Be careful with this method, you do not want to go
  5398. on creating new Filesystem instances per call to
  5399. path.getFileSystem().
  5400. the uri of Har is
  5401. har://underlyingfsscheme-host:port/archivepath.
  5402. or
  5403. har:///archivepath. This assumes the underlying filesystem
  5404. to be used in case not specified.]]>
  5405. </doc>
  5406. </method>
  5407. <method name="getHarVersion" return="int"
  5408. abstract="false" native="false" synchronized="false"
  5409. static="false" final="false" visibility="public"
  5410. deprecated="not deprecated">
  5411. <exception name="IOException" type="java.io.IOException"/>
  5412. </method>
  5413. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5414. abstract="false" native="false" synchronized="false"
  5415. static="false" final="false" visibility="public"
  5416. deprecated="not deprecated">
  5417. <doc>
  5418. <![CDATA[return the top level archive.]]>
  5419. </doc>
  5420. </method>
  5421. <method name="getUri" return="java.net.URI"
  5422. abstract="false" native="false" synchronized="false"
  5423. static="false" final="false" visibility="public"
  5424. deprecated="not deprecated">
  5425. <doc>
  5426. <![CDATA[Returns the uri of this filesystem.
  5427. The uri is of the form
  5428. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5429. </doc>
  5430. </method>
  5431. <method name="getCanonicalServiceName" return="java.lang.String"
  5432. abstract="false" native="false" synchronized="false"
  5433. static="false" final="false" visibility="public"
  5434. deprecated="not deprecated">
  5435. </method>
  5436. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5437. abstract="false" native="false" synchronized="false"
  5438. static="false" final="false" visibility="public"
  5439. deprecated="not deprecated">
  5440. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5441. </method>
  5442. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5443. abstract="false" native="false" synchronized="false"
  5444. static="false" final="false" visibility="public"
  5445. deprecated="not deprecated">
  5446. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5447. <param name="start" type="long"/>
  5448. <param name="len" type="long"/>
  5449. <exception name="IOException" type="java.io.IOException"/>
  5450. <doc>
  5451. <![CDATA[Get block locations from the underlying fs and fix their
  5452. offsets and lengths.
  5453. @param file the input filestatus to get block locations
  5454. @param start the start of the desired range in the contained file
  5455. @param len the length of the desired range
  5456. @return block locations for this segment of file
  5457. @throws IOException]]>
  5458. </doc>
  5459. </method>
  5460. <method name="getHarHash" return="int"
  5461. abstract="false" native="false" synchronized="false"
  5462. static="true" final="false" visibility="public"
  5463. deprecated="not deprecated">
  5464. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5465. <doc>
  5466. <![CDATA[the hash of the path p inside iniside
  5467. the filesystem
  5468. @param p the path in the harfilesystem
  5469. @return the hash code of the path.]]>
  5470. </doc>
  5471. </method>
  5472. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5473. abstract="false" native="false" synchronized="false"
  5474. static="false" final="false" visibility="public"
  5475. deprecated="not deprecated">
  5476. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5477. <exception name="IOException" type="java.io.IOException"/>
  5478. <doc>
  5479. <![CDATA[return the filestatus of files in har archive.
  5480. The permission returned are that of the archive
  5481. index files. The permissions are not persisted
  5482. while creating a hadoop archive.
  5483. @param f the path in har filesystem
  5484. @return filestatus.
  5485. @throws IOException]]>
  5486. </doc>
  5487. </method>
  5488. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5489. abstract="false" native="false" synchronized="false"
  5490. static="false" final="false" visibility="public"
  5491. deprecated="not deprecated">
  5492. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5493. <doc>
  5494. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5495. </doc>
  5496. </method>
  5497. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5498. abstract="false" native="false" synchronized="false"
  5499. static="false" final="false" visibility="public"
  5500. deprecated="not deprecated">
  5501. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5502. <param name="bufferSize" type="int"/>
  5503. <exception name="IOException" type="java.io.IOException"/>
  5504. <doc>
  5505. <![CDATA[Returns a har input stream which fakes end of
  5506. file. It reads the index files to get the part
  5507. file name and the size and start of the file.]]>
  5508. </doc>
  5509. </method>
  5510. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5511. abstract="false" native="false" synchronized="false"
  5512. static="false" final="false" visibility="public"
  5513. deprecated="not deprecated">
  5514. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5515. <param name="bufferSize" type="int"/>
  5516. <exception name="IOException" type="java.io.IOException"/>
  5517. </method>
  5518. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5519. abstract="false" native="false" synchronized="false"
  5520. static="false" final="false" visibility="public"
  5521. deprecated="not deprecated">
  5522. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5523. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5524. <param name="overwrite" type="boolean"/>
  5525. <param name="bufferSize" type="int"/>
  5526. <param name="replication" type="short"/>
  5527. <param name="blockSize" type="long"/>
  5528. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5529. <exception name="IOException" type="java.io.IOException"/>
  5530. </method>
  5531. <method name="close"
  5532. abstract="false" native="false" synchronized="false"
  5533. static="false" final="false" visibility="public"
  5534. deprecated="not deprecated">
  5535. <exception name="IOException" type="java.io.IOException"/>
  5536. </method>
  5537. <method name="setReplication" return="boolean"
  5538. abstract="false" native="false" synchronized="false"
  5539. static="false" final="false" visibility="public"
  5540. deprecated="not deprecated">
  5541. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5542. <param name="replication" type="short"/>
  5543. <exception name="IOException" type="java.io.IOException"/>
  5544. <doc>
  5545. <![CDATA[Not implemented.]]>
  5546. </doc>
  5547. </method>
  5548. <method name="delete" return="boolean"
  5549. abstract="false" native="false" synchronized="false"
  5550. static="false" final="false" visibility="public"
  5551. deprecated="not deprecated">
  5552. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5553. <param name="recursive" type="boolean"/>
  5554. <exception name="IOException" type="java.io.IOException"/>
  5555. <doc>
  5556. <![CDATA[Not implemented.]]>
  5557. </doc>
  5558. </method>
  5559. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5560. abstract="false" native="false" synchronized="false"
  5561. static="false" final="false" visibility="public"
  5562. deprecated="not deprecated">
  5563. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5564. <exception name="IOException" type="java.io.IOException"/>
  5565. <doc>
  5566. <![CDATA[liststatus returns the children of a directory
  5567. after looking up the index files.]]>
  5568. </doc>
  5569. </method>
  5570. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5571. abstract="false" native="false" synchronized="false"
  5572. static="false" final="false" visibility="public"
  5573. deprecated="not deprecated">
  5574. <doc>
  5575. <![CDATA[return the top level archive path.]]>
  5576. </doc>
  5577. </method>
  5578. <method name="setWorkingDirectory"
  5579. abstract="false" native="false" synchronized="false"
  5580. static="false" final="false" visibility="public"
  5581. deprecated="not deprecated">
  5582. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5583. </method>
  5584. <method name="mkdirs" return="boolean"
  5585. abstract="false" native="false" synchronized="false"
  5586. static="false" final="false" visibility="public"
  5587. deprecated="not deprecated">
  5588. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5589. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5590. <exception name="IOException" type="java.io.IOException"/>
  5591. <doc>
  5592. <![CDATA[not implemented.]]>
  5593. </doc>
  5594. </method>
  5595. <method name="copyFromLocalFile"
  5596. abstract="false" native="false" synchronized="false"
  5597. static="false" final="false" visibility="public"
  5598. deprecated="not deprecated">
  5599. <param name="delSrc" type="boolean"/>
  5600. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5601. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5602. <exception name="IOException" type="java.io.IOException"/>
  5603. <doc>
  5604. <![CDATA[not implemented.]]>
  5605. </doc>
  5606. </method>
  5607. <method name="copyToLocalFile"
  5608. abstract="false" native="false" synchronized="false"
  5609. static="false" final="false" visibility="public"
  5610. deprecated="not deprecated">
  5611. <param name="delSrc" type="boolean"/>
  5612. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5613. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5614. <exception name="IOException" type="java.io.IOException"/>
  5615. <doc>
  5616. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5617. </doc>
  5618. </method>
  5619. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5620. abstract="false" native="false" synchronized="false"
  5621. static="false" final="false" visibility="public"
  5622. deprecated="not deprecated">
  5623. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5624. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5625. <exception name="IOException" type="java.io.IOException"/>
  5626. <doc>
  5627. <![CDATA[not implemented.]]>
  5628. </doc>
  5629. </method>
  5630. <method name="completeLocalOutput"
  5631. abstract="false" native="false" synchronized="false"
  5632. static="false" final="false" visibility="public"
  5633. deprecated="not deprecated">
  5634. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5635. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5636. <exception name="IOException" type="java.io.IOException"/>
  5637. <doc>
  5638. <![CDATA[not implemented.]]>
  5639. </doc>
  5640. </method>
  5641. <method name="setOwner"
  5642. abstract="false" native="false" synchronized="false"
  5643. static="false" final="false" visibility="public"
  5644. deprecated="not deprecated">
  5645. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5646. <param name="username" type="java.lang.String"/>
  5647. <param name="groupname" type="java.lang.String"/>
  5648. <exception name="IOException" type="java.io.IOException"/>
  5649. <doc>
  5650. <![CDATA[not implemented.]]>
  5651. </doc>
  5652. </method>
  5653. <method name="setPermission"
  5654. abstract="false" native="false" synchronized="false"
  5655. static="false" final="false" visibility="public"
  5656. deprecated="not deprecated">
  5657. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5658. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5659. <exception name="IOException" type="java.io.IOException"/>
  5660. <doc>
  5661. <![CDATA[Not implemented.]]>
  5662. </doc>
  5663. </method>
  5664. <field name="VERSION" type="int"
  5665. transient="false" volatile="false"
  5666. static="true" final="true" visibility="public"
  5667. deprecated="not deprecated">
  5668. </field>
  5669. <doc>
  5670. <![CDATA[This is an implementation of the Hadoop Archive
  5671. Filesystem. This archive Filesystem has index files
  5672. of the form _index* and has contents of the form
  5673. part-*. The index files store the indexes of the
  5674. real files. The index files are of the form _masterindex
  5675. and _index. The master index is a level of indirection
  5676. in to the index file to make the look ups faster. the index
  5677. file is sorted with hash code of the paths that it contains
  5678. and the master index contains pointers to the positions in
  5679. index for ranges of hashcodes.]]>
  5680. </doc>
  5681. </class>
  5682. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5683. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5684. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5685. abstract="false"
  5686. static="false" final="false" visibility="public"
  5687. deprecated="not deprecated">
  5688. <constructor name="InMemoryFileSystem"
  5689. static="false" final="false" visibility="public"
  5690. deprecated="not deprecated">
  5691. </constructor>
  5692. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5693. static="false" final="false" visibility="public"
  5694. deprecated="not deprecated">
  5695. </constructor>
  5696. <method name="reserveSpaceWithCheckSum" return="boolean"
  5697. abstract="false" native="false" synchronized="false"
  5698. static="false" final="false" visibility="public"
  5699. deprecated="not deprecated">
  5700. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5701. <param name="size" type="long"/>
  5702. <doc>
  5703. <![CDATA[Register a file with its size. This will also register a checksum for the
  5704. file that the user is trying to create. This is required since none of
  5705. the FileSystem APIs accept the size of the file as argument. But since it
  5706. is required for us to apriori know the size of the file we are going to
  5707. create, the user must call this method for each file he wants to create
  5708. and reserve memory for that file. We either succeed in reserving memory
  5709. for both the main file and the checksum file and return true, or return
  5710. false.]]>
  5711. </doc>
  5712. </method>
  5713. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5714. abstract="false" native="false" synchronized="false"
  5715. static="false" final="false" visibility="public"
  5716. deprecated="not deprecated">
  5717. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5718. </method>
  5719. <method name="getNumFiles" return="int"
  5720. abstract="false" native="false" synchronized="false"
  5721. static="false" final="false" visibility="public"
  5722. deprecated="not deprecated">
  5723. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5724. </method>
  5725. <method name="getFSSize" return="long"
  5726. abstract="false" native="false" synchronized="false"
  5727. static="false" final="false" visibility="public"
  5728. deprecated="not deprecated">
  5729. </method>
  5730. <method name="getPercentUsed" return="float"
  5731. abstract="false" native="false" synchronized="false"
  5732. static="false" final="false" visibility="public"
  5733. deprecated="not deprecated">
  5734. </method>
  5735. <doc>
  5736. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5737. that the file lengths are known ahead of time and the total lengths of all
  5738. the files is below a certain number (like 100 MB, configurable). Use the API
  5739. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5740. the API for reserving space in the FS. The uri of this filesystem starts with
  5741. ramfs:// .]]>
  5742. </doc>
  5743. </class>
  5744. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5745. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5746. <class name="LocalDirAllocator" extends="java.lang.Object"
  5747. abstract="false"
  5748. static="false" final="false" visibility="public"
  5749. deprecated="not deprecated">
  5750. <constructor name="LocalDirAllocator" type="java.lang.String"
  5751. static="false" final="false" visibility="public"
  5752. deprecated="not deprecated">
  5753. <doc>
  5754. <![CDATA[Create an allocator object
  5755. @param contextCfgItemName]]>
  5756. </doc>
  5757. </constructor>
  5758. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5759. abstract="false" native="false" synchronized="false"
  5760. static="false" final="false" visibility="public"
  5761. deprecated="not deprecated">
  5762. <param name="pathStr" type="java.lang.String"/>
  5763. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5764. <exception name="IOException" type="java.io.IOException"/>
  5765. <doc>
  5766. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5767. the file is not known apriori. We go round-robin over the set of disks
  5768. (via the configured dirs) and return the first complete path where
  5769. we could create the parent directory of the passed path.
  5770. @param pathStr the requested path (this will be created on the first
  5771. available disk)
  5772. @param conf the Configuration object
  5773. @return the complete path to the file on a local disk
  5774. @throws IOException]]>
  5775. </doc>
  5776. </method>
  5777. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5778. abstract="false" native="false" synchronized="false"
  5779. static="false" final="false" visibility="public"
  5780. deprecated="not deprecated">
  5781. <param name="pathStr" type="java.lang.String"/>
  5782. <param name="size" type="long"/>
  5783. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5784. <exception name="IOException" type="java.io.IOException"/>
  5785. <doc>
  5786. <![CDATA[Get a path from the local FS. Pass size as
  5787. SIZE_UNKNOWN if not known apriori. We
  5788. round-robin over the set of disks (via the configured dirs) and return
  5789. the first complete path which has enough space
  5790. @param pathStr the requested path (this will be created on the first
  5791. available disk)
  5792. @param size the size of the file that is going to be written
  5793. @param conf the Configuration object
  5794. @return the complete path to the file on a local disk
  5795. @throws IOException]]>
  5796. </doc>
  5797. </method>
  5798. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5799. abstract="false" native="false" synchronized="false"
  5800. static="false" final="false" visibility="public"
  5801. deprecated="not deprecated">
  5802. <param name="pathStr" type="java.lang.String"/>
  5803. <param name="size" type="long"/>
  5804. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5805. <param name="checkWrite" type="boolean"/>
  5806. <exception name="IOException" type="java.io.IOException"/>
  5807. <doc>
  5808. <![CDATA[Get a path from the local FS. Pass size as
  5809. SIZE_UNKNOWN if not known apriori. We
  5810. round-robin over the set of disks (via the configured dirs) and return
  5811. the first complete path which has enough space
  5812. @param pathStr the requested path (this will be created on the first
  5813. available disk)
  5814. @param size the size of the file that is going to be written
  5815. @param conf the Configuration object
  5816. @param checkWrite ensure that the path is writable
  5817. @return the complete path to the file on a local disk
  5818. @throws IOException]]>
  5819. </doc>
  5820. </method>
  5821. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5822. abstract="false" native="false" synchronized="false"
  5823. static="false" final="false" visibility="public"
  5824. deprecated="not deprecated">
  5825. <param name="pathStr" type="java.lang.String"/>
  5826. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5827. <exception name="IOException" type="java.io.IOException"/>
  5828. <doc>
  5829. <![CDATA[Get a path from the local FS for reading. We search through all the
  5830. configured dirs for the file's existence and return the complete
  5831. path to the file when we find one
  5832. @param pathStr the requested file (this will be searched)
  5833. @param conf the Configuration object
  5834. @return the complete path to the file on a local disk
  5835. @throws IOException]]>
  5836. </doc>
  5837. </method>
  5838. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  5839. abstract="false" native="false" synchronized="false"
  5840. static="false" final="false" visibility="public"
  5841. deprecated="not deprecated">
  5842. <param name="pathStr" type="java.lang.String"/>
  5843. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5844. <exception name="IOException" type="java.io.IOException"/>
  5845. <doc>
  5846. <![CDATA[Get all of the paths that currently exist in the working directories.
  5847. @param pathStr the path underneath the roots
  5848. @param conf the configuration to look up the roots in
  5849. @return all of the paths that exist under any of the roots
  5850. @throws IOException]]>
  5851. </doc>
  5852. </method>
  5853. <method name="createTmpFileForWrite" return="java.io.File"
  5854. abstract="false" native="false" synchronized="false"
  5855. static="false" final="false" visibility="public"
  5856. deprecated="not deprecated">
  5857. <param name="pathStr" type="java.lang.String"/>
  5858. <param name="size" type="long"/>
  5859. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5860. <exception name="IOException" type="java.io.IOException"/>
  5861. <doc>
  5862. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5863. apriori. We round-robin over the set of disks (via the configured dirs)
  5864. and select the first complete path which has enough space. A file is
  5865. created on this directory. The file is guaranteed to go away when the
  5866. JVM exits.
  5867. @param pathStr prefix for the temporary file
  5868. @param size the size of the file that is going to be written
  5869. @param conf the Configuration object
  5870. @return a unique temporary file
  5871. @throws IOException]]>
  5872. </doc>
  5873. </method>
  5874. <method name="isContextValid" return="boolean"
  5875. abstract="false" native="false" synchronized="false"
  5876. static="true" final="false" visibility="public"
  5877. deprecated="not deprecated">
  5878. <param name="contextCfgItemName" type="java.lang.String"/>
  5879. <doc>
  5880. <![CDATA[Method to check whether a context is valid
  5881. @param contextCfgItemName
  5882. @return true/false]]>
  5883. </doc>
  5884. </method>
  5885. <method name="ifExists" return="boolean"
  5886. abstract="false" native="false" synchronized="false"
  5887. static="false" final="false" visibility="public"
  5888. deprecated="not deprecated">
  5889. <param name="pathStr" type="java.lang.String"/>
  5890. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5891. <doc>
  5892. <![CDATA[We search through all the configured dirs for the file's existence
  5893. and return true when we find
  5894. @param pathStr the requested file (this will be searched)
  5895. @param conf the Configuration object
  5896. @return true if files exist. false otherwise
  5897. @throws IOException]]>
  5898. </doc>
  5899. </method>
  5900. <field name="SIZE_UNKNOWN" type="int"
  5901. transient="false" volatile="false"
  5902. static="true" final="true" visibility="public"
  5903. deprecated="not deprecated">
  5904. <doc>
  5905. <![CDATA[Used when size of file to be allocated is unknown.]]>
  5906. </doc>
  5907. </field>
  5908. <doc>
  5909. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  5910. files. The way it works is that it is kept track what disk was last
  5911. allocated for a file write. For the current request, the next disk from
  5912. the set of disks would be allocated if the free space on the disk is
  5913. sufficient enough to accommodate the file that is being considered for
  5914. creation. If the space requirements cannot be met, the next disk in order
  5915. would be tried and so on till a disk is found with sufficient capacity.
  5916. Once a disk with sufficient space is identified, a check is done to make
  5917. sure that the disk is writable. Also, there is an API provided that doesn't
  5918. take the space requirements into consideration but just checks whether the
  5919. disk under consideration is writable (this should be used for cases where
  5920. the file size is not known apriori). An API is provided to read a path that
  5921. was created earlier. That API works by doing a scan of all the disks for the
  5922. input pathname.
  5923. This implementation also provides the functionality of having multiple
  5924. allocators per JVM (one for each unique functionality or context, like
  5925. mapred, dfs-client, etc.). It ensures that there is only one instance of
  5926. an allocator per context per JVM.
  5927. Note:
  5928. 1. The contexts referred above are actually the configuration items defined
  5929. in the Configuration class like "mapred.local.dir" (for which we want to
  5930. control the dir allocations). The context-strings are exactly those
  5931. configuration items.
  5932. 2. This implementation does not take into consideration cases where
  5933. a disk becomes read-only or goes out of space while a file is being written
  5934. to (disks are shared between multiple processes, and so the latter situation
  5935. is probable).
  5936. 3. In the class implementation, "Disk" is referred to as "Dir", which
  5937. actually points to the configured directory on the Disk which will be the
  5938. parent for all file write/read allocations.]]>
  5939. </doc>
  5940. </class>
  5941. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  5942. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  5943. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5944. abstract="false"
  5945. static="false" final="false" visibility="public"
  5946. deprecated="not deprecated">
  5947. <constructor name="LocalFileSystem"
  5948. static="false" final="false" visibility="public"
  5949. deprecated="not deprecated">
  5950. </constructor>
  5951. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5952. static="false" final="false" visibility="public"
  5953. deprecated="not deprecated">
  5954. </constructor>
  5955. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  5956. abstract="false" native="false" synchronized="false"
  5957. static="false" final="false" visibility="public"
  5958. deprecated="not deprecated">
  5959. </method>
  5960. <method name="exists" return="boolean"
  5961. abstract="false" native="false" synchronized="false"
  5962. static="false" final="false" visibility="public"
  5963. deprecated="not deprecated">
  5964. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5965. <exception name="IOException" type="java.io.IOException"/>
  5966. <doc>
  5967. <![CDATA[Get file status.]]>
  5968. </doc>
  5969. </method>
  5970. <method name="pathToFile" return="java.io.File"
  5971. abstract="false" native="false" synchronized="false"
  5972. static="false" final="false" visibility="public"
  5973. deprecated="not deprecated">
  5974. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5975. <doc>
  5976. <![CDATA[Convert a path to a File.]]>
  5977. </doc>
  5978. </method>
  5979. <method name="copyFromLocalFile"
  5980. abstract="false" native="false" synchronized="false"
  5981. static="false" final="false" visibility="public"
  5982. deprecated="not deprecated">
  5983. <param name="delSrc" type="boolean"/>
  5984. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5985. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5986. <exception name="IOException" type="java.io.IOException"/>
  5987. </method>
  5988. <method name="copyToLocalFile"
  5989. abstract="false" native="false" synchronized="false"
  5990. static="false" final="false" visibility="public"
  5991. deprecated="not deprecated">
  5992. <param name="delSrc" type="boolean"/>
  5993. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5994. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5995. <exception name="IOException" type="java.io.IOException"/>
  5996. </method>
  5997. <method name="reportChecksumFailure" return="boolean"
  5998. abstract="false" native="false" synchronized="false"
  5999. static="false" final="false" visibility="public"
  6000. deprecated="not deprecated">
  6001. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6002. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6003. <param name="inPos" type="long"/>
  6004. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6005. <param name="sumsPos" type="long"/>
  6006. <doc>
  6007. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6008. storage will not be reused.]]>
  6009. </doc>
  6010. </method>
  6011. <doc>
  6012. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6013. </doc>
  6014. </class>
  6015. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6016. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6017. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  6018. abstract="false"
  6019. static="false" final="false" visibility="public"
  6020. deprecated="not deprecated">
  6021. <constructor name="MD5MD5CRC32FileChecksum"
  6022. static="false" final="false" visibility="public"
  6023. deprecated="not deprecated">
  6024. <doc>
  6025. <![CDATA[Same as this(0, 0, null)]]>
  6026. </doc>
  6027. </constructor>
  6028. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  6029. static="false" final="false" visibility="public"
  6030. deprecated="not deprecated">
  6031. <doc>
  6032. <![CDATA[Create a MD5FileChecksum]]>
  6033. </doc>
  6034. </constructor>
  6035. <method name="getAlgorithmName" return="java.lang.String"
  6036. abstract="false" native="false" synchronized="false"
  6037. static="false" final="false" visibility="public"
  6038. deprecated="not deprecated">
  6039. <doc>
  6040. <![CDATA[{@inheritDoc}]]>
  6041. </doc>
  6042. </method>
  6043. <method name="getLength" return="int"
  6044. abstract="false" native="false" synchronized="false"
  6045. static="false" final="false" visibility="public"
  6046. deprecated="not deprecated">
  6047. <doc>
  6048. <![CDATA[{@inheritDoc}]]>
  6049. </doc>
  6050. </method>
  6051. <method name="getBytes" return="byte[]"
  6052. abstract="false" native="false" synchronized="false"
  6053. static="false" final="false" visibility="public"
  6054. deprecated="not deprecated">
  6055. <doc>
  6056. <![CDATA[{@inheritDoc}]]>
  6057. </doc>
  6058. </method>
  6059. <method name="readFields"
  6060. abstract="false" native="false" synchronized="false"
  6061. static="false" final="false" visibility="public"
  6062. deprecated="not deprecated">
  6063. <param name="in" type="java.io.DataInput"/>
  6064. <exception name="IOException" type="java.io.IOException"/>
  6065. <doc>
  6066. <![CDATA[{@inheritDoc}]]>
  6067. </doc>
  6068. </method>
  6069. <method name="write"
  6070. abstract="false" native="false" synchronized="false"
  6071. static="false" final="false" visibility="public"
  6072. deprecated="not deprecated">
  6073. <param name="out" type="java.io.DataOutput"/>
  6074. <exception name="IOException" type="java.io.IOException"/>
  6075. <doc>
  6076. <![CDATA[{@inheritDoc}]]>
  6077. </doc>
  6078. </method>
  6079. <method name="write"
  6080. abstract="false" native="false" synchronized="false"
  6081. static="true" final="false" visibility="public"
  6082. deprecated="not deprecated">
  6083. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  6084. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  6085. <exception name="IOException" type="java.io.IOException"/>
  6086. <doc>
  6087. <![CDATA[Write that object to xml output.]]>
  6088. </doc>
  6089. </method>
  6090. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  6091. abstract="false" native="false" synchronized="false"
  6092. static="true" final="false" visibility="public"
  6093. deprecated="not deprecated">
  6094. <param name="attrs" type="org.xml.sax.Attributes"/>
  6095. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  6096. <doc>
  6097. <![CDATA[Return the object represented in the attributes.]]>
  6098. </doc>
  6099. </method>
  6100. <method name="toString" return="java.lang.String"
  6101. abstract="false" native="false" synchronized="false"
  6102. static="false" final="false" visibility="public"
  6103. deprecated="not deprecated">
  6104. <doc>
  6105. <![CDATA[{@inheritDoc}]]>
  6106. </doc>
  6107. </method>
  6108. <field name="LENGTH" type="int"
  6109. transient="false" volatile="false"
  6110. static="true" final="true" visibility="public"
  6111. deprecated="not deprecated">
  6112. </field>
  6113. <doc>
  6114. <![CDATA[MD5 of MD5 of CRC32.]]>
  6115. </doc>
  6116. </class>
  6117. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6118. <!-- start class org.apache.hadoop.fs.Path -->
  6119. <class name="Path" extends="java.lang.Object"
  6120. abstract="false"
  6121. static="false" final="false" visibility="public"
  6122. deprecated="not deprecated">
  6123. <implements name="java.lang.Comparable"/>
  6124. <constructor name="Path" type="java.lang.String, java.lang.String"
  6125. static="false" final="false" visibility="public"
  6126. deprecated="not deprecated">
  6127. <doc>
  6128. <![CDATA[Resolve a child path against a parent path.]]>
  6129. </doc>
  6130. </constructor>
  6131. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6132. static="false" final="false" visibility="public"
  6133. deprecated="not deprecated">
  6134. <doc>
  6135. <![CDATA[Resolve a child path against a parent path.]]>
  6136. </doc>
  6137. </constructor>
  6138. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6139. static="false" final="false" visibility="public"
  6140. deprecated="not deprecated">
  6141. <doc>
  6142. <![CDATA[Resolve a child path against a parent path.]]>
  6143. </doc>
  6144. </constructor>
  6145. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6146. static="false" final="false" visibility="public"
  6147. deprecated="not deprecated">
  6148. <doc>
  6149. <![CDATA[Resolve a child path against a parent path.]]>
  6150. </doc>
  6151. </constructor>
  6152. <constructor name="Path" type="java.lang.String"
  6153. static="false" final="false" visibility="public"
  6154. deprecated="not deprecated">
  6155. <doc>
  6156. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6157. unescaped elements and some additional normalization.]]>
  6158. </doc>
  6159. </constructor>
  6160. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6161. static="false" final="false" visibility="public"
  6162. deprecated="not deprecated">
  6163. <doc>
  6164. <![CDATA[Construct a Path from components.]]>
  6165. </doc>
  6166. </constructor>
  6167. <constructor name="Path" type="java.net.URI"
  6168. static="false" final="false" visibility="public"
  6169. deprecated="not deprecated">
  6170. <doc>
  6171. <![CDATA[Construct a path from a URI]]>
  6172. </doc>
  6173. </constructor>
  6174. <method name="toUri" return="java.net.URI"
  6175. abstract="false" native="false" synchronized="false"
  6176. static="false" final="false" visibility="public"
  6177. deprecated="not deprecated">
  6178. <doc>
  6179. <![CDATA[Convert this to a URI.]]>
  6180. </doc>
  6181. </method>
  6182. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6183. abstract="false" native="false" synchronized="false"
  6184. static="false" final="false" visibility="public"
  6185. deprecated="not deprecated">
  6186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6187. <exception name="IOException" type="java.io.IOException"/>
  6188. <doc>
  6189. <![CDATA[Return the FileSystem that owns this Path.]]>
  6190. </doc>
  6191. </method>
  6192. <method name="isAbsolute" return="boolean"
  6193. abstract="false" native="false" synchronized="false"
  6194. static="false" final="false" visibility="public"
  6195. deprecated="not deprecated">
  6196. <doc>
  6197. <![CDATA[True if the directory of this path is absolute.]]>
  6198. </doc>
  6199. </method>
  6200. <method name="getName" return="java.lang.String"
  6201. abstract="false" native="false" synchronized="false"
  6202. static="false" final="false" visibility="public"
  6203. deprecated="not deprecated">
  6204. <doc>
  6205. <![CDATA[Returns the final component of this path.]]>
  6206. </doc>
  6207. </method>
  6208. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6209. abstract="false" native="false" synchronized="false"
  6210. static="false" final="false" visibility="public"
  6211. deprecated="not deprecated">
  6212. <doc>
  6213. <![CDATA[Returns the parent of a path or null if at root.]]>
  6214. </doc>
  6215. </method>
  6216. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6217. abstract="false" native="false" synchronized="false"
  6218. static="false" final="false" visibility="public"
  6219. deprecated="not deprecated">
  6220. <param name="suffix" type="java.lang.String"/>
  6221. <doc>
  6222. <![CDATA[Adds a suffix to the final name in the path.]]>
  6223. </doc>
  6224. </method>
  6225. <method name="toString" return="java.lang.String"
  6226. abstract="false" native="false" synchronized="false"
  6227. static="false" final="false" visibility="public"
  6228. deprecated="not deprecated">
  6229. </method>
  6230. <method name="equals" return="boolean"
  6231. abstract="false" native="false" synchronized="false"
  6232. static="false" final="false" visibility="public"
  6233. deprecated="not deprecated">
  6234. <param name="o" type="java.lang.Object"/>
  6235. </method>
  6236. <method name="hashCode" return="int"
  6237. abstract="false" native="false" synchronized="false"
  6238. static="false" final="false" visibility="public"
  6239. deprecated="not deprecated">
  6240. </method>
  6241. <method name="compareTo" return="int"
  6242. abstract="false" native="false" synchronized="false"
  6243. static="false" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <param name="o" type="java.lang.Object"/>
  6246. </method>
  6247. <method name="depth" return="int"
  6248. abstract="false" native="false" synchronized="false"
  6249. static="false" final="false" visibility="public"
  6250. deprecated="not deprecated">
  6251. <doc>
  6252. <![CDATA[Return the number of elements in this path.]]>
  6253. </doc>
  6254. </method>
  6255. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6256. abstract="false" native="false" synchronized="false"
  6257. static="false" final="false" visibility="public"
  6258. deprecated="not deprecated">
  6259. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6260. <doc>
  6261. <![CDATA[Returns a qualified path object.]]>
  6262. </doc>
  6263. </method>
  6264. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6265. abstract="false" native="false" synchronized="false"
  6266. static="false" final="false" visibility="public"
  6267. deprecated="not deprecated">
  6268. <param name="defaultUri" type="java.net.URI"/>
  6269. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6270. <doc>
  6271. <![CDATA[Returns a qualified path object.]]>
  6272. </doc>
  6273. </method>
  6274. <field name="SEPARATOR" type="java.lang.String"
  6275. transient="false" volatile="false"
  6276. static="true" final="true" visibility="public"
  6277. deprecated="not deprecated">
  6278. <doc>
  6279. <![CDATA[The directory separator, a slash.]]>
  6280. </doc>
  6281. </field>
  6282. <field name="SEPARATOR_CHAR" type="char"
  6283. transient="false" volatile="false"
  6284. static="true" final="true" visibility="public"
  6285. deprecated="not deprecated">
  6286. </field>
  6287. <field name="CUR_DIR" type="java.lang.String"
  6288. transient="false" volatile="false"
  6289. static="true" final="true" visibility="public"
  6290. deprecated="not deprecated">
  6291. </field>
  6292. <doc>
  6293. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6294. Path strings use slash as the directory separator. A path string is
  6295. absolute if it begins with a slash.]]>
  6296. </doc>
  6297. </class>
  6298. <!-- end class org.apache.hadoop.fs.Path -->
  6299. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6300. <interface name="PathFilter" abstract="true"
  6301. static="false" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <method name="accept" return="boolean"
  6304. abstract="false" native="false" synchronized="false"
  6305. static="false" final="false" visibility="public"
  6306. deprecated="not deprecated">
  6307. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6308. <doc>
  6309. <![CDATA[Tests whether or not the specified abstract pathname should be
  6310. included in a pathname list.
  6311. @param path The abstract pathname to be tested
  6312. @return <code>true</code> if and only if <code>pathname</code>
  6313. should be included]]>
  6314. </doc>
  6315. </method>
  6316. </interface>
  6317. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6318. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6319. <interface name="PositionedReadable" abstract="true"
  6320. static="false" final="false" visibility="public"
  6321. deprecated="not deprecated">
  6322. <method name="read" return="int"
  6323. abstract="false" native="false" synchronized="false"
  6324. static="false" final="false" visibility="public"
  6325. deprecated="not deprecated">
  6326. <param name="position" type="long"/>
  6327. <param name="buffer" type="byte[]"/>
  6328. <param name="offset" type="int"/>
  6329. <param name="length" type="int"/>
  6330. <exception name="IOException" type="java.io.IOException"/>
  6331. <doc>
  6332. <![CDATA[Read upto the specified number of bytes, from a given
  6333. position within a file, and return the number of bytes read. This does not
  6334. change the current offset of a file, and is thread-safe.]]>
  6335. </doc>
  6336. </method>
  6337. <method name="readFully"
  6338. abstract="false" native="false" synchronized="false"
  6339. static="false" final="false" visibility="public"
  6340. deprecated="not deprecated">
  6341. <param name="position" type="long"/>
  6342. <param name="buffer" type="byte[]"/>
  6343. <param name="offset" type="int"/>
  6344. <param name="length" type="int"/>
  6345. <exception name="IOException" type="java.io.IOException"/>
  6346. <doc>
  6347. <![CDATA[Read the specified number of bytes, from a given
  6348. position within a file. This does not
  6349. change the current offset of a file, and is thread-safe.]]>
  6350. </doc>
  6351. </method>
  6352. <method name="readFully"
  6353. abstract="false" native="false" synchronized="false"
  6354. static="false" final="false" visibility="public"
  6355. deprecated="not deprecated">
  6356. <param name="position" type="long"/>
  6357. <param name="buffer" type="byte[]"/>
  6358. <exception name="IOException" type="java.io.IOException"/>
  6359. <doc>
  6360. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6361. position within a file. This does not
  6362. change the current offset of a file, and is thread-safe.]]>
  6363. </doc>
  6364. </method>
  6365. <doc>
  6366. <![CDATA[Stream that permits positional reading.]]>
  6367. </doc>
  6368. </interface>
  6369. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6370. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6371. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6372. abstract="false"
  6373. static="false" final="false" visibility="public"
  6374. deprecated="not deprecated">
  6375. <constructor name="RawLocalFileSystem"
  6376. static="false" final="false" visibility="public"
  6377. deprecated="not deprecated">
  6378. </constructor>
  6379. <method name="pathToFile" return="java.io.File"
  6380. abstract="false" native="false" synchronized="false"
  6381. static="false" final="false" visibility="public"
  6382. deprecated="not deprecated">
  6383. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6384. <doc>
  6385. <![CDATA[Convert a path to a File.]]>
  6386. </doc>
  6387. </method>
  6388. <method name="getUri" return="java.net.URI"
  6389. abstract="false" native="false" synchronized="false"
  6390. static="false" final="false" visibility="public"
  6391. deprecated="not deprecated">
  6392. </method>
  6393. <method name="initialize"
  6394. abstract="false" native="false" synchronized="false"
  6395. static="false" final="false" visibility="public"
  6396. deprecated="not deprecated">
  6397. <param name="uri" type="java.net.URI"/>
  6398. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6399. <exception name="IOException" type="java.io.IOException"/>
  6400. </method>
  6401. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6402. abstract="false" native="false" synchronized="false"
  6403. static="false" final="false" visibility="public"
  6404. deprecated="not deprecated">
  6405. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6406. <param name="bufferSize" type="int"/>
  6407. <exception name="IOException" type="java.io.IOException"/>
  6408. </method>
  6409. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6410. abstract="false" native="false" synchronized="false"
  6411. static="false" final="false" visibility="public"
  6412. deprecated="not deprecated">
  6413. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6414. <param name="bufferSize" type="int"/>
  6415. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6416. <exception name="IOException" type="java.io.IOException"/>
  6417. <doc>
  6418. <![CDATA[{@inheritDoc}]]>
  6419. </doc>
  6420. </method>
  6421. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6422. abstract="false" native="false" synchronized="false"
  6423. static="false" final="false" visibility="public"
  6424. deprecated="not deprecated">
  6425. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6426. <param name="overwrite" type="boolean"/>
  6427. <param name="bufferSize" type="int"/>
  6428. <param name="replication" type="short"/>
  6429. <param name="blockSize" type="long"/>
  6430. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6431. <exception name="IOException" type="java.io.IOException"/>
  6432. <doc>
  6433. <![CDATA[{@inheritDoc}]]>
  6434. </doc>
  6435. </method>
  6436. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6437. abstract="false" native="false" synchronized="false"
  6438. static="false" final="false" visibility="public"
  6439. deprecated="not deprecated">
  6440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6441. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6442. <param name="overwrite" type="boolean"/>
  6443. <param name="bufferSize" type="int"/>
  6444. <param name="replication" type="short"/>
  6445. <param name="blockSize" type="long"/>
  6446. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6447. <exception name="IOException" type="java.io.IOException"/>
  6448. <doc>
  6449. <![CDATA[{@inheritDoc}]]>
  6450. </doc>
  6451. </method>
  6452. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  6453. abstract="false" native="false" synchronized="false"
  6454. static="false" final="false" visibility="public"
  6455. deprecated="not deprecated">
  6456. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6457. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6458. <param name="overwrite" type="boolean"/>
  6459. <param name="bufferSize" type="int"/>
  6460. <param name="replication" type="short"/>
  6461. <param name="blockSize" type="long"/>
  6462. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6463. <exception name="IOException" type="java.io.IOException"/>
  6464. <doc>
  6465. <![CDATA[{@inheritDoc}]]>
  6466. </doc>
  6467. </method>
  6468. <method name="rename" return="boolean"
  6469. abstract="false" native="false" synchronized="false"
  6470. static="false" final="false" visibility="public"
  6471. deprecated="not deprecated">
  6472. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6473. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6474. <exception name="IOException" type="java.io.IOException"/>
  6475. </method>
  6476. <method name="delete" return="boolean"
  6477. abstract="false" native="false" synchronized="false"
  6478. static="false" final="false" visibility="public"
  6479. deprecated="not deprecated">
  6480. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6481. <exception name="IOException" type="java.io.IOException"/>
  6482. </method>
  6483. <method name="delete" return="boolean"
  6484. abstract="false" native="false" synchronized="false"
  6485. static="false" final="false" visibility="public"
  6486. deprecated="not deprecated">
  6487. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6488. <param name="recursive" type="boolean"/>
  6489. <exception name="IOException" type="java.io.IOException"/>
  6490. </method>
  6491. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6492. abstract="false" native="false" synchronized="false"
  6493. static="false" final="false" visibility="public"
  6494. deprecated="not deprecated">
  6495. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6496. <exception name="IOException" type="java.io.IOException"/>
  6497. </method>
  6498. <method name="mkdirs" return="boolean"
  6499. abstract="false" native="false" synchronized="false"
  6500. static="false" final="false" visibility="public"
  6501. deprecated="not deprecated">
  6502. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6503. <exception name="IOException" type="java.io.IOException"/>
  6504. <doc>
  6505. <![CDATA[Creates the specified directory hierarchy. Does not
  6506. treat existence as an error.]]>
  6507. </doc>
  6508. </method>
  6509. <method name="mkdirs" return="boolean"
  6510. abstract="false" native="false" synchronized="false"
  6511. static="false" final="false" visibility="public"
  6512. deprecated="not deprecated">
  6513. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6514. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6515. <exception name="IOException" type="java.io.IOException"/>
  6516. <doc>
  6517. <![CDATA[{@inheritDoc}]]>
  6518. </doc>
  6519. </method>
  6520. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6521. abstract="false" native="false" synchronized="false"
  6522. static="false" final="false" visibility="public"
  6523. deprecated="not deprecated">
  6524. </method>
  6525. <method name="setWorkingDirectory"
  6526. abstract="false" native="false" synchronized="false"
  6527. static="false" final="false" visibility="public"
  6528. deprecated="not deprecated">
  6529. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6530. <doc>
  6531. <![CDATA[Set the working directory to the given directory.]]>
  6532. </doc>
  6533. </method>
  6534. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6535. abstract="false" native="false" synchronized="false"
  6536. static="false" final="false" visibility="public"
  6537. deprecated="not deprecated">
  6538. </method>
  6539. <method name="moveFromLocalFile"
  6540. abstract="false" native="false" synchronized="false"
  6541. static="false" final="false" visibility="public"
  6542. deprecated="not deprecated">
  6543. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6544. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6545. <exception name="IOException" type="java.io.IOException"/>
  6546. </method>
  6547. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6548. abstract="false" native="false" synchronized="false"
  6549. static="false" final="false" visibility="public"
  6550. deprecated="not deprecated">
  6551. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6552. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6553. <exception name="IOException" type="java.io.IOException"/>
  6554. </method>
  6555. <method name="completeLocalOutput"
  6556. abstract="false" native="false" synchronized="false"
  6557. static="false" final="false" visibility="public"
  6558. deprecated="not deprecated">
  6559. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6560. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6561. <exception name="IOException" type="java.io.IOException"/>
  6562. </method>
  6563. <method name="close"
  6564. abstract="false" native="false" synchronized="false"
  6565. static="false" final="false" visibility="public"
  6566. deprecated="not deprecated">
  6567. <exception name="IOException" type="java.io.IOException"/>
  6568. </method>
  6569. <method name="toString" return="java.lang.String"
  6570. abstract="false" native="false" synchronized="false"
  6571. static="false" final="false" visibility="public"
  6572. deprecated="not deprecated">
  6573. </method>
  6574. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6575. abstract="false" native="false" synchronized="false"
  6576. static="false" final="false" visibility="public"
  6577. deprecated="not deprecated">
  6578. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6579. <exception name="IOException" type="java.io.IOException"/>
  6580. </method>
  6581. <method name="setOwner"
  6582. abstract="false" native="false" synchronized="false"
  6583. static="false" final="false" visibility="public"
  6584. deprecated="not deprecated">
  6585. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6586. <param name="username" type="java.lang.String"/>
  6587. <param name="groupname" type="java.lang.String"/>
  6588. <exception name="IOException" type="java.io.IOException"/>
  6589. <doc>
  6590. <![CDATA[Use the command chown to set owner.]]>
  6591. </doc>
  6592. </method>
  6593. <method name="setPermission"
  6594. abstract="false" native="false" synchronized="false"
  6595. static="false" final="false" visibility="public"
  6596. deprecated="not deprecated">
  6597. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6598. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6599. <exception name="IOException" type="java.io.IOException"/>
  6600. <doc>
  6601. <![CDATA[Use the command chmod to set permission.]]>
  6602. </doc>
  6603. </method>
  6604. <doc>
  6605. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6606. </doc>
  6607. </class>
  6608. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6609. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6610. <interface name="Seekable" abstract="true"
  6611. static="false" final="false" visibility="public"
  6612. deprecated="not deprecated">
  6613. <method name="seek"
  6614. abstract="false" native="false" synchronized="false"
  6615. static="false" final="false" visibility="public"
  6616. deprecated="not deprecated">
  6617. <param name="pos" type="long"/>
  6618. <exception name="IOException" type="java.io.IOException"/>
  6619. <doc>
  6620. <![CDATA[Seek to the given offset from the start of the file.
  6621. The next read() will be from that location. Can't
  6622. seek past the end of the file.]]>
  6623. </doc>
  6624. </method>
  6625. <method name="getPos" return="long"
  6626. abstract="false" native="false" synchronized="false"
  6627. static="false" final="false" visibility="public"
  6628. deprecated="not deprecated">
  6629. <exception name="IOException" type="java.io.IOException"/>
  6630. <doc>
  6631. <![CDATA[Return the current offset from the start of the file]]>
  6632. </doc>
  6633. </method>
  6634. <method name="seekToNewSource" return="boolean"
  6635. abstract="false" native="false" synchronized="false"
  6636. static="false" final="false" visibility="public"
  6637. deprecated="not deprecated">
  6638. <param name="targetPos" type="long"/>
  6639. <exception name="IOException" type="java.io.IOException"/>
  6640. <doc>
  6641. <![CDATA[Seeks a different copy of the data. Returns true if
  6642. found a new source, false otherwise.]]>
  6643. </doc>
  6644. </method>
  6645. <doc>
  6646. <![CDATA[Stream that permits seeking.]]>
  6647. </doc>
  6648. </interface>
  6649. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6650. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6651. <interface name="Syncable" abstract="true"
  6652. static="false" final="false" visibility="public"
  6653. deprecated="not deprecated">
  6654. <method name="sync"
  6655. abstract="false" native="false" synchronized="false"
  6656. static="false" final="false" visibility="public"
  6657. deprecated="not deprecated">
  6658. <exception name="IOException" type="java.io.IOException"/>
  6659. <doc>
  6660. <![CDATA[Synchronize all buffer with the underlying devices.
  6661. @throws IOException]]>
  6662. </doc>
  6663. </method>
  6664. <doc>
  6665. <![CDATA[This interface declare the sync() operation.]]>
  6666. </doc>
  6667. </interface>
  6668. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6669. <!-- start class org.apache.hadoop.fs.Trash -->
  6670. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6671. abstract="false"
  6672. static="false" final="false" visibility="public"
  6673. deprecated="not deprecated">
  6674. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6675. static="false" final="false" visibility="public"
  6676. deprecated="not deprecated">
  6677. <exception name="IOException" type="java.io.IOException"/>
  6678. <doc>
  6679. <![CDATA[Construct a trash can accessor.
  6680. @param conf a Configuration]]>
  6681. </doc>
  6682. </constructor>
  6683. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6684. static="false" final="false" visibility="public"
  6685. deprecated="not deprecated">
  6686. <exception name="IOException" type="java.io.IOException"/>
  6687. <doc>
  6688. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6689. </doc>
  6690. </constructor>
  6691. <method name="moveToTrash" return="boolean"
  6692. abstract="false" native="false" synchronized="false"
  6693. static="false" final="false" visibility="public"
  6694. deprecated="not deprecated">
  6695. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6696. <exception name="IOException" type="java.io.IOException"/>
  6697. <doc>
  6698. <![CDATA[Move a file or directory to the current trash directory.
  6699. @return false if the item is already in the trash or trash is disabled]]>
  6700. </doc>
  6701. </method>
  6702. <method name="checkpoint"
  6703. abstract="false" native="false" synchronized="false"
  6704. static="false" final="false" visibility="public"
  6705. deprecated="not deprecated">
  6706. <exception name="IOException" type="java.io.IOException"/>
  6707. <doc>
  6708. <![CDATA[Create a trash checkpoint.]]>
  6709. </doc>
  6710. </method>
  6711. <method name="expunge"
  6712. abstract="false" native="false" synchronized="false"
  6713. static="false" final="false" visibility="public"
  6714. deprecated="not deprecated">
  6715. <exception name="IOException" type="java.io.IOException"/>
  6716. <doc>
  6717. <![CDATA[Delete old checkpoints.]]>
  6718. </doc>
  6719. </method>
  6720. <method name="getEmptier" return="java.lang.Runnable"
  6721. abstract="false" native="false" synchronized="false"
  6722. static="false" final="false" visibility="public"
  6723. deprecated="not deprecated">
  6724. <exception name="IOException" type="java.io.IOException"/>
  6725. <doc>
  6726. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6727. users, intended to be run by the superuser. Only one checkpoint is kept
  6728. at a time.]]>
  6729. </doc>
  6730. </method>
  6731. <method name="main"
  6732. abstract="false" native="false" synchronized="false"
  6733. static="true" final="false" visibility="public"
  6734. deprecated="not deprecated">
  6735. <param name="args" type="java.lang.String[]"/>
  6736. <exception name="Exception" type="java.lang.Exception"/>
  6737. <doc>
  6738. <![CDATA[Run an emptier.]]>
  6739. </doc>
  6740. </method>
  6741. <doc>
  6742. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6743. directory, a subdirectory of their home directory named ".Trash". Files are
  6744. initially moved to a <i>current</i> sub-directory of the trash directory.
  6745. Within that sub-directory their original path is preserved. Periodically
  6746. one may checkpoint the current trash and remove older checkpoints. (This
  6747. design permits trash management without enumeration of the full trash
  6748. content, without date support in the filesystem, and without clock
  6749. synchronization.)]]>
  6750. </doc>
  6751. </class>
  6752. <!-- end class org.apache.hadoop.fs.Trash -->
  6753. </package>
  6754. <package name="org.apache.hadoop.fs.ftp">
  6755. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6756. <class name="FTPException" extends="java.lang.RuntimeException"
  6757. abstract="false"
  6758. static="false" final="false" visibility="public"
  6759. deprecated="not deprecated">
  6760. <constructor name="FTPException" type="java.lang.String"
  6761. static="false" final="false" visibility="public"
  6762. deprecated="not deprecated">
  6763. </constructor>
  6764. <constructor name="FTPException" type="java.lang.Throwable"
  6765. static="false" final="false" visibility="public"
  6766. deprecated="not deprecated">
  6767. </constructor>
  6768. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6769. static="false" final="false" visibility="public"
  6770. deprecated="not deprecated">
  6771. </constructor>
  6772. <doc>
  6773. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6774. </doc>
  6775. </class>
  6776. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6777. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6778. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6779. abstract="false"
  6780. static="false" final="false" visibility="public"
  6781. deprecated="not deprecated">
  6782. <constructor name="FTPFileSystem"
  6783. static="false" final="false" visibility="public"
  6784. deprecated="not deprecated">
  6785. </constructor>
  6786. <method name="initialize"
  6787. abstract="false" native="false" synchronized="false"
  6788. static="false" final="false" visibility="public"
  6789. deprecated="not deprecated">
  6790. <param name="uri" type="java.net.URI"/>
  6791. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6792. <exception name="IOException" type="java.io.IOException"/>
  6793. </method>
  6794. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6795. abstract="false" native="false" synchronized="false"
  6796. static="false" final="false" visibility="public"
  6797. deprecated="not deprecated">
  6798. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6799. <param name="bufferSize" type="int"/>
  6800. <exception name="IOException" type="java.io.IOException"/>
  6801. </method>
  6802. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6803. abstract="false" native="false" synchronized="false"
  6804. static="false" final="false" visibility="public"
  6805. deprecated="not deprecated">
  6806. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6807. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6808. <param name="overwrite" type="boolean"/>
  6809. <param name="bufferSize" type="int"/>
  6810. <param name="replication" type="short"/>
  6811. <param name="blockSize" type="long"/>
  6812. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6813. <exception name="IOException" type="java.io.IOException"/>
  6814. <doc>
  6815. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6816. this class or else the invocation will block.]]>
  6817. </doc>
  6818. </method>
  6819. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6820. abstract="false" native="false" synchronized="false"
  6821. static="false" final="false" visibility="public"
  6822. deprecated="not deprecated">
  6823. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6824. <param name="bufferSize" type="int"/>
  6825. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6826. <exception name="IOException" type="java.io.IOException"/>
  6827. <doc>
  6828. <![CDATA[This optional operation is not yet supported.]]>
  6829. </doc>
  6830. </method>
  6831. <method name="delete" return="boolean"
  6832. abstract="false" native="false" synchronized="false"
  6833. static="false" final="false" visibility="public"
  6834. deprecated="Use delete(Path, boolean) instead">
  6835. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6836. <exception name="IOException" type="java.io.IOException"/>
  6837. <doc>
  6838. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6839. </doc>
  6840. </method>
  6841. <method name="delete" return="boolean"
  6842. abstract="false" native="false" synchronized="false"
  6843. static="false" final="false" visibility="public"
  6844. deprecated="not deprecated">
  6845. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6846. <param name="recursive" type="boolean"/>
  6847. <exception name="IOException" type="java.io.IOException"/>
  6848. </method>
  6849. <method name="getUri" return="java.net.URI"
  6850. abstract="false" native="false" synchronized="false"
  6851. static="false" final="false" visibility="public"
  6852. deprecated="not deprecated">
  6853. </method>
  6854. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6855. abstract="false" native="false" synchronized="false"
  6856. static="false" final="false" visibility="public"
  6857. deprecated="not deprecated">
  6858. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6859. <exception name="IOException" type="java.io.IOException"/>
  6860. </method>
  6861. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6862. abstract="false" native="false" synchronized="false"
  6863. static="false" final="false" visibility="public"
  6864. deprecated="not deprecated">
  6865. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6866. <exception name="IOException" type="java.io.IOException"/>
  6867. </method>
  6868. <method name="mkdirs" return="boolean"
  6869. abstract="false" native="false" synchronized="false"
  6870. static="false" final="false" visibility="public"
  6871. deprecated="not deprecated">
  6872. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6873. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6874. <exception name="IOException" type="java.io.IOException"/>
  6875. </method>
  6876. <method name="rename" return="boolean"
  6877. abstract="false" native="false" synchronized="false"
  6878. static="false" final="false" visibility="public"
  6879. deprecated="not deprecated">
  6880. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6881. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6882. <exception name="IOException" type="java.io.IOException"/>
  6883. </method>
  6884. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6885. abstract="false" native="false" synchronized="false"
  6886. static="false" final="false" visibility="public"
  6887. deprecated="not deprecated">
  6888. </method>
  6889. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6890. abstract="false" native="false" synchronized="false"
  6891. static="false" final="false" visibility="public"
  6892. deprecated="not deprecated">
  6893. </method>
  6894. <method name="setWorkingDirectory"
  6895. abstract="false" native="false" synchronized="false"
  6896. static="false" final="false" visibility="public"
  6897. deprecated="not deprecated">
  6898. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6899. </method>
  6900. <field name="LOG" type="org.apache.commons.logging.Log"
  6901. transient="false" volatile="false"
  6902. static="true" final="true" visibility="public"
  6903. deprecated="not deprecated">
  6904. </field>
  6905. <field name="DEFAULT_BUFFER_SIZE" type="int"
  6906. transient="false" volatile="false"
  6907. static="true" final="true" visibility="public"
  6908. deprecated="not deprecated">
  6909. </field>
  6910. <field name="DEFAULT_BLOCK_SIZE" type="int"
  6911. transient="false" volatile="false"
  6912. static="true" final="true" visibility="public"
  6913. deprecated="not deprecated">
  6914. </field>
  6915. <doc>
  6916. <![CDATA[<p>
  6917. A {@link FileSystem} backed by an FTP client provided by <a
  6918. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  6919. </p>]]>
  6920. </doc>
  6921. </class>
  6922. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6923. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6924. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  6925. abstract="false"
  6926. static="false" final="false" visibility="public"
  6927. deprecated="not deprecated">
  6928. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  6929. static="false" final="false" visibility="public"
  6930. deprecated="not deprecated">
  6931. </constructor>
  6932. <method name="getPos" return="long"
  6933. abstract="false" native="false" synchronized="false"
  6934. static="false" final="false" visibility="public"
  6935. deprecated="not deprecated">
  6936. <exception name="IOException" type="java.io.IOException"/>
  6937. </method>
  6938. <method name="seek"
  6939. abstract="false" native="false" synchronized="false"
  6940. static="false" final="false" visibility="public"
  6941. deprecated="not deprecated">
  6942. <param name="pos" type="long"/>
  6943. <exception name="IOException" type="java.io.IOException"/>
  6944. </method>
  6945. <method name="seekToNewSource" return="boolean"
  6946. abstract="false" native="false" synchronized="false"
  6947. static="false" final="false" visibility="public"
  6948. deprecated="not deprecated">
  6949. <param name="targetPos" type="long"/>
  6950. <exception name="IOException" type="java.io.IOException"/>
  6951. </method>
  6952. <method name="read" return="int"
  6953. abstract="false" native="false" synchronized="true"
  6954. static="false" final="false" visibility="public"
  6955. deprecated="not deprecated">
  6956. <exception name="IOException" type="java.io.IOException"/>
  6957. </method>
  6958. <method name="read" return="int"
  6959. abstract="false" native="false" synchronized="true"
  6960. static="false" final="false" visibility="public"
  6961. deprecated="not deprecated">
  6962. <param name="buf" type="byte[]"/>
  6963. <param name="off" type="int"/>
  6964. <param name="len" type="int"/>
  6965. <exception name="IOException" type="java.io.IOException"/>
  6966. </method>
  6967. <method name="close"
  6968. abstract="false" native="false" synchronized="true"
  6969. static="false" final="false" visibility="public"
  6970. deprecated="not deprecated">
  6971. <exception name="IOException" type="java.io.IOException"/>
  6972. </method>
  6973. <method name="markSupported" return="boolean"
  6974. abstract="false" native="false" synchronized="false"
  6975. static="false" final="false" visibility="public"
  6976. deprecated="not deprecated">
  6977. </method>
  6978. <method name="mark"
  6979. abstract="false" native="false" synchronized="false"
  6980. static="false" final="false" visibility="public"
  6981. deprecated="not deprecated">
  6982. <param name="readLimit" type="int"/>
  6983. </method>
  6984. <method name="reset"
  6985. abstract="false" native="false" synchronized="false"
  6986. static="false" final="false" visibility="public"
  6987. deprecated="not deprecated">
  6988. <exception name="IOException" type="java.io.IOException"/>
  6989. </method>
  6990. </class>
  6991. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6992. </package>
  6993. <package name="org.apache.hadoop.fs.kfs">
  6994. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6995. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6996. abstract="false"
  6997. static="false" final="false" visibility="public"
  6998. deprecated="not deprecated">
  6999. <constructor name="KosmosFileSystem"
  7000. static="false" final="false" visibility="public"
  7001. deprecated="not deprecated">
  7002. </constructor>
  7003. <method name="getUri" return="java.net.URI"
  7004. abstract="false" native="false" synchronized="false"
  7005. static="false" final="false" visibility="public"
  7006. deprecated="not deprecated">
  7007. </method>
  7008. <method name="initialize"
  7009. abstract="false" native="false" synchronized="false"
  7010. static="false" final="false" visibility="public"
  7011. deprecated="not deprecated">
  7012. <param name="uri" type="java.net.URI"/>
  7013. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7014. <exception name="IOException" type="java.io.IOException"/>
  7015. </method>
  7016. <method name="getName" return="java.lang.String"
  7017. abstract="false" native="false" synchronized="false"
  7018. static="false" final="false" visibility="public"
  7019. deprecated="not deprecated">
  7020. </method>
  7021. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7022. abstract="false" native="false" synchronized="false"
  7023. static="false" final="false" visibility="public"
  7024. deprecated="not deprecated">
  7025. </method>
  7026. <method name="setWorkingDirectory"
  7027. abstract="false" native="false" synchronized="false"
  7028. static="false" final="false" visibility="public"
  7029. deprecated="not deprecated">
  7030. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7031. </method>
  7032. <method name="mkdirs" return="boolean"
  7033. abstract="false" native="false" synchronized="false"
  7034. static="false" final="false" visibility="public"
  7035. deprecated="not deprecated">
  7036. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7037. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7038. <exception name="IOException" type="java.io.IOException"/>
  7039. </method>
  7040. <method name="isDirectory" return="boolean"
  7041. abstract="false" native="false" synchronized="false"
  7042. static="false" final="false" visibility="public"
  7043. deprecated="not deprecated">
  7044. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7045. <exception name="IOException" type="java.io.IOException"/>
  7046. </method>
  7047. <method name="isFile" return="boolean"
  7048. abstract="false" native="false" synchronized="false"
  7049. static="false" final="false" visibility="public"
  7050. deprecated="not deprecated">
  7051. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7052. <exception name="IOException" type="java.io.IOException"/>
  7053. </method>
  7054. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7055. abstract="false" native="false" synchronized="false"
  7056. static="false" final="false" visibility="public"
  7057. deprecated="not deprecated">
  7058. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7059. <exception name="IOException" type="java.io.IOException"/>
  7060. </method>
  7061. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7062. abstract="false" native="false" synchronized="false"
  7063. static="false" final="false" visibility="public"
  7064. deprecated="not deprecated">
  7065. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7066. <exception name="IOException" type="java.io.IOException"/>
  7067. </method>
  7068. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7069. abstract="false" native="false" synchronized="false"
  7070. static="false" final="false" visibility="public"
  7071. deprecated="not deprecated">
  7072. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7073. <param name="bufferSize" type="int"/>
  7074. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7075. <exception name="IOException" type="java.io.IOException"/>
  7076. <doc>
  7077. <![CDATA[This optional operation is not yet supported.]]>
  7078. </doc>
  7079. </method>
  7080. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7081. abstract="false" native="false" synchronized="false"
  7082. static="false" final="false" visibility="public"
  7083. deprecated="not deprecated">
  7084. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7085. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7086. <param name="overwrite" type="boolean"/>
  7087. <param name="bufferSize" type="int"/>
  7088. <param name="replication" type="short"/>
  7089. <param name="blockSize" type="long"/>
  7090. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7091. <exception name="IOException" type="java.io.IOException"/>
  7092. </method>
  7093. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7094. abstract="false" native="false" synchronized="false"
  7095. static="false" final="false" visibility="public"
  7096. deprecated="not deprecated">
  7097. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7098. <param name="bufferSize" type="int"/>
  7099. <exception name="IOException" type="java.io.IOException"/>
  7100. </method>
  7101. <method name="rename" return="boolean"
  7102. abstract="false" native="false" synchronized="false"
  7103. static="false" final="false" visibility="public"
  7104. deprecated="not deprecated">
  7105. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7106. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7107. <exception name="IOException" type="java.io.IOException"/>
  7108. </method>
  7109. <method name="delete" return="boolean"
  7110. abstract="false" native="false" synchronized="false"
  7111. static="false" final="false" visibility="public"
  7112. deprecated="not deprecated">
  7113. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7114. <param name="recursive" type="boolean"/>
  7115. <exception name="IOException" type="java.io.IOException"/>
  7116. </method>
  7117. <method name="delete" return="boolean"
  7118. abstract="false" native="false" synchronized="false"
  7119. static="false" final="false" visibility="public"
  7120. deprecated="not deprecated">
  7121. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7122. <exception name="IOException" type="java.io.IOException"/>
  7123. </method>
  7124. <method name="getLength" return="long"
  7125. abstract="false" native="false" synchronized="false"
  7126. static="false" final="false" visibility="public"
  7127. deprecated="not deprecated">
  7128. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7129. <exception name="IOException" type="java.io.IOException"/>
  7130. </method>
  7131. <method name="getReplication" return="short"
  7132. abstract="false" native="false" synchronized="false"
  7133. static="false" final="false" visibility="public"
  7134. deprecated="not deprecated">
  7135. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7136. <exception name="IOException" type="java.io.IOException"/>
  7137. </method>
  7138. <method name="getDefaultReplication" return="short"
  7139. abstract="false" native="false" synchronized="false"
  7140. static="false" final="false" visibility="public"
  7141. deprecated="not deprecated">
  7142. </method>
  7143. <method name="setReplication" return="boolean"
  7144. abstract="false" native="false" synchronized="false"
  7145. static="false" final="false" visibility="public"
  7146. deprecated="not deprecated">
  7147. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7148. <param name="replication" type="short"/>
  7149. <exception name="IOException" type="java.io.IOException"/>
  7150. </method>
  7151. <method name="getDefaultBlockSize" return="long"
  7152. abstract="false" native="false" synchronized="false"
  7153. static="false" final="false" visibility="public"
  7154. deprecated="not deprecated">
  7155. </method>
  7156. <method name="lock"
  7157. abstract="false" native="false" synchronized="false"
  7158. static="false" final="false" visibility="public"
  7159. deprecated="not deprecated">
  7160. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7161. <param name="shared" type="boolean"/>
  7162. <exception name="IOException" type="java.io.IOException"/>
  7163. </method>
  7164. <method name="release"
  7165. abstract="false" native="false" synchronized="false"
  7166. static="false" final="false" visibility="public"
  7167. deprecated="not deprecated">
  7168. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7169. <exception name="IOException" type="java.io.IOException"/>
  7170. </method>
  7171. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7172. abstract="false" native="false" synchronized="false"
  7173. static="false" final="false" visibility="public"
  7174. deprecated="not deprecated">
  7175. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7176. <param name="start" type="long"/>
  7177. <param name="len" type="long"/>
  7178. <exception name="IOException" type="java.io.IOException"/>
  7179. <doc>
  7180. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7181. locations of the various chunks of the file file from KFS.]]>
  7182. </doc>
  7183. </method>
  7184. <method name="copyFromLocalFile"
  7185. abstract="false" native="false" synchronized="false"
  7186. static="false" final="false" visibility="public"
  7187. deprecated="not deprecated">
  7188. <param name="delSrc" type="boolean"/>
  7189. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7190. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7191. <exception name="IOException" type="java.io.IOException"/>
  7192. </method>
  7193. <method name="copyToLocalFile"
  7194. abstract="false" native="false" synchronized="false"
  7195. static="false" final="false" visibility="public"
  7196. deprecated="not deprecated">
  7197. <param name="delSrc" type="boolean"/>
  7198. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7199. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7200. <exception name="IOException" type="java.io.IOException"/>
  7201. </method>
  7202. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7203. abstract="false" native="false" synchronized="false"
  7204. static="false" final="false" visibility="public"
  7205. deprecated="not deprecated">
  7206. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7207. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7208. <exception name="IOException" type="java.io.IOException"/>
  7209. </method>
  7210. <method name="completeLocalOutput"
  7211. abstract="false" native="false" synchronized="false"
  7212. static="false" final="false" visibility="public"
  7213. deprecated="not deprecated">
  7214. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7215. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7216. <exception name="IOException" type="java.io.IOException"/>
  7217. </method>
  7218. <doc>
  7219. <![CDATA[A FileSystem backed by KFS.]]>
  7220. </doc>
  7221. </class>
  7222. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7223. </package>
  7224. <package name="org.apache.hadoop.fs.permission">
  7225. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7226. <class name="AccessControlException" extends="java.io.IOException"
  7227. abstract="false"
  7228. static="false" final="false" visibility="public"
  7229. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7230. instead.">
  7231. <constructor name="AccessControlException"
  7232. static="false" final="false" visibility="public"
  7233. deprecated="not deprecated">
  7234. <doc>
  7235. <![CDATA[Default constructor is needed for unwrapping from
  7236. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7237. </doc>
  7238. </constructor>
  7239. <constructor name="AccessControlException" type="java.lang.String"
  7240. static="false" final="false" visibility="public"
  7241. deprecated="not deprecated">
  7242. <doc>
  7243. <![CDATA[Constructs an {@link AccessControlException}
  7244. with the specified detail message.
  7245. @param s the detail message.]]>
  7246. </doc>
  7247. </constructor>
  7248. <constructor name="AccessControlException" type="java.lang.Throwable"
  7249. static="false" final="false" visibility="public"
  7250. deprecated="not deprecated">
  7251. <doc>
  7252. <![CDATA[Constructs a new exception with the specified cause and a detail
  7253. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7254. typically contains the class and detail message of <tt>cause</tt>).
  7255. @param cause the cause (which is saved for later retrieval by the
  7256. {@link #getCause()} method). (A <tt>null</tt> value is
  7257. permitted, and indicates that the cause is nonexistent or
  7258. unknown.)]]>
  7259. </doc>
  7260. </constructor>
  7261. <doc>
  7262. <![CDATA[An exception class for access control related issues.
  7263. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7264. instead.]]>
  7265. </doc>
  7266. </class>
  7267. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7268. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7269. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7270. abstract="false"
  7271. static="false" final="false" visibility="public"
  7272. deprecated="not deprecated">
  7273. <constructor name="ChmodParser" type="java.lang.String"
  7274. static="false" final="false" visibility="public"
  7275. deprecated="not deprecated">
  7276. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7277. </constructor>
  7278. <method name="applyNewPermission" return="short"
  7279. abstract="false" native="false" synchronized="false"
  7280. static="false" final="false" visibility="public"
  7281. deprecated="not deprecated">
  7282. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7283. <doc>
  7284. <![CDATA[Apply permission against specified file and determine what the
  7285. new mode would be
  7286. @param file File against which to apply mode
  7287. @return File's new mode if applied.]]>
  7288. </doc>
  7289. </method>
  7290. <doc>
  7291. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7292. mode against an existing file.]]>
  7293. </doc>
  7294. </class>
  7295. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7296. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7297. <class name="FsAction" extends="java.lang.Enum"
  7298. abstract="false"
  7299. static="false" final="true" visibility="public"
  7300. deprecated="not deprecated">
  7301. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7302. abstract="false" native="false" synchronized="false"
  7303. static="true" final="false" visibility="public"
  7304. deprecated="not deprecated">
  7305. </method>
  7306. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7307. abstract="false" native="false" synchronized="false"
  7308. static="true" final="false" visibility="public"
  7309. deprecated="not deprecated">
  7310. <param name="name" type="java.lang.String"/>
  7311. </method>
  7312. <method name="implies" return="boolean"
  7313. abstract="false" native="false" synchronized="false"
  7314. static="false" final="false" visibility="public"
  7315. deprecated="not deprecated">
  7316. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7317. <doc>
  7318. <![CDATA[Return true if this action implies that action.
  7319. @param that]]>
  7320. </doc>
  7321. </method>
  7322. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7323. abstract="false" native="false" synchronized="false"
  7324. static="false" final="false" visibility="public"
  7325. deprecated="not deprecated">
  7326. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7327. <doc>
  7328. <![CDATA[AND operation.]]>
  7329. </doc>
  7330. </method>
  7331. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  7332. abstract="false" native="false" synchronized="false"
  7333. static="false" final="false" visibility="public"
  7334. deprecated="not deprecated">
  7335. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7336. <doc>
  7337. <![CDATA[OR operation.]]>
  7338. </doc>
  7339. </method>
  7340. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7341. abstract="false" native="false" synchronized="false"
  7342. static="false" final="false" visibility="public"
  7343. deprecated="not deprecated">
  7344. <doc>
  7345. <![CDATA[NOT operation.]]>
  7346. </doc>
  7347. </method>
  7348. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7349. transient="false" volatile="false"
  7350. static="true" final="true" visibility="public"
  7351. deprecated="not deprecated">
  7352. </field>
  7353. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7354. transient="false" volatile="false"
  7355. static="true" final="true" visibility="public"
  7356. deprecated="not deprecated">
  7357. </field>
  7358. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7359. transient="false" volatile="false"
  7360. static="true" final="true" visibility="public"
  7361. deprecated="not deprecated">
  7362. </field>
  7363. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7364. transient="false" volatile="false"
  7365. static="true" final="true" visibility="public"
  7366. deprecated="not deprecated">
  7367. </field>
  7368. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7369. transient="false" volatile="false"
  7370. static="true" final="true" visibility="public"
  7371. deprecated="not deprecated">
  7372. </field>
  7373. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7374. transient="false" volatile="false"
  7375. static="true" final="true" visibility="public"
  7376. deprecated="not deprecated">
  7377. </field>
  7378. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7379. transient="false" volatile="false"
  7380. static="true" final="true" visibility="public"
  7381. deprecated="not deprecated">
  7382. </field>
  7383. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7384. transient="false" volatile="false"
  7385. static="true" final="true" visibility="public"
  7386. deprecated="not deprecated">
  7387. </field>
  7388. <field name="SYMBOL" type="java.lang.String"
  7389. transient="false" volatile="false"
  7390. static="false" final="true" visibility="public"
  7391. deprecated="not deprecated">
  7392. <doc>
  7393. <![CDATA[Symbolic representation]]>
  7394. </doc>
  7395. </field>
  7396. <doc>
  7397. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7398. </doc>
  7399. </class>
  7400. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7401. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7402. <class name="FsPermission" extends="java.lang.Object"
  7403. abstract="false"
  7404. static="false" final="false" visibility="public"
  7405. deprecated="not deprecated">
  7406. <implements name="org.apache.hadoop.io.Writable"/>
  7407. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7408. static="false" final="false" visibility="public"
  7409. deprecated="not deprecated">
  7410. <doc>
  7411. <![CDATA[Construct by the given {@link FsAction}.
  7412. @param u user action
  7413. @param g group action
  7414. @param o other action]]>
  7415. </doc>
  7416. </constructor>
  7417. <constructor name="FsPermission" type="short"
  7418. static="false" final="false" visibility="public"
  7419. deprecated="not deprecated">
  7420. <doc>
  7421. <![CDATA[Construct by the given mode.
  7422. @param mode
  7423. @see #toShort()]]>
  7424. </doc>
  7425. </constructor>
  7426. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7427. static="false" final="false" visibility="public"
  7428. deprecated="not deprecated">
  7429. <doc>
  7430. <![CDATA[Copy constructor
  7431. @param other other permission]]>
  7432. </doc>
  7433. </constructor>
  7434. <constructor name="FsPermission" type="java.lang.String"
  7435. static="false" final="false" visibility="public"
  7436. deprecated="not deprecated">
  7437. <doc>
  7438. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7439. @param mode mode as a string, either in octal or symbolic format
  7440. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7441. </doc>
  7442. </constructor>
  7443. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7444. abstract="false" native="false" synchronized="false"
  7445. static="true" final="false" visibility="public"
  7446. deprecated="not deprecated">
  7447. <param name="permission" type="short"/>
  7448. <doc>
  7449. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7450. </doc>
  7451. </method>
  7452. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7453. abstract="false" native="false" synchronized="false"
  7454. static="false" final="false" visibility="public"
  7455. deprecated="not deprecated">
  7456. <doc>
  7457. <![CDATA[Return user {@link FsAction}.]]>
  7458. </doc>
  7459. </method>
  7460. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7461. abstract="false" native="false" synchronized="false"
  7462. static="false" final="false" visibility="public"
  7463. deprecated="not deprecated">
  7464. <doc>
  7465. <![CDATA[Return group {@link FsAction}.]]>
  7466. </doc>
  7467. </method>
  7468. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7469. abstract="false" native="false" synchronized="false"
  7470. static="false" final="false" visibility="public"
  7471. deprecated="not deprecated">
  7472. <doc>
  7473. <![CDATA[Return other {@link FsAction}.]]>
  7474. </doc>
  7475. </method>
  7476. <method name="fromShort"
  7477. abstract="false" native="false" synchronized="false"
  7478. static="false" final="false" visibility="public"
  7479. deprecated="not deprecated">
  7480. <param name="n" type="short"/>
  7481. </method>
  7482. <method name="write"
  7483. abstract="false" native="false" synchronized="false"
  7484. static="false" final="false" visibility="public"
  7485. deprecated="not deprecated">
  7486. <param name="out" type="java.io.DataOutput"/>
  7487. <exception name="IOException" type="java.io.IOException"/>
  7488. <doc>
  7489. <![CDATA[{@inheritDoc}]]>
  7490. </doc>
  7491. </method>
  7492. <method name="readFields"
  7493. abstract="false" native="false" synchronized="false"
  7494. static="false" final="false" visibility="public"
  7495. deprecated="not deprecated">
  7496. <param name="in" type="java.io.DataInput"/>
  7497. <exception name="IOException" type="java.io.IOException"/>
  7498. <doc>
  7499. <![CDATA[{@inheritDoc}]]>
  7500. </doc>
  7501. </method>
  7502. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7503. abstract="false" native="false" synchronized="false"
  7504. static="true" final="false" visibility="public"
  7505. deprecated="not deprecated">
  7506. <param name="in" type="java.io.DataInput"/>
  7507. <exception name="IOException" type="java.io.IOException"/>
  7508. <doc>
  7509. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7510. </doc>
  7511. </method>
  7512. <method name="toShort" return="short"
  7513. abstract="false" native="false" synchronized="false"
  7514. static="false" final="false" visibility="public"
  7515. deprecated="not deprecated">
  7516. <doc>
  7517. <![CDATA[Encode the object to a short.]]>
  7518. </doc>
  7519. </method>
  7520. <method name="equals" return="boolean"
  7521. abstract="false" native="false" synchronized="false"
  7522. static="false" final="false" visibility="public"
  7523. deprecated="not deprecated">
  7524. <param name="obj" type="java.lang.Object"/>
  7525. <doc>
  7526. <![CDATA[{@inheritDoc}]]>
  7527. </doc>
  7528. </method>
  7529. <method name="hashCode" return="int"
  7530. abstract="false" native="false" synchronized="false"
  7531. static="false" final="false" visibility="public"
  7532. deprecated="not deprecated">
  7533. <doc>
  7534. <![CDATA[{@inheritDoc}]]>
  7535. </doc>
  7536. </method>
  7537. <method name="toString" return="java.lang.String"
  7538. abstract="false" native="false" synchronized="false"
  7539. static="false" final="false" visibility="public"
  7540. deprecated="not deprecated">
  7541. <doc>
  7542. <![CDATA[{@inheritDoc}]]>
  7543. </doc>
  7544. </method>
  7545. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7546. abstract="false" native="false" synchronized="false"
  7547. static="false" final="false" visibility="public"
  7548. deprecated="not deprecated">
  7549. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7550. <doc>
  7551. <![CDATA[Apply a umask to this permission and return a new one]]>
  7552. </doc>
  7553. </method>
  7554. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7555. abstract="false" native="false" synchronized="false"
  7556. static="true" final="false" visibility="public"
  7557. deprecated="not deprecated">
  7558. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7559. <doc>
  7560. <![CDATA[Get the user file creation mask (umask)
  7561. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7562. or octal.
  7563. Symbolic umask is applied relative to file mode creation mask;
  7564. the permission op characters '+' clears the corresponding bit in the mask,
  7565. '-' sets bits in the mask.
  7566. Octal umask, the specified bits are set in the file mode creation mask.
  7567. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7568. </doc>
  7569. </method>
  7570. <method name="setUMask"
  7571. abstract="false" native="false" synchronized="false"
  7572. static="true" final="false" visibility="public"
  7573. deprecated="not deprecated">
  7574. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7575. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7576. <doc>
  7577. <![CDATA[Set the user file creation mask (umask)]]>
  7578. </doc>
  7579. </method>
  7580. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7581. abstract="false" native="false" synchronized="false"
  7582. static="true" final="false" visibility="public"
  7583. deprecated="not deprecated">
  7584. <doc>
  7585. <![CDATA[Get the default permission.]]>
  7586. </doc>
  7587. </method>
  7588. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7589. abstract="false" native="false" synchronized="false"
  7590. static="true" final="false" visibility="public"
  7591. deprecated="not deprecated">
  7592. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7593. <doc>
  7594. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7595. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7596. </doc>
  7597. </method>
  7598. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7599. transient="false" volatile="false"
  7600. static="true" final="true" visibility="public"
  7601. deprecated="not deprecated">
  7602. <doc>
  7603. <![CDATA[umask property label]]>
  7604. </doc>
  7605. </field>
  7606. <field name="UMASK_LABEL" type="java.lang.String"
  7607. transient="false" volatile="false"
  7608. static="true" final="true" visibility="public"
  7609. deprecated="not deprecated">
  7610. </field>
  7611. <field name="DEFAULT_UMASK" type="int"
  7612. transient="false" volatile="false"
  7613. static="true" final="true" visibility="public"
  7614. deprecated="not deprecated">
  7615. </field>
  7616. <doc>
  7617. <![CDATA[A class for file/directory permissions.]]>
  7618. </doc>
  7619. </class>
  7620. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7621. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7622. <class name="PermissionStatus" extends="java.lang.Object"
  7623. abstract="false"
  7624. static="false" final="false" visibility="public"
  7625. deprecated="not deprecated">
  7626. <implements name="org.apache.hadoop.io.Writable"/>
  7627. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7628. static="false" final="false" visibility="public"
  7629. deprecated="not deprecated">
  7630. <doc>
  7631. <![CDATA[Constructor]]>
  7632. </doc>
  7633. </constructor>
  7634. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7635. abstract="false" native="false" synchronized="false"
  7636. static="true" final="false" visibility="public"
  7637. deprecated="not deprecated">
  7638. <param name="user" type="java.lang.String"/>
  7639. <param name="group" type="java.lang.String"/>
  7640. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7641. <doc>
  7642. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7643. </doc>
  7644. </method>
  7645. <method name="getUserName" return="java.lang.String"
  7646. abstract="false" native="false" synchronized="false"
  7647. static="false" final="false" visibility="public"
  7648. deprecated="not deprecated">
  7649. <doc>
  7650. <![CDATA[Return user name]]>
  7651. </doc>
  7652. </method>
  7653. <method name="getGroupName" return="java.lang.String"
  7654. abstract="false" native="false" synchronized="false"
  7655. static="false" final="false" visibility="public"
  7656. deprecated="not deprecated">
  7657. <doc>
  7658. <![CDATA[Return group name]]>
  7659. </doc>
  7660. </method>
  7661. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7662. abstract="false" native="false" synchronized="false"
  7663. static="false" final="false" visibility="public"
  7664. deprecated="not deprecated">
  7665. <doc>
  7666. <![CDATA[Return permission]]>
  7667. </doc>
  7668. </method>
  7669. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7670. abstract="false" native="false" synchronized="false"
  7671. static="false" final="false" visibility="public"
  7672. deprecated="not deprecated">
  7673. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7674. <doc>
  7675. <![CDATA[Apply umask.
  7676. @see FsPermission#applyUMask(FsPermission)]]>
  7677. </doc>
  7678. </method>
  7679. <method name="readFields"
  7680. abstract="false" native="false" synchronized="false"
  7681. static="false" final="false" visibility="public"
  7682. deprecated="not deprecated">
  7683. <param name="in" type="java.io.DataInput"/>
  7684. <exception name="IOException" type="java.io.IOException"/>
  7685. <doc>
  7686. <![CDATA[{@inheritDoc}]]>
  7687. </doc>
  7688. </method>
  7689. <method name="write"
  7690. abstract="false" native="false" synchronized="false"
  7691. static="false" final="false" visibility="public"
  7692. deprecated="not deprecated">
  7693. <param name="out" type="java.io.DataOutput"/>
  7694. <exception name="IOException" type="java.io.IOException"/>
  7695. <doc>
  7696. <![CDATA[{@inheritDoc}]]>
  7697. </doc>
  7698. </method>
  7699. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7700. abstract="false" native="false" synchronized="false"
  7701. static="true" final="false" visibility="public"
  7702. deprecated="not deprecated">
  7703. <param name="in" type="java.io.DataInput"/>
  7704. <exception name="IOException" type="java.io.IOException"/>
  7705. <doc>
  7706. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7707. </doc>
  7708. </method>
  7709. <method name="write"
  7710. abstract="false" native="false" synchronized="false"
  7711. static="true" final="false" visibility="public"
  7712. deprecated="not deprecated">
  7713. <param name="out" type="java.io.DataOutput"/>
  7714. <param name="username" type="java.lang.String"/>
  7715. <param name="groupname" type="java.lang.String"/>
  7716. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7717. <exception name="IOException" type="java.io.IOException"/>
  7718. <doc>
  7719. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7720. </doc>
  7721. </method>
  7722. <method name="toString" return="java.lang.String"
  7723. abstract="false" native="false" synchronized="false"
  7724. static="false" final="false" visibility="public"
  7725. deprecated="not deprecated">
  7726. <doc>
  7727. <![CDATA[{@inheritDoc}]]>
  7728. </doc>
  7729. </method>
  7730. <doc>
  7731. <![CDATA[Store permission related information.]]>
  7732. </doc>
  7733. </class>
  7734. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7735. </package>
  7736. <package name="org.apache.hadoop.fs.s3">
  7737. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7738. <class name="Block" extends="java.lang.Object"
  7739. abstract="false"
  7740. static="false" final="false" visibility="public"
  7741. deprecated="not deprecated">
  7742. <constructor name="Block" type="long, long"
  7743. static="false" final="false" visibility="public"
  7744. deprecated="not deprecated">
  7745. </constructor>
  7746. <method name="getId" return="long"
  7747. abstract="false" native="false" synchronized="false"
  7748. static="false" final="false" visibility="public"
  7749. deprecated="not deprecated">
  7750. </method>
  7751. <method name="getLength" return="long"
  7752. abstract="false" native="false" synchronized="false"
  7753. static="false" final="false" visibility="public"
  7754. deprecated="not deprecated">
  7755. </method>
  7756. <method name="toString" return="java.lang.String"
  7757. abstract="false" native="false" synchronized="false"
  7758. static="false" final="false" visibility="public"
  7759. deprecated="not deprecated">
  7760. </method>
  7761. <doc>
  7762. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7763. </doc>
  7764. </class>
  7765. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7766. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7767. <interface name="FileSystemStore" abstract="true"
  7768. static="false" final="false" visibility="public"
  7769. deprecated="not deprecated">
  7770. <method name="initialize"
  7771. abstract="false" native="false" synchronized="false"
  7772. static="false" final="false" visibility="public"
  7773. deprecated="not deprecated">
  7774. <param name="uri" type="java.net.URI"/>
  7775. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7776. <exception name="IOException" type="java.io.IOException"/>
  7777. </method>
  7778. <method name="getVersion" return="java.lang.String"
  7779. abstract="false" native="false" synchronized="false"
  7780. static="false" final="false" visibility="public"
  7781. deprecated="not deprecated">
  7782. <exception name="IOException" type="java.io.IOException"/>
  7783. </method>
  7784. <method name="storeINode"
  7785. abstract="false" native="false" synchronized="false"
  7786. static="false" final="false" visibility="public"
  7787. deprecated="not deprecated">
  7788. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7789. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7790. <exception name="IOException" type="java.io.IOException"/>
  7791. </method>
  7792. <method name="storeBlock"
  7793. abstract="false" native="false" synchronized="false"
  7794. static="false" final="false" visibility="public"
  7795. deprecated="not deprecated">
  7796. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7797. <param name="file" type="java.io.File"/>
  7798. <exception name="IOException" type="java.io.IOException"/>
  7799. </method>
  7800. <method name="inodeExists" return="boolean"
  7801. abstract="false" native="false" synchronized="false"
  7802. static="false" final="false" visibility="public"
  7803. deprecated="not deprecated">
  7804. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7805. <exception name="IOException" type="java.io.IOException"/>
  7806. </method>
  7807. <method name="blockExists" return="boolean"
  7808. abstract="false" native="false" synchronized="false"
  7809. static="false" final="false" visibility="public"
  7810. deprecated="not deprecated">
  7811. <param name="blockId" type="long"/>
  7812. <exception name="IOException" type="java.io.IOException"/>
  7813. </method>
  7814. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7815. abstract="false" native="false" synchronized="false"
  7816. static="false" final="false" visibility="public"
  7817. deprecated="not deprecated">
  7818. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7819. <exception name="IOException" type="java.io.IOException"/>
  7820. </method>
  7821. <method name="retrieveBlock" return="java.io.File"
  7822. abstract="false" native="false" synchronized="false"
  7823. static="false" final="false" visibility="public"
  7824. deprecated="not deprecated">
  7825. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7826. <param name="byteRangeStart" type="long"/>
  7827. <exception name="IOException" type="java.io.IOException"/>
  7828. </method>
  7829. <method name="deleteINode"
  7830. abstract="false" native="false" synchronized="false"
  7831. static="false" final="false" visibility="public"
  7832. deprecated="not deprecated">
  7833. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7834. <exception name="IOException" type="java.io.IOException"/>
  7835. </method>
  7836. <method name="deleteBlock"
  7837. abstract="false" native="false" synchronized="false"
  7838. static="false" final="false" visibility="public"
  7839. deprecated="not deprecated">
  7840. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7841. <exception name="IOException" type="java.io.IOException"/>
  7842. </method>
  7843. <method name="listSubPaths" return="java.util.Set"
  7844. abstract="false" native="false" synchronized="false"
  7845. static="false" final="false" visibility="public"
  7846. deprecated="not deprecated">
  7847. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7848. <exception name="IOException" type="java.io.IOException"/>
  7849. </method>
  7850. <method name="listDeepSubPaths" return="java.util.Set"
  7851. abstract="false" native="false" synchronized="false"
  7852. static="false" final="false" visibility="public"
  7853. deprecated="not deprecated">
  7854. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7855. <exception name="IOException" type="java.io.IOException"/>
  7856. </method>
  7857. <method name="purge"
  7858. abstract="false" native="false" synchronized="false"
  7859. static="false" final="false" visibility="public"
  7860. deprecated="not deprecated">
  7861. <exception name="IOException" type="java.io.IOException"/>
  7862. <doc>
  7863. <![CDATA[Delete everything. Used for testing.
  7864. @throws IOException]]>
  7865. </doc>
  7866. </method>
  7867. <method name="dump"
  7868. abstract="false" native="false" synchronized="false"
  7869. static="false" final="false" visibility="public"
  7870. deprecated="not deprecated">
  7871. <exception name="IOException" type="java.io.IOException"/>
  7872. <doc>
  7873. <![CDATA[Diagnostic method to dump all INodes to the console.
  7874. @throws IOException]]>
  7875. </doc>
  7876. </method>
  7877. <doc>
  7878. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7879. </doc>
  7880. </interface>
  7881. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7882. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7883. <class name="INode" extends="java.lang.Object"
  7884. abstract="false"
  7885. static="false" final="false" visibility="public"
  7886. deprecated="not deprecated">
  7887. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7888. static="false" final="false" visibility="public"
  7889. deprecated="not deprecated">
  7890. </constructor>
  7891. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7892. abstract="false" native="false" synchronized="false"
  7893. static="false" final="false" visibility="public"
  7894. deprecated="not deprecated">
  7895. </method>
  7896. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  7897. abstract="false" native="false" synchronized="false"
  7898. static="false" final="false" visibility="public"
  7899. deprecated="not deprecated">
  7900. </method>
  7901. <method name="isDirectory" return="boolean"
  7902. abstract="false" native="false" synchronized="false"
  7903. static="false" final="false" visibility="public"
  7904. deprecated="not deprecated">
  7905. </method>
  7906. <method name="isFile" return="boolean"
  7907. abstract="false" native="false" synchronized="false"
  7908. static="false" final="false" visibility="public"
  7909. deprecated="not deprecated">
  7910. </method>
  7911. <method name="getSerializedLength" return="long"
  7912. abstract="false" native="false" synchronized="false"
  7913. static="false" final="false" visibility="public"
  7914. deprecated="not deprecated">
  7915. </method>
  7916. <method name="serialize" return="java.io.InputStream"
  7917. abstract="false" native="false" synchronized="false"
  7918. static="false" final="false" visibility="public"
  7919. deprecated="not deprecated">
  7920. <exception name="IOException" type="java.io.IOException"/>
  7921. </method>
  7922. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  7923. abstract="false" native="false" synchronized="false"
  7924. static="true" final="false" visibility="public"
  7925. deprecated="not deprecated">
  7926. <param name="in" type="java.io.InputStream"/>
  7927. <exception name="IOException" type="java.io.IOException"/>
  7928. </method>
  7929. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  7930. transient="false" volatile="false"
  7931. static="true" final="true" visibility="public"
  7932. deprecated="not deprecated">
  7933. </field>
  7934. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  7935. transient="false" volatile="false"
  7936. static="true" final="true" visibility="public"
  7937. deprecated="not deprecated">
  7938. </field>
  7939. <doc>
  7940. <![CDATA[Holds file metadata including type (regular file, or directory),
  7941. and the list of blocks that are pointers to the data.]]>
  7942. </doc>
  7943. </class>
  7944. <!-- end class org.apache.hadoop.fs.s3.INode -->
  7945. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  7946. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  7947. abstract="false"
  7948. static="false" final="false" visibility="public"
  7949. deprecated="not deprecated">
  7950. <implements name="org.apache.hadoop.util.Tool"/>
  7951. <constructor name="MigrationTool"
  7952. static="false" final="false" visibility="public"
  7953. deprecated="not deprecated">
  7954. </constructor>
  7955. <method name="main"
  7956. abstract="false" native="false" synchronized="false"
  7957. static="true" final="false" visibility="public"
  7958. deprecated="not deprecated">
  7959. <param name="args" type="java.lang.String[]"/>
  7960. <exception name="Exception" type="java.lang.Exception"/>
  7961. </method>
  7962. <method name="run" return="int"
  7963. abstract="false" native="false" synchronized="false"
  7964. static="false" final="false" visibility="public"
  7965. deprecated="not deprecated">
  7966. <param name="args" type="java.lang.String[]"/>
  7967. <exception name="Exception" type="java.lang.Exception"/>
  7968. </method>
  7969. <method name="initialize"
  7970. abstract="false" native="false" synchronized="false"
  7971. static="false" final="false" visibility="public"
  7972. deprecated="not deprecated">
  7973. <param name="uri" type="java.net.URI"/>
  7974. <exception name="IOException" type="java.io.IOException"/>
  7975. </method>
  7976. <doc>
  7977. <![CDATA[<p>
  7978. This class is a tool for migrating data from an older to a newer version
  7979. of an S3 filesystem.
  7980. </p>
  7981. <p>
  7982. All files in the filesystem are migrated by re-writing the block metadata
  7983. - no datafiles are touched.
  7984. </p>]]>
  7985. </doc>
  7986. </class>
  7987. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  7988. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  7989. <class name="S3Credentials" extends="java.lang.Object"
  7990. abstract="false"
  7991. static="false" final="false" visibility="public"
  7992. deprecated="not deprecated">
  7993. <constructor name="S3Credentials"
  7994. static="false" final="false" visibility="public"
  7995. deprecated="not deprecated">
  7996. </constructor>
  7997. <method name="initialize"
  7998. abstract="false" native="false" synchronized="false"
  7999. static="false" final="false" visibility="public"
  8000. deprecated="not deprecated">
  8001. <param name="uri" type="java.net.URI"/>
  8002. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8003. <doc>
  8004. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  8005. determined.]]>
  8006. </doc>
  8007. </method>
  8008. <method name="getAccessKey" return="java.lang.String"
  8009. abstract="false" native="false" synchronized="false"
  8010. static="false" final="false" visibility="public"
  8011. deprecated="not deprecated">
  8012. </method>
  8013. <method name="getSecretAccessKey" return="java.lang.String"
  8014. abstract="false" native="false" synchronized="false"
  8015. static="false" final="false" visibility="public"
  8016. deprecated="not deprecated">
  8017. </method>
  8018. <doc>
  8019. <![CDATA[<p>
  8020. Extracts AWS credentials from the filesystem URI or configuration.
  8021. </p>]]>
  8022. </doc>
  8023. </class>
  8024. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  8025. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8026. <class name="S3Exception" extends="java.lang.RuntimeException"
  8027. abstract="false"
  8028. static="false" final="false" visibility="public"
  8029. deprecated="not deprecated">
  8030. <constructor name="S3Exception" type="java.lang.Throwable"
  8031. static="false" final="false" visibility="public"
  8032. deprecated="not deprecated">
  8033. </constructor>
  8034. <doc>
  8035. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8036. </doc>
  8037. </class>
  8038. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8039. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8040. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8041. abstract="false"
  8042. static="false" final="false" visibility="public"
  8043. deprecated="not deprecated">
  8044. <constructor name="S3FileSystem"
  8045. static="false" final="false" visibility="public"
  8046. deprecated="not deprecated">
  8047. </constructor>
  8048. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8049. static="false" final="false" visibility="public"
  8050. deprecated="not deprecated">
  8051. </constructor>
  8052. <method name="getUri" return="java.net.URI"
  8053. abstract="false" native="false" synchronized="false"
  8054. static="false" final="false" visibility="public"
  8055. deprecated="not deprecated">
  8056. </method>
  8057. <method name="initialize"
  8058. abstract="false" native="false" synchronized="false"
  8059. static="false" final="false" visibility="public"
  8060. deprecated="not deprecated">
  8061. <param name="uri" type="java.net.URI"/>
  8062. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8063. <exception name="IOException" type="java.io.IOException"/>
  8064. </method>
  8065. <method name="getName" return="java.lang.String"
  8066. abstract="false" native="false" synchronized="false"
  8067. static="false" final="false" visibility="public"
  8068. deprecated="not deprecated">
  8069. </method>
  8070. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8071. abstract="false" native="false" synchronized="false"
  8072. static="false" final="false" visibility="public"
  8073. deprecated="not deprecated">
  8074. </method>
  8075. <method name="setWorkingDirectory"
  8076. abstract="false" native="false" synchronized="false"
  8077. static="false" final="false" visibility="public"
  8078. deprecated="not deprecated">
  8079. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8080. </method>
  8081. <method name="mkdirs" return="boolean"
  8082. abstract="false" native="false" synchronized="false"
  8083. static="false" final="false" visibility="public"
  8084. deprecated="not deprecated">
  8085. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8086. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8087. <exception name="IOException" type="java.io.IOException"/>
  8088. <doc>
  8089. <![CDATA[@param permission Currently ignored.]]>
  8090. </doc>
  8091. </method>
  8092. <method name="isFile" return="boolean"
  8093. abstract="false" native="false" synchronized="false"
  8094. static="false" final="false" visibility="public"
  8095. deprecated="not deprecated">
  8096. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8097. <exception name="IOException" type="java.io.IOException"/>
  8098. </method>
  8099. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8100. abstract="false" native="false" synchronized="false"
  8101. static="false" final="false" visibility="public"
  8102. deprecated="not deprecated">
  8103. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8104. <exception name="IOException" type="java.io.IOException"/>
  8105. </method>
  8106. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8107. abstract="false" native="false" synchronized="false"
  8108. static="false" final="false" visibility="public"
  8109. deprecated="not deprecated">
  8110. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8111. <param name="bufferSize" type="int"/>
  8112. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8113. <exception name="IOException" type="java.io.IOException"/>
  8114. <doc>
  8115. <![CDATA[This optional operation is not yet supported.]]>
  8116. </doc>
  8117. </method>
  8118. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8119. abstract="false" native="false" synchronized="false"
  8120. static="false" final="false" visibility="public"
  8121. deprecated="not deprecated">
  8122. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8123. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8124. <param name="overwrite" type="boolean"/>
  8125. <param name="bufferSize" type="int"/>
  8126. <param name="replication" type="short"/>
  8127. <param name="blockSize" type="long"/>
  8128. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8129. <exception name="IOException" type="java.io.IOException"/>
  8130. <doc>
  8131. <![CDATA[@param permission Currently ignored.]]>
  8132. </doc>
  8133. </method>
  8134. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8135. abstract="false" native="false" synchronized="false"
  8136. static="false" final="false" visibility="public"
  8137. deprecated="not deprecated">
  8138. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8139. <param name="bufferSize" type="int"/>
  8140. <exception name="IOException" type="java.io.IOException"/>
  8141. </method>
  8142. <method name="rename" return="boolean"
  8143. abstract="false" native="false" synchronized="false"
  8144. static="false" final="false" visibility="public"
  8145. deprecated="not deprecated">
  8146. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8147. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8148. <exception name="IOException" type="java.io.IOException"/>
  8149. </method>
  8150. <method name="delete" return="boolean"
  8151. abstract="false" native="false" synchronized="false"
  8152. static="false" final="false" visibility="public"
  8153. deprecated="not deprecated">
  8154. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8155. <param name="recursive" type="boolean"/>
  8156. <exception name="IOException" type="java.io.IOException"/>
  8157. </method>
  8158. <method name="delete" return="boolean"
  8159. abstract="false" native="false" synchronized="false"
  8160. static="false" final="false" visibility="public"
  8161. deprecated="not deprecated">
  8162. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8163. <exception name="IOException" type="java.io.IOException"/>
  8164. </method>
  8165. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8166. abstract="false" native="false" synchronized="false"
  8167. static="false" final="false" visibility="public"
  8168. deprecated="not deprecated">
  8169. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8170. <exception name="IOException" type="java.io.IOException"/>
  8171. <doc>
  8172. <![CDATA[FileStatus for S3 file systems.]]>
  8173. </doc>
  8174. </method>
  8175. <doc>
  8176. <![CDATA[<p>
  8177. A block-based {@link FileSystem} backed by
  8178. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8179. </p>
  8180. @see NativeS3FileSystem]]>
  8181. </doc>
  8182. </class>
  8183. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8184. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8185. <class name="S3FileSystemException" extends="java.io.IOException"
  8186. abstract="false"
  8187. static="false" final="false" visibility="public"
  8188. deprecated="not deprecated">
  8189. <constructor name="S3FileSystemException" type="java.lang.String"
  8190. static="false" final="false" visibility="public"
  8191. deprecated="not deprecated">
  8192. </constructor>
  8193. <doc>
  8194. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8195. </doc>
  8196. </class>
  8197. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8198. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8199. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8200. abstract="false"
  8201. static="false" final="false" visibility="public"
  8202. deprecated="not deprecated">
  8203. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8204. static="false" final="false" visibility="public"
  8205. deprecated="not deprecated">
  8206. </constructor>
  8207. <doc>
  8208. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8209. in {@link S3FileSystem}.]]>
  8210. </doc>
  8211. </class>
  8212. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8213. </package>
  8214. <package name="org.apache.hadoop.fs.s3native">
  8215. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8216. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8217. abstract="false"
  8218. static="false" final="false" visibility="public"
  8219. deprecated="not deprecated">
  8220. <constructor name="NativeS3FileSystem"
  8221. static="false" final="false" visibility="public"
  8222. deprecated="not deprecated">
  8223. </constructor>
  8224. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8225. static="false" final="false" visibility="public"
  8226. deprecated="not deprecated">
  8227. </constructor>
  8228. <method name="initialize"
  8229. abstract="false" native="false" synchronized="false"
  8230. static="false" final="false" visibility="public"
  8231. deprecated="not deprecated">
  8232. <param name="uri" type="java.net.URI"/>
  8233. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8234. <exception name="IOException" type="java.io.IOException"/>
  8235. </method>
  8236. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8237. abstract="false" native="false" synchronized="false"
  8238. static="false" final="false" visibility="public"
  8239. deprecated="not deprecated">
  8240. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8241. <param name="bufferSize" type="int"/>
  8242. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8243. <exception name="IOException" type="java.io.IOException"/>
  8244. <doc>
  8245. <![CDATA[This optional operation is not yet supported.]]>
  8246. </doc>
  8247. </method>
  8248. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8249. abstract="false" native="false" synchronized="false"
  8250. static="false" final="false" visibility="public"
  8251. deprecated="not deprecated">
  8252. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8253. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8254. <param name="overwrite" type="boolean"/>
  8255. <param name="bufferSize" type="int"/>
  8256. <param name="replication" type="short"/>
  8257. <param name="blockSize" type="long"/>
  8258. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8259. <exception name="IOException" type="java.io.IOException"/>
  8260. </method>
  8261. <method name="delete" return="boolean"
  8262. abstract="false" native="false" synchronized="false"
  8263. static="false" final="false" visibility="public"
  8264. deprecated="not deprecated">
  8265. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8266. <exception name="IOException" type="java.io.IOException"/>
  8267. </method>
  8268. <method name="delete" return="boolean"
  8269. abstract="false" native="false" synchronized="false"
  8270. static="false" final="false" visibility="public"
  8271. deprecated="not deprecated">
  8272. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8273. <param name="recursive" type="boolean"/>
  8274. <exception name="IOException" type="java.io.IOException"/>
  8275. </method>
  8276. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8277. abstract="false" native="false" synchronized="false"
  8278. static="false" final="false" visibility="public"
  8279. deprecated="not deprecated">
  8280. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8281. <exception name="IOException" type="java.io.IOException"/>
  8282. </method>
  8283. <method name="getUri" return="java.net.URI"
  8284. abstract="false" native="false" synchronized="false"
  8285. static="false" final="false" visibility="public"
  8286. deprecated="not deprecated">
  8287. </method>
  8288. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8289. abstract="false" native="false" synchronized="false"
  8290. static="false" final="false" visibility="public"
  8291. deprecated="not deprecated">
  8292. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8293. <exception name="IOException" type="java.io.IOException"/>
  8294. <doc>
  8295. <![CDATA[<p>
  8296. If <code>f</code> is a file, this method will make a single call to S3.
  8297. If <code>f</code> is a directory, this method will make a maximum of
  8298. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8299. files and directories contained directly in <code>f</code>.
  8300. </p>]]>
  8301. </doc>
  8302. </method>
  8303. <method name="mkdirs" return="boolean"
  8304. abstract="false" native="false" synchronized="false"
  8305. static="false" final="false" visibility="public"
  8306. deprecated="not deprecated">
  8307. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8308. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8309. <exception name="IOException" type="java.io.IOException"/>
  8310. </method>
  8311. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8312. abstract="false" native="false" synchronized="false"
  8313. static="false" final="false" visibility="public"
  8314. deprecated="not deprecated">
  8315. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8316. <param name="bufferSize" type="int"/>
  8317. <exception name="IOException" type="java.io.IOException"/>
  8318. </method>
  8319. <method name="rename" return="boolean"
  8320. abstract="false" native="false" synchronized="false"
  8321. static="false" final="false" visibility="public"
  8322. deprecated="not deprecated">
  8323. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8324. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8325. <exception name="IOException" type="java.io.IOException"/>
  8326. </method>
  8327. <method name="setWorkingDirectory"
  8328. abstract="false" native="false" synchronized="false"
  8329. static="false" final="false" visibility="public"
  8330. deprecated="not deprecated">
  8331. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8332. <doc>
  8333. <![CDATA[Set the working directory to the given directory.]]>
  8334. </doc>
  8335. </method>
  8336. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8337. abstract="false" native="false" synchronized="false"
  8338. static="false" final="false" visibility="public"
  8339. deprecated="not deprecated">
  8340. </method>
  8341. <field name="LOG" type="org.apache.commons.logging.Log"
  8342. transient="false" volatile="false"
  8343. static="true" final="true" visibility="public"
  8344. deprecated="not deprecated">
  8345. </field>
  8346. <doc>
  8347. <![CDATA[<p>
  8348. A {@link FileSystem} for reading and writing files stored on
  8349. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8350. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8351. stores files on S3 in their
  8352. native form so they can be read by other S3 tools.
  8353. </p>
  8354. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8355. </doc>
  8356. </class>
  8357. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8358. </package>
  8359. <package name="org.apache.hadoop.fs.shell">
  8360. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8361. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8362. abstract="true"
  8363. static="false" final="false" visibility="public"
  8364. deprecated="not deprecated">
  8365. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8366. static="false" final="false" visibility="protected"
  8367. deprecated="not deprecated">
  8368. <doc>
  8369. <![CDATA[Constructor]]>
  8370. </doc>
  8371. </constructor>
  8372. <method name="getCommandName" return="java.lang.String"
  8373. abstract="true" native="false" synchronized="false"
  8374. static="false" final="false" visibility="public"
  8375. deprecated="not deprecated">
  8376. <doc>
  8377. <![CDATA[Return the command's name excluding the leading character -]]>
  8378. </doc>
  8379. </method>
  8380. <method name="run"
  8381. abstract="true" native="false" synchronized="false"
  8382. static="false" final="false" visibility="protected"
  8383. deprecated="not deprecated">
  8384. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8385. <exception name="IOException" type="java.io.IOException"/>
  8386. <doc>
  8387. <![CDATA[Execute the command on the input path
  8388. @param path the input path
  8389. @throws IOException if any error occurs]]>
  8390. </doc>
  8391. </method>
  8392. <method name="runAll" return="int"
  8393. abstract="false" native="false" synchronized="false"
  8394. static="false" final="false" visibility="public"
  8395. deprecated="not deprecated">
  8396. <doc>
  8397. <![CDATA[For each source path, execute the command
  8398. @return 0 if it runs successfully; -1 if it fails]]>
  8399. </doc>
  8400. </method>
  8401. <field name="args" type="java.lang.String[]"
  8402. transient="false" volatile="false"
  8403. static="false" final="false" visibility="protected"
  8404. deprecated="not deprecated">
  8405. </field>
  8406. <doc>
  8407. <![CDATA[An abstract class for the execution of a file system command]]>
  8408. </doc>
  8409. </class>
  8410. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8411. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8412. <class name="CommandFormat" extends="java.lang.Object"
  8413. abstract="false"
  8414. static="false" final="false" visibility="public"
  8415. deprecated="not deprecated">
  8416. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8417. static="false" final="false" visibility="public"
  8418. deprecated="not deprecated">
  8419. <doc>
  8420. <![CDATA[constructor]]>
  8421. </doc>
  8422. </constructor>
  8423. <method name="parse" return="java.util.List"
  8424. abstract="false" native="false" synchronized="false"
  8425. static="false" final="false" visibility="public"
  8426. deprecated="not deprecated">
  8427. <param name="args" type="java.lang.String[]"/>
  8428. <param name="pos" type="int"/>
  8429. <doc>
  8430. <![CDATA[Parse parameters starting from the given position
  8431. @param args an array of input arguments
  8432. @param pos the position at which starts to parse
  8433. @return a list of parameters]]>
  8434. </doc>
  8435. </method>
  8436. <method name="getOpt" return="boolean"
  8437. abstract="false" native="false" synchronized="false"
  8438. static="false" final="false" visibility="public"
  8439. deprecated="not deprecated">
  8440. <param name="option" type="java.lang.String"/>
  8441. <doc>
  8442. <![CDATA[Return if the option is set or not
  8443. @param option String representation of an option
  8444. @return true is the option is set; false otherwise]]>
  8445. </doc>
  8446. </method>
  8447. <doc>
  8448. <![CDATA[Parse the args of a command and check the format of args.]]>
  8449. </doc>
  8450. </class>
  8451. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8452. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8453. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8454. abstract="false"
  8455. static="false" final="false" visibility="public"
  8456. deprecated="not deprecated">
  8457. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8458. static="false" final="false" visibility="public"
  8459. deprecated="not deprecated">
  8460. <doc>
  8461. <![CDATA[Constructor
  8462. @param cmd the count command
  8463. @param pos the starting index of the arguments]]>
  8464. </doc>
  8465. </constructor>
  8466. <method name="matches" return="boolean"
  8467. abstract="false" native="false" synchronized="false"
  8468. static="true" final="false" visibility="public"
  8469. deprecated="not deprecated">
  8470. <param name="cmd" type="java.lang.String"/>
  8471. <doc>
  8472. <![CDATA[Check if a command is the count command
  8473. @param cmd A string representation of a command starting with "-"
  8474. @return true if this is a count command; false otherwise]]>
  8475. </doc>
  8476. </method>
  8477. <method name="getCommandName" return="java.lang.String"
  8478. abstract="false" native="false" synchronized="false"
  8479. static="false" final="false" visibility="public"
  8480. deprecated="not deprecated">
  8481. </method>
  8482. <method name="run"
  8483. abstract="false" native="false" synchronized="false"
  8484. static="false" final="false" visibility="protected"
  8485. deprecated="not deprecated">
  8486. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8487. <exception name="IOException" type="java.io.IOException"/>
  8488. </method>
  8489. <field name="NAME" type="java.lang.String"
  8490. transient="false" volatile="false"
  8491. static="true" final="true" visibility="public"
  8492. deprecated="not deprecated">
  8493. </field>
  8494. <field name="USAGE" type="java.lang.String"
  8495. transient="false" volatile="false"
  8496. static="true" final="true" visibility="public"
  8497. deprecated="not deprecated">
  8498. </field>
  8499. <field name="DESCRIPTION" type="java.lang.String"
  8500. transient="false" volatile="false"
  8501. static="true" final="true" visibility="public"
  8502. deprecated="not deprecated">
  8503. </field>
  8504. <doc>
  8505. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8506. </doc>
  8507. </class>
  8508. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8509. </package>
  8510. <package name="org.apache.hadoop.http">
  8511. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8512. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8513. abstract="false"
  8514. static="false" final="false" visibility="public"
  8515. deprecated="not deprecated">
  8516. <constructor name="AdminAuthorizedServlet"
  8517. static="false" final="false" visibility="public"
  8518. deprecated="not deprecated">
  8519. </constructor>
  8520. <method name="doGet"
  8521. abstract="false" native="false" synchronized="false"
  8522. static="false" final="false" visibility="protected"
  8523. deprecated="not deprecated">
  8524. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8525. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8526. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8527. <exception name="IOException" type="java.io.IOException"/>
  8528. </method>
  8529. <doc>
  8530. <![CDATA[General servlet which is admin-authorized.]]>
  8531. </doc>
  8532. </class>
  8533. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8534. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8535. <interface name="FilterContainer" abstract="true"
  8536. static="false" final="false" visibility="public"
  8537. deprecated="not deprecated">
  8538. <method name="addFilter"
  8539. abstract="false" native="false" synchronized="false"
  8540. static="false" final="false" visibility="public"
  8541. deprecated="not deprecated">
  8542. <param name="name" type="java.lang.String"/>
  8543. <param name="classname" type="java.lang.String"/>
  8544. <param name="parameters" type="java.util.Map"/>
  8545. <doc>
  8546. <![CDATA[Add a filter to the container.
  8547. @param name Filter name
  8548. @param classname Filter class name
  8549. @param parameters a map from parameter names to initial values]]>
  8550. </doc>
  8551. </method>
  8552. <method name="addGlobalFilter"
  8553. abstract="false" native="false" synchronized="false"
  8554. static="false" final="false" visibility="public"
  8555. deprecated="not deprecated">
  8556. <param name="name" type="java.lang.String"/>
  8557. <param name="classname" type="java.lang.String"/>
  8558. <param name="parameters" type="java.util.Map"/>
  8559. <doc>
  8560. <![CDATA[Add a global filter to the container.
  8561. @param name filter name
  8562. @param classname filter class name
  8563. @param parameters a map from parameter names to initial values]]>
  8564. </doc>
  8565. </method>
  8566. <doc>
  8567. <![CDATA[A container class for javax.servlet.Filter.]]>
  8568. </doc>
  8569. </interface>
  8570. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8571. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8572. <class name="FilterInitializer" extends="java.lang.Object"
  8573. abstract="true"
  8574. static="false" final="false" visibility="public"
  8575. deprecated="not deprecated">
  8576. <constructor name="FilterInitializer"
  8577. static="false" final="false" visibility="public"
  8578. deprecated="not deprecated">
  8579. </constructor>
  8580. <method name="initFilter"
  8581. abstract="true" native="false" synchronized="false"
  8582. static="false" final="false" visibility="public"
  8583. deprecated="not deprecated">
  8584. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8586. <doc>
  8587. <![CDATA[Initialize a Filter to a FilterContainer.
  8588. @param container The filter container
  8589. @param conf Configuration for run-time parameters]]>
  8590. </doc>
  8591. </method>
  8592. <doc>
  8593. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8594. </doc>
  8595. </class>
  8596. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8597. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8598. <class name="HtmlQuoting" extends="java.lang.Object"
  8599. abstract="false"
  8600. static="false" final="false" visibility="public"
  8601. deprecated="not deprecated">
  8602. <constructor name="HtmlQuoting"
  8603. static="false" final="false" visibility="public"
  8604. deprecated="not deprecated">
  8605. </constructor>
  8606. <method name="needsQuoting" return="boolean"
  8607. abstract="false" native="false" synchronized="false"
  8608. static="true" final="false" visibility="public"
  8609. deprecated="not deprecated">
  8610. <param name="data" type="byte[]"/>
  8611. <param name="off" type="int"/>
  8612. <param name="len" type="int"/>
  8613. <doc>
  8614. <![CDATA[Does the given string need to be quoted?
  8615. @param data the string to check
  8616. @param off the starting position
  8617. @param len the number of bytes to check
  8618. @return does the string contain any of the active html characters?]]>
  8619. </doc>
  8620. </method>
  8621. <method name="needsQuoting" return="boolean"
  8622. abstract="false" native="false" synchronized="false"
  8623. static="true" final="false" visibility="public"
  8624. deprecated="not deprecated">
  8625. <param name="str" type="java.lang.String"/>
  8626. <doc>
  8627. <![CDATA[Does the given string need to be quoted?
  8628. @param str the string to check
  8629. @return does the string contain any of the active html characters?]]>
  8630. </doc>
  8631. </method>
  8632. <method name="quoteHtmlChars"
  8633. abstract="false" native="false" synchronized="false"
  8634. static="true" final="false" visibility="public"
  8635. deprecated="not deprecated">
  8636. <param name="output" type="java.io.OutputStream"/>
  8637. <param name="buffer" type="byte[]"/>
  8638. <param name="off" type="int"/>
  8639. <param name="len" type="int"/>
  8640. <exception name="IOException" type="java.io.IOException"/>
  8641. <doc>
  8642. <![CDATA[Quote all of the active HTML characters in the given string as they
  8643. are added to the buffer.
  8644. @param output the stream to write the output to
  8645. @param buffer the byte array to take the characters from
  8646. @param off the index of the first byte to quote
  8647. @param len the number of bytes to quote]]>
  8648. </doc>
  8649. </method>
  8650. <method name="quoteHtmlChars" return="java.lang.String"
  8651. abstract="false" native="false" synchronized="false"
  8652. static="true" final="false" visibility="public"
  8653. deprecated="not deprecated">
  8654. <param name="item" type="java.lang.String"/>
  8655. <doc>
  8656. <![CDATA[Quote the given item to make it html-safe.
  8657. @param item the string to quote
  8658. @return the quoted string]]>
  8659. </doc>
  8660. </method>
  8661. <method name="quoteOutputStream" return="java.io.OutputStream"
  8662. abstract="false" native="false" synchronized="false"
  8663. static="true" final="false" visibility="public"
  8664. deprecated="not deprecated">
  8665. <param name="out" type="java.io.OutputStream"/>
  8666. <exception name="IOException" type="java.io.IOException"/>
  8667. <doc>
  8668. <![CDATA[Return an output stream that quotes all of the output.
  8669. @param out the stream to write the quoted output to
  8670. @return a new stream that the application show write to
  8671. @throws IOException if the underlying output fails]]>
  8672. </doc>
  8673. </method>
  8674. <method name="unquoteHtmlChars" return="java.lang.String"
  8675. abstract="false" native="false" synchronized="false"
  8676. static="true" final="false" visibility="public"
  8677. deprecated="not deprecated">
  8678. <param name="item" type="java.lang.String"/>
  8679. <doc>
  8680. <![CDATA[Remove HTML quoting from a string.
  8681. @param item the string to unquote
  8682. @return the unquoted string]]>
  8683. </doc>
  8684. </method>
  8685. <method name="main"
  8686. abstract="false" native="false" synchronized="false"
  8687. static="true" final="false" visibility="public"
  8688. deprecated="not deprecated">
  8689. <param name="args" type="java.lang.String[]"/>
  8690. <exception name="Exception" type="java.lang.Exception"/>
  8691. </method>
  8692. <doc>
  8693. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8694. </doc>
  8695. </class>
  8696. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8697. <!-- start class org.apache.hadoop.http.HttpServer -->
  8698. <class name="HttpServer" extends="java.lang.Object"
  8699. abstract="false"
  8700. static="false" final="false" visibility="public"
  8701. deprecated="not deprecated">
  8702. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8703. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8704. static="false" final="false" visibility="public"
  8705. deprecated="not deprecated">
  8706. <exception name="IOException" type="java.io.IOException"/>
  8707. <doc>
  8708. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8709. </doc>
  8710. </constructor>
  8711. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8712. static="false" final="false" visibility="public"
  8713. deprecated="not deprecated">
  8714. <exception name="IOException" type="java.io.IOException"/>
  8715. </constructor>
  8716. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8717. static="false" final="false" visibility="public"
  8718. deprecated="not deprecated">
  8719. <exception name="IOException" type="java.io.IOException"/>
  8720. </constructor>
  8721. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  8722. static="false" final="false" visibility="public"
  8723. deprecated="not deprecated">
  8724. <exception name="IOException" type="java.io.IOException"/>
  8725. <doc>
  8726. <![CDATA[Create a status server on the given port.
  8727. The jsp scripts are taken from src/webapps/<name>.
  8728. @param name The name of the server
  8729. @param port The port to use on the server
  8730. @param findPort whether the server should start at the given port and
  8731. increment by 1 until it finds a free port.
  8732. @param conf Configuration
  8733. @param adminsAcl {@link AccessControlList} of the admins]]>
  8734. </doc>
  8735. </constructor>
  8736. <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"
  8737. static="false" final="false" visibility="public"
  8738. deprecated="not deprecated">
  8739. <exception name="IOException" type="java.io.IOException"/>
  8740. </constructor>
  8741. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  8742. abstract="false" native="false" synchronized="false"
  8743. static="false" final="false" visibility="public"
  8744. deprecated="not deprecated">
  8745. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8746. <exception name="IOException" type="java.io.IOException"/>
  8747. <doc>
  8748. <![CDATA[Create a required listener for the Jetty instance listening on the port
  8749. provided. This wrapper and all subclasses must create at least one
  8750. listener.]]>
  8751. </doc>
  8752. </method>
  8753. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  8754. abstract="false" native="false" synchronized="false"
  8755. static="true" final="false" visibility="public"
  8756. deprecated="not deprecated">
  8757. </method>
  8758. <method name="addDefaultApps"
  8759. abstract="false" native="false" synchronized="false"
  8760. static="false" final="false" visibility="protected"
  8761. deprecated="not deprecated">
  8762. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  8763. <param name="appDir" type="java.lang.String"/>
  8764. <exception name="IOException" type="java.io.IOException"/>
  8765. <doc>
  8766. <![CDATA[Add default apps.
  8767. @param appDir The application directory
  8768. @throws IOException]]>
  8769. </doc>
  8770. </method>
  8771. <method name="addDefaultServlets"
  8772. abstract="false" native="false" synchronized="false"
  8773. static="false" final="false" visibility="protected"
  8774. deprecated="not deprecated">
  8775. <doc>
  8776. <![CDATA[Add default servlets.]]>
  8777. </doc>
  8778. </method>
  8779. <method name="addContext"
  8780. abstract="false" native="false" synchronized="false"
  8781. static="false" final="false" visibility="public"
  8782. deprecated="not deprecated">
  8783. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  8784. <param name="isFiltered" type="boolean"/>
  8785. <exception name="IOException" type="java.io.IOException"/>
  8786. </method>
  8787. <method name="addContext"
  8788. abstract="false" native="false" synchronized="false"
  8789. static="false" final="false" visibility="protected"
  8790. deprecated="not deprecated">
  8791. <param name="pathSpec" type="java.lang.String"/>
  8792. <param name="dir" type="java.lang.String"/>
  8793. <param name="isFiltered" type="boolean"/>
  8794. <exception name="IOException" type="java.io.IOException"/>
  8795. <doc>
  8796. <![CDATA[Add a context
  8797. @param pathSpec The path spec for the context
  8798. @param dir The directory containing the context
  8799. @param isFiltered if true, the servlet is added to the filter path mapping
  8800. @throws IOException]]>
  8801. </doc>
  8802. </method>
  8803. <method name="setAttribute"
  8804. abstract="false" native="false" synchronized="false"
  8805. static="false" final="false" visibility="public"
  8806. deprecated="not deprecated">
  8807. <param name="name" type="java.lang.String"/>
  8808. <param name="value" type="java.lang.Object"/>
  8809. <doc>
  8810. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8811. pages as "application.getAttribute(name)".
  8812. @param name The name of the attribute
  8813. @param value The value of the attribute]]>
  8814. </doc>
  8815. </method>
  8816. <method name="setAttribute"
  8817. abstract="false" native="false" synchronized="false"
  8818. static="false" final="false" visibility="public"
  8819. deprecated="not deprecated">
  8820. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  8821. <param name="name" type="java.lang.String"/>
  8822. <param name="value" type="java.lang.Object"/>
  8823. <doc>
  8824. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  8825. pages as "application.getAttribute(name)".
  8826. @param context Context to add attribute
  8827. @param name The name of the attribute
  8828. @param value The value of the attribute]]>
  8829. </doc>
  8830. </method>
  8831. <method name="addJerseyResourcePackage"
  8832. abstract="false" native="false" synchronized="false"
  8833. static="false" final="false" visibility="public"
  8834. deprecated="not deprecated">
  8835. <param name="packageName" type="java.lang.String"/>
  8836. <param name="pathSpec" type="java.lang.String"/>
  8837. <doc>
  8838. <![CDATA[Add a Jersey resource package.
  8839. @param packageName The Java package name containing the Jersey resource.
  8840. @param pathSpec The path spec for the servlet]]>
  8841. </doc>
  8842. </method>
  8843. <method name="addServlet"
  8844. abstract="false" native="false" synchronized="false"
  8845. static="false" final="false" visibility="public"
  8846. deprecated="not deprecated">
  8847. <param name="name" type="java.lang.String"/>
  8848. <param name="pathSpec" type="java.lang.String"/>
  8849. <param name="clazz" type="java.lang.Class"/>
  8850. <doc>
  8851. <![CDATA[Add a servlet in the server.
  8852. @param name The name of the servlet (can be passed as null)
  8853. @param pathSpec The path spec for the servlet
  8854. @param clazz The servlet class]]>
  8855. </doc>
  8856. </method>
  8857. <method name="addInternalServlet"
  8858. abstract="false" native="false" synchronized="false"
  8859. static="false" final="false" visibility="public"
  8860. deprecated="this is a temporary method">
  8861. <param name="name" type="java.lang.String"/>
  8862. <param name="pathSpec" type="java.lang.String"/>
  8863. <param name="clazz" type="java.lang.Class"/>
  8864. <doc>
  8865. <![CDATA[Add an internal servlet in the server.
  8866. @param name The name of the servlet (can be passed as null)
  8867. @param pathSpec The path spec for the servlet
  8868. @param clazz The servlet class
  8869. @deprecated this is a temporary method]]>
  8870. </doc>
  8871. </method>
  8872. <method name="addInternalServlet"
  8873. abstract="false" native="false" synchronized="false"
  8874. static="false" final="false" visibility="public"
  8875. deprecated="not deprecated">
  8876. <param name="name" type="java.lang.String"/>
  8877. <param name="pathSpec" type="java.lang.String"/>
  8878. <param name="clazz" type="java.lang.Class"/>
  8879. <param name="requireAuth" type="boolean"/>
  8880. <doc>
  8881. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  8882. protect with Kerberos authentication.
  8883. Note: This method is to be used for adding servlets that facilitate
  8884. internal communication and not for user facing functionality. For
  8885. servlets added using this method, filters (except internal Kerberized
  8886. filters) are not enabled.
  8887. @param name The name of the servlet (can be passed as null)
  8888. @param pathSpec The path spec for the servlet
  8889. @param clazz The servlet class]]>
  8890. </doc>
  8891. </method>
  8892. <method name="addFilter"
  8893. abstract="false" native="false" synchronized="false"
  8894. static="false" final="false" visibility="public"
  8895. deprecated="not deprecated">
  8896. <param name="name" type="java.lang.String"/>
  8897. <param name="classname" type="java.lang.String"/>
  8898. <param name="parameters" type="java.util.Map"/>
  8899. <doc>
  8900. <![CDATA[{@inheritDoc}]]>
  8901. </doc>
  8902. </method>
  8903. <method name="addGlobalFilter"
  8904. abstract="false" native="false" synchronized="false"
  8905. static="false" final="false" visibility="public"
  8906. deprecated="not deprecated">
  8907. <param name="name" type="java.lang.String"/>
  8908. <param name="classname" type="java.lang.String"/>
  8909. <param name="parameters" type="java.util.Map"/>
  8910. <doc>
  8911. <![CDATA[{@inheritDoc}]]>
  8912. </doc>
  8913. </method>
  8914. <method name="defineFilter"
  8915. abstract="false" native="false" synchronized="false"
  8916. static="false" final="false" visibility="protected"
  8917. deprecated="not deprecated">
  8918. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  8919. <param name="name" type="java.lang.String"/>
  8920. <param name="classname" type="java.lang.String"/>
  8921. <param name="parameters" type="java.util.Map"/>
  8922. <param name="urls" type="java.lang.String[]"/>
  8923. <doc>
  8924. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  8925. </doc>
  8926. </method>
  8927. <method name="addFilterPathMapping"
  8928. abstract="false" native="false" synchronized="false"
  8929. static="false" final="false" visibility="protected"
  8930. deprecated="not deprecated">
  8931. <param name="pathSpec" type="java.lang.String"/>
  8932. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  8933. <doc>
  8934. <![CDATA[Add the path spec to the filter path mapping.
  8935. @param pathSpec The path spec
  8936. @param webAppCtx The WebApplicationContext to add to]]>
  8937. </doc>
  8938. </method>
  8939. <method name="getAttribute" return="java.lang.Object"
  8940. abstract="false" native="false" synchronized="false"
  8941. static="false" final="false" visibility="public"
  8942. deprecated="not deprecated">
  8943. <param name="name" type="java.lang.String"/>
  8944. <doc>
  8945. <![CDATA[Get the value in the webapp context.
  8946. @param name The name of the attribute
  8947. @return The value of the attribute]]>
  8948. </doc>
  8949. </method>
  8950. <method name="getWebAppsPath" return="java.lang.String"
  8951. abstract="false" native="false" synchronized="false"
  8952. static="false" final="false" visibility="protected"
  8953. deprecated="not deprecated">
  8954. <exception name="IOException" type="java.io.IOException"/>
  8955. <doc>
  8956. <![CDATA[Get the pathname to the webapps files.
  8957. @return the pathname as a URL
  8958. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  8959. </doc>
  8960. </method>
  8961. <method name="getPort" return="int"
  8962. abstract="false" native="false" synchronized="false"
  8963. static="false" final="false" visibility="public"
  8964. deprecated="not deprecated">
  8965. <doc>
  8966. <![CDATA[Get the port that the server is on
  8967. @return the port]]>
  8968. </doc>
  8969. </method>
  8970. <method name="setThreads"
  8971. abstract="false" native="false" synchronized="false"
  8972. static="false" final="false" visibility="public"
  8973. deprecated="not deprecated">
  8974. <param name="min" type="int"/>
  8975. <param name="max" type="int"/>
  8976. <doc>
  8977. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  8978. </doc>
  8979. </method>
  8980. <method name="addSslListener"
  8981. abstract="false" native="false" synchronized="false"
  8982. static="false" final="false" visibility="public"
  8983. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  8984. <param name="addr" type="java.net.InetSocketAddress"/>
  8985. <param name="keystore" type="java.lang.String"/>
  8986. <param name="storPass" type="java.lang.String"/>
  8987. <param name="keyPass" type="java.lang.String"/>
  8988. <exception name="IOException" type="java.io.IOException"/>
  8989. <doc>
  8990. <![CDATA[Configure an ssl listener on the server.
  8991. @param addr address to listen on
  8992. @param keystore location of the keystore
  8993. @param storPass password for the keystore
  8994. @param keyPass password for the key
  8995. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  8996. </doc>
  8997. </method>
  8998. <method name="addSslListener"
  8999. abstract="false" native="false" synchronized="false"
  9000. static="false" final="false" visibility="public"
  9001. deprecated="not deprecated">
  9002. <param name="addr" type="java.net.InetSocketAddress"/>
  9003. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9004. <param name="needClientAuth" type="boolean"/>
  9005. <exception name="IOException" type="java.io.IOException"/>
  9006. <doc>
  9007. <![CDATA[Configure an ssl listener on the server.
  9008. @param addr address to listen on
  9009. @param sslConf conf to retrieve ssl options
  9010. @param needClientAuth whether client authentication is required]]>
  9011. </doc>
  9012. </method>
  9013. <method name="addSslListener"
  9014. abstract="false" native="false" synchronized="false"
  9015. static="false" final="false" visibility="public"
  9016. deprecated="not deprecated">
  9017. <param name="addr" type="java.net.InetSocketAddress"/>
  9018. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9019. <param name="needCertsAuth" type="boolean"/>
  9020. <param name="needKrbAuth" type="boolean"/>
  9021. <exception name="IOException" type="java.io.IOException"/>
  9022. <doc>
  9023. <![CDATA[Configure an ssl listener on the server.
  9024. @param addr address to listen on
  9025. @param sslConf conf to retrieve ssl options
  9026. @param needCertsAuth whether x509 certificate authentication is required
  9027. @param needKrbAuth whether to allow kerberos auth]]>
  9028. </doc>
  9029. </method>
  9030. <method name="start"
  9031. abstract="false" native="false" synchronized="false"
  9032. static="false" final="false" visibility="public"
  9033. deprecated="not deprecated">
  9034. <exception name="IOException" type="java.io.IOException"/>
  9035. <doc>
  9036. <![CDATA[Start the server. Does not wait for the server to start.]]>
  9037. </doc>
  9038. </method>
  9039. <method name="stop"
  9040. abstract="false" native="false" synchronized="false"
  9041. static="false" final="false" visibility="public"
  9042. deprecated="not deprecated">
  9043. <exception name="Exception" type="java.lang.Exception"/>
  9044. <doc>
  9045. <![CDATA[stop the server]]>
  9046. </doc>
  9047. </method>
  9048. <method name="join"
  9049. abstract="false" native="false" synchronized="false"
  9050. static="false" final="false" visibility="public"
  9051. deprecated="not deprecated">
  9052. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9053. </method>
  9054. <method name="hasAdministratorAccess" return="boolean"
  9055. abstract="false" native="false" synchronized="false"
  9056. static="true" final="false" visibility="public"
  9057. deprecated="not deprecated">
  9058. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9059. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9060. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9061. <exception name="IOException" type="java.io.IOException"/>
  9062. <doc>
  9063. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  9064. it isn't the case, response will be modified to send an error to the user.
  9065. @param servletContext
  9066. @param request
  9067. @param response
  9068. @return true if admin-authorized, false otherwise
  9069. @throws IOException]]>
  9070. </doc>
  9071. </method>
  9072. <field name="LOG" type="org.apache.commons.logging.Log"
  9073. transient="false" volatile="false"
  9074. static="true" final="true" visibility="public"
  9075. deprecated="not deprecated">
  9076. </field>
  9077. <field name="webServer" type="org.mortbay.jetty.Server"
  9078. transient="false" volatile="false"
  9079. static="false" final="true" visibility="protected"
  9080. deprecated="not deprecated">
  9081. </field>
  9082. <field name="listener" type="org.mortbay.jetty.Connector"
  9083. transient="false" volatile="false"
  9084. static="false" final="true" visibility="protected"
  9085. deprecated="not deprecated">
  9086. </field>
  9087. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  9088. transient="false" volatile="false"
  9089. static="false" final="true" visibility="protected"
  9090. deprecated="not deprecated">
  9091. </field>
  9092. <field name="findPort" type="boolean"
  9093. transient="false" volatile="false"
  9094. static="false" final="true" visibility="protected"
  9095. deprecated="not deprecated">
  9096. </field>
  9097. <field name="defaultContexts" type="java.util.Map"
  9098. transient="false" volatile="false"
  9099. static="false" final="true" visibility="protected"
  9100. deprecated="not deprecated">
  9101. </field>
  9102. <field name="filterNames" type="java.util.List"
  9103. transient="false" volatile="false"
  9104. static="false" final="true" visibility="protected"
  9105. deprecated="not deprecated">
  9106. </field>
  9107. <doc>
  9108. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  9109. is to serve up status information for the server.
  9110. There are three contexts:
  9111. "/logs/" -> points to the log directory
  9112. "/static/" -> points to common static files (src/webapps/static)
  9113. "/" -> the jsp server code from (src/webapps/<name>)]]>
  9114. </doc>
  9115. </class>
  9116. <!-- end class org.apache.hadoop.http.HttpServer -->
  9117. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9118. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9119. abstract="false"
  9120. static="true" final="false" visibility="public"
  9121. deprecated="not deprecated">
  9122. <implements name="javax.servlet.Filter"/>
  9123. <constructor name="HttpServer.QuotingInputFilter"
  9124. static="false" final="false" visibility="public"
  9125. deprecated="not deprecated">
  9126. </constructor>
  9127. <method name="init"
  9128. abstract="false" native="false" synchronized="false"
  9129. static="false" final="false" visibility="public"
  9130. deprecated="not deprecated">
  9131. <param name="config" type="javax.servlet.FilterConfig"/>
  9132. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9133. </method>
  9134. <method name="destroy"
  9135. abstract="false" native="false" synchronized="false"
  9136. static="false" final="false" visibility="public"
  9137. deprecated="not deprecated">
  9138. </method>
  9139. <method name="doFilter"
  9140. abstract="false" native="false" synchronized="false"
  9141. static="false" final="false" visibility="public"
  9142. deprecated="not deprecated">
  9143. <param name="request" type="javax.servlet.ServletRequest"/>
  9144. <param name="response" type="javax.servlet.ServletResponse"/>
  9145. <param name="chain" type="javax.servlet.FilterChain"/>
  9146. <exception name="IOException" type="java.io.IOException"/>
  9147. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9148. </method>
  9149. <doc>
  9150. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9151. parameter names and values. The goal is to quote the characters to make
  9152. all of the servlets resistant to cross-site scripting attacks.]]>
  9153. </doc>
  9154. </class>
  9155. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9156. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9157. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9158. abstract="false"
  9159. static="true" final="false" visibility="public"
  9160. deprecated="not deprecated">
  9161. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9162. static="false" final="false" visibility="public"
  9163. deprecated="not deprecated">
  9164. </constructor>
  9165. <method name="getParameterNames" return="java.util.Enumeration"
  9166. abstract="false" native="false" synchronized="false"
  9167. static="false" final="false" visibility="public"
  9168. deprecated="not deprecated">
  9169. <doc>
  9170. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9171. </doc>
  9172. </method>
  9173. <method name="getParameter" return="java.lang.String"
  9174. abstract="false" native="false" synchronized="false"
  9175. static="false" final="false" visibility="public"
  9176. deprecated="not deprecated">
  9177. <param name="name" type="java.lang.String"/>
  9178. <doc>
  9179. <![CDATA[Unquote the name and quote the value.]]>
  9180. </doc>
  9181. </method>
  9182. <method name="getParameterValues" return="java.lang.String[]"
  9183. abstract="false" native="false" synchronized="false"
  9184. static="false" final="false" visibility="public"
  9185. deprecated="not deprecated">
  9186. <param name="name" type="java.lang.String"/>
  9187. </method>
  9188. <method name="getParameterMap" return="java.util.Map"
  9189. abstract="false" native="false" synchronized="false"
  9190. static="false" final="false" visibility="public"
  9191. deprecated="not deprecated">
  9192. </method>
  9193. <method name="getRequestURL" return="java.lang.StringBuffer"
  9194. abstract="false" native="false" synchronized="false"
  9195. static="false" final="false" visibility="public"
  9196. deprecated="not deprecated">
  9197. <doc>
  9198. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9199. can't inject attacks.]]>
  9200. </doc>
  9201. </method>
  9202. <method name="getServerName" return="java.lang.String"
  9203. abstract="false" native="false" synchronized="false"
  9204. static="false" final="false" visibility="public"
  9205. deprecated="not deprecated">
  9206. <doc>
  9207. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9208. can't inject attacks.]]>
  9209. </doc>
  9210. </method>
  9211. </class>
  9212. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9213. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9214. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9215. abstract="false"
  9216. static="true" final="false" visibility="public"
  9217. deprecated="not deprecated">
  9218. <constructor name="HttpServer.StackServlet"
  9219. static="false" final="false" visibility="public"
  9220. deprecated="not deprecated">
  9221. </constructor>
  9222. <method name="doGet"
  9223. abstract="false" native="false" synchronized="false"
  9224. static="false" final="false" visibility="public"
  9225. deprecated="not deprecated">
  9226. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9227. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9228. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9229. <exception name="IOException" type="java.io.IOException"/>
  9230. </method>
  9231. <doc>
  9232. <![CDATA[A very simple servlet to serve up a text representation of the current
  9233. stack traces. It both returns the stacks to the caller and logs them.
  9234. Currently the stack traces are done sequentially rather than exactly the
  9235. same data.]]>
  9236. </doc>
  9237. </class>
  9238. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9239. </package>
  9240. <package name="org.apache.hadoop.http.lib">
  9241. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9242. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9243. abstract="false"
  9244. static="false" final="false" visibility="public"
  9245. deprecated="not deprecated">
  9246. <constructor name="StaticUserWebFilter"
  9247. static="false" final="false" visibility="public"
  9248. deprecated="not deprecated">
  9249. </constructor>
  9250. <method name="initFilter"
  9251. abstract="false" native="false" synchronized="false"
  9252. static="false" final="false" visibility="public"
  9253. deprecated="not deprecated">
  9254. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9255. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9256. </method>
  9257. <doc>
  9258. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9259. so that the web UI is usable for a secure cluster without authentication.]]>
  9260. </doc>
  9261. </class>
  9262. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9263. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9264. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9265. abstract="false"
  9266. static="true" final="false" visibility="public"
  9267. deprecated="not deprecated">
  9268. <implements name="javax.servlet.Filter"/>
  9269. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9270. static="false" final="false" visibility="public"
  9271. deprecated="not deprecated">
  9272. </constructor>
  9273. <method name="destroy"
  9274. abstract="false" native="false" synchronized="false"
  9275. static="false" final="false" visibility="public"
  9276. deprecated="not deprecated">
  9277. </method>
  9278. <method name="doFilter"
  9279. abstract="false" native="false" synchronized="false"
  9280. static="false" final="false" visibility="public"
  9281. deprecated="not deprecated">
  9282. <param name="request" type="javax.servlet.ServletRequest"/>
  9283. <param name="response" type="javax.servlet.ServletResponse"/>
  9284. <param name="chain" type="javax.servlet.FilterChain"/>
  9285. <exception name="IOException" type="java.io.IOException"/>
  9286. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9287. </method>
  9288. <method name="init"
  9289. abstract="false" native="false" synchronized="false"
  9290. static="false" final="false" visibility="public"
  9291. deprecated="not deprecated">
  9292. <param name="conf" type="javax.servlet.FilterConfig"/>
  9293. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9294. </method>
  9295. </class>
  9296. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9297. </package>
  9298. <package name="org.apache.hadoop.io">
  9299. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9300. <class name="AbstractMapWritable" extends="java.lang.Object"
  9301. abstract="true"
  9302. static="false" final="false" visibility="public"
  9303. deprecated="not deprecated">
  9304. <implements name="org.apache.hadoop.io.Writable"/>
  9305. <implements name="org.apache.hadoop.conf.Configurable"/>
  9306. <constructor name="AbstractMapWritable"
  9307. static="false" final="false" visibility="protected"
  9308. deprecated="not deprecated">
  9309. <doc>
  9310. <![CDATA[constructor.]]>
  9311. </doc>
  9312. </constructor>
  9313. <method name="addToMap"
  9314. abstract="false" native="false" synchronized="true"
  9315. static="false" final="false" visibility="protected"
  9316. deprecated="not deprecated">
  9317. <param name="clazz" type="java.lang.Class"/>
  9318. <doc>
  9319. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9320. </doc>
  9321. </method>
  9322. <method name="getClass" return="java.lang.Class"
  9323. abstract="false" native="false" synchronized="false"
  9324. static="false" final="false" visibility="protected"
  9325. deprecated="not deprecated">
  9326. <param name="id" type="byte"/>
  9327. <doc>
  9328. <![CDATA[@return the Class class for the specified id]]>
  9329. </doc>
  9330. </method>
  9331. <method name="getId" return="byte"
  9332. abstract="false" native="false" synchronized="false"
  9333. static="false" final="false" visibility="protected"
  9334. deprecated="not deprecated">
  9335. <param name="clazz" type="java.lang.Class"/>
  9336. <doc>
  9337. <![CDATA[@return the id for the specified Class]]>
  9338. </doc>
  9339. </method>
  9340. <method name="copy"
  9341. abstract="false" native="false" synchronized="true"
  9342. static="false" final="false" visibility="protected"
  9343. deprecated="not deprecated">
  9344. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9345. <doc>
  9346. <![CDATA[Used by child copy constructors.]]>
  9347. </doc>
  9348. </method>
  9349. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9350. abstract="false" native="false" synchronized="false"
  9351. static="false" final="false" visibility="public"
  9352. deprecated="not deprecated">
  9353. <doc>
  9354. <![CDATA[@return the conf]]>
  9355. </doc>
  9356. </method>
  9357. <method name="setConf"
  9358. abstract="false" native="false" synchronized="false"
  9359. static="false" final="false" visibility="public"
  9360. deprecated="not deprecated">
  9361. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9362. <doc>
  9363. <![CDATA[@param conf the conf to set]]>
  9364. </doc>
  9365. </method>
  9366. <method name="write"
  9367. abstract="false" native="false" synchronized="false"
  9368. static="false" final="false" visibility="public"
  9369. deprecated="not deprecated">
  9370. <param name="out" type="java.io.DataOutput"/>
  9371. <exception name="IOException" type="java.io.IOException"/>
  9372. <doc>
  9373. <![CDATA[{@inheritDoc}]]>
  9374. </doc>
  9375. </method>
  9376. <method name="readFields"
  9377. abstract="false" native="false" synchronized="false"
  9378. static="false" final="false" visibility="public"
  9379. deprecated="not deprecated">
  9380. <param name="in" type="java.io.DataInput"/>
  9381. <exception name="IOException" type="java.io.IOException"/>
  9382. <doc>
  9383. <![CDATA[{@inheritDoc}]]>
  9384. </doc>
  9385. </method>
  9386. <doc>
  9387. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9388. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9389. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9390. maps travel with the class instead of being static.
  9391. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9392. in any specific map instance.]]>
  9393. </doc>
  9394. </class>
  9395. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9396. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9397. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9398. abstract="false"
  9399. static="false" final="false" visibility="public"
  9400. deprecated="not deprecated">
  9401. <constructor name="ArrayFile"
  9402. static="false" final="false" visibility="protected"
  9403. deprecated="not deprecated">
  9404. </constructor>
  9405. <doc>
  9406. <![CDATA[A dense file-based mapping from integers to values.]]>
  9407. </doc>
  9408. </class>
  9409. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9410. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9411. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9412. abstract="false"
  9413. static="true" final="false" visibility="public"
  9414. deprecated="not deprecated">
  9415. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9416. static="false" final="false" visibility="public"
  9417. deprecated="not deprecated">
  9418. <exception name="IOException" type="java.io.IOException"/>
  9419. <doc>
  9420. <![CDATA[Construct an array reader for the named file.]]>
  9421. </doc>
  9422. </constructor>
  9423. <method name="seek"
  9424. abstract="false" native="false" synchronized="true"
  9425. static="false" final="false" visibility="public"
  9426. deprecated="not deprecated">
  9427. <param name="n" type="long"/>
  9428. <exception name="IOException" type="java.io.IOException"/>
  9429. <doc>
  9430. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9431. </doc>
  9432. </method>
  9433. <method name="next" return="org.apache.hadoop.io.Writable"
  9434. abstract="false" native="false" synchronized="true"
  9435. static="false" final="false" visibility="public"
  9436. deprecated="not deprecated">
  9437. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9438. <exception name="IOException" type="java.io.IOException"/>
  9439. <doc>
  9440. <![CDATA[Read and return the next value in the file.]]>
  9441. </doc>
  9442. </method>
  9443. <method name="key" return="long"
  9444. abstract="false" native="false" synchronized="true"
  9445. static="false" final="false" visibility="public"
  9446. deprecated="not deprecated">
  9447. <exception name="IOException" type="java.io.IOException"/>
  9448. <doc>
  9449. <![CDATA[Returns the key associated with the most recent call to {@link
  9450. #seek(long)}, {@link #next(Writable)}, or {@link
  9451. #get(long,Writable)}.]]>
  9452. </doc>
  9453. </method>
  9454. <method name="get" return="org.apache.hadoop.io.Writable"
  9455. abstract="false" native="false" synchronized="true"
  9456. static="false" final="false" visibility="public"
  9457. deprecated="not deprecated">
  9458. <param name="n" type="long"/>
  9459. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9460. <exception name="IOException" type="java.io.IOException"/>
  9461. <doc>
  9462. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9463. </doc>
  9464. </method>
  9465. <doc>
  9466. <![CDATA[Provide access to an existing array file.]]>
  9467. </doc>
  9468. </class>
  9469. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9470. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9471. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9472. abstract="false"
  9473. static="true" final="false" visibility="public"
  9474. deprecated="not deprecated">
  9475. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9476. static="false" final="false" visibility="public"
  9477. deprecated="not deprecated">
  9478. <exception name="IOException" type="java.io.IOException"/>
  9479. <doc>
  9480. <![CDATA[Create the named file for values of the named class.]]>
  9481. </doc>
  9482. </constructor>
  9483. <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"
  9484. static="false" final="false" visibility="public"
  9485. deprecated="not deprecated">
  9486. <exception name="IOException" type="java.io.IOException"/>
  9487. <doc>
  9488. <![CDATA[Create the named file for values of the named class.]]>
  9489. </doc>
  9490. </constructor>
  9491. <method name="append"
  9492. abstract="false" native="false" synchronized="true"
  9493. static="false" final="false" visibility="public"
  9494. deprecated="not deprecated">
  9495. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9496. <exception name="IOException" type="java.io.IOException"/>
  9497. <doc>
  9498. <![CDATA[Append a value to the file.]]>
  9499. </doc>
  9500. </method>
  9501. <doc>
  9502. <![CDATA[Write a new array file.]]>
  9503. </doc>
  9504. </class>
  9505. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9506. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9507. <class name="ArrayWritable" extends="java.lang.Object"
  9508. abstract="false"
  9509. static="false" final="false" visibility="public"
  9510. deprecated="not deprecated">
  9511. <implements name="org.apache.hadoop.io.Writable"/>
  9512. <constructor name="ArrayWritable" type="java.lang.Class"
  9513. static="false" final="false" visibility="public"
  9514. deprecated="not deprecated">
  9515. </constructor>
  9516. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9517. static="false" final="false" visibility="public"
  9518. deprecated="not deprecated">
  9519. </constructor>
  9520. <constructor name="ArrayWritable" type="java.lang.String[]"
  9521. static="false" final="false" visibility="public"
  9522. deprecated="not deprecated">
  9523. </constructor>
  9524. <method name="getValueClass" return="java.lang.Class"
  9525. abstract="false" native="false" synchronized="false"
  9526. static="false" final="false" visibility="public"
  9527. deprecated="not deprecated">
  9528. </method>
  9529. <method name="toStrings" return="java.lang.String[]"
  9530. abstract="false" native="false" synchronized="false"
  9531. static="false" final="false" visibility="public"
  9532. deprecated="not deprecated">
  9533. </method>
  9534. <method name="toArray" return="java.lang.Object"
  9535. abstract="false" native="false" synchronized="false"
  9536. static="false" final="false" visibility="public"
  9537. deprecated="not deprecated">
  9538. </method>
  9539. <method name="set"
  9540. abstract="false" native="false" synchronized="false"
  9541. static="false" final="false" visibility="public"
  9542. deprecated="not deprecated">
  9543. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9544. </method>
  9545. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9546. abstract="false" native="false" synchronized="false"
  9547. static="false" final="false" visibility="public"
  9548. deprecated="not deprecated">
  9549. </method>
  9550. <method name="readFields"
  9551. abstract="false" native="false" synchronized="false"
  9552. static="false" final="false" visibility="public"
  9553. deprecated="not deprecated">
  9554. <param name="in" type="java.io.DataInput"/>
  9555. <exception name="IOException" type="java.io.IOException"/>
  9556. </method>
  9557. <method name="write"
  9558. abstract="false" native="false" synchronized="false"
  9559. static="false" final="false" visibility="public"
  9560. deprecated="not deprecated">
  9561. <param name="out" type="java.io.DataOutput"/>
  9562. <exception name="IOException" type="java.io.IOException"/>
  9563. </method>
  9564. <doc>
  9565. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9566. writable must all be instances of the same class. If this writable will be
  9567. the input for a Reducer, you will need to create a subclass that sets the
  9568. value to be of the proper type.
  9569. For example:
  9570. <code>
  9571. public class IntArrayWritable extends ArrayWritable {
  9572. public IntArrayWritable() {
  9573. super(IntWritable.class);
  9574. }
  9575. }
  9576. </code>]]>
  9577. </doc>
  9578. </class>
  9579. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9580. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9581. <class name="BinaryComparable" extends="java.lang.Object"
  9582. abstract="true"
  9583. static="false" final="false" visibility="public"
  9584. deprecated="not deprecated">
  9585. <implements name="java.lang.Comparable"/>
  9586. <constructor name="BinaryComparable"
  9587. static="false" final="false" visibility="public"
  9588. deprecated="not deprecated">
  9589. </constructor>
  9590. <method name="getLength" return="int"
  9591. abstract="true" native="false" synchronized="false"
  9592. static="false" final="false" visibility="public"
  9593. deprecated="not deprecated">
  9594. <doc>
  9595. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9596. </doc>
  9597. </method>
  9598. <method name="getBytes" return="byte[]"
  9599. abstract="true" native="false" synchronized="false"
  9600. static="false" final="false" visibility="public"
  9601. deprecated="not deprecated">
  9602. <doc>
  9603. <![CDATA[Return representative byte array for this instance.]]>
  9604. </doc>
  9605. </method>
  9606. <method name="compareTo" return="int"
  9607. abstract="false" native="false" synchronized="false"
  9608. static="false" final="false" visibility="public"
  9609. deprecated="not deprecated">
  9610. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9611. <doc>
  9612. <![CDATA[Compare bytes from {#getBytes()}.
  9613. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9614. </doc>
  9615. </method>
  9616. <method name="compareTo" return="int"
  9617. abstract="false" native="false" synchronized="false"
  9618. static="false" final="false" visibility="public"
  9619. deprecated="not deprecated">
  9620. <param name="other" type="byte[]"/>
  9621. <param name="off" type="int"/>
  9622. <param name="len" type="int"/>
  9623. <doc>
  9624. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9625. </doc>
  9626. </method>
  9627. <method name="equals" return="boolean"
  9628. abstract="false" native="false" synchronized="false"
  9629. static="false" final="false" visibility="public"
  9630. deprecated="not deprecated">
  9631. <param name="other" type="java.lang.Object"/>
  9632. <doc>
  9633. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9634. </doc>
  9635. </method>
  9636. <method name="hashCode" return="int"
  9637. abstract="false" native="false" synchronized="false"
  9638. static="false" final="false" visibility="public"
  9639. deprecated="not deprecated">
  9640. <doc>
  9641. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9642. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9643. </doc>
  9644. </method>
  9645. <doc>
  9646. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9647. types supporting ordering/permutation by a representative set of bytes.]]>
  9648. </doc>
  9649. </class>
  9650. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9651. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9652. <class name="BloomMapFile" extends="java.lang.Object"
  9653. abstract="false"
  9654. static="false" final="false" visibility="public"
  9655. deprecated="not deprecated">
  9656. <constructor name="BloomMapFile"
  9657. static="false" final="false" visibility="public"
  9658. deprecated="not deprecated">
  9659. </constructor>
  9660. <method name="delete"
  9661. abstract="false" native="false" synchronized="false"
  9662. static="true" final="false" visibility="public"
  9663. deprecated="not deprecated">
  9664. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9665. <param name="name" type="java.lang.String"/>
  9666. <exception name="IOException" type="java.io.IOException"/>
  9667. </method>
  9668. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9669. transient="false" volatile="false"
  9670. static="true" final="true" visibility="public"
  9671. deprecated="not deprecated">
  9672. </field>
  9673. <field name="HASH_COUNT" type="int"
  9674. transient="false" volatile="false"
  9675. static="true" final="true" visibility="public"
  9676. deprecated="not deprecated">
  9677. </field>
  9678. <doc>
  9679. <![CDATA[This class extends {@link MapFile} and provides very much the same
  9680. functionality. However, it uses dynamic Bloom filters to provide
  9681. quick membership test for keys, and it offers a fast version of
  9682. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  9683. case of sparsely populated MapFile-s.]]>
  9684. </doc>
  9685. </class>
  9686. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  9687. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  9688. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9689. abstract="false"
  9690. static="true" final="false" visibility="public"
  9691. deprecated="not deprecated">
  9692. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9693. static="false" final="false" visibility="public"
  9694. deprecated="not deprecated">
  9695. <exception name="IOException" type="java.io.IOException"/>
  9696. </constructor>
  9697. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9698. static="false" final="false" visibility="public"
  9699. deprecated="not deprecated">
  9700. <exception name="IOException" type="java.io.IOException"/>
  9701. </constructor>
  9702. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9703. static="false" final="false" visibility="public"
  9704. deprecated="not deprecated">
  9705. <exception name="IOException" type="java.io.IOException"/>
  9706. </constructor>
  9707. <method name="probablyHasKey" return="boolean"
  9708. abstract="false" native="false" synchronized="false"
  9709. static="false" final="false" visibility="public"
  9710. deprecated="not deprecated">
  9711. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9712. <exception name="IOException" type="java.io.IOException"/>
  9713. <doc>
  9714. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  9715. performed using a Bloom filter, so the result has always non-zero
  9716. probability of false positives.
  9717. @param key key to check
  9718. @return false iff key doesn't exist, true if key probably exists.
  9719. @throws IOException]]>
  9720. </doc>
  9721. </method>
  9722. <method name="get" return="org.apache.hadoop.io.Writable"
  9723. abstract="false" native="false" synchronized="true"
  9724. static="false" final="false" visibility="public"
  9725. deprecated="not deprecated">
  9726. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9727. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9728. <exception name="IOException" type="java.io.IOException"/>
  9729. <doc>
  9730. <![CDATA[Fast version of the
  9731. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  9732. it checks the Bloom filter for the existence of the key, and only if
  9733. present it performs the real get operation. This yields significant
  9734. performance improvements for get operations on sparsely populated files.]]>
  9735. </doc>
  9736. </method>
  9737. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  9738. abstract="false" native="false" synchronized="false"
  9739. static="false" final="false" visibility="public"
  9740. deprecated="not deprecated">
  9741. <doc>
  9742. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  9743. @return a Bloom filter (see {@link Filter})]]>
  9744. </doc>
  9745. </method>
  9746. </class>
  9747. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  9748. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  9749. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9750. abstract="false"
  9751. static="true" final="false" visibility="public"
  9752. deprecated="not deprecated">
  9753. <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"
  9754. static="false" final="false" visibility="public"
  9755. deprecated="not deprecated">
  9756. <exception name="IOException" type="java.io.IOException"/>
  9757. </constructor>
  9758. <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"
  9759. static="false" final="false" visibility="public"
  9760. deprecated="not deprecated">
  9761. <exception name="IOException" type="java.io.IOException"/>
  9762. </constructor>
  9763. <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"
  9764. static="false" final="false" visibility="public"
  9765. deprecated="not deprecated">
  9766. <exception name="IOException" type="java.io.IOException"/>
  9767. </constructor>
  9768. <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"
  9769. static="false" final="false" visibility="public"
  9770. deprecated="not deprecated">
  9771. <exception name="IOException" type="java.io.IOException"/>
  9772. </constructor>
  9773. <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"
  9774. static="false" final="false" visibility="public"
  9775. deprecated="not deprecated">
  9776. <exception name="IOException" type="java.io.IOException"/>
  9777. </constructor>
  9778. <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"
  9779. static="false" final="false" visibility="public"
  9780. deprecated="not deprecated">
  9781. <exception name="IOException" type="java.io.IOException"/>
  9782. </constructor>
  9783. <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"
  9784. static="false" final="false" visibility="public"
  9785. deprecated="not deprecated">
  9786. <exception name="IOException" type="java.io.IOException"/>
  9787. </constructor>
  9788. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9789. static="false" final="false" visibility="public"
  9790. deprecated="not deprecated">
  9791. <exception name="IOException" type="java.io.IOException"/>
  9792. </constructor>
  9793. <method name="append"
  9794. abstract="false" native="false" synchronized="true"
  9795. static="false" final="false" visibility="public"
  9796. deprecated="not deprecated">
  9797. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9798. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9799. <exception name="IOException" type="java.io.IOException"/>
  9800. </method>
  9801. <method name="close"
  9802. abstract="false" native="false" synchronized="true"
  9803. static="false" final="false" visibility="public"
  9804. deprecated="not deprecated">
  9805. <exception name="IOException" type="java.io.IOException"/>
  9806. </method>
  9807. </class>
  9808. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  9809. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  9810. <class name="BooleanWritable" extends="java.lang.Object"
  9811. abstract="false"
  9812. static="false" final="false" visibility="public"
  9813. deprecated="not deprecated">
  9814. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9815. <constructor name="BooleanWritable"
  9816. static="false" final="false" visibility="public"
  9817. deprecated="not deprecated">
  9818. </constructor>
  9819. <constructor name="BooleanWritable" type="boolean"
  9820. static="false" final="false" visibility="public"
  9821. deprecated="not deprecated">
  9822. </constructor>
  9823. <method name="set"
  9824. abstract="false" native="false" synchronized="false"
  9825. static="false" final="false" visibility="public"
  9826. deprecated="not deprecated">
  9827. <param name="value" type="boolean"/>
  9828. <doc>
  9829. <![CDATA[Set the value of the BooleanWritable]]>
  9830. </doc>
  9831. </method>
  9832. <method name="get" return="boolean"
  9833. abstract="false" native="false" synchronized="false"
  9834. static="false" final="false" visibility="public"
  9835. deprecated="not deprecated">
  9836. <doc>
  9837. <![CDATA[Returns the value of the BooleanWritable]]>
  9838. </doc>
  9839. </method>
  9840. <method name="readFields"
  9841. abstract="false" native="false" synchronized="false"
  9842. static="false" final="false" visibility="public"
  9843. deprecated="not deprecated">
  9844. <param name="in" type="java.io.DataInput"/>
  9845. <exception name="IOException" type="java.io.IOException"/>
  9846. </method>
  9847. <method name="write"
  9848. abstract="false" native="false" synchronized="false"
  9849. static="false" final="false" visibility="public"
  9850. deprecated="not deprecated">
  9851. <param name="out" type="java.io.DataOutput"/>
  9852. <exception name="IOException" type="java.io.IOException"/>
  9853. </method>
  9854. <method name="equals" return="boolean"
  9855. abstract="false" native="false" synchronized="false"
  9856. static="false" final="false" visibility="public"
  9857. deprecated="not deprecated">
  9858. <param name="o" type="java.lang.Object"/>
  9859. </method>
  9860. <method name="hashCode" return="int"
  9861. abstract="false" native="false" synchronized="false"
  9862. static="false" final="false" visibility="public"
  9863. deprecated="not deprecated">
  9864. </method>
  9865. <method name="compareTo" return="int"
  9866. abstract="false" native="false" synchronized="false"
  9867. static="false" final="false" visibility="public"
  9868. deprecated="not deprecated">
  9869. <param name="o" type="java.lang.Object"/>
  9870. </method>
  9871. <method name="toString" return="java.lang.String"
  9872. abstract="false" native="false" synchronized="false"
  9873. static="false" final="false" visibility="public"
  9874. deprecated="not deprecated">
  9875. </method>
  9876. <doc>
  9877. <![CDATA[A WritableComparable for booleans.]]>
  9878. </doc>
  9879. </class>
  9880. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  9881. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9882. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9883. abstract="false"
  9884. static="true" final="false" visibility="public"
  9885. deprecated="not deprecated">
  9886. <constructor name="BooleanWritable.Comparator"
  9887. static="false" final="false" visibility="public"
  9888. deprecated="not deprecated">
  9889. </constructor>
  9890. <method name="compare" return="int"
  9891. abstract="false" native="false" synchronized="false"
  9892. static="false" final="false" visibility="public"
  9893. deprecated="not deprecated">
  9894. <param name="b1" type="byte[]"/>
  9895. <param name="s1" type="int"/>
  9896. <param name="l1" type="int"/>
  9897. <param name="b2" type="byte[]"/>
  9898. <param name="s2" type="int"/>
  9899. <param name="l2" type="int"/>
  9900. </method>
  9901. <doc>
  9902. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  9903. </doc>
  9904. </class>
  9905. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  9906. <!-- start class org.apache.hadoop.io.BytesWritable -->
  9907. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  9908. abstract="false"
  9909. static="false" final="false" visibility="public"
  9910. deprecated="not deprecated">
  9911. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9912. <constructor name="BytesWritable"
  9913. static="false" final="false" visibility="public"
  9914. deprecated="not deprecated">
  9915. <doc>
  9916. <![CDATA[Create a zero-size sequence.]]>
  9917. </doc>
  9918. </constructor>
  9919. <constructor name="BytesWritable" type="byte[]"
  9920. static="false" final="false" visibility="public"
  9921. deprecated="not deprecated">
  9922. <doc>
  9923. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  9924. @param bytes This array becomes the backing storage for the object.]]>
  9925. </doc>
  9926. </constructor>
  9927. <method name="getBytes" return="byte[]"
  9928. abstract="false" native="false" synchronized="false"
  9929. static="false" final="false" visibility="public"
  9930. deprecated="not deprecated">
  9931. <doc>
  9932. <![CDATA[Get the data from the BytesWritable.
  9933. @return The data is only valid between 0 and getLength() - 1.]]>
  9934. </doc>
  9935. </method>
  9936. <method name="get" return="byte[]"
  9937. abstract="false" native="false" synchronized="false"
  9938. static="false" final="false" visibility="public"
  9939. deprecated="Use {@link #getBytes()} instead.">
  9940. <doc>
  9941. <![CDATA[Get the data from the BytesWritable.
  9942. @deprecated Use {@link #getBytes()} instead.]]>
  9943. </doc>
  9944. </method>
  9945. <method name="getLength" return="int"
  9946. abstract="false" native="false" synchronized="false"
  9947. static="false" final="false" visibility="public"
  9948. deprecated="not deprecated">
  9949. <doc>
  9950. <![CDATA[Get the current size of the buffer.]]>
  9951. </doc>
  9952. </method>
  9953. <method name="getSize" return="int"
  9954. abstract="false" native="false" synchronized="false"
  9955. static="false" final="false" visibility="public"
  9956. deprecated="Use {@link #getLength()} instead.">
  9957. <doc>
  9958. <![CDATA[Get the current size of the buffer.
  9959. @deprecated Use {@link #getLength()} instead.]]>
  9960. </doc>
  9961. </method>
  9962. <method name="setSize"
  9963. abstract="false" native="false" synchronized="false"
  9964. static="false" final="false" visibility="public"
  9965. deprecated="not deprecated">
  9966. <param name="size" type="int"/>
  9967. <doc>
  9968. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  9969. and any new values are undefined. The capacity is changed if it is
  9970. necessary.
  9971. @param size The new number of bytes]]>
  9972. </doc>
  9973. </method>
  9974. <method name="getCapacity" return="int"
  9975. abstract="false" native="false" synchronized="false"
  9976. static="false" final="false" visibility="public"
  9977. deprecated="not deprecated">
  9978. <doc>
  9979. <![CDATA[Get the capacity, which is the maximum size that could handled without
  9980. resizing the backing storage.
  9981. @return The number of bytes]]>
  9982. </doc>
  9983. </method>
  9984. <method name="setCapacity"
  9985. abstract="false" native="false" synchronized="false"
  9986. static="false" final="false" visibility="public"
  9987. deprecated="not deprecated">
  9988. <param name="new_cap" type="int"/>
  9989. <doc>
  9990. <![CDATA[Change the capacity of the backing storage.
  9991. The data is preserved.
  9992. @param new_cap The new capacity in bytes.]]>
  9993. </doc>
  9994. </method>
  9995. <method name="set"
  9996. abstract="false" native="false" synchronized="false"
  9997. static="false" final="false" visibility="public"
  9998. deprecated="not deprecated">
  9999. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10000. <doc>
  10001. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10002. @param newData the value to set this BytesWritable to.]]>
  10003. </doc>
  10004. </method>
  10005. <method name="set"
  10006. abstract="false" native="false" synchronized="false"
  10007. static="false" final="false" visibility="public"
  10008. deprecated="not deprecated">
  10009. <param name="newData" type="byte[]"/>
  10010. <param name="offset" type="int"/>
  10011. <param name="length" type="int"/>
  10012. <doc>
  10013. <![CDATA[Set the value to a copy of the given byte range
  10014. @param newData the new values to copy in
  10015. @param offset the offset in newData to start at
  10016. @param length the number of bytes to copy]]>
  10017. </doc>
  10018. </method>
  10019. <method name="readFields"
  10020. abstract="false" native="false" synchronized="false"
  10021. static="false" final="false" visibility="public"
  10022. deprecated="not deprecated">
  10023. <param name="in" type="java.io.DataInput"/>
  10024. <exception name="IOException" type="java.io.IOException"/>
  10025. </method>
  10026. <method name="write"
  10027. abstract="false" native="false" synchronized="false"
  10028. static="false" final="false" visibility="public"
  10029. deprecated="not deprecated">
  10030. <param name="out" type="java.io.DataOutput"/>
  10031. <exception name="IOException" type="java.io.IOException"/>
  10032. </method>
  10033. <method name="hashCode" return="int"
  10034. abstract="false" native="false" synchronized="false"
  10035. static="false" final="false" visibility="public"
  10036. deprecated="not deprecated">
  10037. </method>
  10038. <method name="equals" return="boolean"
  10039. abstract="false" native="false" synchronized="false"
  10040. static="false" final="false" visibility="public"
  10041. deprecated="not deprecated">
  10042. <param name="right_obj" type="java.lang.Object"/>
  10043. <doc>
  10044. <![CDATA[Are the two byte sequences equal?]]>
  10045. </doc>
  10046. </method>
  10047. <method name="toString" return="java.lang.String"
  10048. abstract="false" native="false" synchronized="false"
  10049. static="false" final="false" visibility="public"
  10050. deprecated="not deprecated">
  10051. <doc>
  10052. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10053. </doc>
  10054. </method>
  10055. <doc>
  10056. <![CDATA[A byte sequence that is usable as a key or value.
  10057. It is resizable and distinguishes between the size of the seqeunce and
  10058. the current capacity. The hash function is the front of the md5 of the
  10059. buffer. The sort order is the same as memcmp.]]>
  10060. </doc>
  10061. </class>
  10062. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10063. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10064. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10065. abstract="false"
  10066. static="true" final="false" visibility="public"
  10067. deprecated="not deprecated">
  10068. <constructor name="BytesWritable.Comparator"
  10069. static="false" final="false" visibility="public"
  10070. deprecated="not deprecated">
  10071. </constructor>
  10072. <method name="compare" return="int"
  10073. abstract="false" native="false" synchronized="false"
  10074. static="false" final="false" visibility="public"
  10075. deprecated="not deprecated">
  10076. <param name="b1" type="byte[]"/>
  10077. <param name="s1" type="int"/>
  10078. <param name="l1" type="int"/>
  10079. <param name="b2" type="byte[]"/>
  10080. <param name="s2" type="int"/>
  10081. <param name="l2" type="int"/>
  10082. <doc>
  10083. <![CDATA[Compare the buffers in serialized form.]]>
  10084. </doc>
  10085. </method>
  10086. <doc>
  10087. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10088. </doc>
  10089. </class>
  10090. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10091. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10092. <class name="ByteWritable" extends="java.lang.Object"
  10093. abstract="false"
  10094. static="false" final="false" visibility="public"
  10095. deprecated="not deprecated">
  10096. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10097. <constructor name="ByteWritable"
  10098. static="false" final="false" visibility="public"
  10099. deprecated="not deprecated">
  10100. </constructor>
  10101. <constructor name="ByteWritable" type="byte"
  10102. static="false" final="false" visibility="public"
  10103. deprecated="not deprecated">
  10104. </constructor>
  10105. <method name="set"
  10106. abstract="false" native="false" synchronized="false"
  10107. static="false" final="false" visibility="public"
  10108. deprecated="not deprecated">
  10109. <param name="value" type="byte"/>
  10110. <doc>
  10111. <![CDATA[Set the value of this ByteWritable.]]>
  10112. </doc>
  10113. </method>
  10114. <method name="get" return="byte"
  10115. abstract="false" native="false" synchronized="false"
  10116. static="false" final="false" visibility="public"
  10117. deprecated="not deprecated">
  10118. <doc>
  10119. <![CDATA[Return the value of this ByteWritable.]]>
  10120. </doc>
  10121. </method>
  10122. <method name="readFields"
  10123. abstract="false" native="false" synchronized="false"
  10124. static="false" final="false" visibility="public"
  10125. deprecated="not deprecated">
  10126. <param name="in" type="java.io.DataInput"/>
  10127. <exception name="IOException" type="java.io.IOException"/>
  10128. </method>
  10129. <method name="write"
  10130. abstract="false" native="false" synchronized="false"
  10131. static="false" final="false" visibility="public"
  10132. deprecated="not deprecated">
  10133. <param name="out" type="java.io.DataOutput"/>
  10134. <exception name="IOException" type="java.io.IOException"/>
  10135. </method>
  10136. <method name="equals" return="boolean"
  10137. abstract="false" native="false" synchronized="false"
  10138. static="false" final="false" visibility="public"
  10139. deprecated="not deprecated">
  10140. <param name="o" type="java.lang.Object"/>
  10141. <doc>
  10142. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10143. </doc>
  10144. </method>
  10145. <method name="hashCode" return="int"
  10146. abstract="false" native="false" synchronized="false"
  10147. static="false" final="false" visibility="public"
  10148. deprecated="not deprecated">
  10149. </method>
  10150. <method name="compareTo" return="int"
  10151. abstract="false" native="false" synchronized="false"
  10152. static="false" final="false" visibility="public"
  10153. deprecated="not deprecated">
  10154. <param name="o" type="java.lang.Object"/>
  10155. <doc>
  10156. <![CDATA[Compares two ByteWritables.]]>
  10157. </doc>
  10158. </method>
  10159. <method name="toString" return="java.lang.String"
  10160. abstract="false" native="false" synchronized="false"
  10161. static="false" final="false" visibility="public"
  10162. deprecated="not deprecated">
  10163. </method>
  10164. <doc>
  10165. <![CDATA[A WritableComparable for a single byte.]]>
  10166. </doc>
  10167. </class>
  10168. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10169. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10170. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10171. abstract="false"
  10172. static="true" final="false" visibility="public"
  10173. deprecated="not deprecated">
  10174. <constructor name="ByteWritable.Comparator"
  10175. static="false" final="false" visibility="public"
  10176. deprecated="not deprecated">
  10177. </constructor>
  10178. <method name="compare" return="int"
  10179. abstract="false" native="false" synchronized="false"
  10180. static="false" final="false" visibility="public"
  10181. deprecated="not deprecated">
  10182. <param name="b1" type="byte[]"/>
  10183. <param name="s1" type="int"/>
  10184. <param name="l1" type="int"/>
  10185. <param name="b2" type="byte[]"/>
  10186. <param name="s2" type="int"/>
  10187. <param name="l2" type="int"/>
  10188. </method>
  10189. <doc>
  10190. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10191. </doc>
  10192. </class>
  10193. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10194. <!-- start interface org.apache.hadoop.io.Closeable -->
  10195. <interface name="Closeable" abstract="true"
  10196. static="false" final="false" visibility="public"
  10197. deprecated="use java.io.Closeable">
  10198. <implements name="java.io.Closeable"/>
  10199. <doc>
  10200. <![CDATA[@deprecated use java.io.Closeable]]>
  10201. </doc>
  10202. </interface>
  10203. <!-- end interface org.apache.hadoop.io.Closeable -->
  10204. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10205. <class name="CompressedWritable" extends="java.lang.Object"
  10206. abstract="true"
  10207. static="false" final="false" visibility="public"
  10208. deprecated="not deprecated">
  10209. <implements name="org.apache.hadoop.io.Writable"/>
  10210. <constructor name="CompressedWritable"
  10211. static="false" final="false" visibility="public"
  10212. deprecated="not deprecated">
  10213. </constructor>
  10214. <method name="readFields"
  10215. abstract="false" native="false" synchronized="false"
  10216. static="false" final="true" visibility="public"
  10217. deprecated="not deprecated">
  10218. <param name="in" type="java.io.DataInput"/>
  10219. <exception name="IOException" type="java.io.IOException"/>
  10220. </method>
  10221. <method name="ensureInflated"
  10222. abstract="false" native="false" synchronized="false"
  10223. static="false" final="false" visibility="protected"
  10224. deprecated="not deprecated">
  10225. <doc>
  10226. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10227. has been uncompressed.]]>
  10228. </doc>
  10229. </method>
  10230. <method name="readFieldsCompressed"
  10231. abstract="true" native="false" synchronized="false"
  10232. static="false" final="false" visibility="protected"
  10233. deprecated="not deprecated">
  10234. <param name="in" type="java.io.DataInput"/>
  10235. <exception name="IOException" type="java.io.IOException"/>
  10236. <doc>
  10237. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10238. </doc>
  10239. </method>
  10240. <method name="write"
  10241. abstract="false" native="false" synchronized="false"
  10242. static="false" final="true" visibility="public"
  10243. deprecated="not deprecated">
  10244. <param name="out" type="java.io.DataOutput"/>
  10245. <exception name="IOException" type="java.io.IOException"/>
  10246. </method>
  10247. <method name="writeCompressed"
  10248. abstract="true" native="false" synchronized="false"
  10249. static="false" final="false" visibility="protected"
  10250. deprecated="not deprecated">
  10251. <param name="out" type="java.io.DataOutput"/>
  10252. <exception name="IOException" type="java.io.IOException"/>
  10253. <doc>
  10254. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10255. </doc>
  10256. </method>
  10257. <doc>
  10258. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10259. inflate on field access. This is useful for large objects whose fields are
  10260. not be altered during a map or reduce operation: leaving the field data
  10261. compressed makes copying the instance from one file to another much
  10262. faster.]]>
  10263. </doc>
  10264. </class>
  10265. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10266. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10267. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10268. abstract="false"
  10269. static="false" final="false" visibility="public"
  10270. deprecated="not deprecated">
  10271. <constructor name="DataInputBuffer"
  10272. static="false" final="false" visibility="public"
  10273. deprecated="not deprecated">
  10274. <doc>
  10275. <![CDATA[Constructs a new empty buffer.]]>
  10276. </doc>
  10277. </constructor>
  10278. <method name="reset"
  10279. abstract="false" native="false" synchronized="false"
  10280. static="false" final="false" visibility="public"
  10281. deprecated="not deprecated">
  10282. <param name="input" type="byte[]"/>
  10283. <param name="length" type="int"/>
  10284. <doc>
  10285. <![CDATA[Resets the data that the buffer reads.]]>
  10286. </doc>
  10287. </method>
  10288. <method name="reset"
  10289. abstract="false" native="false" synchronized="false"
  10290. static="false" final="false" visibility="public"
  10291. deprecated="not deprecated">
  10292. <param name="input" type="byte[]"/>
  10293. <param name="start" type="int"/>
  10294. <param name="length" type="int"/>
  10295. <doc>
  10296. <![CDATA[Resets the data that the buffer reads.]]>
  10297. </doc>
  10298. </method>
  10299. <method name="getData" return="byte[]"
  10300. abstract="false" native="false" synchronized="false"
  10301. static="false" final="false" visibility="public"
  10302. deprecated="not deprecated">
  10303. </method>
  10304. <method name="getPosition" return="int"
  10305. abstract="false" native="false" synchronized="false"
  10306. static="false" final="false" visibility="public"
  10307. deprecated="not deprecated">
  10308. <doc>
  10309. <![CDATA[Returns the current position in the input.]]>
  10310. </doc>
  10311. </method>
  10312. <method name="getLength" return="int"
  10313. abstract="false" native="false" synchronized="false"
  10314. static="false" final="false" visibility="public"
  10315. deprecated="not deprecated">
  10316. <doc>
  10317. <![CDATA[Returns the length of the input.]]>
  10318. </doc>
  10319. </method>
  10320. <doc>
  10321. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10322. buffer.
  10323. <p>This saves memory over creating a new DataInputStream and
  10324. ByteArrayInputStream each time data is read.
  10325. <p>Typical usage is something like the following:<pre>
  10326. DataInputBuffer buffer = new DataInputBuffer();
  10327. while (... loop condition ...) {
  10328. byte[] data = ... get data ...;
  10329. int dataLength = ... get data length ...;
  10330. buffer.reset(data, dataLength);
  10331. ... read buffer using DataInput methods ...
  10332. }
  10333. </pre>]]>
  10334. </doc>
  10335. </class>
  10336. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10337. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10338. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10339. abstract="false"
  10340. static="false" final="false" visibility="public"
  10341. deprecated="not deprecated">
  10342. <constructor name="DataOutputBuffer"
  10343. static="false" final="false" visibility="public"
  10344. deprecated="not deprecated">
  10345. <doc>
  10346. <![CDATA[Constructs a new empty buffer.]]>
  10347. </doc>
  10348. </constructor>
  10349. <constructor name="DataOutputBuffer" type="int"
  10350. static="false" final="false" visibility="public"
  10351. deprecated="not deprecated">
  10352. </constructor>
  10353. <method name="getData" return="byte[]"
  10354. abstract="false" native="false" synchronized="false"
  10355. static="false" final="false" visibility="public"
  10356. deprecated="not deprecated">
  10357. <doc>
  10358. <![CDATA[Returns the current contents of the buffer.
  10359. Data is only valid to {@link #getLength()}.]]>
  10360. </doc>
  10361. </method>
  10362. <method name="getLength" return="int"
  10363. abstract="false" native="false" synchronized="false"
  10364. static="false" final="false" visibility="public"
  10365. deprecated="not deprecated">
  10366. <doc>
  10367. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10368. </doc>
  10369. </method>
  10370. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10371. abstract="false" native="false" synchronized="false"
  10372. static="false" final="false" visibility="public"
  10373. deprecated="not deprecated">
  10374. <doc>
  10375. <![CDATA[Resets the buffer to empty.]]>
  10376. </doc>
  10377. </method>
  10378. <method name="write"
  10379. abstract="false" native="false" synchronized="false"
  10380. static="false" final="false" visibility="public"
  10381. deprecated="not deprecated">
  10382. <param name="in" type="java.io.DataInput"/>
  10383. <param name="length" type="int"/>
  10384. <exception name="IOException" type="java.io.IOException"/>
  10385. <doc>
  10386. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10387. </doc>
  10388. </method>
  10389. <method name="writeTo"
  10390. abstract="false" native="false" synchronized="false"
  10391. static="false" final="false" visibility="public"
  10392. deprecated="not deprecated">
  10393. <param name="out" type="java.io.OutputStream"/>
  10394. <exception name="IOException" type="java.io.IOException"/>
  10395. <doc>
  10396. <![CDATA[Write to a file stream]]>
  10397. </doc>
  10398. </method>
  10399. <doc>
  10400. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10401. buffer.
  10402. <p>This saves memory over creating a new DataOutputStream and
  10403. ByteArrayOutputStream each time data is written.
  10404. <p>Typical usage is something like the following:<pre>
  10405. DataOutputBuffer buffer = new DataOutputBuffer();
  10406. while (... loop condition ...) {
  10407. buffer.reset();
  10408. ... write buffer using DataOutput methods ...
  10409. byte[] data = buffer.getData();
  10410. int dataLength = buffer.getLength();
  10411. ... write data to its ultimate destination ...
  10412. }
  10413. </pre>]]>
  10414. </doc>
  10415. </class>
  10416. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10417. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10418. <class name="DefaultStringifier" extends="java.lang.Object"
  10419. abstract="false"
  10420. static="false" final="false" visibility="public"
  10421. deprecated="not deprecated">
  10422. <implements name="org.apache.hadoop.io.Stringifier"/>
  10423. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10424. static="false" final="false" visibility="public"
  10425. deprecated="not deprecated">
  10426. </constructor>
  10427. <method name="fromString" return="java.lang.Object"
  10428. abstract="false" native="false" synchronized="false"
  10429. static="false" final="false" visibility="public"
  10430. deprecated="not deprecated">
  10431. <param name="str" type="java.lang.String"/>
  10432. <exception name="IOException" type="java.io.IOException"/>
  10433. </method>
  10434. <method name="toString" return="java.lang.String"
  10435. abstract="false" native="false" synchronized="false"
  10436. static="false" final="false" visibility="public"
  10437. deprecated="not deprecated">
  10438. <param name="obj" type="java.lang.Object"/>
  10439. <exception name="IOException" type="java.io.IOException"/>
  10440. </method>
  10441. <method name="close"
  10442. abstract="false" native="false" synchronized="false"
  10443. static="false" final="false" visibility="public"
  10444. deprecated="not deprecated">
  10445. <exception name="IOException" type="java.io.IOException"/>
  10446. </method>
  10447. <method name="store"
  10448. abstract="false" native="false" synchronized="false"
  10449. static="true" final="false" visibility="public"
  10450. deprecated="not deprecated">
  10451. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10452. <param name="item" type="java.lang.Object"/>
  10453. <param name="keyName" type="java.lang.String"/>
  10454. <exception name="IOException" type="java.io.IOException"/>
  10455. <doc>
  10456. <![CDATA[Stores the item in the configuration with the given keyName.
  10457. @param <K> the class of the item
  10458. @param conf the configuration to store
  10459. @param item the object to be stored
  10460. @param keyName the name of the key to use
  10461. @throws IOException : forwards Exceptions from the underlying
  10462. {@link Serialization} classes.]]>
  10463. </doc>
  10464. </method>
  10465. <method name="load" return="java.lang.Object"
  10466. abstract="false" native="false" synchronized="false"
  10467. static="true" final="false" visibility="public"
  10468. deprecated="not deprecated">
  10469. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10470. <param name="keyName" type="java.lang.String"/>
  10471. <param name="itemClass" type="java.lang.Class"/>
  10472. <exception name="IOException" type="java.io.IOException"/>
  10473. <doc>
  10474. <![CDATA[Restores the object from the configuration.
  10475. @param <K> the class of the item
  10476. @param conf the configuration to use
  10477. @param keyName the name of the key to use
  10478. @param itemClass the class of the item
  10479. @return restored object
  10480. @throws IOException : forwards Exceptions from the underlying
  10481. {@link Serialization} classes.]]>
  10482. </doc>
  10483. </method>
  10484. <method name="storeArray"
  10485. abstract="false" native="false" synchronized="false"
  10486. static="true" final="false" visibility="public"
  10487. deprecated="not deprecated">
  10488. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10489. <param name="items" type="java.lang.Object[]"/>
  10490. <param name="keyName" type="java.lang.String"/>
  10491. <exception name="IOException" type="java.io.IOException"/>
  10492. <doc>
  10493. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10494. @param <K> the class of the item
  10495. @param conf the configuration to use
  10496. @param items the objects to be stored
  10497. @param keyName the name of the key to use
  10498. @throws IndexOutOfBoundsException if the items array is empty
  10499. @throws IOException : forwards Exceptions from the underlying
  10500. {@link Serialization} classes.]]>
  10501. </doc>
  10502. </method>
  10503. <method name="loadArray" return="java.lang.Object[]"
  10504. abstract="false" native="false" synchronized="false"
  10505. static="true" final="false" visibility="public"
  10506. deprecated="not deprecated">
  10507. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10508. <param name="keyName" type="java.lang.String"/>
  10509. <param name="itemClass" type="java.lang.Class"/>
  10510. <exception name="IOException" type="java.io.IOException"/>
  10511. <doc>
  10512. <![CDATA[Restores the array of objects from the configuration.
  10513. @param <K> the class of the item
  10514. @param conf the configuration to use
  10515. @param keyName the name of the key to use
  10516. @param itemClass the class of the item
  10517. @return restored object
  10518. @throws IOException : forwards Exceptions from the underlying
  10519. {@link Serialization} classes.]]>
  10520. </doc>
  10521. </method>
  10522. <doc>
  10523. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10524. interface which stringifies the objects using base64 encoding of the
  10525. serialized version of the objects. The {@link Serializer} and
  10526. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10527. <br>
  10528. DefaultStringifier offers convenience methods to store/load objects to/from
  10529. the configuration.
  10530. @param <T> the class of the objects to stringify]]>
  10531. </doc>
  10532. </class>
  10533. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10534. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10535. <class name="DoubleWritable" extends="java.lang.Object"
  10536. abstract="false"
  10537. static="false" final="false" visibility="public"
  10538. deprecated="not deprecated">
  10539. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10540. <constructor name="DoubleWritable"
  10541. static="false" final="false" visibility="public"
  10542. deprecated="not deprecated">
  10543. </constructor>
  10544. <constructor name="DoubleWritable" type="double"
  10545. static="false" final="false" visibility="public"
  10546. deprecated="not deprecated">
  10547. </constructor>
  10548. <method name="readFields"
  10549. abstract="false" native="false" synchronized="false"
  10550. static="false" final="false" visibility="public"
  10551. deprecated="not deprecated">
  10552. <param name="in" type="java.io.DataInput"/>
  10553. <exception name="IOException" type="java.io.IOException"/>
  10554. </method>
  10555. <method name="write"
  10556. abstract="false" native="false" synchronized="false"
  10557. static="false" final="false" visibility="public"
  10558. deprecated="not deprecated">
  10559. <param name="out" type="java.io.DataOutput"/>
  10560. <exception name="IOException" type="java.io.IOException"/>
  10561. </method>
  10562. <method name="set"
  10563. abstract="false" native="false" synchronized="false"
  10564. static="false" final="false" visibility="public"
  10565. deprecated="not deprecated">
  10566. <param name="value" type="double"/>
  10567. </method>
  10568. <method name="get" return="double"
  10569. abstract="false" native="false" synchronized="false"
  10570. static="false" final="false" visibility="public"
  10571. deprecated="not deprecated">
  10572. </method>
  10573. <method name="equals" return="boolean"
  10574. abstract="false" native="false" synchronized="false"
  10575. static="false" final="false" visibility="public"
  10576. deprecated="not deprecated">
  10577. <param name="o" type="java.lang.Object"/>
  10578. <doc>
  10579. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10580. </doc>
  10581. </method>
  10582. <method name="hashCode" return="int"
  10583. abstract="false" native="false" synchronized="false"
  10584. static="false" final="false" visibility="public"
  10585. deprecated="not deprecated">
  10586. </method>
  10587. <method name="compareTo" return="int"
  10588. abstract="false" native="false" synchronized="false"
  10589. static="false" final="false" visibility="public"
  10590. deprecated="not deprecated">
  10591. <param name="o" type="java.lang.Object"/>
  10592. </method>
  10593. <method name="toString" return="java.lang.String"
  10594. abstract="false" native="false" synchronized="false"
  10595. static="false" final="false" visibility="public"
  10596. deprecated="not deprecated">
  10597. </method>
  10598. <doc>
  10599. <![CDATA[Writable for Double values.]]>
  10600. </doc>
  10601. </class>
  10602. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10603. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10604. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10605. abstract="false"
  10606. static="true" final="false" visibility="public"
  10607. deprecated="not deprecated">
  10608. <constructor name="DoubleWritable.Comparator"
  10609. static="false" final="false" visibility="public"
  10610. deprecated="not deprecated">
  10611. </constructor>
  10612. <method name="compare" return="int"
  10613. abstract="false" native="false" synchronized="false"
  10614. static="false" final="false" visibility="public"
  10615. deprecated="not deprecated">
  10616. <param name="b1" type="byte[]"/>
  10617. <param name="s1" type="int"/>
  10618. <param name="l1" type="int"/>
  10619. <param name="b2" type="byte[]"/>
  10620. <param name="s2" type="int"/>
  10621. <param name="l2" type="int"/>
  10622. </method>
  10623. <doc>
  10624. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10625. </doc>
  10626. </class>
  10627. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10628. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10629. <class name="FloatWritable" extends="java.lang.Object"
  10630. abstract="false"
  10631. static="false" final="false" visibility="public"
  10632. deprecated="not deprecated">
  10633. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10634. <constructor name="FloatWritable"
  10635. static="false" final="false" visibility="public"
  10636. deprecated="not deprecated">
  10637. </constructor>
  10638. <constructor name="FloatWritable" type="float"
  10639. static="false" final="false" visibility="public"
  10640. deprecated="not deprecated">
  10641. </constructor>
  10642. <method name="set"
  10643. abstract="false" native="false" synchronized="false"
  10644. static="false" final="false" visibility="public"
  10645. deprecated="not deprecated">
  10646. <param name="value" type="float"/>
  10647. <doc>
  10648. <![CDATA[Set the value of this FloatWritable.]]>
  10649. </doc>
  10650. </method>
  10651. <method name="get" return="float"
  10652. abstract="false" native="false" synchronized="false"
  10653. static="false" final="false" visibility="public"
  10654. deprecated="not deprecated">
  10655. <doc>
  10656. <![CDATA[Return the value of this FloatWritable.]]>
  10657. </doc>
  10658. </method>
  10659. <method name="readFields"
  10660. abstract="false" native="false" synchronized="false"
  10661. static="false" final="false" visibility="public"
  10662. deprecated="not deprecated">
  10663. <param name="in" type="java.io.DataInput"/>
  10664. <exception name="IOException" type="java.io.IOException"/>
  10665. </method>
  10666. <method name="write"
  10667. abstract="false" native="false" synchronized="false"
  10668. static="false" final="false" visibility="public"
  10669. deprecated="not deprecated">
  10670. <param name="out" type="java.io.DataOutput"/>
  10671. <exception name="IOException" type="java.io.IOException"/>
  10672. </method>
  10673. <method name="equals" return="boolean"
  10674. abstract="false" native="false" synchronized="false"
  10675. static="false" final="false" visibility="public"
  10676. deprecated="not deprecated">
  10677. <param name="o" type="java.lang.Object"/>
  10678. <doc>
  10679. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  10680. </doc>
  10681. </method>
  10682. <method name="hashCode" return="int"
  10683. abstract="false" native="false" synchronized="false"
  10684. static="false" final="false" visibility="public"
  10685. deprecated="not deprecated">
  10686. </method>
  10687. <method name="compareTo" return="int"
  10688. abstract="false" native="false" synchronized="false"
  10689. static="false" final="false" visibility="public"
  10690. deprecated="not deprecated">
  10691. <param name="o" type="java.lang.Object"/>
  10692. <doc>
  10693. <![CDATA[Compares two FloatWritables.]]>
  10694. </doc>
  10695. </method>
  10696. <method name="toString" return="java.lang.String"
  10697. abstract="false" native="false" synchronized="false"
  10698. static="false" final="false" visibility="public"
  10699. deprecated="not deprecated">
  10700. </method>
  10701. <doc>
  10702. <![CDATA[A WritableComparable for floats.]]>
  10703. </doc>
  10704. </class>
  10705. <!-- end class org.apache.hadoop.io.FloatWritable -->
  10706. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  10707. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10708. abstract="false"
  10709. static="true" final="false" visibility="public"
  10710. deprecated="not deprecated">
  10711. <constructor name="FloatWritable.Comparator"
  10712. static="false" final="false" visibility="public"
  10713. deprecated="not deprecated">
  10714. </constructor>
  10715. <method name="compare" return="int"
  10716. abstract="false" native="false" synchronized="false"
  10717. static="false" final="false" visibility="public"
  10718. deprecated="not deprecated">
  10719. <param name="b1" type="byte[]"/>
  10720. <param name="s1" type="int"/>
  10721. <param name="l1" type="int"/>
  10722. <param name="b2" type="byte[]"/>
  10723. <param name="s2" type="int"/>
  10724. <param name="l2" type="int"/>
  10725. </method>
  10726. <doc>
  10727. <![CDATA[A Comparator optimized for FloatWritable.]]>
  10728. </doc>
  10729. </class>
  10730. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  10731. <!-- start class org.apache.hadoop.io.GenericWritable -->
  10732. <class name="GenericWritable" extends="java.lang.Object"
  10733. abstract="true"
  10734. static="false" final="false" visibility="public"
  10735. deprecated="not deprecated">
  10736. <implements name="org.apache.hadoop.io.Writable"/>
  10737. <implements name="org.apache.hadoop.conf.Configurable"/>
  10738. <constructor name="GenericWritable"
  10739. static="false" final="false" visibility="public"
  10740. deprecated="not deprecated">
  10741. </constructor>
  10742. <method name="set"
  10743. abstract="false" native="false" synchronized="false"
  10744. static="false" final="false" visibility="public"
  10745. deprecated="not deprecated">
  10746. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  10747. <doc>
  10748. <![CDATA[Set the instance that is wrapped.
  10749. @param obj]]>
  10750. </doc>
  10751. </method>
  10752. <method name="get" return="org.apache.hadoop.io.Writable"
  10753. abstract="false" native="false" synchronized="false"
  10754. static="false" final="false" visibility="public"
  10755. deprecated="not deprecated">
  10756. <doc>
  10757. <![CDATA[Return the wrapped instance.]]>
  10758. </doc>
  10759. </method>
  10760. <method name="toString" return="java.lang.String"
  10761. abstract="false" native="false" synchronized="false"
  10762. static="false" final="false" visibility="public"
  10763. deprecated="not deprecated">
  10764. </method>
  10765. <method name="readFields"
  10766. abstract="false" native="false" synchronized="false"
  10767. static="false" final="false" visibility="public"
  10768. deprecated="not deprecated">
  10769. <param name="in" type="java.io.DataInput"/>
  10770. <exception name="IOException" type="java.io.IOException"/>
  10771. </method>
  10772. <method name="write"
  10773. abstract="false" native="false" synchronized="false"
  10774. static="false" final="false" visibility="public"
  10775. deprecated="not deprecated">
  10776. <param name="out" type="java.io.DataOutput"/>
  10777. <exception name="IOException" type="java.io.IOException"/>
  10778. </method>
  10779. <method name="getTypes" return="java.lang.Class[]"
  10780. abstract="true" native="false" synchronized="false"
  10781. static="false" final="false" visibility="protected"
  10782. deprecated="not deprecated">
  10783. <doc>
  10784. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  10785. to return a constant array of classes.]]>
  10786. </doc>
  10787. </method>
  10788. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10789. abstract="false" native="false" synchronized="false"
  10790. static="false" final="false" visibility="public"
  10791. deprecated="not deprecated">
  10792. </method>
  10793. <method name="setConf"
  10794. abstract="false" native="false" synchronized="false"
  10795. static="false" final="false" visibility="public"
  10796. deprecated="not deprecated">
  10797. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10798. </method>
  10799. <doc>
  10800. <![CDATA[A wrapper for Writable instances.
  10801. <p>
  10802. When two sequence files, which have same Key type but different Value
  10803. types, are mapped out to reduce, multiple Value types is not allowed.
  10804. In this case, this class can help you wrap instances with different types.
  10805. </p>
  10806. <p>
  10807. Compared with <code>ObjectWritable</code>, this class is much more effective,
  10808. because <code>ObjectWritable</code> will append the class declaration as a String
  10809. into the output file in every Key-Value pair.
  10810. </p>
  10811. <p>
  10812. Generic Writable implements {@link Configurable} interface, so that it will be
  10813. configured by the framework. The configuration is passed to the wrapped objects
  10814. implementing {@link Configurable} interface <i>before deserialization</i>.
  10815. </p>
  10816. how to use it: <br>
  10817. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  10818. 2. Implements the abstract method <code>getTypes()</code>, defines
  10819. the classes which will be wrapped in GenericObject in application.
  10820. Attention: this classes defined in <code>getTypes()</code> method, must
  10821. implement <code>Writable</code> interface.
  10822. <br><br>
  10823. The code looks like this:
  10824. <blockquote><pre>
  10825. public class GenericObject extends GenericWritable {
  10826. private static Class[] CLASSES = {
  10827. ClassType1.class,
  10828. ClassType2.class,
  10829. ClassType3.class,
  10830. };
  10831. protected Class[] getTypes() {
  10832. return CLASSES;
  10833. }
  10834. }
  10835. </pre></blockquote>
  10836. @since Nov 8, 2006]]>
  10837. </doc>
  10838. </class>
  10839. <!-- end class org.apache.hadoop.io.GenericWritable -->
  10840. <!-- start class org.apache.hadoop.io.InputBuffer -->
  10841. <class name="InputBuffer" extends="java.io.FilterInputStream"
  10842. abstract="false"
  10843. static="false" final="false" visibility="public"
  10844. deprecated="not deprecated">
  10845. <constructor name="InputBuffer"
  10846. static="false" final="false" visibility="public"
  10847. deprecated="not deprecated">
  10848. <doc>
  10849. <![CDATA[Constructs a new empty buffer.]]>
  10850. </doc>
  10851. </constructor>
  10852. <method name="reset"
  10853. abstract="false" native="false" synchronized="false"
  10854. static="false" final="false" visibility="public"
  10855. deprecated="not deprecated">
  10856. <param name="input" type="byte[]"/>
  10857. <param name="length" type="int"/>
  10858. <doc>
  10859. <![CDATA[Resets the data that the buffer reads.]]>
  10860. </doc>
  10861. </method>
  10862. <method name="reset"
  10863. abstract="false" native="false" synchronized="false"
  10864. static="false" final="false" visibility="public"
  10865. deprecated="not deprecated">
  10866. <param name="input" type="byte[]"/>
  10867. <param name="start" type="int"/>
  10868. <param name="length" type="int"/>
  10869. <doc>
  10870. <![CDATA[Resets the data that the buffer reads.]]>
  10871. </doc>
  10872. </method>
  10873. <method name="getPosition" return="int"
  10874. abstract="false" native="false" synchronized="false"
  10875. static="false" final="false" visibility="public"
  10876. deprecated="not deprecated">
  10877. <doc>
  10878. <![CDATA[Returns the current position in the input.]]>
  10879. </doc>
  10880. </method>
  10881. <method name="getLength" return="int"
  10882. abstract="false" native="false" synchronized="false"
  10883. static="false" final="false" visibility="public"
  10884. deprecated="not deprecated">
  10885. <doc>
  10886. <![CDATA[Returns the length of the input.]]>
  10887. </doc>
  10888. </method>
  10889. <doc>
  10890. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  10891. buffer.
  10892. <p>This saves memory over creating a new InputStream and
  10893. ByteArrayInputStream each time data is read.
  10894. <p>Typical usage is something like the following:<pre>
  10895. InputBuffer buffer = new InputBuffer();
  10896. while (... loop condition ...) {
  10897. byte[] data = ... get data ...;
  10898. int dataLength = ... get data length ...;
  10899. buffer.reset(data, dataLength);
  10900. ... read buffer using InputStream methods ...
  10901. }
  10902. </pre>
  10903. @see DataInputBuffer
  10904. @see DataOutput]]>
  10905. </doc>
  10906. </class>
  10907. <!-- end class org.apache.hadoop.io.InputBuffer -->
  10908. <!-- start class org.apache.hadoop.io.IntWritable -->
  10909. <class name="IntWritable" extends="java.lang.Object"
  10910. abstract="false"
  10911. static="false" final="false" visibility="public"
  10912. deprecated="not deprecated">
  10913. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10914. <constructor name="IntWritable"
  10915. static="false" final="false" visibility="public"
  10916. deprecated="not deprecated">
  10917. </constructor>
  10918. <constructor name="IntWritable" type="int"
  10919. static="false" final="false" visibility="public"
  10920. deprecated="not deprecated">
  10921. </constructor>
  10922. <method name="set"
  10923. abstract="false" native="false" synchronized="false"
  10924. static="false" final="false" visibility="public"
  10925. deprecated="not deprecated">
  10926. <param name="value" type="int"/>
  10927. <doc>
  10928. <![CDATA[Set the value of this IntWritable.]]>
  10929. </doc>
  10930. </method>
  10931. <method name="get" return="int"
  10932. abstract="false" native="false" synchronized="false"
  10933. static="false" final="false" visibility="public"
  10934. deprecated="not deprecated">
  10935. <doc>
  10936. <![CDATA[Return the value of this IntWritable.]]>
  10937. </doc>
  10938. </method>
  10939. <method name="readFields"
  10940. abstract="false" native="false" synchronized="false"
  10941. static="false" final="false" visibility="public"
  10942. deprecated="not deprecated">
  10943. <param name="in" type="java.io.DataInput"/>
  10944. <exception name="IOException" type="java.io.IOException"/>
  10945. </method>
  10946. <method name="write"
  10947. abstract="false" native="false" synchronized="false"
  10948. static="false" final="false" visibility="public"
  10949. deprecated="not deprecated">
  10950. <param name="out" type="java.io.DataOutput"/>
  10951. <exception name="IOException" type="java.io.IOException"/>
  10952. </method>
  10953. <method name="equals" return="boolean"
  10954. abstract="false" native="false" synchronized="false"
  10955. static="false" final="false" visibility="public"
  10956. deprecated="not deprecated">
  10957. <param name="o" type="java.lang.Object"/>
  10958. <doc>
  10959. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  10960. </doc>
  10961. </method>
  10962. <method name="hashCode" return="int"
  10963. abstract="false" native="false" synchronized="false"
  10964. static="false" final="false" visibility="public"
  10965. deprecated="not deprecated">
  10966. </method>
  10967. <method name="compareTo" return="int"
  10968. abstract="false" native="false" synchronized="false"
  10969. static="false" final="false" visibility="public"
  10970. deprecated="not deprecated">
  10971. <param name="o" type="java.lang.Object"/>
  10972. <doc>
  10973. <![CDATA[Compares two IntWritables.]]>
  10974. </doc>
  10975. </method>
  10976. <method name="toString" return="java.lang.String"
  10977. abstract="false" native="false" synchronized="false"
  10978. static="false" final="false" visibility="public"
  10979. deprecated="not deprecated">
  10980. </method>
  10981. <doc>
  10982. <![CDATA[A WritableComparable for ints.]]>
  10983. </doc>
  10984. </class>
  10985. <!-- end class org.apache.hadoop.io.IntWritable -->
  10986. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  10987. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10988. abstract="false"
  10989. static="true" final="false" visibility="public"
  10990. deprecated="not deprecated">
  10991. <constructor name="IntWritable.Comparator"
  10992. static="false" final="false" visibility="public"
  10993. deprecated="not deprecated">
  10994. </constructor>
  10995. <method name="compare" return="int"
  10996. abstract="false" native="false" synchronized="false"
  10997. static="false" final="false" visibility="public"
  10998. deprecated="not deprecated">
  10999. <param name="b1" type="byte[]"/>
  11000. <param name="s1" type="int"/>
  11001. <param name="l1" type="int"/>
  11002. <param name="b2" type="byte[]"/>
  11003. <param name="s2" type="int"/>
  11004. <param name="l2" type="int"/>
  11005. </method>
  11006. <doc>
  11007. <![CDATA[A Comparator optimized for IntWritable.]]>
  11008. </doc>
  11009. </class>
  11010. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11011. <!-- start class org.apache.hadoop.io.IOUtils -->
  11012. <class name="IOUtils" extends="java.lang.Object"
  11013. abstract="false"
  11014. static="false" final="false" visibility="public"
  11015. deprecated="not deprecated">
  11016. <constructor name="IOUtils"
  11017. static="false" final="false" visibility="public"
  11018. deprecated="not deprecated">
  11019. </constructor>
  11020. <method name="copyBytes"
  11021. abstract="false" native="false" synchronized="false"
  11022. static="true" final="false" visibility="public"
  11023. deprecated="not deprecated">
  11024. <param name="in" type="java.io.InputStream"/>
  11025. <param name="out" type="java.io.OutputStream"/>
  11026. <param name="buffSize" type="int"/>
  11027. <param name="close" type="boolean"/>
  11028. <exception name="IOException" type="java.io.IOException"/>
  11029. <doc>
  11030. <![CDATA[Copies from one stream to another.
  11031. @param in InputStrem to read from
  11032. @param out OutputStream to write to
  11033. @param buffSize the size of the buffer
  11034. @param close whether or not close the InputStream and
  11035. OutputStream at the end. The streams are closed in the finally clause.]]>
  11036. </doc>
  11037. </method>
  11038. <method name="copyBytes"
  11039. abstract="false" native="false" synchronized="false"
  11040. static="true" final="false" visibility="public"
  11041. deprecated="not deprecated">
  11042. <param name="in" type="java.io.InputStream"/>
  11043. <param name="out" type="java.io.OutputStream"/>
  11044. <param name="buffSize" type="int"/>
  11045. <exception name="IOException" type="java.io.IOException"/>
  11046. <doc>
  11047. <![CDATA[Copies from one stream to another.
  11048. @param in InputStrem to read from
  11049. @param out OutputStream to write to
  11050. @param buffSize the size of the buffer]]>
  11051. </doc>
  11052. </method>
  11053. <method name="copyBytes"
  11054. abstract="false" native="false" synchronized="false"
  11055. static="true" final="false" visibility="public"
  11056. deprecated="not deprecated">
  11057. <param name="in" type="java.io.InputStream"/>
  11058. <param name="out" type="java.io.OutputStream"/>
  11059. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11060. <exception name="IOException" type="java.io.IOException"/>
  11061. <doc>
  11062. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11063. at the end</strong>.
  11064. @param in InputStrem to read from
  11065. @param out OutputStream to write to
  11066. @param conf the Configuration object]]>
  11067. </doc>
  11068. </method>
  11069. <method name="copyBytes"
  11070. abstract="false" native="false" synchronized="false"
  11071. static="true" final="false" visibility="public"
  11072. deprecated="not deprecated">
  11073. <param name="in" type="java.io.InputStream"/>
  11074. <param name="out" type="java.io.OutputStream"/>
  11075. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11076. <param name="close" type="boolean"/>
  11077. <exception name="IOException" type="java.io.IOException"/>
  11078. <doc>
  11079. <![CDATA[Copies from one stream to another.
  11080. @param in InputStrem to read from
  11081. @param out OutputStream to write to
  11082. @param conf the Configuration object
  11083. @param close whether or not close the InputStream and
  11084. OutputStream at the end. The streams are closed in the finally clause.]]>
  11085. </doc>
  11086. </method>
  11087. <method name="copyBytes"
  11088. abstract="false" native="false" synchronized="false"
  11089. static="true" final="false" visibility="public"
  11090. deprecated="not deprecated">
  11091. <param name="in" type="java.io.InputStream"/>
  11092. <param name="out" type="java.io.OutputStream"/>
  11093. <param name="length" type="long"/>
  11094. <param name="bufferSize" type="int"/>
  11095. <param name="close" type="boolean"/>
  11096. <exception name="IOException" type="java.io.IOException"/>
  11097. <doc>
  11098. <![CDATA[Copies the specified length of bytes from in to out.
  11099. @param in InputStream to read from
  11100. @param out OutputStream to write to
  11101. @param length number of bytes to copy
  11102. @param bufferSize the size of the buffer
  11103. @param close whether to close the streams
  11104. @throws IOException if bytes can not be read or written]]>
  11105. </doc>
  11106. </method>
  11107. <method name="readFully"
  11108. abstract="false" native="false" synchronized="false"
  11109. static="true" final="false" visibility="public"
  11110. deprecated="not deprecated">
  11111. <param name="in" type="java.io.InputStream"/>
  11112. <param name="buf" type="byte[]"/>
  11113. <param name="off" type="int"/>
  11114. <param name="len" type="int"/>
  11115. <exception name="IOException" type="java.io.IOException"/>
  11116. <doc>
  11117. <![CDATA[Reads len bytes in a loop.
  11118. @param in The InputStream to read from
  11119. @param buf The buffer to fill
  11120. @param off offset from the buffer
  11121. @param len the length of bytes to read
  11122. @throws IOException if it could not read requested number of bytes
  11123. for any reason (including EOF)]]>
  11124. </doc>
  11125. </method>
  11126. <method name="readFileChannelFully"
  11127. abstract="false" native="false" synchronized="false"
  11128. static="true" final="false" visibility="public"
  11129. deprecated="not deprecated">
  11130. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  11131. <param name="buf" type="byte[]"/>
  11132. <param name="off" type="int"/>
  11133. <param name="len" type="int"/>
  11134. <exception name="IOException" type="java.io.IOException"/>
  11135. <doc>
  11136. <![CDATA[Reads len bytes in a loop using the channel of the stream
  11137. @param fileChannel a FileChannel to read len bytes into buf
  11138. @param buf The buffer to fill
  11139. @param off offset from the buffer
  11140. @param len the length of bytes to read
  11141. @throws IOException if it could not read requested number of bytes
  11142. for any reason (including EOF)]]>
  11143. </doc>
  11144. </method>
  11145. <method name="skipFully"
  11146. abstract="false" native="false" synchronized="false"
  11147. static="true" final="false" visibility="public"
  11148. deprecated="not deprecated">
  11149. <param name="in" type="java.io.InputStream"/>
  11150. <param name="len" type="long"/>
  11151. <exception name="IOException" type="java.io.IOException"/>
  11152. <doc>
  11153. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11154. @param in The InputStream to skip bytes from
  11155. @param len number of bytes to skip.
  11156. @throws IOException if it could not skip requested number of bytes
  11157. for any reason (including EOF)]]>
  11158. </doc>
  11159. </method>
  11160. <method name="cleanup"
  11161. abstract="false" native="false" synchronized="false"
  11162. static="true" final="false" visibility="public"
  11163. deprecated="not deprecated">
  11164. <param name="log" type="org.apache.commons.logging.Log"/>
  11165. <param name="closeables" type="java.io.Closeable[]"/>
  11166. <doc>
  11167. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11168. null pointers. Must only be used for cleanup in exception handlers.
  11169. @param log the log to record problems to at debug level. Can be null.
  11170. @param closeables the objects to close]]>
  11171. </doc>
  11172. </method>
  11173. <method name="closeStream"
  11174. abstract="false" native="false" synchronized="false"
  11175. static="true" final="false" visibility="public"
  11176. deprecated="not deprecated">
  11177. <param name="stream" type="java.io.Closeable"/>
  11178. <doc>
  11179. <![CDATA[Closes the stream ignoring {@link IOException}.
  11180. Must only be called in cleaning up from exception handlers.
  11181. @param stream the Stream to close]]>
  11182. </doc>
  11183. </method>
  11184. <method name="closeSocket"
  11185. abstract="false" native="false" synchronized="false"
  11186. static="true" final="false" visibility="public"
  11187. deprecated="not deprecated">
  11188. <param name="sock" type="java.net.Socket"/>
  11189. <doc>
  11190. <![CDATA[Closes the socket ignoring {@link IOException}
  11191. @param sock the Socket to close]]>
  11192. </doc>
  11193. </method>
  11194. <doc>
  11195. <![CDATA[An utility class for I/O related functionality.]]>
  11196. </doc>
  11197. </class>
  11198. <!-- end class org.apache.hadoop.io.IOUtils -->
  11199. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11200. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11201. abstract="false"
  11202. static="true" final="false" visibility="public"
  11203. deprecated="not deprecated">
  11204. <constructor name="IOUtils.NullOutputStream"
  11205. static="false" final="false" visibility="public"
  11206. deprecated="not deprecated">
  11207. </constructor>
  11208. <method name="write"
  11209. abstract="false" native="false" synchronized="false"
  11210. static="false" final="false" visibility="public"
  11211. deprecated="not deprecated">
  11212. <param name="b" type="byte[]"/>
  11213. <param name="off" type="int"/>
  11214. <param name="len" type="int"/>
  11215. <exception name="IOException" type="java.io.IOException"/>
  11216. </method>
  11217. <method name="write"
  11218. abstract="false" native="false" synchronized="false"
  11219. static="false" final="false" visibility="public"
  11220. deprecated="not deprecated">
  11221. <param name="b" type="int"/>
  11222. <exception name="IOException" type="java.io.IOException"/>
  11223. </method>
  11224. <doc>
  11225. <![CDATA[/dev/null of OutputStreams.]]>
  11226. </doc>
  11227. </class>
  11228. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11229. <!-- start class org.apache.hadoop.io.LongWritable -->
  11230. <class name="LongWritable" extends="java.lang.Object"
  11231. abstract="false"
  11232. static="false" final="false" visibility="public"
  11233. deprecated="not deprecated">
  11234. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11235. <constructor name="LongWritable"
  11236. static="false" final="false" visibility="public"
  11237. deprecated="not deprecated">
  11238. </constructor>
  11239. <constructor name="LongWritable" type="long"
  11240. static="false" final="false" visibility="public"
  11241. deprecated="not deprecated">
  11242. </constructor>
  11243. <method name="set"
  11244. abstract="false" native="false" synchronized="false"
  11245. static="false" final="false" visibility="public"
  11246. deprecated="not deprecated">
  11247. <param name="value" type="long"/>
  11248. <doc>
  11249. <![CDATA[Set the value of this LongWritable.]]>
  11250. </doc>
  11251. </method>
  11252. <method name="get" return="long"
  11253. abstract="false" native="false" synchronized="false"
  11254. static="false" final="false" visibility="public"
  11255. deprecated="not deprecated">
  11256. <doc>
  11257. <![CDATA[Return the value of this LongWritable.]]>
  11258. </doc>
  11259. </method>
  11260. <method name="readFields"
  11261. abstract="false" native="false" synchronized="false"
  11262. static="false" final="false" visibility="public"
  11263. deprecated="not deprecated">
  11264. <param name="in" type="java.io.DataInput"/>
  11265. <exception name="IOException" type="java.io.IOException"/>
  11266. </method>
  11267. <method name="write"
  11268. abstract="false" native="false" synchronized="false"
  11269. static="false" final="false" visibility="public"
  11270. deprecated="not deprecated">
  11271. <param name="out" type="java.io.DataOutput"/>
  11272. <exception name="IOException" type="java.io.IOException"/>
  11273. </method>
  11274. <method name="equals" return="boolean"
  11275. abstract="false" native="false" synchronized="false"
  11276. static="false" final="false" visibility="public"
  11277. deprecated="not deprecated">
  11278. <param name="o" type="java.lang.Object"/>
  11279. <doc>
  11280. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11281. </doc>
  11282. </method>
  11283. <method name="hashCode" return="int"
  11284. abstract="false" native="false" synchronized="false"
  11285. static="false" final="false" visibility="public"
  11286. deprecated="not deprecated">
  11287. </method>
  11288. <method name="compareTo" return="int"
  11289. abstract="false" native="false" synchronized="false"
  11290. static="false" final="false" visibility="public"
  11291. deprecated="not deprecated">
  11292. <param name="o" type="java.lang.Object"/>
  11293. <doc>
  11294. <![CDATA[Compares two LongWritables.]]>
  11295. </doc>
  11296. </method>
  11297. <method name="toString" return="java.lang.String"
  11298. abstract="false" native="false" synchronized="false"
  11299. static="false" final="false" visibility="public"
  11300. deprecated="not deprecated">
  11301. </method>
  11302. <doc>
  11303. <![CDATA[A WritableComparable for longs.]]>
  11304. </doc>
  11305. </class>
  11306. <!-- end class org.apache.hadoop.io.LongWritable -->
  11307. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11308. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11309. abstract="false"
  11310. static="true" final="false" visibility="public"
  11311. deprecated="not deprecated">
  11312. <constructor name="LongWritable.Comparator"
  11313. static="false" final="false" visibility="public"
  11314. deprecated="not deprecated">
  11315. </constructor>
  11316. <method name="compare" return="int"
  11317. abstract="false" native="false" synchronized="false"
  11318. static="false" final="false" visibility="public"
  11319. deprecated="not deprecated">
  11320. <param name="b1" type="byte[]"/>
  11321. <param name="s1" type="int"/>
  11322. <param name="l1" type="int"/>
  11323. <param name="b2" type="byte[]"/>
  11324. <param name="s2" type="int"/>
  11325. <param name="l2" type="int"/>
  11326. </method>
  11327. <doc>
  11328. <![CDATA[A Comparator optimized for LongWritable.]]>
  11329. </doc>
  11330. </class>
  11331. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11332. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11333. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11334. abstract="false"
  11335. static="true" final="false" visibility="public"
  11336. deprecated="not deprecated">
  11337. <constructor name="LongWritable.DecreasingComparator"
  11338. static="false" final="false" visibility="public"
  11339. deprecated="not deprecated">
  11340. </constructor>
  11341. <method name="compare" return="int"
  11342. abstract="false" native="false" synchronized="false"
  11343. static="false" final="false" visibility="public"
  11344. deprecated="not deprecated">
  11345. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11346. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11347. </method>
  11348. <method name="compare" return="int"
  11349. abstract="false" native="false" synchronized="false"
  11350. static="false" final="false" visibility="public"
  11351. deprecated="not deprecated">
  11352. <param name="b1" type="byte[]"/>
  11353. <param name="s1" type="int"/>
  11354. <param name="l1" type="int"/>
  11355. <param name="b2" type="byte[]"/>
  11356. <param name="s2" type="int"/>
  11357. <param name="l2" type="int"/>
  11358. </method>
  11359. <doc>
  11360. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11361. </doc>
  11362. </class>
  11363. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11364. <!-- start class org.apache.hadoop.io.MapFile -->
  11365. <class name="MapFile" extends="java.lang.Object"
  11366. abstract="false"
  11367. static="false" final="false" visibility="public"
  11368. deprecated="not deprecated">
  11369. <constructor name="MapFile"
  11370. static="false" final="false" visibility="protected"
  11371. deprecated="not deprecated">
  11372. </constructor>
  11373. <method name="rename"
  11374. abstract="false" native="false" synchronized="false"
  11375. static="true" final="false" visibility="public"
  11376. deprecated="not deprecated">
  11377. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11378. <param name="oldName" type="java.lang.String"/>
  11379. <param name="newName" type="java.lang.String"/>
  11380. <exception name="IOException" type="java.io.IOException"/>
  11381. <doc>
  11382. <![CDATA[Renames an existing map directory.]]>
  11383. </doc>
  11384. </method>
  11385. <method name="delete"
  11386. abstract="false" native="false" synchronized="false"
  11387. static="true" final="false" visibility="public"
  11388. deprecated="not deprecated">
  11389. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11390. <param name="name" type="java.lang.String"/>
  11391. <exception name="IOException" type="java.io.IOException"/>
  11392. <doc>
  11393. <![CDATA[Deletes the named map file.]]>
  11394. </doc>
  11395. </method>
  11396. <method name="fix" return="long"
  11397. abstract="false" native="false" synchronized="false"
  11398. static="true" final="false" visibility="public"
  11399. deprecated="not deprecated">
  11400. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11401. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11402. <param name="keyClass" type="java.lang.Class"/>
  11403. <param name="valueClass" type="java.lang.Class"/>
  11404. <param name="dryrun" type="boolean"/>
  11405. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11406. <exception name="Exception" type="java.lang.Exception"/>
  11407. <doc>
  11408. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11409. @param fs filesystem
  11410. @param dir directory containing the MapFile data and index
  11411. @param keyClass key class (has to be a subclass of Writable)
  11412. @param valueClass value class (has to be a subclass of Writable)
  11413. @param dryrun do not perform any changes, just report what needs to be done
  11414. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11415. @throws Exception]]>
  11416. </doc>
  11417. </method>
  11418. <method name="main"
  11419. abstract="false" native="false" synchronized="false"
  11420. static="true" final="false" visibility="public"
  11421. deprecated="not deprecated">
  11422. <param name="args" type="java.lang.String[]"/>
  11423. <exception name="Exception" type="java.lang.Exception"/>
  11424. </method>
  11425. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11426. transient="false" volatile="false"
  11427. static="true" final="true" visibility="public"
  11428. deprecated="not deprecated">
  11429. <doc>
  11430. <![CDATA[The name of the index file.]]>
  11431. </doc>
  11432. </field>
  11433. <field name="DATA_FILE_NAME" type="java.lang.String"
  11434. transient="false" volatile="false"
  11435. static="true" final="true" visibility="public"
  11436. deprecated="not deprecated">
  11437. <doc>
  11438. <![CDATA[The name of the data file.]]>
  11439. </doc>
  11440. </field>
  11441. <doc>
  11442. <![CDATA[A file-based map from keys to values.
  11443. <p>A map is a directory containing two files, the <code>data</code> file,
  11444. containing all keys and values in the map, and a smaller <code>index</code>
  11445. file, containing a fraction of the keys. The fraction is determined by
  11446. {@link Writer#getIndexInterval()}.
  11447. <p>The index file is read entirely into memory. Thus key implementations
  11448. should try to keep themselves small.
  11449. <p>Map files are created by adding entries in-order. To maintain a large
  11450. database, perform updates by copying the previous version of a database and
  11451. merging in a sorted change list, to create a new version of the database in
  11452. a new file. Sorting large change lists can be done with {@link
  11453. SequenceFile.Sorter}.]]>
  11454. </doc>
  11455. </class>
  11456. <!-- end class org.apache.hadoop.io.MapFile -->
  11457. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11458. <class name="MapFile.Reader" extends="java.lang.Object"
  11459. abstract="false"
  11460. static="true" final="false" visibility="public"
  11461. deprecated="not deprecated">
  11462. <implements name="java.io.Closeable"/>
  11463. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11464. static="false" final="false" visibility="public"
  11465. deprecated="not deprecated">
  11466. <exception name="IOException" type="java.io.IOException"/>
  11467. <doc>
  11468. <![CDATA[Construct a map reader for the named map.]]>
  11469. </doc>
  11470. </constructor>
  11471. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11472. static="false" final="false" visibility="public"
  11473. deprecated="not deprecated">
  11474. <exception name="IOException" type="java.io.IOException"/>
  11475. <doc>
  11476. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11477. </doc>
  11478. </constructor>
  11479. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11480. static="false" final="false" visibility="protected"
  11481. deprecated="not deprecated">
  11482. <exception name="IOException" type="java.io.IOException"/>
  11483. <doc>
  11484. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11485. initialization is complete.
  11486. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11487. </doc>
  11488. </constructor>
  11489. <method name="getKeyClass" return="java.lang.Class"
  11490. abstract="false" native="false" synchronized="false"
  11491. static="false" final="false" visibility="public"
  11492. deprecated="not deprecated">
  11493. <doc>
  11494. <![CDATA[Returns the class of keys in this file.]]>
  11495. </doc>
  11496. </method>
  11497. <method name="getValueClass" return="java.lang.Class"
  11498. abstract="false" native="false" synchronized="false"
  11499. static="false" final="false" visibility="public"
  11500. deprecated="not deprecated">
  11501. <doc>
  11502. <![CDATA[Returns the class of values in this file.]]>
  11503. </doc>
  11504. </method>
  11505. <method name="open"
  11506. abstract="false" native="false" synchronized="true"
  11507. static="false" final="false" visibility="protected"
  11508. deprecated="not deprecated">
  11509. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11510. <param name="dirName" type="java.lang.String"/>
  11511. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11512. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11513. <exception name="IOException" type="java.io.IOException"/>
  11514. </method>
  11515. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11516. abstract="false" native="false" synchronized="false"
  11517. static="false" final="false" visibility="protected"
  11518. deprecated="not deprecated">
  11519. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11520. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11522. <exception name="IOException" type="java.io.IOException"/>
  11523. <doc>
  11524. <![CDATA[Override this method to specialize the type of
  11525. {@link SequenceFile.Reader} returned.]]>
  11526. </doc>
  11527. </method>
  11528. <method name="reset"
  11529. abstract="false" native="false" synchronized="true"
  11530. static="false" final="false" visibility="public"
  11531. deprecated="not deprecated">
  11532. <exception name="IOException" type="java.io.IOException"/>
  11533. <doc>
  11534. <![CDATA[Re-positions the reader before its first key.]]>
  11535. </doc>
  11536. </method>
  11537. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11538. abstract="false" native="false" synchronized="true"
  11539. static="false" final="false" visibility="public"
  11540. deprecated="not deprecated">
  11541. <exception name="IOException" type="java.io.IOException"/>
  11542. <doc>
  11543. <![CDATA[Get the key at approximately the middle of the file.
  11544. @throws IOException]]>
  11545. </doc>
  11546. </method>
  11547. <method name="finalKey"
  11548. abstract="false" native="false" synchronized="true"
  11549. static="false" final="false" visibility="public"
  11550. deprecated="not deprecated">
  11551. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11552. <exception name="IOException" type="java.io.IOException"/>
  11553. <doc>
  11554. <![CDATA[Reads the final key from the file.
  11555. @param key key to read into]]>
  11556. </doc>
  11557. </method>
  11558. <method name="seek" return="boolean"
  11559. abstract="false" native="false" synchronized="true"
  11560. static="false" final="false" visibility="public"
  11561. deprecated="not deprecated">
  11562. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11563. <exception name="IOException" type="java.io.IOException"/>
  11564. <doc>
  11565. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11566. first entry after the named key. Returns true iff the named key exists
  11567. in this map.]]>
  11568. </doc>
  11569. </method>
  11570. <method name="next" return="boolean"
  11571. abstract="false" native="false" synchronized="true"
  11572. static="false" final="false" visibility="public"
  11573. deprecated="not deprecated">
  11574. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11575. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11576. <exception name="IOException" type="java.io.IOException"/>
  11577. <doc>
  11578. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11579. <code>val</code>. Returns true if such a pair exists and false when at
  11580. the end of the map]]>
  11581. </doc>
  11582. </method>
  11583. <method name="get" return="org.apache.hadoop.io.Writable"
  11584. abstract="false" native="false" synchronized="true"
  11585. static="false" final="false" visibility="public"
  11586. deprecated="not deprecated">
  11587. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11588. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11589. <exception name="IOException" type="java.io.IOException"/>
  11590. <doc>
  11591. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11592. </doc>
  11593. </method>
  11594. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11595. abstract="false" native="false" synchronized="true"
  11596. static="false" final="false" visibility="public"
  11597. deprecated="not deprecated">
  11598. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11599. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11600. <exception name="IOException" type="java.io.IOException"/>
  11601. <doc>
  11602. <![CDATA[Finds the record that is the closest match to the specified key.
  11603. Returns <code>key</code> or if it does not exist, at the first entry
  11604. after the named key.
  11605. - * @param key - key that we're trying to find
  11606. - * @param val - data value if key is found
  11607. - * @return - the key that was the closest match or null if eof.]]>
  11608. </doc>
  11609. </method>
  11610. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11611. abstract="false" native="false" synchronized="true"
  11612. static="false" final="false" visibility="public"
  11613. deprecated="not deprecated">
  11614. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11615. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11616. <param name="before" type="boolean"/>
  11617. <exception name="IOException" type="java.io.IOException"/>
  11618. <doc>
  11619. <![CDATA[Finds the record that is the closest match to the specified key.
  11620. @param key - key that we're trying to find
  11621. @param val - data value if key is found
  11622. @param before - IF true, and <code>key</code> does not exist, return
  11623. the first entry that falls just before the <code>key</code>. Otherwise,
  11624. return the record that sorts just after.
  11625. @return - the key that was the closest match or null if eof.]]>
  11626. </doc>
  11627. </method>
  11628. <method name="close"
  11629. abstract="false" native="false" synchronized="true"
  11630. static="false" final="false" visibility="public"
  11631. deprecated="not deprecated">
  11632. <exception name="IOException" type="java.io.IOException"/>
  11633. <doc>
  11634. <![CDATA[Close the map.]]>
  11635. </doc>
  11636. </method>
  11637. <doc>
  11638. <![CDATA[Provide access to an existing map.]]>
  11639. </doc>
  11640. </class>
  11641. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11642. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11643. <class name="MapFile.Writer" extends="java.lang.Object"
  11644. abstract="false"
  11645. static="true" final="false" visibility="public"
  11646. deprecated="not deprecated">
  11647. <implements name="java.io.Closeable"/>
  11648. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11649. static="false" final="false" visibility="public"
  11650. deprecated="not deprecated">
  11651. <exception name="IOException" type="java.io.IOException"/>
  11652. <doc>
  11653. <![CDATA[Create the named map for keys of the named class.]]>
  11654. </doc>
  11655. </constructor>
  11656. <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"
  11657. static="false" final="false" visibility="public"
  11658. deprecated="not deprecated">
  11659. <exception name="IOException" type="java.io.IOException"/>
  11660. <doc>
  11661. <![CDATA[Create the named map for keys of the named class.]]>
  11662. </doc>
  11663. </constructor>
  11664. <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"
  11665. static="false" final="false" visibility="public"
  11666. deprecated="not deprecated">
  11667. <exception name="IOException" type="java.io.IOException"/>
  11668. <doc>
  11669. <![CDATA[Create the named map for keys of the named class.]]>
  11670. </doc>
  11671. </constructor>
  11672. <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"
  11673. static="false" final="false" visibility="public"
  11674. deprecated="not deprecated">
  11675. <exception name="IOException" type="java.io.IOException"/>
  11676. <doc>
  11677. <![CDATA[Create the named map for keys of the named class.]]>
  11678. </doc>
  11679. </constructor>
  11680. <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"
  11681. static="false" final="false" visibility="public"
  11682. deprecated="not deprecated">
  11683. <exception name="IOException" type="java.io.IOException"/>
  11684. <doc>
  11685. <![CDATA[Create the named map using the named key comparator.]]>
  11686. </doc>
  11687. </constructor>
  11688. <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"
  11689. static="false" final="false" visibility="public"
  11690. deprecated="not deprecated">
  11691. <exception name="IOException" type="java.io.IOException"/>
  11692. <doc>
  11693. <![CDATA[Create the named map using the named key comparator.]]>
  11694. </doc>
  11695. </constructor>
  11696. <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"
  11697. static="false" final="false" visibility="public"
  11698. deprecated="not deprecated">
  11699. <exception name="IOException" type="java.io.IOException"/>
  11700. <doc>
  11701. <![CDATA[Create the named map using the named key comparator.]]>
  11702. </doc>
  11703. </constructor>
  11704. <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"
  11705. static="false" final="false" visibility="public"
  11706. deprecated="not deprecated">
  11707. <exception name="IOException" type="java.io.IOException"/>
  11708. <doc>
  11709. <![CDATA[Create the named map using the named key comparator.]]>
  11710. </doc>
  11711. </constructor>
  11712. <method name="getIndexInterval" return="int"
  11713. abstract="false" native="false" synchronized="false"
  11714. static="false" final="false" visibility="public"
  11715. deprecated="not deprecated">
  11716. <doc>
  11717. <![CDATA[The number of entries that are added before an index entry is added.]]>
  11718. </doc>
  11719. </method>
  11720. <method name="setIndexInterval"
  11721. abstract="false" native="false" synchronized="false"
  11722. static="false" final="false" visibility="public"
  11723. deprecated="not deprecated">
  11724. <param name="interval" type="int"/>
  11725. <doc>
  11726. <![CDATA[Sets the index interval.
  11727. @see #getIndexInterval()]]>
  11728. </doc>
  11729. </method>
  11730. <method name="setIndexInterval"
  11731. abstract="false" native="false" synchronized="false"
  11732. static="true" final="false" visibility="public"
  11733. deprecated="not deprecated">
  11734. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11735. <param name="interval" type="int"/>
  11736. <doc>
  11737. <![CDATA[Sets the index interval and stores it in conf
  11738. @see #getIndexInterval()]]>
  11739. </doc>
  11740. </method>
  11741. <method name="close"
  11742. abstract="false" native="false" synchronized="true"
  11743. static="false" final="false" visibility="public"
  11744. deprecated="not deprecated">
  11745. <exception name="IOException" type="java.io.IOException"/>
  11746. <doc>
  11747. <![CDATA[Close the map.]]>
  11748. </doc>
  11749. </method>
  11750. <method name="append"
  11751. abstract="false" native="false" synchronized="true"
  11752. static="false" final="false" visibility="public"
  11753. deprecated="not deprecated">
  11754. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11755. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11756. <exception name="IOException" type="java.io.IOException"/>
  11757. <doc>
  11758. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  11759. to the previous key added to the map.]]>
  11760. </doc>
  11761. </method>
  11762. <doc>
  11763. <![CDATA[Writes a new map.]]>
  11764. </doc>
  11765. </class>
  11766. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  11767. <!-- start class org.apache.hadoop.io.MapWritable -->
  11768. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11769. abstract="false"
  11770. static="false" final="false" visibility="public"
  11771. deprecated="not deprecated">
  11772. <implements name="java.util.Map"/>
  11773. <constructor name="MapWritable"
  11774. static="false" final="false" visibility="public"
  11775. deprecated="not deprecated">
  11776. <doc>
  11777. <![CDATA[Default constructor.]]>
  11778. </doc>
  11779. </constructor>
  11780. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  11781. static="false" final="false" visibility="public"
  11782. deprecated="not deprecated">
  11783. <doc>
  11784. <![CDATA[Copy constructor.
  11785. @param other the map to copy from]]>
  11786. </doc>
  11787. </constructor>
  11788. <method name="clear"
  11789. abstract="false" native="false" synchronized="false"
  11790. static="false" final="false" visibility="public"
  11791. deprecated="not deprecated">
  11792. <doc>
  11793. <![CDATA[{@inheritDoc}]]>
  11794. </doc>
  11795. </method>
  11796. <method name="containsKey" return="boolean"
  11797. abstract="false" native="false" synchronized="false"
  11798. static="false" final="false" visibility="public"
  11799. deprecated="not deprecated">
  11800. <param name="key" type="java.lang.Object"/>
  11801. <doc>
  11802. <![CDATA[{@inheritDoc}]]>
  11803. </doc>
  11804. </method>
  11805. <method name="containsValue" return="boolean"
  11806. abstract="false" native="false" synchronized="false"
  11807. static="false" final="false" visibility="public"
  11808. deprecated="not deprecated">
  11809. <param name="value" type="java.lang.Object"/>
  11810. <doc>
  11811. <![CDATA[{@inheritDoc}]]>
  11812. </doc>
  11813. </method>
  11814. <method name="entrySet" return="java.util.Set"
  11815. abstract="false" native="false" synchronized="false"
  11816. static="false" final="false" visibility="public"
  11817. deprecated="not deprecated">
  11818. <doc>
  11819. <![CDATA[{@inheritDoc}]]>
  11820. </doc>
  11821. </method>
  11822. <method name="get" return="org.apache.hadoop.io.Writable"
  11823. abstract="false" native="false" synchronized="false"
  11824. static="false" final="false" visibility="public"
  11825. deprecated="not deprecated">
  11826. <param name="key" type="java.lang.Object"/>
  11827. <doc>
  11828. <![CDATA[{@inheritDoc}]]>
  11829. </doc>
  11830. </method>
  11831. <method name="isEmpty" return="boolean"
  11832. abstract="false" native="false" synchronized="false"
  11833. static="false" final="false" visibility="public"
  11834. deprecated="not deprecated">
  11835. <doc>
  11836. <![CDATA[{@inheritDoc}]]>
  11837. </doc>
  11838. </method>
  11839. <method name="keySet" return="java.util.Set"
  11840. abstract="false" native="false" synchronized="false"
  11841. static="false" final="false" visibility="public"
  11842. deprecated="not deprecated">
  11843. <doc>
  11844. <![CDATA[{@inheritDoc}]]>
  11845. </doc>
  11846. </method>
  11847. <method name="put" return="org.apache.hadoop.io.Writable"
  11848. abstract="false" native="false" synchronized="false"
  11849. static="false" final="false" visibility="public"
  11850. deprecated="not deprecated">
  11851. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11852. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11853. <doc>
  11854. <![CDATA[{@inheritDoc}]]>
  11855. </doc>
  11856. </method>
  11857. <method name="putAll"
  11858. abstract="false" native="false" synchronized="false"
  11859. static="false" final="false" visibility="public"
  11860. deprecated="not deprecated">
  11861. <param name="t" type="java.util.Map"/>
  11862. <doc>
  11863. <![CDATA[{@inheritDoc}]]>
  11864. </doc>
  11865. </method>
  11866. <method name="remove" return="org.apache.hadoop.io.Writable"
  11867. abstract="false" native="false" synchronized="false"
  11868. static="false" final="false" visibility="public"
  11869. deprecated="not deprecated">
  11870. <param name="key" type="java.lang.Object"/>
  11871. <doc>
  11872. <![CDATA[{@inheritDoc}]]>
  11873. </doc>
  11874. </method>
  11875. <method name="size" return="int"
  11876. abstract="false" native="false" synchronized="false"
  11877. static="false" final="false" visibility="public"
  11878. deprecated="not deprecated">
  11879. <doc>
  11880. <![CDATA[{@inheritDoc}]]>
  11881. </doc>
  11882. </method>
  11883. <method name="values" return="java.util.Collection"
  11884. abstract="false" native="false" synchronized="false"
  11885. static="false" final="false" visibility="public"
  11886. deprecated="not deprecated">
  11887. <doc>
  11888. <![CDATA[{@inheritDoc}]]>
  11889. </doc>
  11890. </method>
  11891. <method name="write"
  11892. abstract="false" native="false" synchronized="false"
  11893. static="false" final="false" visibility="public"
  11894. deprecated="not deprecated">
  11895. <param name="out" type="java.io.DataOutput"/>
  11896. <exception name="IOException" type="java.io.IOException"/>
  11897. <doc>
  11898. <![CDATA[{@inheritDoc}]]>
  11899. </doc>
  11900. </method>
  11901. <method name="readFields"
  11902. abstract="false" native="false" synchronized="false"
  11903. static="false" final="false" visibility="public"
  11904. deprecated="not deprecated">
  11905. <param name="in" type="java.io.DataInput"/>
  11906. <exception name="IOException" type="java.io.IOException"/>
  11907. <doc>
  11908. <![CDATA[{@inheritDoc}]]>
  11909. </doc>
  11910. </method>
  11911. <doc>
  11912. <![CDATA[A Writable Map.]]>
  11913. </doc>
  11914. </class>
  11915. <!-- end class org.apache.hadoop.io.MapWritable -->
  11916. <!-- start class org.apache.hadoop.io.MD5Hash -->
  11917. <class name="MD5Hash" extends="java.lang.Object"
  11918. abstract="false"
  11919. static="false" final="false" visibility="public"
  11920. deprecated="not deprecated">
  11921. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11922. <constructor name="MD5Hash"
  11923. static="false" final="false" visibility="public"
  11924. deprecated="not deprecated">
  11925. <doc>
  11926. <![CDATA[Constructs an MD5Hash.]]>
  11927. </doc>
  11928. </constructor>
  11929. <constructor name="MD5Hash" type="java.lang.String"
  11930. static="false" final="false" visibility="public"
  11931. deprecated="not deprecated">
  11932. <doc>
  11933. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  11934. </doc>
  11935. </constructor>
  11936. <constructor name="MD5Hash" type="byte[]"
  11937. static="false" final="false" visibility="public"
  11938. deprecated="not deprecated">
  11939. <doc>
  11940. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  11941. </doc>
  11942. </constructor>
  11943. <method name="readFields"
  11944. abstract="false" native="false" synchronized="false"
  11945. static="false" final="false" visibility="public"
  11946. deprecated="not deprecated">
  11947. <param name="in" type="java.io.DataInput"/>
  11948. <exception name="IOException" type="java.io.IOException"/>
  11949. </method>
  11950. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  11951. abstract="false" native="false" synchronized="false"
  11952. static="true" final="false" visibility="public"
  11953. deprecated="not deprecated">
  11954. <param name="in" type="java.io.DataInput"/>
  11955. <exception name="IOException" type="java.io.IOException"/>
  11956. <doc>
  11957. <![CDATA[Constructs, reads and returns an instance.]]>
  11958. </doc>
  11959. </method>
  11960. <method name="write"
  11961. abstract="false" native="false" synchronized="false"
  11962. static="false" final="false" visibility="public"
  11963. deprecated="not deprecated">
  11964. <param name="out" type="java.io.DataOutput"/>
  11965. <exception name="IOException" type="java.io.IOException"/>
  11966. </method>
  11967. <method name="set"
  11968. abstract="false" native="false" synchronized="false"
  11969. static="false" final="false" visibility="public"
  11970. deprecated="not deprecated">
  11971. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  11972. <doc>
  11973. <![CDATA[Copy the contents of another instance into this instance.]]>
  11974. </doc>
  11975. </method>
  11976. <method name="getDigest" return="byte[]"
  11977. abstract="false" native="false" synchronized="false"
  11978. static="false" final="false" visibility="public"
  11979. deprecated="not deprecated">
  11980. <doc>
  11981. <![CDATA[Returns the digest bytes.]]>
  11982. </doc>
  11983. </method>
  11984. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11985. abstract="false" native="false" synchronized="false"
  11986. static="true" final="false" visibility="public"
  11987. deprecated="not deprecated">
  11988. <param name="data" type="byte[]"/>
  11989. <doc>
  11990. <![CDATA[Construct a hash value for a byte array.]]>
  11991. </doc>
  11992. </method>
  11993. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  11994. abstract="false" native="false" synchronized="false"
  11995. static="true" final="false" visibility="public"
  11996. deprecated="not deprecated">
  11997. <param name="in" type="java.io.InputStream"/>
  11998. <exception name="IOException" type="java.io.IOException"/>
  11999. <doc>
  12000. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12001. </doc>
  12002. </method>
  12003. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12004. abstract="false" native="false" synchronized="false"
  12005. static="true" final="false" visibility="public"
  12006. deprecated="not deprecated">
  12007. <param name="data" type="byte[]"/>
  12008. <param name="start" type="int"/>
  12009. <param name="len" type="int"/>
  12010. <doc>
  12011. <![CDATA[Construct a hash value for a byte array.]]>
  12012. </doc>
  12013. </method>
  12014. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12015. abstract="false" native="false" synchronized="false"
  12016. static="true" final="false" visibility="public"
  12017. deprecated="not deprecated">
  12018. <param name="string" type="java.lang.String"/>
  12019. <doc>
  12020. <![CDATA[Construct a hash value for a String.]]>
  12021. </doc>
  12022. </method>
  12023. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12024. abstract="false" native="false" synchronized="false"
  12025. static="true" final="false" visibility="public"
  12026. deprecated="not deprecated">
  12027. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12028. <doc>
  12029. <![CDATA[Construct a hash value for a String.]]>
  12030. </doc>
  12031. </method>
  12032. <method name="halfDigest" return="long"
  12033. abstract="false" native="false" synchronized="false"
  12034. static="false" final="false" visibility="public"
  12035. deprecated="not deprecated">
  12036. <doc>
  12037. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12038. </doc>
  12039. </method>
  12040. <method name="quarterDigest" return="int"
  12041. abstract="false" native="false" synchronized="false"
  12042. static="false" final="false" visibility="public"
  12043. deprecated="not deprecated">
  12044. <doc>
  12045. <![CDATA[Return a 32-bit digest of the MD5.
  12046. @return the first 4 bytes of the md5]]>
  12047. </doc>
  12048. </method>
  12049. <method name="equals" return="boolean"
  12050. abstract="false" native="false" synchronized="false"
  12051. static="false" final="false" visibility="public"
  12052. deprecated="not deprecated">
  12053. <param name="o" type="java.lang.Object"/>
  12054. <doc>
  12055. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12056. same values.]]>
  12057. </doc>
  12058. </method>
  12059. <method name="hashCode" return="int"
  12060. abstract="false" native="false" synchronized="false"
  12061. static="false" final="false" visibility="public"
  12062. deprecated="not deprecated">
  12063. <doc>
  12064. <![CDATA[Returns a hash code value for this object.
  12065. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12066. </doc>
  12067. </method>
  12068. <method name="compareTo" return="int"
  12069. abstract="false" native="false" synchronized="false"
  12070. static="false" final="false" visibility="public"
  12071. deprecated="not deprecated">
  12072. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12073. <doc>
  12074. <![CDATA[Compares this object with the specified object for order.]]>
  12075. </doc>
  12076. </method>
  12077. <method name="toString" return="java.lang.String"
  12078. abstract="false" native="false" synchronized="false"
  12079. static="false" final="false" visibility="public"
  12080. deprecated="not deprecated">
  12081. <doc>
  12082. <![CDATA[Returns a string representation of this object.]]>
  12083. </doc>
  12084. </method>
  12085. <method name="setDigest"
  12086. abstract="false" native="false" synchronized="false"
  12087. static="false" final="false" visibility="public"
  12088. deprecated="not deprecated">
  12089. <param name="hex" type="java.lang.String"/>
  12090. <doc>
  12091. <![CDATA[Sets the digest value from a hex string.]]>
  12092. </doc>
  12093. </method>
  12094. <field name="MD5_LEN" type="int"
  12095. transient="false" volatile="false"
  12096. static="true" final="true" visibility="public"
  12097. deprecated="not deprecated">
  12098. </field>
  12099. <doc>
  12100. <![CDATA[A Writable for MD5 hash values.]]>
  12101. </doc>
  12102. </class>
  12103. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12104. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12105. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12106. abstract="false"
  12107. static="true" final="false" visibility="public"
  12108. deprecated="not deprecated">
  12109. <constructor name="MD5Hash.Comparator"
  12110. static="false" final="false" visibility="public"
  12111. deprecated="not deprecated">
  12112. </constructor>
  12113. <method name="compare" return="int"
  12114. abstract="false" native="false" synchronized="false"
  12115. static="false" final="false" visibility="public"
  12116. deprecated="not deprecated">
  12117. <param name="b1" type="byte[]"/>
  12118. <param name="s1" type="int"/>
  12119. <param name="l1" type="int"/>
  12120. <param name="b2" type="byte[]"/>
  12121. <param name="s2" type="int"/>
  12122. <param name="l2" type="int"/>
  12123. </method>
  12124. <doc>
  12125. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12126. </doc>
  12127. </class>
  12128. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12129. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12130. <class name="MultipleIOException" extends="java.io.IOException"
  12131. abstract="false"
  12132. static="false" final="false" visibility="public"
  12133. deprecated="not deprecated">
  12134. <method name="getExceptions" return="java.util.List"
  12135. abstract="false" native="false" synchronized="false"
  12136. static="false" final="false" visibility="public"
  12137. deprecated="not deprecated">
  12138. <doc>
  12139. <![CDATA[@return the underlying exceptions]]>
  12140. </doc>
  12141. </method>
  12142. <method name="createIOException" return="java.io.IOException"
  12143. abstract="false" native="false" synchronized="false"
  12144. static="true" final="false" visibility="public"
  12145. deprecated="not deprecated">
  12146. <param name="exceptions" type="java.util.List"/>
  12147. <doc>
  12148. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12149. </doc>
  12150. </method>
  12151. <doc>
  12152. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12153. </doc>
  12154. </class>
  12155. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12156. <!-- start class org.apache.hadoop.io.NullWritable -->
  12157. <class name="NullWritable" extends="java.lang.Object"
  12158. abstract="false"
  12159. static="false" final="false" visibility="public"
  12160. deprecated="not deprecated">
  12161. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12162. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12163. abstract="false" native="false" synchronized="false"
  12164. static="true" final="false" visibility="public"
  12165. deprecated="not deprecated">
  12166. <doc>
  12167. <![CDATA[Returns the single instance of this class.]]>
  12168. </doc>
  12169. </method>
  12170. <method name="toString" return="java.lang.String"
  12171. abstract="false" native="false" synchronized="false"
  12172. static="false" final="false" visibility="public"
  12173. deprecated="not deprecated">
  12174. </method>
  12175. <method name="hashCode" return="int"
  12176. abstract="false" native="false" synchronized="false"
  12177. static="false" final="false" visibility="public"
  12178. deprecated="not deprecated">
  12179. </method>
  12180. <method name="compareTo" return="int"
  12181. abstract="false" native="false" synchronized="false"
  12182. static="false" final="false" visibility="public"
  12183. deprecated="not deprecated">
  12184. <param name="other" type="java.lang.Object"/>
  12185. </method>
  12186. <method name="equals" return="boolean"
  12187. abstract="false" native="false" synchronized="false"
  12188. static="false" final="false" visibility="public"
  12189. deprecated="not deprecated">
  12190. <param name="other" type="java.lang.Object"/>
  12191. </method>
  12192. <method name="readFields"
  12193. abstract="false" native="false" synchronized="false"
  12194. static="false" final="false" visibility="public"
  12195. deprecated="not deprecated">
  12196. <param name="in" type="java.io.DataInput"/>
  12197. <exception name="IOException" type="java.io.IOException"/>
  12198. </method>
  12199. <method name="write"
  12200. abstract="false" native="false" synchronized="false"
  12201. static="false" final="false" visibility="public"
  12202. deprecated="not deprecated">
  12203. <param name="out" type="java.io.DataOutput"/>
  12204. <exception name="IOException" type="java.io.IOException"/>
  12205. </method>
  12206. <doc>
  12207. <![CDATA[Singleton Writable with no data.]]>
  12208. </doc>
  12209. </class>
  12210. <!-- end class org.apache.hadoop.io.NullWritable -->
  12211. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12212. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12213. abstract="false"
  12214. static="true" final="false" visibility="public"
  12215. deprecated="not deprecated">
  12216. <constructor name="NullWritable.Comparator"
  12217. static="false" final="false" visibility="public"
  12218. deprecated="not deprecated">
  12219. </constructor>
  12220. <method name="compare" return="int"
  12221. abstract="false" native="false" synchronized="false"
  12222. static="false" final="false" visibility="public"
  12223. deprecated="not deprecated">
  12224. <param name="b1" type="byte[]"/>
  12225. <param name="s1" type="int"/>
  12226. <param name="l1" type="int"/>
  12227. <param name="b2" type="byte[]"/>
  12228. <param name="s2" type="int"/>
  12229. <param name="l2" type="int"/>
  12230. <doc>
  12231. <![CDATA[Compare the buffers in serialized form.]]>
  12232. </doc>
  12233. </method>
  12234. <doc>
  12235. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12236. </doc>
  12237. </class>
  12238. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12239. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12240. <class name="ObjectWritable" extends="java.lang.Object"
  12241. abstract="false"
  12242. static="false" final="false" visibility="public"
  12243. deprecated="not deprecated">
  12244. <implements name="org.apache.hadoop.io.Writable"/>
  12245. <implements name="org.apache.hadoop.conf.Configurable"/>
  12246. <constructor name="ObjectWritable"
  12247. static="false" final="false" visibility="public"
  12248. deprecated="not deprecated">
  12249. </constructor>
  12250. <constructor name="ObjectWritable" type="java.lang.Object"
  12251. static="false" final="false" visibility="public"
  12252. deprecated="not deprecated">
  12253. </constructor>
  12254. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12255. static="false" final="false" visibility="public"
  12256. deprecated="not deprecated">
  12257. </constructor>
  12258. <method name="get" return="java.lang.Object"
  12259. abstract="false" native="false" synchronized="false"
  12260. static="false" final="false" visibility="public"
  12261. deprecated="not deprecated">
  12262. <doc>
  12263. <![CDATA[Return the instance, or null if none.]]>
  12264. </doc>
  12265. </method>
  12266. <method name="getDeclaredClass" return="java.lang.Class"
  12267. abstract="false" native="false" synchronized="false"
  12268. static="false" final="false" visibility="public"
  12269. deprecated="not deprecated">
  12270. <doc>
  12271. <![CDATA[Return the class this is meant to be.]]>
  12272. </doc>
  12273. </method>
  12274. <method name="set"
  12275. abstract="false" native="false" synchronized="false"
  12276. static="false" final="false" visibility="public"
  12277. deprecated="not deprecated">
  12278. <param name="instance" type="java.lang.Object"/>
  12279. <doc>
  12280. <![CDATA[Reset the instance.]]>
  12281. </doc>
  12282. </method>
  12283. <method name="toString" return="java.lang.String"
  12284. abstract="false" native="false" synchronized="false"
  12285. static="false" final="false" visibility="public"
  12286. deprecated="not deprecated">
  12287. </method>
  12288. <method name="readFields"
  12289. abstract="false" native="false" synchronized="false"
  12290. static="false" final="false" visibility="public"
  12291. deprecated="not deprecated">
  12292. <param name="in" type="java.io.DataInput"/>
  12293. <exception name="IOException" type="java.io.IOException"/>
  12294. </method>
  12295. <method name="write"
  12296. abstract="false" native="false" synchronized="false"
  12297. static="false" final="false" visibility="public"
  12298. deprecated="not deprecated">
  12299. <param name="out" type="java.io.DataOutput"/>
  12300. <exception name="IOException" type="java.io.IOException"/>
  12301. </method>
  12302. <method name="writeObject"
  12303. abstract="false" native="false" synchronized="false"
  12304. static="true" final="false" visibility="public"
  12305. deprecated="not deprecated">
  12306. <param name="out" type="java.io.DataOutput"/>
  12307. <param name="instance" type="java.lang.Object"/>
  12308. <param name="declaredClass" type="java.lang.Class"/>
  12309. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12310. <exception name="IOException" type="java.io.IOException"/>
  12311. <doc>
  12312. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12313. the preceding.]]>
  12314. </doc>
  12315. </method>
  12316. <method name="readObject" return="java.lang.Object"
  12317. abstract="false" native="false" synchronized="false"
  12318. static="true" final="false" visibility="public"
  12319. deprecated="not deprecated">
  12320. <param name="in" type="java.io.DataInput"/>
  12321. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12322. <exception name="IOException" type="java.io.IOException"/>
  12323. <doc>
  12324. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12325. the preceding.]]>
  12326. </doc>
  12327. </method>
  12328. <method name="readObject" return="java.lang.Object"
  12329. abstract="false" native="false" synchronized="false"
  12330. static="true" final="false" visibility="public"
  12331. deprecated="not deprecated">
  12332. <param name="in" type="java.io.DataInput"/>
  12333. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12335. <exception name="IOException" type="java.io.IOException"/>
  12336. <doc>
  12337. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12338. the preceding.]]>
  12339. </doc>
  12340. </method>
  12341. <method name="setConf"
  12342. abstract="false" native="false" synchronized="false"
  12343. static="false" final="false" visibility="public"
  12344. deprecated="not deprecated">
  12345. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12346. </method>
  12347. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12348. abstract="false" native="false" synchronized="false"
  12349. static="false" final="false" visibility="public"
  12350. deprecated="not deprecated">
  12351. </method>
  12352. <doc>
  12353. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12354. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12355. </doc>
  12356. </class>
  12357. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12358. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12359. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12360. abstract="false"
  12361. static="false" final="false" visibility="public"
  12362. deprecated="not deprecated">
  12363. <constructor name="OutputBuffer"
  12364. static="false" final="false" visibility="public"
  12365. deprecated="not deprecated">
  12366. <doc>
  12367. <![CDATA[Constructs a new empty buffer.]]>
  12368. </doc>
  12369. </constructor>
  12370. <method name="getData" return="byte[]"
  12371. abstract="false" native="false" synchronized="false"
  12372. static="false" final="false" visibility="public"
  12373. deprecated="not deprecated">
  12374. <doc>
  12375. <![CDATA[Returns the current contents of the buffer.
  12376. Data is only valid to {@link #getLength()}.]]>
  12377. </doc>
  12378. </method>
  12379. <method name="getLength" return="int"
  12380. abstract="false" native="false" synchronized="false"
  12381. static="false" final="false" visibility="public"
  12382. deprecated="not deprecated">
  12383. <doc>
  12384. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12385. </doc>
  12386. </method>
  12387. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12388. abstract="false" native="false" synchronized="false"
  12389. static="false" final="false" visibility="public"
  12390. deprecated="not deprecated">
  12391. <doc>
  12392. <![CDATA[Resets the buffer to empty.]]>
  12393. </doc>
  12394. </method>
  12395. <method name="write"
  12396. abstract="false" native="false" synchronized="false"
  12397. static="false" final="false" visibility="public"
  12398. deprecated="not deprecated">
  12399. <param name="in" type="java.io.InputStream"/>
  12400. <param name="length" type="int"/>
  12401. <exception name="IOException" type="java.io.IOException"/>
  12402. <doc>
  12403. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12404. </doc>
  12405. </method>
  12406. <doc>
  12407. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12408. buffer.
  12409. <p>This saves memory over creating a new OutputStream and
  12410. ByteArrayOutputStream each time data is written.
  12411. <p>Typical usage is something like the following:<pre>
  12412. OutputBuffer buffer = new OutputBuffer();
  12413. while (... loop condition ...) {
  12414. buffer.reset();
  12415. ... write buffer using OutputStream methods ...
  12416. byte[] data = buffer.getData();
  12417. int dataLength = buffer.getLength();
  12418. ... write data to its ultimate destination ...
  12419. }
  12420. </pre>
  12421. @see DataOutputBuffer
  12422. @see InputBuffer]]>
  12423. </doc>
  12424. </class>
  12425. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12426. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12427. <interface name="RawComparator" abstract="true"
  12428. static="false" final="false" visibility="public"
  12429. deprecated="not deprecated">
  12430. <implements name="java.util.Comparator"/>
  12431. <method name="compare" return="int"
  12432. abstract="false" native="false" synchronized="false"
  12433. static="false" final="false" visibility="public"
  12434. deprecated="not deprecated">
  12435. <param name="b1" type="byte[]"/>
  12436. <param name="s1" type="int"/>
  12437. <param name="l1" type="int"/>
  12438. <param name="b2" type="byte[]"/>
  12439. <param name="s2" type="int"/>
  12440. <param name="l2" type="int"/>
  12441. </method>
  12442. <doc>
  12443. <![CDATA[<p>
  12444. A {@link Comparator} that operates directly on byte representations of
  12445. objects.
  12446. </p>
  12447. @param <T>
  12448. @see DeserializerComparator]]>
  12449. </doc>
  12450. </interface>
  12451. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12452. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12453. <class name="SecureIOUtils" extends="java.lang.Object"
  12454. abstract="false"
  12455. static="false" final="false" visibility="public"
  12456. deprecated="not deprecated">
  12457. <constructor name="SecureIOUtils"
  12458. static="false" final="false" visibility="public"
  12459. deprecated="not deprecated">
  12460. </constructor>
  12461. <method name="openForRead" return="java.io.FileInputStream"
  12462. abstract="false" native="false" synchronized="false"
  12463. static="true" final="false" visibility="public"
  12464. deprecated="not deprecated">
  12465. <param name="f" type="java.io.File"/>
  12466. <param name="expectedOwner" type="java.lang.String"/>
  12467. <exception name="IOException" type="java.io.IOException"/>
  12468. <doc>
  12469. <![CDATA[Open the given File for read access, verifying the expected user
  12470. constraints.
  12471. @param f the file that we are trying to open
  12472. @param expectedOwner the expected user owner for the file
  12473. @throws IOException if an IO Error occurred, or the user does not
  12474. match]]>
  12475. </doc>
  12476. </method>
  12477. <method name="createForWrite" return="java.io.FileOutputStream"
  12478. abstract="false" native="false" synchronized="false"
  12479. static="true" final="false" visibility="public"
  12480. deprecated="not deprecated">
  12481. <param name="f" type="java.io.File"/>
  12482. <param name="permissions" type="int"/>
  12483. <exception name="IOException" type="java.io.IOException"/>
  12484. <doc>
  12485. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12486. @param f the file that we want to create
  12487. @param permissions we want to have on the file (if security is enabled)
  12488. @throws AlreadyExistsException if the file already exists
  12489. @throws IOException if any other error occurred]]>
  12490. </doc>
  12491. </method>
  12492. <doc>
  12493. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12494. disk. The main issue this class tries to handle is that of symlink traversal.
  12495. <br/>
  12496. An example of such an attack is:
  12497. <ol>
  12498. <li> Malicious user removes his task's syslog file, and puts a link to the
  12499. jobToken file of a target user.</li>
  12500. <li> Malicious user tries to open the syslog file via the servlet on the
  12501. tasktracker.</li>
  12502. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12503. of the jobToken file. The malicious user can now access potentially sensitive
  12504. map outputs, etc. of the target user's job.</li>
  12505. </ol>
  12506. A similar attack is possible involving the
  12507. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12508. with unsecure write to a file.
  12509. <br/>]]>
  12510. </doc>
  12511. </class>
  12512. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12513. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12514. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12515. abstract="false"
  12516. static="true" final="false" visibility="public"
  12517. deprecated="not deprecated">
  12518. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12519. static="false" final="false" visibility="public"
  12520. deprecated="not deprecated">
  12521. </constructor>
  12522. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12523. static="false" final="false" visibility="public"
  12524. deprecated="not deprecated">
  12525. </constructor>
  12526. <doc>
  12527. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12528. because another file already existed at that path.]]>
  12529. </doc>
  12530. </class>
  12531. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12532. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12533. <class name="SequenceFile" extends="java.lang.Object"
  12534. abstract="false"
  12535. static="false" final="false" visibility="public"
  12536. deprecated="not deprecated">
  12537. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12538. abstract="false" native="false" synchronized="false"
  12539. static="true" final="false" visibility="public"
  12540. deprecated="Use
  12541. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12542. to get {@link CompressionType} for job-outputs.">
  12543. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12544. <doc>
  12545. <![CDATA[Get the compression type for the reduce outputs
  12546. @param job the job config to look in
  12547. @return the kind of compression to use
  12548. @deprecated Use
  12549. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12550. to get {@link CompressionType} for job-outputs.]]>
  12551. </doc>
  12552. </method>
  12553. <method name="setCompressionType"
  12554. abstract="false" native="false" synchronized="false"
  12555. static="true" final="false" visibility="public"
  12556. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  12557. the {@link CompressionType} while creating the {@link SequenceFile} or
  12558. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12559. to specify the {@link CompressionType} for job-outputs.
  12560. or">
  12561. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12562. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12563. <doc>
  12564. <![CDATA[Set the compression type for sequence files.
  12565. @param job the configuration to modify
  12566. @param val the new compression type (none, block, record)
  12567. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  12568. the {@link CompressionType} while creating the {@link SequenceFile} or
  12569. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  12570. to specify the {@link CompressionType} for job-outputs.
  12571. or]]>
  12572. </doc>
  12573. </method>
  12574. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12575. abstract="false" native="false" synchronized="false"
  12576. static="true" final="false" visibility="public"
  12577. deprecated="not deprecated">
  12578. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12579. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12580. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12581. <param name="keyClass" type="java.lang.Class"/>
  12582. <param name="valClass" type="java.lang.Class"/>
  12583. <exception name="IOException" type="java.io.IOException"/>
  12584. <doc>
  12585. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12586. @param fs The configured filesystem.
  12587. @param conf The configuration.
  12588. @param name The name of the file.
  12589. @param keyClass The 'key' type.
  12590. @param valClass The 'value' type.
  12591. @return Returns the handle to the constructed SequenceFile Writer.
  12592. @throws IOException]]>
  12593. </doc>
  12594. </method>
  12595. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12596. abstract="false" native="false" synchronized="false"
  12597. static="true" final="false" visibility="public"
  12598. deprecated="not deprecated">
  12599. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12600. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12601. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12602. <param name="keyClass" type="java.lang.Class"/>
  12603. <param name="valClass" type="java.lang.Class"/>
  12604. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12605. <exception name="IOException" type="java.io.IOException"/>
  12606. <doc>
  12607. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12608. @param fs The configured filesystem.
  12609. @param conf The configuration.
  12610. @param name The name of the file.
  12611. @param keyClass The 'key' type.
  12612. @param valClass The 'value' type.
  12613. @param compressionType The compression type.
  12614. @return Returns the handle to the constructed SequenceFile Writer.
  12615. @throws IOException]]>
  12616. </doc>
  12617. </method>
  12618. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12619. abstract="false" native="false" synchronized="false"
  12620. static="true" final="false" visibility="public"
  12621. deprecated="not deprecated">
  12622. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12623. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12624. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12625. <param name="keyClass" type="java.lang.Class"/>
  12626. <param name="valClass" type="java.lang.Class"/>
  12627. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12628. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12629. <exception name="IOException" type="java.io.IOException"/>
  12630. <doc>
  12631. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12632. @param fs The configured filesystem.
  12633. @param conf The configuration.
  12634. @param name The name of the file.
  12635. @param keyClass The 'key' type.
  12636. @param valClass The 'value' type.
  12637. @param compressionType The compression type.
  12638. @param progress The Progressable object to track progress.
  12639. @return Returns the handle to the constructed SequenceFile Writer.
  12640. @throws IOException]]>
  12641. </doc>
  12642. </method>
  12643. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12644. abstract="false" native="false" synchronized="false"
  12645. static="true" final="false" visibility="public"
  12646. deprecated="not deprecated">
  12647. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12648. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12649. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12650. <param name="keyClass" type="java.lang.Class"/>
  12651. <param name="valClass" type="java.lang.Class"/>
  12652. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12653. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12654. <exception name="IOException" type="java.io.IOException"/>
  12655. <doc>
  12656. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12657. @param fs The configured filesystem.
  12658. @param conf The configuration.
  12659. @param name The name of the file.
  12660. @param keyClass The 'key' type.
  12661. @param valClass The 'value' type.
  12662. @param compressionType The compression type.
  12663. @param codec The compression codec.
  12664. @return Returns the handle to the constructed SequenceFile Writer.
  12665. @throws IOException]]>
  12666. </doc>
  12667. </method>
  12668. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12669. abstract="false" native="false" synchronized="false"
  12670. static="true" final="false" visibility="public"
  12671. deprecated="not deprecated">
  12672. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12673. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12674. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12675. <param name="keyClass" type="java.lang.Class"/>
  12676. <param name="valClass" type="java.lang.Class"/>
  12677. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12678. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12679. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12680. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12681. <exception name="IOException" type="java.io.IOException"/>
  12682. <doc>
  12683. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12684. @param fs The configured filesystem.
  12685. @param conf The configuration.
  12686. @param name The name of the file.
  12687. @param keyClass The 'key' type.
  12688. @param valClass The 'value' type.
  12689. @param compressionType The compression type.
  12690. @param codec The compression codec.
  12691. @param progress The Progressable object to track progress.
  12692. @param metadata The metadata of the file.
  12693. @return Returns the handle to the constructed SequenceFile Writer.
  12694. @throws IOException]]>
  12695. </doc>
  12696. </method>
  12697. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12698. abstract="false" native="false" synchronized="false"
  12699. static="true" final="false" visibility="public"
  12700. deprecated="not deprecated">
  12701. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12702. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12703. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12704. <param name="keyClass" type="java.lang.Class"/>
  12705. <param name="valClass" type="java.lang.Class"/>
  12706. <param name="bufferSize" type="int"/>
  12707. <param name="replication" type="short"/>
  12708. <param name="blockSize" type="long"/>
  12709. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12710. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12711. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12712. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12713. <exception name="IOException" type="java.io.IOException"/>
  12714. <doc>
  12715. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12716. @param fs The configured filesystem.
  12717. @param conf The configuration.
  12718. @param name The name of the file.
  12719. @param keyClass The 'key' type.
  12720. @param valClass The 'value' type.
  12721. @param bufferSize buffer size for the underlaying outputstream.
  12722. @param replication replication factor for the file.
  12723. @param blockSize block size for the file.
  12724. @param compressionType The compression type.
  12725. @param codec The compression codec.
  12726. @param progress The Progressable object to track progress.
  12727. @param metadata The metadata of the file.
  12728. @return Returns the handle to the constructed SequenceFile Writer.
  12729. @throws IOException]]>
  12730. </doc>
  12731. </method>
  12732. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12733. abstract="false" native="false" synchronized="false"
  12734. static="true" final="false" visibility="public"
  12735. deprecated="not deprecated">
  12736. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12737. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12738. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12739. <param name="keyClass" type="java.lang.Class"/>
  12740. <param name="valClass" type="java.lang.Class"/>
  12741. <param name="bufferSize" type="int"/>
  12742. <param name="replication" type="short"/>
  12743. <param name="blockSize" type="long"/>
  12744. <param name="createParent" type="boolean"/>
  12745. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12746. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12747. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12748. <exception name="IOException" type="java.io.IOException"/>
  12749. <doc>
  12750. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12751. @param fs The configured filesystem.
  12752. @param conf The configuration.
  12753. @param name The name of the file.
  12754. @param keyClass The 'key' type.
  12755. @param valClass The 'value' type.
  12756. @param bufferSize buffer size for the underlaying outputstream.
  12757. @param replication replication factor for the file.
  12758. @param blockSize block size for the file.
  12759. @param createParent create parent directory if non-existent
  12760. @param compressionType The compression type.
  12761. @param codec The compression codec.
  12762. @param progress The Progressable object to track progress.
  12763. @param metadata The metadata of the file.
  12764. @return Returns the handle to the constructed SequenceFile Writer.
  12765. @throws IOException]]>
  12766. </doc>
  12767. </method>
  12768. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12769. abstract="false" native="false" synchronized="false"
  12770. static="true" final="false" visibility="public"
  12771. deprecated="not deprecated">
  12772. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  12773. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12774. <param name="name" type="org.apache.hadoop.fs.Path"/>
  12775. <param name="keyClass" type="java.lang.Class"/>
  12776. <param name="valClass" type="java.lang.Class"/>
  12777. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12778. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12779. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12780. <exception name="IOException" type="java.io.IOException"/>
  12781. <doc>
  12782. <![CDATA[Construct the preferred type of SequenceFile Writer.
  12783. @param fs The configured filesystem.
  12784. @param conf The configuration.
  12785. @param name The name of the file.
  12786. @param keyClass The 'key' type.
  12787. @param valClass The 'value' type.
  12788. @param compressionType The compression type.
  12789. @param codec The compression codec.
  12790. @param progress The Progressable object to track progress.
  12791. @return Returns the handle to the constructed SequenceFile Writer.
  12792. @throws IOException]]>
  12793. </doc>
  12794. </method>
  12795. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12796. abstract="false" native="false" synchronized="false"
  12797. static="true" final="false" visibility="public"
  12798. deprecated="not deprecated">
  12799. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12800. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  12801. <param name="keyClass" type="java.lang.Class"/>
  12802. <param name="valClass" type="java.lang.Class"/>
  12803. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12804. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12805. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  12806. <exception name="IOException" type="java.io.IOException"/>
  12807. <doc>
  12808. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  12809. @param conf The configuration.
  12810. @param out The stream on top which the writer is to be constructed.
  12811. @param keyClass The 'key' type.
  12812. @param valClass The 'value' type.
  12813. @param compressionType The compression type.
  12814. @param codec The compression codec.
  12815. @param metadata The metadata of the file.
  12816. @return Returns the handle to the constructed SequenceFile Writer.
  12817. @throws IOException]]>
  12818. </doc>
  12819. </method>
  12820. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  12821. abstract="false" native="false" synchronized="false"
  12822. static="true" final="false" visibility="public"
  12823. deprecated="not deprecated">
  12824. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12825. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  12826. <param name="keyClass" type="java.lang.Class"/>
  12827. <param name="valClass" type="java.lang.Class"/>
  12828. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  12829. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  12830. <exception name="IOException" type="java.io.IOException"/>
  12831. <doc>
  12832. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  12833. @param conf The configuration.
  12834. @param out The stream on top which the writer is to be constructed.
  12835. @param keyClass The 'key' type.
  12836. @param valClass The 'value' type.
  12837. @param compressionType The compression type.
  12838. @param codec The compression codec.
  12839. @return Returns the handle to the constructed SequenceFile Writer.
  12840. @throws IOException]]>
  12841. </doc>
  12842. </method>
  12843. <field name="SYNC_INTERVAL" type="int"
  12844. transient="false" volatile="false"
  12845. static="true" final="true" visibility="public"
  12846. deprecated="not deprecated">
  12847. <doc>
  12848. <![CDATA[The number of bytes between sync points.]]>
  12849. </doc>
  12850. </field>
  12851. <doc>
  12852. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  12853. pairs.
  12854. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  12855. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  12856. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  12857. {@link CompressionType} used to compress key/value pairs:
  12858. <ol>
  12859. <li>
  12860. <code>Writer</code> : Uncompressed records.
  12861. </li>
  12862. <li>
  12863. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  12864. values.
  12865. </li>
  12866. <li>
  12867. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  12868. values are collected in 'blocks'
  12869. separately and compressed. The size of
  12870. the 'block' is configurable.
  12871. </ol>
  12872. <p>The actual compression algorithm used to compress key and/or values can be
  12873. specified by using the appropriate {@link CompressionCodec}.</p>
  12874. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  12875. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  12876. <p>The {@link Reader} acts as the bridge and can read any of the above
  12877. <code>SequenceFile</code> formats.</p>
  12878. <h4 id="Formats">SequenceFile Formats</h4>
  12879. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  12880. depending on the <code>CompressionType</code> specified. All of them share a
  12881. <a href="#Header">common header</a> described below.
  12882. <h5 id="Header">SequenceFile Header</h5>
  12883. <ul>
  12884. <li>
  12885. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  12886. version number (e.g. SEQ4 or SEQ6)
  12887. </li>
  12888. <li>
  12889. keyClassName -key class
  12890. </li>
  12891. <li>
  12892. valueClassName - value class
  12893. </li>
  12894. <li>
  12895. compression - A boolean which specifies if compression is turned on for
  12896. keys/values in this file.
  12897. </li>
  12898. <li>
  12899. blockCompression - A boolean which specifies if block-compression is
  12900. turned on for keys/values in this file.
  12901. </li>
  12902. <li>
  12903. compression codec - <code>CompressionCodec</code> class which is used for
  12904. compression of keys and/or values (if compression is
  12905. enabled).
  12906. </li>
  12907. <li>
  12908. metadata - {@link Metadata} for this file.
  12909. </li>
  12910. <li>
  12911. sync - A sync marker to denote end of the header.
  12912. </li>
  12913. </ul>
  12914. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  12915. <ul>
  12916. <li>
  12917. <a href="#Header">Header</a>
  12918. </li>
  12919. <li>
  12920. Record
  12921. <ul>
  12922. <li>Record length</li>
  12923. <li>Key length</li>
  12924. <li>Key</li>
  12925. <li>Value</li>
  12926. </ul>
  12927. </li>
  12928. <li>
  12929. A sync-marker every few <code>100</code> bytes or so.
  12930. </li>
  12931. </ul>
  12932. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  12933. <ul>
  12934. <li>
  12935. <a href="#Header">Header</a>
  12936. </li>
  12937. <li>
  12938. Record
  12939. <ul>
  12940. <li>Record length</li>
  12941. <li>Key length</li>
  12942. <li>Key</li>
  12943. <li><i>Compressed</i> Value</li>
  12944. </ul>
  12945. </li>
  12946. <li>
  12947. A sync-marker every few <code>100</code> bytes or so.
  12948. </li>
  12949. </ul>
  12950. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  12951. <ul>
  12952. <li>
  12953. <a href="#Header">Header</a>
  12954. </li>
  12955. <li>
  12956. Record <i>Block</i>
  12957. <ul>
  12958. <li>Compressed key-lengths block-size</li>
  12959. <li>Compressed key-lengths block</li>
  12960. <li>Compressed keys block-size</li>
  12961. <li>Compressed keys block</li>
  12962. <li>Compressed value-lengths block-size</li>
  12963. <li>Compressed value-lengths block</li>
  12964. <li>Compressed values block-size</li>
  12965. <li>Compressed values block</li>
  12966. </ul>
  12967. </li>
  12968. <li>
  12969. A sync-marker every few <code>100</code> bytes or so.
  12970. </li>
  12971. </ul>
  12972. <p>The compressed blocks of key lengths and value lengths consist of the
  12973. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  12974. format.</p>
  12975. @see CompressionCodec]]>
  12976. </doc>
  12977. </class>
  12978. <!-- end class org.apache.hadoop.io.SequenceFile -->
  12979. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  12980. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  12981. abstract="false"
  12982. static="true" final="true" visibility="public"
  12983. deprecated="not deprecated">
  12984. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  12985. abstract="false" native="false" synchronized="false"
  12986. static="true" final="false" visibility="public"
  12987. deprecated="not deprecated">
  12988. </method>
  12989. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12990. abstract="false" native="false" synchronized="false"
  12991. static="true" final="false" visibility="public"
  12992. deprecated="not deprecated">
  12993. <param name="name" type="java.lang.String"/>
  12994. </method>
  12995. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  12996. transient="false" volatile="false"
  12997. static="true" final="true" visibility="public"
  12998. deprecated="not deprecated">
  12999. <doc>
  13000. <![CDATA[Do not compress records.]]>
  13001. </doc>
  13002. </field>
  13003. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13004. transient="false" volatile="false"
  13005. static="true" final="true" visibility="public"
  13006. deprecated="not deprecated">
  13007. <doc>
  13008. <![CDATA[Compress values only, each separately.]]>
  13009. </doc>
  13010. </field>
  13011. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13012. transient="false" volatile="false"
  13013. static="true" final="true" visibility="public"
  13014. deprecated="not deprecated">
  13015. <doc>
  13016. <![CDATA[Compress sequences of records together in blocks.]]>
  13017. </doc>
  13018. </field>
  13019. <doc>
  13020. <![CDATA[The compression type used to compress key/value pairs in the
  13021. {@link SequenceFile}.
  13022. @see SequenceFile.Writer]]>
  13023. </doc>
  13024. </class>
  13025. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13026. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13027. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13028. abstract="false"
  13029. static="true" final="false" visibility="public"
  13030. deprecated="not deprecated">
  13031. <implements name="org.apache.hadoop.io.Writable"/>
  13032. <constructor name="SequenceFile.Metadata"
  13033. static="false" final="false" visibility="public"
  13034. deprecated="not deprecated">
  13035. </constructor>
  13036. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13037. static="false" final="false" visibility="public"
  13038. deprecated="not deprecated">
  13039. </constructor>
  13040. <method name="get" return="org.apache.hadoop.io.Text"
  13041. abstract="false" native="false" synchronized="false"
  13042. static="false" final="false" visibility="public"
  13043. deprecated="not deprecated">
  13044. <param name="name" type="org.apache.hadoop.io.Text"/>
  13045. </method>
  13046. <method name="set"
  13047. abstract="false" native="false" synchronized="false"
  13048. static="false" final="false" visibility="public"
  13049. deprecated="not deprecated">
  13050. <param name="name" type="org.apache.hadoop.io.Text"/>
  13051. <param name="value" type="org.apache.hadoop.io.Text"/>
  13052. </method>
  13053. <method name="getMetadata" return="java.util.TreeMap"
  13054. abstract="false" native="false" synchronized="false"
  13055. static="false" final="false" visibility="public"
  13056. deprecated="not deprecated">
  13057. </method>
  13058. <method name="write"
  13059. abstract="false" native="false" synchronized="false"
  13060. static="false" final="false" visibility="public"
  13061. deprecated="not deprecated">
  13062. <param name="out" type="java.io.DataOutput"/>
  13063. <exception name="IOException" type="java.io.IOException"/>
  13064. </method>
  13065. <method name="readFields"
  13066. abstract="false" native="false" synchronized="false"
  13067. static="false" final="false" visibility="public"
  13068. deprecated="not deprecated">
  13069. <param name="in" type="java.io.DataInput"/>
  13070. <exception name="IOException" type="java.io.IOException"/>
  13071. </method>
  13072. <method name="equals" return="boolean"
  13073. abstract="false" native="false" synchronized="false"
  13074. static="false" final="false" visibility="public"
  13075. deprecated="not deprecated">
  13076. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13077. </method>
  13078. <method name="hashCode" return="int"
  13079. abstract="false" native="false" synchronized="false"
  13080. static="false" final="false" visibility="public"
  13081. deprecated="not deprecated">
  13082. </method>
  13083. <method name="toString" return="java.lang.String"
  13084. abstract="false" native="false" synchronized="false"
  13085. static="false" final="false" visibility="public"
  13086. deprecated="not deprecated">
  13087. </method>
  13088. <doc>
  13089. <![CDATA[The class encapsulating with the metadata of a file.
  13090. The metadata of a file is a list of attribute name/value
  13091. pairs of Text type.]]>
  13092. </doc>
  13093. </class>
  13094. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13095. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13096. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13097. abstract="false"
  13098. static="true" final="false" visibility="public"
  13099. deprecated="not deprecated">
  13100. <implements name="java.io.Closeable"/>
  13101. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13102. static="false" final="false" visibility="public"
  13103. deprecated="not deprecated">
  13104. <exception name="IOException" type="java.io.IOException"/>
  13105. <doc>
  13106. <![CDATA[Open the named file.]]>
  13107. </doc>
  13108. </constructor>
  13109. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13110. abstract="false" native="false" synchronized="false"
  13111. static="false" final="false" visibility="protected"
  13112. deprecated="not deprecated">
  13113. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13114. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13115. <param name="bufferSize" type="int"/>
  13116. <param name="length" type="long"/>
  13117. <exception name="IOException" type="java.io.IOException"/>
  13118. <doc>
  13119. <![CDATA[Override this method to specialize the type of
  13120. {@link FSDataInputStream} returned.]]>
  13121. </doc>
  13122. </method>
  13123. <method name="close"
  13124. abstract="false" native="false" synchronized="true"
  13125. static="false" final="false" visibility="public"
  13126. deprecated="not deprecated">
  13127. <exception name="IOException" type="java.io.IOException"/>
  13128. <doc>
  13129. <![CDATA[Close the file.]]>
  13130. </doc>
  13131. </method>
  13132. <method name="getKeyClassName" return="java.lang.String"
  13133. abstract="false" native="false" synchronized="false"
  13134. static="false" final="false" visibility="public"
  13135. deprecated="not deprecated">
  13136. <doc>
  13137. <![CDATA[Returns the name of the key class.]]>
  13138. </doc>
  13139. </method>
  13140. <method name="getKeyClass" return="java.lang.Class"
  13141. abstract="false" native="false" synchronized="true"
  13142. static="false" final="false" visibility="public"
  13143. deprecated="not deprecated">
  13144. <doc>
  13145. <![CDATA[Returns the class of keys in this file.]]>
  13146. </doc>
  13147. </method>
  13148. <method name="getValueClassName" return="java.lang.String"
  13149. abstract="false" native="false" synchronized="false"
  13150. static="false" final="false" visibility="public"
  13151. deprecated="not deprecated">
  13152. <doc>
  13153. <![CDATA[Returns the name of the value class.]]>
  13154. </doc>
  13155. </method>
  13156. <method name="getValueClass" return="java.lang.Class"
  13157. abstract="false" native="false" synchronized="true"
  13158. static="false" final="false" visibility="public"
  13159. deprecated="not deprecated">
  13160. <doc>
  13161. <![CDATA[Returns the class of values in this file.]]>
  13162. </doc>
  13163. </method>
  13164. <method name="isCompressed" return="boolean"
  13165. abstract="false" native="false" synchronized="false"
  13166. static="false" final="false" visibility="public"
  13167. deprecated="not deprecated">
  13168. <doc>
  13169. <![CDATA[Returns true if values are compressed.]]>
  13170. </doc>
  13171. </method>
  13172. <method name="isBlockCompressed" return="boolean"
  13173. abstract="false" native="false" synchronized="false"
  13174. static="false" final="false" visibility="public"
  13175. deprecated="not deprecated">
  13176. <doc>
  13177. <![CDATA[Returns true if records are block-compressed.]]>
  13178. </doc>
  13179. </method>
  13180. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13181. abstract="false" native="false" synchronized="false"
  13182. static="false" final="false" visibility="public"
  13183. deprecated="not deprecated">
  13184. <doc>
  13185. <![CDATA[Returns the compression codec of data in this file.]]>
  13186. </doc>
  13187. </method>
  13188. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13189. abstract="false" native="false" synchronized="false"
  13190. static="false" final="false" visibility="public"
  13191. deprecated="not deprecated">
  13192. <doc>
  13193. <![CDATA[Returns the metadata object of the file]]>
  13194. </doc>
  13195. </method>
  13196. <method name="getCurrentValue"
  13197. abstract="false" native="false" synchronized="true"
  13198. static="false" final="false" visibility="public"
  13199. deprecated="not deprecated">
  13200. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13201. <exception name="IOException" type="java.io.IOException"/>
  13202. <doc>
  13203. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13204. @param val : The 'value' to be read.
  13205. @throws IOException]]>
  13206. </doc>
  13207. </method>
  13208. <method name="getCurrentValue" return="java.lang.Object"
  13209. abstract="false" native="false" synchronized="true"
  13210. static="false" final="false" visibility="public"
  13211. deprecated="not deprecated">
  13212. <param name="val" type="java.lang.Object"/>
  13213. <exception name="IOException" type="java.io.IOException"/>
  13214. <doc>
  13215. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13216. @param val : The 'value' to be read.
  13217. @throws IOException]]>
  13218. </doc>
  13219. </method>
  13220. <method name="next" return="boolean"
  13221. abstract="false" native="false" synchronized="true"
  13222. static="false" final="false" visibility="public"
  13223. deprecated="not deprecated">
  13224. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13225. <exception name="IOException" type="java.io.IOException"/>
  13226. <doc>
  13227. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13228. value. True if another entry exists, and false at end of file.]]>
  13229. </doc>
  13230. </method>
  13231. <method name="next" return="boolean"
  13232. abstract="false" native="false" synchronized="true"
  13233. static="false" final="false" visibility="public"
  13234. deprecated="not deprecated">
  13235. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13236. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13237. <exception name="IOException" type="java.io.IOException"/>
  13238. <doc>
  13239. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13240. <code>val</code>. Returns true if such a pair exists and false when at
  13241. end of file]]>
  13242. </doc>
  13243. </method>
  13244. <method name="next" return="int"
  13245. abstract="false" native="false" synchronized="true"
  13246. static="false" final="false" visibility="public"
  13247. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13248. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13249. <exception name="IOException" type="java.io.IOException"/>
  13250. <doc>
  13251. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13252. </doc>
  13253. </method>
  13254. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13255. abstract="false" native="false" synchronized="false"
  13256. static="false" final="false" visibility="public"
  13257. deprecated="not deprecated">
  13258. </method>
  13259. <method name="nextRaw" return="int"
  13260. abstract="false" native="false" synchronized="true"
  13261. static="false" final="false" visibility="public"
  13262. deprecated="not deprecated">
  13263. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13264. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13265. <exception name="IOException" type="java.io.IOException"/>
  13266. <doc>
  13267. <![CDATA[Read 'raw' records.
  13268. @param key - The buffer into which the key is read
  13269. @param val - The 'raw' value
  13270. @return Returns the total record length or -1 for end of file
  13271. @throws IOException]]>
  13272. </doc>
  13273. </method>
  13274. <method name="nextRawKey" return="int"
  13275. abstract="false" native="false" synchronized="false"
  13276. static="false" final="false" visibility="public"
  13277. deprecated="not deprecated">
  13278. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13279. <exception name="IOException" type="java.io.IOException"/>
  13280. <doc>
  13281. <![CDATA[Read 'raw' keys.
  13282. @param key - The buffer into which the key is read
  13283. @return Returns the key length or -1 for end of file
  13284. @throws IOException]]>
  13285. </doc>
  13286. </method>
  13287. <method name="next" return="java.lang.Object"
  13288. abstract="false" native="false" synchronized="true"
  13289. static="false" final="false" visibility="public"
  13290. deprecated="not deprecated">
  13291. <param name="key" type="java.lang.Object"/>
  13292. <exception name="IOException" type="java.io.IOException"/>
  13293. <doc>
  13294. <![CDATA[Read the next key in the file, skipping its
  13295. value. Return null at end of file.]]>
  13296. </doc>
  13297. </method>
  13298. <method name="nextRawValue" return="int"
  13299. abstract="false" native="false" synchronized="true"
  13300. static="false" final="false" visibility="public"
  13301. deprecated="not deprecated">
  13302. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13303. <exception name="IOException" type="java.io.IOException"/>
  13304. <doc>
  13305. <![CDATA[Read 'raw' values.
  13306. @param val - The 'raw' value
  13307. @return Returns the value length
  13308. @throws IOException]]>
  13309. </doc>
  13310. </method>
  13311. <method name="seek"
  13312. abstract="false" native="false" synchronized="true"
  13313. static="false" final="false" visibility="public"
  13314. deprecated="not deprecated">
  13315. <param name="position" type="long"/>
  13316. <exception name="IOException" type="java.io.IOException"/>
  13317. <doc>
  13318. <![CDATA[Set the current byte position in the input file.
  13319. <p>The position passed must be a position returned by {@link
  13320. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13321. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13322. </doc>
  13323. </method>
  13324. <method name="sync"
  13325. abstract="false" native="false" synchronized="true"
  13326. static="false" final="false" visibility="public"
  13327. deprecated="not deprecated">
  13328. <param name="position" type="long"/>
  13329. <exception name="IOException" type="java.io.IOException"/>
  13330. <doc>
  13331. <![CDATA[Seek to the next sync mark past a given position.]]>
  13332. </doc>
  13333. </method>
  13334. <method name="syncSeen" return="boolean"
  13335. abstract="false" native="false" synchronized="false"
  13336. static="false" final="false" visibility="public"
  13337. deprecated="not deprecated">
  13338. <doc>
  13339. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13340. </doc>
  13341. </method>
  13342. <method name="getPosition" return="long"
  13343. abstract="false" native="false" synchronized="true"
  13344. static="false" final="false" visibility="public"
  13345. deprecated="not deprecated">
  13346. <exception name="IOException" type="java.io.IOException"/>
  13347. <doc>
  13348. <![CDATA[Return the current byte position in the input file.]]>
  13349. </doc>
  13350. </method>
  13351. <method name="toString" return="java.lang.String"
  13352. abstract="false" native="false" synchronized="false"
  13353. static="false" final="false" visibility="public"
  13354. deprecated="not deprecated">
  13355. <doc>
  13356. <![CDATA[Returns the name of the file.]]>
  13357. </doc>
  13358. </method>
  13359. <doc>
  13360. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13361. </doc>
  13362. </class>
  13363. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13364. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13365. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13366. abstract="false"
  13367. static="true" final="false" visibility="public"
  13368. deprecated="not deprecated">
  13369. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13370. static="false" final="false" visibility="public"
  13371. deprecated="not deprecated">
  13372. <doc>
  13373. <![CDATA[Sort and merge files containing the named classes.]]>
  13374. </doc>
  13375. </constructor>
  13376. <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"
  13377. static="false" final="false" visibility="public"
  13378. deprecated="not deprecated">
  13379. <doc>
  13380. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13381. </doc>
  13382. </constructor>
  13383. <method name="setFactor"
  13384. abstract="false" native="false" synchronized="false"
  13385. static="false" final="false" visibility="public"
  13386. deprecated="not deprecated">
  13387. <param name="factor" type="int"/>
  13388. <doc>
  13389. <![CDATA[Set the number of streams to merge at once.]]>
  13390. </doc>
  13391. </method>
  13392. <method name="getFactor" return="int"
  13393. abstract="false" native="false" synchronized="false"
  13394. static="false" final="false" visibility="public"
  13395. deprecated="not deprecated">
  13396. <doc>
  13397. <![CDATA[Get the number of streams to merge at once.]]>
  13398. </doc>
  13399. </method>
  13400. <method name="setMemory"
  13401. abstract="false" native="false" synchronized="false"
  13402. static="false" final="false" visibility="public"
  13403. deprecated="not deprecated">
  13404. <param name="memory" type="int"/>
  13405. <doc>
  13406. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13407. </doc>
  13408. </method>
  13409. <method name="getMemory" return="int"
  13410. abstract="false" native="false" synchronized="false"
  13411. static="false" final="false" visibility="public"
  13412. deprecated="not deprecated">
  13413. <doc>
  13414. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13415. </doc>
  13416. </method>
  13417. <method name="setProgressable"
  13418. abstract="false" native="false" synchronized="false"
  13419. static="false" final="false" visibility="public"
  13420. deprecated="not deprecated">
  13421. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13422. <doc>
  13423. <![CDATA[Set the progressable object in order to report progress.]]>
  13424. </doc>
  13425. </method>
  13426. <method name="sort"
  13427. abstract="false" native="false" synchronized="false"
  13428. static="false" final="false" visibility="public"
  13429. deprecated="not deprecated">
  13430. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13431. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13432. <param name="deleteInput" type="boolean"/>
  13433. <exception name="IOException" type="java.io.IOException"/>
  13434. <doc>
  13435. <![CDATA[Perform a file sort from a set of input files into an output file.
  13436. @param inFiles the files to be sorted
  13437. @param outFile the sorted output file
  13438. @param deleteInput should the input files be deleted as they are read?]]>
  13439. </doc>
  13440. </method>
  13441. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13442. abstract="false" native="false" synchronized="false"
  13443. static="false" final="false" visibility="public"
  13444. deprecated="not deprecated">
  13445. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13446. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13447. <param name="deleteInput" type="boolean"/>
  13448. <exception name="IOException" type="java.io.IOException"/>
  13449. <doc>
  13450. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13451. @param inFiles the files to be sorted
  13452. @param tempDir the directory where temp files are created during sort
  13453. @param deleteInput should the input files be deleted as they are read?
  13454. @return iterator the RawKeyValueIterator]]>
  13455. </doc>
  13456. </method>
  13457. <method name="sort"
  13458. abstract="false" native="false" synchronized="false"
  13459. static="false" final="false" visibility="public"
  13460. deprecated="not deprecated">
  13461. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13462. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13463. <exception name="IOException" type="java.io.IOException"/>
  13464. <doc>
  13465. <![CDATA[The backwards compatible interface to sort.
  13466. @param inFile the input file to sort
  13467. @param outFile the sorted output file]]>
  13468. </doc>
  13469. </method>
  13470. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13471. abstract="false" native="false" synchronized="false"
  13472. static="false" final="false" visibility="public"
  13473. deprecated="not deprecated">
  13474. <param name="segments" type="java.util.List"/>
  13475. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13476. <exception name="IOException" type="java.io.IOException"/>
  13477. <doc>
  13478. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13479. @param segments the list of SegmentDescriptors
  13480. @param tmpDir the directory to write temporary files into
  13481. @return RawKeyValueIterator
  13482. @throws IOException]]>
  13483. </doc>
  13484. </method>
  13485. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13486. abstract="false" native="false" synchronized="false"
  13487. static="false" final="false" visibility="public"
  13488. deprecated="not deprecated">
  13489. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13490. <param name="deleteInputs" type="boolean"/>
  13491. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13492. <exception name="IOException" type="java.io.IOException"/>
  13493. <doc>
  13494. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13495. that is already set
  13496. @param inNames the array of path names
  13497. @param deleteInputs true if the input files should be deleted when
  13498. unnecessary
  13499. @param tmpDir the directory to write temporary files into
  13500. @return RawKeyValueIteratorMergeQueue
  13501. @throws IOException]]>
  13502. </doc>
  13503. </method>
  13504. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13505. abstract="false" native="false" synchronized="false"
  13506. static="false" final="false" visibility="public"
  13507. deprecated="not deprecated">
  13508. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13509. <param name="deleteInputs" type="boolean"/>
  13510. <param name="factor" type="int"/>
  13511. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13512. <exception name="IOException" type="java.io.IOException"/>
  13513. <doc>
  13514. <![CDATA[Merges the contents of files passed in Path[]
  13515. @param inNames the array of path names
  13516. @param deleteInputs true if the input files should be deleted when
  13517. unnecessary
  13518. @param factor the factor that will be used as the maximum merge fan-in
  13519. @param tmpDir the directory to write temporary files into
  13520. @return RawKeyValueIteratorMergeQueue
  13521. @throws IOException]]>
  13522. </doc>
  13523. </method>
  13524. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13525. abstract="false" native="false" synchronized="false"
  13526. static="false" final="false" visibility="public"
  13527. deprecated="not deprecated">
  13528. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13529. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13530. <param name="deleteInputs" type="boolean"/>
  13531. <exception name="IOException" type="java.io.IOException"/>
  13532. <doc>
  13533. <![CDATA[Merges the contents of files passed in Path[]
  13534. @param inNames the array of path names
  13535. @param tempDir the directory for creating temp files during merge
  13536. @param deleteInputs true if the input files should be deleted when
  13537. unnecessary
  13538. @return RawKeyValueIteratorMergeQueue
  13539. @throws IOException]]>
  13540. </doc>
  13541. </method>
  13542. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13543. abstract="false" native="false" synchronized="false"
  13544. static="false" final="false" visibility="public"
  13545. deprecated="not deprecated">
  13546. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13547. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  13548. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  13549. <exception name="IOException" type="java.io.IOException"/>
  13550. <doc>
  13551. <![CDATA[Clones the attributes (like compression of the input file and creates a
  13552. corresponding Writer
  13553. @param inputFile the path of the input file whose attributes should be
  13554. cloned
  13555. @param outputFile the path of the output file
  13556. @param prog the Progressable to report status during the file write
  13557. @return Writer
  13558. @throws IOException]]>
  13559. </doc>
  13560. </method>
  13561. <method name="writeFile"
  13562. abstract="false" native="false" synchronized="false"
  13563. static="false" final="false" visibility="public"
  13564. deprecated="not deprecated">
  13565. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  13566. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  13567. <exception name="IOException" type="java.io.IOException"/>
  13568. <doc>
  13569. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  13570. passed writer
  13571. @param records the RawKeyValueIterator
  13572. @param writer the Writer created earlier
  13573. @throws IOException]]>
  13574. </doc>
  13575. </method>
  13576. <method name="merge"
  13577. abstract="false" native="false" synchronized="false"
  13578. static="false" final="false" visibility="public"
  13579. deprecated="not deprecated">
  13580. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13581. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13582. <exception name="IOException" type="java.io.IOException"/>
  13583. <doc>
  13584. <![CDATA[Merge the provided files.
  13585. @param inFiles the array of input path names
  13586. @param outFile the final output file
  13587. @throws IOException]]>
  13588. </doc>
  13589. </method>
  13590. <doc>
  13591. <![CDATA[Sorts key/value pairs in a sequence-format file.
  13592. <p>For best performance, applications should make sure that the {@link
  13593. Writable#readFields(DataInput)} implementation of their keys is
  13594. very efficient. In particular, it should avoid allocating memory.]]>
  13595. </doc>
  13596. </class>
  13597. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  13598. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13599. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  13600. static="true" final="false" visibility="public"
  13601. deprecated="not deprecated">
  13602. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13603. abstract="false" native="false" synchronized="false"
  13604. static="false" final="false" visibility="public"
  13605. deprecated="not deprecated">
  13606. <exception name="IOException" type="java.io.IOException"/>
  13607. <doc>
  13608. <![CDATA[Gets the current raw key
  13609. @return DataOutputBuffer
  13610. @throws IOException]]>
  13611. </doc>
  13612. </method>
  13613. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13614. abstract="false" native="false" synchronized="false"
  13615. static="false" final="false" visibility="public"
  13616. deprecated="not deprecated">
  13617. <exception name="IOException" type="java.io.IOException"/>
  13618. <doc>
  13619. <![CDATA[Gets the current raw value
  13620. @return ValueBytes
  13621. @throws IOException]]>
  13622. </doc>
  13623. </method>
  13624. <method name="next" return="boolean"
  13625. abstract="false" native="false" synchronized="false"
  13626. static="false" final="false" visibility="public"
  13627. deprecated="not deprecated">
  13628. <exception name="IOException" type="java.io.IOException"/>
  13629. <doc>
  13630. <![CDATA[Sets up the current key and value (for getKey and getValue)
  13631. @return true if there exists a key/value, false otherwise
  13632. @throws IOException]]>
  13633. </doc>
  13634. </method>
  13635. <method name="close"
  13636. abstract="false" native="false" synchronized="false"
  13637. static="false" final="false" visibility="public"
  13638. deprecated="not deprecated">
  13639. <exception name="IOException" type="java.io.IOException"/>
  13640. <doc>
  13641. <![CDATA[closes the iterator so that the underlying streams can be closed
  13642. @throws IOException]]>
  13643. </doc>
  13644. </method>
  13645. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  13646. abstract="false" native="false" synchronized="false"
  13647. static="false" final="false" visibility="public"
  13648. deprecated="not deprecated">
  13649. <doc>
  13650. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  13651. indicating the bytes processed by the iterator so far]]>
  13652. </doc>
  13653. </method>
  13654. <doc>
  13655. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  13656. </doc>
  13657. </interface>
  13658. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  13659. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13660. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  13661. abstract="false"
  13662. static="false" final="false" visibility="public"
  13663. deprecated="not deprecated">
  13664. <implements name="java.lang.Comparable"/>
  13665. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  13666. static="false" final="false" visibility="public"
  13667. deprecated="not deprecated">
  13668. <doc>
  13669. <![CDATA[Constructs a segment
  13670. @param segmentOffset the offset of the segment in the file
  13671. @param segmentLength the length of the segment
  13672. @param segmentPathName the path name of the file containing the segment]]>
  13673. </doc>
  13674. </constructor>
  13675. <method name="doSync"
  13676. abstract="false" native="false" synchronized="false"
  13677. static="false" final="false" visibility="public"
  13678. deprecated="not deprecated">
  13679. <doc>
  13680. <![CDATA[Do the sync checks]]>
  13681. </doc>
  13682. </method>
  13683. <method name="preserveInput"
  13684. abstract="false" native="false" synchronized="false"
  13685. static="false" final="false" visibility="public"
  13686. deprecated="not deprecated">
  13687. <param name="preserve" type="boolean"/>
  13688. <doc>
  13689. <![CDATA[Whether to delete the files when no longer needed]]>
  13690. </doc>
  13691. </method>
  13692. <method name="shouldPreserveInput" return="boolean"
  13693. abstract="false" native="false" synchronized="false"
  13694. static="false" final="false" visibility="public"
  13695. deprecated="not deprecated">
  13696. </method>
  13697. <method name="compareTo" return="int"
  13698. abstract="false" native="false" synchronized="false"
  13699. static="false" final="false" visibility="public"
  13700. deprecated="not deprecated">
  13701. <param name="o" type="java.lang.Object"/>
  13702. </method>
  13703. <method name="equals" return="boolean"
  13704. abstract="false" native="false" synchronized="false"
  13705. static="false" final="false" visibility="public"
  13706. deprecated="not deprecated">
  13707. <param name="o" type="java.lang.Object"/>
  13708. </method>
  13709. <method name="hashCode" return="int"
  13710. abstract="false" native="false" synchronized="false"
  13711. static="false" final="false" visibility="public"
  13712. deprecated="not deprecated">
  13713. </method>
  13714. <method name="nextRawKey" return="boolean"
  13715. abstract="false" native="false" synchronized="false"
  13716. static="false" final="false" visibility="public"
  13717. deprecated="not deprecated">
  13718. <exception name="IOException" type="java.io.IOException"/>
  13719. <doc>
  13720. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  13721. @return true if there is a key returned; false, otherwise
  13722. @throws IOException]]>
  13723. </doc>
  13724. </method>
  13725. <method name="nextRawValue" return="int"
  13726. abstract="false" native="false" synchronized="false"
  13727. static="false" final="false" visibility="public"
  13728. deprecated="not deprecated">
  13729. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13730. <exception name="IOException" type="java.io.IOException"/>
  13731. <doc>
  13732. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  13733. read earlier
  13734. @param rawValue
  13735. @return the length of the value
  13736. @throws IOException]]>
  13737. </doc>
  13738. </method>
  13739. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  13740. abstract="false" native="false" synchronized="false"
  13741. static="false" final="false" visibility="public"
  13742. deprecated="not deprecated">
  13743. <doc>
  13744. <![CDATA[Returns the stored rawKey]]>
  13745. </doc>
  13746. </method>
  13747. <method name="cleanup"
  13748. abstract="false" native="false" synchronized="false"
  13749. static="false" final="false" visibility="public"
  13750. deprecated="not deprecated">
  13751. <exception name="IOException" type="java.io.IOException"/>
  13752. <doc>
  13753. <![CDATA[The default cleanup. Subclasses can override this with a custom
  13754. cleanup]]>
  13755. </doc>
  13756. </method>
  13757. <doc>
  13758. <![CDATA[This class defines a merge segment. This class can be subclassed to
  13759. provide a customized cleanup method implementation. In this
  13760. implementation, cleanup closes the file handle and deletes the file]]>
  13761. </doc>
  13762. </class>
  13763. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  13764. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  13765. <interface name="SequenceFile.ValueBytes" abstract="true"
  13766. static="true" final="false" visibility="public"
  13767. deprecated="not deprecated">
  13768. <method name="writeUncompressedBytes"
  13769. abstract="false" native="false" synchronized="false"
  13770. static="false" final="false" visibility="public"
  13771. deprecated="not deprecated">
  13772. <param name="outStream" type="java.io.DataOutputStream"/>
  13773. <exception name="IOException" type="java.io.IOException"/>
  13774. <doc>
  13775. <![CDATA[Writes the uncompressed bytes to the outStream.
  13776. @param outStream : Stream to write uncompressed bytes into.
  13777. @throws IOException]]>
  13778. </doc>
  13779. </method>
  13780. <method name="writeCompressedBytes"
  13781. abstract="false" native="false" synchronized="false"
  13782. static="false" final="false" visibility="public"
  13783. deprecated="not deprecated">
  13784. <param name="outStream" type="java.io.DataOutputStream"/>
  13785. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  13786. <exception name="IOException" type="java.io.IOException"/>
  13787. <doc>
  13788. <![CDATA[Write compressed bytes to outStream.
  13789. Note: that it will NOT compress the bytes if they are not compressed.
  13790. @param outStream : Stream to write compressed bytes into.]]>
  13791. </doc>
  13792. </method>
  13793. <method name="getSize" return="int"
  13794. abstract="false" native="false" synchronized="false"
  13795. static="false" final="false" visibility="public"
  13796. deprecated="not deprecated">
  13797. <doc>
  13798. <![CDATA[Size of stored data.]]>
  13799. </doc>
  13800. </method>
  13801. <doc>
  13802. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  13803. </doc>
  13804. </interface>
  13805. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  13806. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  13807. <class name="SequenceFile.Writer" extends="java.lang.Object"
  13808. abstract="false"
  13809. static="true" final="false" visibility="public"
  13810. deprecated="not deprecated">
  13811. <implements name="java.io.Closeable"/>
  13812. <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"
  13813. static="false" final="false" visibility="public"
  13814. deprecated="not deprecated">
  13815. <exception name="IOException" type="java.io.IOException"/>
  13816. <doc>
  13817. <![CDATA[Create the named file.]]>
  13818. </doc>
  13819. </constructor>
  13820. <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"
  13821. static="false" final="false" visibility="public"
  13822. deprecated="not deprecated">
  13823. <exception name="IOException" type="java.io.IOException"/>
  13824. <doc>
  13825. <![CDATA[Create the named file with write-progress reporter.]]>
  13826. </doc>
  13827. </constructor>
  13828. <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"
  13829. static="false" final="false" visibility="public"
  13830. deprecated="not deprecated">
  13831. <exception name="IOException" type="java.io.IOException"/>
  13832. <doc>
  13833. <![CDATA[Create the named file with write-progress reporter.]]>
  13834. </doc>
  13835. </constructor>
  13836. <method name="getKeyClass" return="java.lang.Class"
  13837. abstract="false" native="false" synchronized="false"
  13838. static="false" final="false" visibility="public"
  13839. deprecated="not deprecated">
  13840. <doc>
  13841. <![CDATA[Returns the class of keys in this file.]]>
  13842. </doc>
  13843. </method>
  13844. <method name="getValueClass" return="java.lang.Class"
  13845. abstract="false" native="false" synchronized="false"
  13846. static="false" final="false" visibility="public"
  13847. deprecated="not deprecated">
  13848. <doc>
  13849. <![CDATA[Returns the class of values in this file.]]>
  13850. </doc>
  13851. </method>
  13852. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13853. abstract="false" native="false" synchronized="false"
  13854. static="false" final="false" visibility="public"
  13855. deprecated="not deprecated">
  13856. <doc>
  13857. <![CDATA[Returns the compression codec of data in this file.]]>
  13858. </doc>
  13859. </method>
  13860. <method name="sync"
  13861. abstract="false" native="false" synchronized="false"
  13862. static="false" final="false" visibility="public"
  13863. deprecated="not deprecated">
  13864. <exception name="IOException" type="java.io.IOException"/>
  13865. <doc>
  13866. <![CDATA[create a sync point]]>
  13867. </doc>
  13868. </method>
  13869. <method name="syncFs"
  13870. abstract="false" native="false" synchronized="false"
  13871. static="false" final="false" visibility="public"
  13872. deprecated="not deprecated">
  13873. <exception name="IOException" type="java.io.IOException"/>
  13874. <doc>
  13875. <![CDATA[flush all currently written data to the file system]]>
  13876. </doc>
  13877. </method>
  13878. <method name="close"
  13879. abstract="false" native="false" synchronized="true"
  13880. static="false" final="false" visibility="public"
  13881. deprecated="not deprecated">
  13882. <exception name="IOException" type="java.io.IOException"/>
  13883. <doc>
  13884. <![CDATA[Close the file.]]>
  13885. </doc>
  13886. </method>
  13887. <method name="append"
  13888. abstract="false" native="false" synchronized="true"
  13889. static="false" final="false" visibility="public"
  13890. deprecated="not deprecated">
  13891. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13892. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13893. <exception name="IOException" type="java.io.IOException"/>
  13894. <doc>
  13895. <![CDATA[Append a key/value pair.]]>
  13896. </doc>
  13897. </method>
  13898. <method name="append"
  13899. abstract="false" native="false" synchronized="true"
  13900. static="false" final="false" visibility="public"
  13901. deprecated="not deprecated">
  13902. <param name="key" type="java.lang.Object"/>
  13903. <param name="val" type="java.lang.Object"/>
  13904. <exception name="IOException" type="java.io.IOException"/>
  13905. <doc>
  13906. <![CDATA[Append a key/value pair.]]>
  13907. </doc>
  13908. </method>
  13909. <method name="appendRaw"
  13910. abstract="false" native="false" synchronized="true"
  13911. static="false" final="false" visibility="public"
  13912. deprecated="not deprecated">
  13913. <param name="keyData" type="byte[]"/>
  13914. <param name="keyOffset" type="int"/>
  13915. <param name="keyLength" type="int"/>
  13916. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13917. <exception name="IOException" type="java.io.IOException"/>
  13918. </method>
  13919. <method name="getLength" return="long"
  13920. abstract="false" native="false" synchronized="true"
  13921. static="false" final="false" visibility="public"
  13922. deprecated="not deprecated">
  13923. <exception name="IOException" type="java.io.IOException"/>
  13924. <doc>
  13925. <![CDATA[Returns the current length of the output file.
  13926. <p>This always returns a synchronized position. In other words,
  13927. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  13928. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  13929. the key may be earlier in the file than key last written when this
  13930. method was called (e.g., with block-compression, it may be the first key
  13931. in the block that was being written when this method was called).]]>
  13932. </doc>
  13933. </method>
  13934. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13935. transient="false" volatile="false"
  13936. static="false" final="false" visibility="protected"
  13937. deprecated="not deprecated">
  13938. </field>
  13939. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13940. transient="false" volatile="false"
  13941. static="false" final="false" visibility="protected"
  13942. deprecated="not deprecated">
  13943. </field>
  13944. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  13945. transient="false" volatile="false"
  13946. static="false" final="false" visibility="protected"
  13947. deprecated="not deprecated">
  13948. </field>
  13949. <doc>
  13950. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  13951. </doc>
  13952. </class>
  13953. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  13954. <!-- start class org.apache.hadoop.io.SetFile -->
  13955. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  13956. abstract="false"
  13957. static="false" final="false" visibility="public"
  13958. deprecated="not deprecated">
  13959. <constructor name="SetFile"
  13960. static="false" final="false" visibility="protected"
  13961. deprecated="not deprecated">
  13962. </constructor>
  13963. <doc>
  13964. <![CDATA[A file-based set of keys.]]>
  13965. </doc>
  13966. </class>
  13967. <!-- end class org.apache.hadoop.io.SetFile -->
  13968. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  13969. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  13970. abstract="false"
  13971. static="true" final="false" visibility="public"
  13972. deprecated="not deprecated">
  13973. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  13974. static="false" final="false" visibility="public"
  13975. deprecated="not deprecated">
  13976. <exception name="IOException" type="java.io.IOException"/>
  13977. <doc>
  13978. <![CDATA[Construct a set reader for the named set.]]>
  13979. </doc>
  13980. </constructor>
  13981. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  13982. static="false" final="false" visibility="public"
  13983. deprecated="not deprecated">
  13984. <exception name="IOException" type="java.io.IOException"/>
  13985. <doc>
  13986. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  13987. </doc>
  13988. </constructor>
  13989. <method name="seek" return="boolean"
  13990. abstract="false" native="false" synchronized="false"
  13991. static="false" final="false" visibility="public"
  13992. deprecated="not deprecated">
  13993. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13994. <exception name="IOException" type="java.io.IOException"/>
  13995. </method>
  13996. <method name="next" return="boolean"
  13997. abstract="false" native="false" synchronized="false"
  13998. static="false" final="false" visibility="public"
  13999. deprecated="not deprecated">
  14000. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14001. <exception name="IOException" type="java.io.IOException"/>
  14002. <doc>
  14003. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14004. true if such a key exists and false when at the end of the set.]]>
  14005. </doc>
  14006. </method>
  14007. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14008. abstract="false" native="false" synchronized="false"
  14009. static="false" final="false" visibility="public"
  14010. deprecated="not deprecated">
  14011. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14012. <exception name="IOException" type="java.io.IOException"/>
  14013. <doc>
  14014. <![CDATA[Read the matching key from a set into <code>key</code>.
  14015. Returns <code>key</code>, or null if no match exists.]]>
  14016. </doc>
  14017. </method>
  14018. <doc>
  14019. <![CDATA[Provide access to an existing set file.]]>
  14020. </doc>
  14021. </class>
  14022. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14023. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14024. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14025. abstract="false"
  14026. static="true" final="false" visibility="public"
  14027. deprecated="not deprecated">
  14028. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14029. static="false" final="false" visibility="public"
  14030. deprecated="pass a Configuration too">
  14031. <exception name="IOException" type="java.io.IOException"/>
  14032. <doc>
  14033. <![CDATA[Create the named set for keys of the named class.
  14034. @deprecated pass a Configuration too]]>
  14035. </doc>
  14036. </constructor>
  14037. <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"
  14038. static="false" final="false" visibility="public"
  14039. deprecated="not deprecated">
  14040. <exception name="IOException" type="java.io.IOException"/>
  14041. <doc>
  14042. <![CDATA[Create a set naming the element class and compression type.]]>
  14043. </doc>
  14044. </constructor>
  14045. <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"
  14046. static="false" final="false" visibility="public"
  14047. deprecated="not deprecated">
  14048. <exception name="IOException" type="java.io.IOException"/>
  14049. <doc>
  14050. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14051. </doc>
  14052. </constructor>
  14053. <method name="append"
  14054. abstract="false" native="false" synchronized="false"
  14055. static="false" final="false" visibility="public"
  14056. deprecated="not deprecated">
  14057. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14058. <exception name="IOException" type="java.io.IOException"/>
  14059. <doc>
  14060. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14061. previous key added to the set.]]>
  14062. </doc>
  14063. </method>
  14064. <doc>
  14065. <![CDATA[Write a new set file.]]>
  14066. </doc>
  14067. </class>
  14068. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14069. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14070. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14071. abstract="false"
  14072. static="false" final="false" visibility="public"
  14073. deprecated="not deprecated">
  14074. <implements name="java.util.SortedMap"/>
  14075. <constructor name="SortedMapWritable"
  14076. static="false" final="false" visibility="public"
  14077. deprecated="not deprecated">
  14078. <doc>
  14079. <![CDATA[default constructor.]]>
  14080. </doc>
  14081. </constructor>
  14082. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14083. static="false" final="false" visibility="public"
  14084. deprecated="not deprecated">
  14085. <doc>
  14086. <![CDATA[Copy constructor.
  14087. @param other the map to copy from]]>
  14088. </doc>
  14089. </constructor>
  14090. <method name="comparator" return="java.util.Comparator"
  14091. abstract="false" native="false" synchronized="false"
  14092. static="false" final="false" visibility="public"
  14093. deprecated="not deprecated">
  14094. <doc>
  14095. <![CDATA[{@inheritDoc}]]>
  14096. </doc>
  14097. </method>
  14098. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14099. abstract="false" native="false" synchronized="false"
  14100. static="false" final="false" visibility="public"
  14101. deprecated="not deprecated">
  14102. <doc>
  14103. <![CDATA[{@inheritDoc}]]>
  14104. </doc>
  14105. </method>
  14106. <method name="headMap" return="java.util.SortedMap"
  14107. abstract="false" native="false" synchronized="false"
  14108. static="false" final="false" visibility="public"
  14109. deprecated="not deprecated">
  14110. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14111. <doc>
  14112. <![CDATA[{@inheritDoc}]]>
  14113. </doc>
  14114. </method>
  14115. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14116. abstract="false" native="false" synchronized="false"
  14117. static="false" final="false" visibility="public"
  14118. deprecated="not deprecated">
  14119. <doc>
  14120. <![CDATA[{@inheritDoc}]]>
  14121. </doc>
  14122. </method>
  14123. <method name="subMap" return="java.util.SortedMap"
  14124. abstract="false" native="false" synchronized="false"
  14125. static="false" final="false" visibility="public"
  14126. deprecated="not deprecated">
  14127. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14128. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14129. <doc>
  14130. <![CDATA[{@inheritDoc}]]>
  14131. </doc>
  14132. </method>
  14133. <method name="tailMap" return="java.util.SortedMap"
  14134. abstract="false" native="false" synchronized="false"
  14135. static="false" final="false" visibility="public"
  14136. deprecated="not deprecated">
  14137. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14138. <doc>
  14139. <![CDATA[{@inheritDoc}]]>
  14140. </doc>
  14141. </method>
  14142. <method name="clear"
  14143. abstract="false" native="false" synchronized="false"
  14144. static="false" final="false" visibility="public"
  14145. deprecated="not deprecated">
  14146. <doc>
  14147. <![CDATA[{@inheritDoc}]]>
  14148. </doc>
  14149. </method>
  14150. <method name="containsKey" return="boolean"
  14151. abstract="false" native="false" synchronized="false"
  14152. static="false" final="false" visibility="public"
  14153. deprecated="not deprecated">
  14154. <param name="key" type="java.lang.Object"/>
  14155. <doc>
  14156. <![CDATA[{@inheritDoc}]]>
  14157. </doc>
  14158. </method>
  14159. <method name="containsValue" return="boolean"
  14160. abstract="false" native="false" synchronized="false"
  14161. static="false" final="false" visibility="public"
  14162. deprecated="not deprecated">
  14163. <param name="value" type="java.lang.Object"/>
  14164. <doc>
  14165. <![CDATA[{@inheritDoc}]]>
  14166. </doc>
  14167. </method>
  14168. <method name="entrySet" return="java.util.Set"
  14169. abstract="false" native="false" synchronized="false"
  14170. static="false" final="false" visibility="public"
  14171. deprecated="not deprecated">
  14172. <doc>
  14173. <![CDATA[{@inheritDoc}]]>
  14174. </doc>
  14175. </method>
  14176. <method name="get" return="org.apache.hadoop.io.Writable"
  14177. abstract="false" native="false" synchronized="false"
  14178. static="false" final="false" visibility="public"
  14179. deprecated="not deprecated">
  14180. <param name="key" type="java.lang.Object"/>
  14181. <doc>
  14182. <![CDATA[{@inheritDoc}]]>
  14183. </doc>
  14184. </method>
  14185. <method name="isEmpty" return="boolean"
  14186. abstract="false" native="false" synchronized="false"
  14187. static="false" final="false" visibility="public"
  14188. deprecated="not deprecated">
  14189. <doc>
  14190. <![CDATA[{@inheritDoc}]]>
  14191. </doc>
  14192. </method>
  14193. <method name="keySet" return="java.util.Set"
  14194. abstract="false" native="false" synchronized="false"
  14195. static="false" final="false" visibility="public"
  14196. deprecated="not deprecated">
  14197. <doc>
  14198. <![CDATA[{@inheritDoc}]]>
  14199. </doc>
  14200. </method>
  14201. <method name="put" return="org.apache.hadoop.io.Writable"
  14202. abstract="false" native="false" synchronized="false"
  14203. static="false" final="false" visibility="public"
  14204. deprecated="not deprecated">
  14205. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14206. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14207. <doc>
  14208. <![CDATA[{@inheritDoc}]]>
  14209. </doc>
  14210. </method>
  14211. <method name="putAll"
  14212. abstract="false" native="false" synchronized="false"
  14213. static="false" final="false" visibility="public"
  14214. deprecated="not deprecated">
  14215. <param name="t" type="java.util.Map"/>
  14216. <doc>
  14217. <![CDATA[{@inheritDoc}]]>
  14218. </doc>
  14219. </method>
  14220. <method name="remove" return="org.apache.hadoop.io.Writable"
  14221. abstract="false" native="false" synchronized="false"
  14222. static="false" final="false" visibility="public"
  14223. deprecated="not deprecated">
  14224. <param name="key" type="java.lang.Object"/>
  14225. <doc>
  14226. <![CDATA[{@inheritDoc}]]>
  14227. </doc>
  14228. </method>
  14229. <method name="size" return="int"
  14230. abstract="false" native="false" synchronized="false"
  14231. static="false" final="false" visibility="public"
  14232. deprecated="not deprecated">
  14233. <doc>
  14234. <![CDATA[{@inheritDoc}]]>
  14235. </doc>
  14236. </method>
  14237. <method name="values" return="java.util.Collection"
  14238. abstract="false" native="false" synchronized="false"
  14239. static="false" final="false" visibility="public"
  14240. deprecated="not deprecated">
  14241. <doc>
  14242. <![CDATA[{@inheritDoc}]]>
  14243. </doc>
  14244. </method>
  14245. <method name="readFields"
  14246. abstract="false" native="false" synchronized="false"
  14247. static="false" final="false" visibility="public"
  14248. deprecated="not deprecated">
  14249. <param name="in" type="java.io.DataInput"/>
  14250. <exception name="IOException" type="java.io.IOException"/>
  14251. <doc>
  14252. <![CDATA[{@inheritDoc}]]>
  14253. </doc>
  14254. </method>
  14255. <method name="write"
  14256. abstract="false" native="false" synchronized="false"
  14257. static="false" final="false" visibility="public"
  14258. deprecated="not deprecated">
  14259. <param name="out" type="java.io.DataOutput"/>
  14260. <exception name="IOException" type="java.io.IOException"/>
  14261. <doc>
  14262. <![CDATA[{@inheritDoc}]]>
  14263. </doc>
  14264. </method>
  14265. <doc>
  14266. <![CDATA[A Writable SortedMap.]]>
  14267. </doc>
  14268. </class>
  14269. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14270. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14271. <interface name="Stringifier" abstract="true"
  14272. static="false" final="false" visibility="public"
  14273. deprecated="not deprecated">
  14274. <implements name="java.io.Closeable"/>
  14275. <method name="toString" return="java.lang.String"
  14276. abstract="false" native="false" synchronized="false"
  14277. static="false" final="false" visibility="public"
  14278. deprecated="not deprecated">
  14279. <param name="obj" type="java.lang.Object"/>
  14280. <exception name="IOException" type="java.io.IOException"/>
  14281. <doc>
  14282. <![CDATA[Converts the object to a string representation
  14283. @param obj the object to convert
  14284. @return the string representation of the object
  14285. @throws IOException if the object cannot be converted]]>
  14286. </doc>
  14287. </method>
  14288. <method name="fromString" return="java.lang.Object"
  14289. abstract="false" native="false" synchronized="false"
  14290. static="false" final="false" visibility="public"
  14291. deprecated="not deprecated">
  14292. <param name="str" type="java.lang.String"/>
  14293. <exception name="IOException" type="java.io.IOException"/>
  14294. <doc>
  14295. <![CDATA[Restores the object from its string representation.
  14296. @param str the string representation of the object
  14297. @return restored object
  14298. @throws IOException if the object cannot be restored]]>
  14299. </doc>
  14300. </method>
  14301. <method name="close"
  14302. abstract="false" native="false" synchronized="false"
  14303. static="false" final="false" visibility="public"
  14304. deprecated="not deprecated">
  14305. <exception name="IOException" type="java.io.IOException"/>
  14306. <doc>
  14307. <![CDATA[Closes this object.
  14308. @throws IOException if an I/O error occurs]]>
  14309. </doc>
  14310. </method>
  14311. <doc>
  14312. <![CDATA[Stringifier interface offers two methods to convert an object
  14313. to a string representation and restore the object given its
  14314. string representation.
  14315. @param <T> the class of the objects to stringify]]>
  14316. </doc>
  14317. </interface>
  14318. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14319. <!-- start class org.apache.hadoop.io.Text -->
  14320. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14321. abstract="false"
  14322. static="false" final="false" visibility="public"
  14323. deprecated="not deprecated">
  14324. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14325. <constructor name="Text"
  14326. static="false" final="false" visibility="public"
  14327. deprecated="not deprecated">
  14328. </constructor>
  14329. <constructor name="Text" type="java.lang.String"
  14330. static="false" final="false" visibility="public"
  14331. deprecated="not deprecated">
  14332. <doc>
  14333. <![CDATA[Construct from a string.]]>
  14334. </doc>
  14335. </constructor>
  14336. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14337. static="false" final="false" visibility="public"
  14338. deprecated="not deprecated">
  14339. <doc>
  14340. <![CDATA[Construct from another text.]]>
  14341. </doc>
  14342. </constructor>
  14343. <constructor name="Text" type="byte[]"
  14344. static="false" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. <doc>
  14347. <![CDATA[Construct from a byte array.]]>
  14348. </doc>
  14349. </constructor>
  14350. <method name="getBytes" return="byte[]"
  14351. abstract="false" native="false" synchronized="false"
  14352. static="false" final="false" visibility="public"
  14353. deprecated="not deprecated">
  14354. <doc>
  14355. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14356. valid.]]>
  14357. </doc>
  14358. </method>
  14359. <method name="getLength" return="int"
  14360. abstract="false" native="false" synchronized="false"
  14361. static="false" final="false" visibility="public"
  14362. deprecated="not deprecated">
  14363. <doc>
  14364. <![CDATA[Returns the number of bytes in the byte array]]>
  14365. </doc>
  14366. </method>
  14367. <method name="charAt" return="int"
  14368. abstract="false" native="false" synchronized="false"
  14369. static="false" final="false" visibility="public"
  14370. deprecated="not deprecated">
  14371. <param name="position" type="int"/>
  14372. <doc>
  14373. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14374. for the character at <code>position</code>. Note that this
  14375. method avoids using the converter or doing String instatiation
  14376. @return the Unicode scalar value at position or -1
  14377. if the position is invalid or points to a
  14378. trailing byte]]>
  14379. </doc>
  14380. </method>
  14381. <method name="find" return="int"
  14382. abstract="false" native="false" synchronized="false"
  14383. static="false" final="false" visibility="public"
  14384. deprecated="not deprecated">
  14385. <param name="what" type="java.lang.String"/>
  14386. </method>
  14387. <method name="find" return="int"
  14388. abstract="false" native="false" synchronized="false"
  14389. static="false" final="false" visibility="public"
  14390. deprecated="not deprecated">
  14391. <param name="what" type="java.lang.String"/>
  14392. <param name="start" type="int"/>
  14393. <doc>
  14394. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14395. buffer, starting as position <code>start</code>. The starting
  14396. position is measured in bytes and the return value is in
  14397. terms of byte position in the buffer. The backing buffer is
  14398. not converted to a string for this operation.
  14399. @return byte position of the first occurence of the search
  14400. string in the UTF-8 buffer or -1 if not found]]>
  14401. </doc>
  14402. </method>
  14403. <method name="set"
  14404. abstract="false" native="false" synchronized="false"
  14405. static="false" final="false" visibility="public"
  14406. deprecated="not deprecated">
  14407. <param name="string" type="java.lang.String"/>
  14408. <doc>
  14409. <![CDATA[Set to contain the contents of a string.]]>
  14410. </doc>
  14411. </method>
  14412. <method name="set"
  14413. abstract="false" native="false" synchronized="false"
  14414. static="false" final="false" visibility="public"
  14415. deprecated="not deprecated">
  14416. <param name="utf8" type="byte[]"/>
  14417. <doc>
  14418. <![CDATA[Set to a utf8 byte array]]>
  14419. </doc>
  14420. </method>
  14421. <method name="set"
  14422. abstract="false" native="false" synchronized="false"
  14423. static="false" final="false" visibility="public"
  14424. deprecated="not deprecated">
  14425. <param name="other" type="org.apache.hadoop.io.Text"/>
  14426. <doc>
  14427. <![CDATA[copy a text.]]>
  14428. </doc>
  14429. </method>
  14430. <method name="set"
  14431. abstract="false" native="false" synchronized="false"
  14432. static="false" final="false" visibility="public"
  14433. deprecated="not deprecated">
  14434. <param name="utf8" type="byte[]"/>
  14435. <param name="start" type="int"/>
  14436. <param name="len" type="int"/>
  14437. <doc>
  14438. <![CDATA[Set the Text to range of bytes
  14439. @param utf8 the data to copy from
  14440. @param start the first position of the new string
  14441. @param len the number of bytes of the new string]]>
  14442. </doc>
  14443. </method>
  14444. <method name="append"
  14445. abstract="false" native="false" synchronized="false"
  14446. static="false" final="false" visibility="public"
  14447. deprecated="not deprecated">
  14448. <param name="utf8" type="byte[]"/>
  14449. <param name="start" type="int"/>
  14450. <param name="len" type="int"/>
  14451. <doc>
  14452. <![CDATA[Append a range of bytes to the end of the given text
  14453. @param utf8 the data to copy from
  14454. @param start the first position to append from utf8
  14455. @param len the number of bytes to append]]>
  14456. </doc>
  14457. </method>
  14458. <method name="clear"
  14459. abstract="false" native="false" synchronized="false"
  14460. static="false" final="false" visibility="public"
  14461. deprecated="not deprecated">
  14462. <doc>
  14463. <![CDATA[Clear the string to empty.]]>
  14464. </doc>
  14465. </method>
  14466. <method name="toString" return="java.lang.String"
  14467. abstract="false" native="false" synchronized="false"
  14468. static="false" final="false" visibility="public"
  14469. deprecated="not deprecated">
  14470. <doc>
  14471. <![CDATA[Convert text back to string
  14472. @see java.lang.Object#toString()]]>
  14473. </doc>
  14474. </method>
  14475. <method name="readFields"
  14476. abstract="false" native="false" synchronized="false"
  14477. static="false" final="false" visibility="public"
  14478. deprecated="not deprecated">
  14479. <param name="in" type="java.io.DataInput"/>
  14480. <exception name="IOException" type="java.io.IOException"/>
  14481. <doc>
  14482. <![CDATA[deserialize]]>
  14483. </doc>
  14484. </method>
  14485. <method name="skip"
  14486. abstract="false" native="false" synchronized="false"
  14487. static="true" final="false" visibility="public"
  14488. deprecated="not deprecated">
  14489. <param name="in" type="java.io.DataInput"/>
  14490. <exception name="IOException" type="java.io.IOException"/>
  14491. <doc>
  14492. <![CDATA[Skips over one Text in the input.]]>
  14493. </doc>
  14494. </method>
  14495. <method name="write"
  14496. abstract="false" native="false" synchronized="false"
  14497. static="false" final="false" visibility="public"
  14498. deprecated="not deprecated">
  14499. <param name="out" type="java.io.DataOutput"/>
  14500. <exception name="IOException" type="java.io.IOException"/>
  14501. <doc>
  14502. <![CDATA[serialize
  14503. write this object to out
  14504. length uses zero-compressed encoding
  14505. @see Writable#write(DataOutput)]]>
  14506. </doc>
  14507. </method>
  14508. <method name="equals" return="boolean"
  14509. abstract="false" native="false" synchronized="false"
  14510. static="false" final="false" visibility="public"
  14511. deprecated="not deprecated">
  14512. <param name="o" type="java.lang.Object"/>
  14513. <doc>
  14514. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14515. </doc>
  14516. </method>
  14517. <method name="hashCode" return="int"
  14518. abstract="false" native="false" synchronized="false"
  14519. static="false" final="false" visibility="public"
  14520. deprecated="not deprecated">
  14521. </method>
  14522. <method name="decode" return="java.lang.String"
  14523. abstract="false" native="false" synchronized="false"
  14524. static="true" final="false" visibility="public"
  14525. deprecated="not deprecated">
  14526. <param name="utf8" type="byte[]"/>
  14527. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14528. <doc>
  14529. <![CDATA[Converts the provided byte array to a String using the
  14530. UTF-8 encoding. If the input is malformed,
  14531. replace by a default value.]]>
  14532. </doc>
  14533. </method>
  14534. <method name="decode" return="java.lang.String"
  14535. abstract="false" native="false" synchronized="false"
  14536. static="true" final="false" visibility="public"
  14537. deprecated="not deprecated">
  14538. <param name="utf8" type="byte[]"/>
  14539. <param name="start" type="int"/>
  14540. <param name="length" type="int"/>
  14541. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14542. </method>
  14543. <method name="decode" return="java.lang.String"
  14544. abstract="false" native="false" synchronized="false"
  14545. static="true" final="false" visibility="public"
  14546. deprecated="not deprecated">
  14547. <param name="utf8" type="byte[]"/>
  14548. <param name="start" type="int"/>
  14549. <param name="length" type="int"/>
  14550. <param name="replace" type="boolean"/>
  14551. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14552. <doc>
  14553. <![CDATA[Converts the provided byte array to a String using the
  14554. UTF-8 encoding. If <code>replace</code> is true, then
  14555. malformed input is replaced with the
  14556. substitution character, which is U+FFFD. Otherwise the
  14557. method throws a MalformedInputException.]]>
  14558. </doc>
  14559. </method>
  14560. <method name="encode" return="java.nio.ByteBuffer"
  14561. abstract="false" native="false" synchronized="false"
  14562. static="true" final="false" visibility="public"
  14563. deprecated="not deprecated">
  14564. <param name="string" type="java.lang.String"/>
  14565. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14566. <doc>
  14567. <![CDATA[Converts the provided String to bytes using the
  14568. UTF-8 encoding. If the input is malformed,
  14569. invalid chars are replaced by a default value.
  14570. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14571. and length is ByteBuffer.limit()]]>
  14572. </doc>
  14573. </method>
  14574. <method name="encode" return="java.nio.ByteBuffer"
  14575. abstract="false" native="false" synchronized="false"
  14576. static="true" final="false" visibility="public"
  14577. deprecated="not deprecated">
  14578. <param name="string" type="java.lang.String"/>
  14579. <param name="replace" type="boolean"/>
  14580. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14581. <doc>
  14582. <![CDATA[Converts the provided String to bytes using the
  14583. UTF-8 encoding. If <code>replace</code> is true, then
  14584. malformed input is replaced with the
  14585. substitution character, which is U+FFFD. Otherwise the
  14586. method throws a MalformedInputException.
  14587. @return ByteBuffer: bytes stores at ByteBuffer.array()
  14588. and length is ByteBuffer.limit()]]>
  14589. </doc>
  14590. </method>
  14591. <method name="readString" return="java.lang.String"
  14592. abstract="false" native="false" synchronized="false"
  14593. static="true" final="false" visibility="public"
  14594. deprecated="not deprecated">
  14595. <param name="in" type="java.io.DataInput"/>
  14596. <exception name="IOException" type="java.io.IOException"/>
  14597. <doc>
  14598. <![CDATA[Read a UTF8 encoded string from in]]>
  14599. </doc>
  14600. </method>
  14601. <method name="writeString" return="int"
  14602. abstract="false" native="false" synchronized="false"
  14603. static="true" final="false" visibility="public"
  14604. deprecated="not deprecated">
  14605. <param name="out" type="java.io.DataOutput"/>
  14606. <param name="s" type="java.lang.String"/>
  14607. <exception name="IOException" type="java.io.IOException"/>
  14608. <doc>
  14609. <![CDATA[Write a UTF8 encoded string to out]]>
  14610. </doc>
  14611. </method>
  14612. <method name="validateUTF8"
  14613. abstract="false" native="false" synchronized="false"
  14614. static="true" final="false" visibility="public"
  14615. deprecated="not deprecated">
  14616. <param name="utf8" type="byte[]"/>
  14617. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14618. <doc>
  14619. <![CDATA[Check if a byte array contains valid utf-8
  14620. @param utf8 byte array
  14621. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  14622. </doc>
  14623. </method>
  14624. <method name="validateUTF8"
  14625. abstract="false" native="false" synchronized="false"
  14626. static="true" final="false" visibility="public"
  14627. deprecated="not deprecated">
  14628. <param name="utf8" type="byte[]"/>
  14629. <param name="start" type="int"/>
  14630. <param name="len" type="int"/>
  14631. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  14632. <doc>
  14633. <![CDATA[Check to see if a byte array is valid utf-8
  14634. @param utf8 the array of bytes
  14635. @param start the offset of the first byte in the array
  14636. @param len the length of the byte sequence
  14637. @throws MalformedInputException if the byte array contains invalid bytes]]>
  14638. </doc>
  14639. </method>
  14640. <method name="bytesToCodePoint" return="int"
  14641. abstract="false" native="false" synchronized="false"
  14642. static="true" final="false" visibility="public"
  14643. deprecated="not deprecated">
  14644. <param name="bytes" type="java.nio.ByteBuffer"/>
  14645. <doc>
  14646. <![CDATA[Returns the next code point at the current position in
  14647. the buffer. The buffer's position will be incremented.
  14648. Any mark set on this buffer will be changed by this method!]]>
  14649. </doc>
  14650. </method>
  14651. <method name="utf8Length" return="int"
  14652. abstract="false" native="false" synchronized="false"
  14653. static="true" final="false" visibility="public"
  14654. deprecated="not deprecated">
  14655. <param name="string" type="java.lang.String"/>
  14656. <doc>
  14657. <![CDATA[For the given string, returns the number of UTF-8 bytes
  14658. required to encode the string.
  14659. @param string text to encode
  14660. @return number of UTF-8 bytes required to encode]]>
  14661. </doc>
  14662. </method>
  14663. <doc>
  14664. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  14665. to serialize, deserialize, and compare texts at byte level. The type of
  14666. length is integer and is serialized using zero-compressed format. <p>In
  14667. addition, it provides methods for string traversal without converting the
  14668. byte array to a string. <p>Also includes utilities for
  14669. serializing/deserialing a string, coding/decoding a string, checking if a
  14670. byte array contains valid UTF8 code, calculating the length of an encoded
  14671. string.]]>
  14672. </doc>
  14673. </class>
  14674. <!-- end class org.apache.hadoop.io.Text -->
  14675. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  14676. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14677. abstract="false"
  14678. static="true" final="false" visibility="public"
  14679. deprecated="not deprecated">
  14680. <constructor name="Text.Comparator"
  14681. static="false" final="false" visibility="public"
  14682. deprecated="not deprecated">
  14683. </constructor>
  14684. <method name="compare" return="int"
  14685. abstract="false" native="false" synchronized="false"
  14686. static="false" final="false" visibility="public"
  14687. deprecated="not deprecated">
  14688. <param name="b1" type="byte[]"/>
  14689. <param name="s1" type="int"/>
  14690. <param name="l1" type="int"/>
  14691. <param name="b2" type="byte[]"/>
  14692. <param name="s2" type="int"/>
  14693. <param name="l2" type="int"/>
  14694. </method>
  14695. <doc>
  14696. <![CDATA[A WritableComparator optimized for Text keys.]]>
  14697. </doc>
  14698. </class>
  14699. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  14700. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  14701. <class name="TwoDArrayWritable" extends="java.lang.Object"
  14702. abstract="false"
  14703. static="false" final="false" visibility="public"
  14704. deprecated="not deprecated">
  14705. <implements name="org.apache.hadoop.io.Writable"/>
  14706. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  14707. static="false" final="false" visibility="public"
  14708. deprecated="not deprecated">
  14709. </constructor>
  14710. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  14711. static="false" final="false" visibility="public"
  14712. deprecated="not deprecated">
  14713. </constructor>
  14714. <method name="toArray" return="java.lang.Object"
  14715. abstract="false" native="false" synchronized="false"
  14716. static="false" final="false" visibility="public"
  14717. deprecated="not deprecated">
  14718. </method>
  14719. <method name="set"
  14720. abstract="false" native="false" synchronized="false"
  14721. static="false" final="false" visibility="public"
  14722. deprecated="not deprecated">
  14723. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  14724. </method>
  14725. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  14726. abstract="false" native="false" synchronized="false"
  14727. static="false" final="false" visibility="public"
  14728. deprecated="not deprecated">
  14729. </method>
  14730. <method name="readFields"
  14731. abstract="false" native="false" synchronized="false"
  14732. static="false" final="false" visibility="public"
  14733. deprecated="not deprecated">
  14734. <param name="in" type="java.io.DataInput"/>
  14735. <exception name="IOException" type="java.io.IOException"/>
  14736. </method>
  14737. <method name="write"
  14738. abstract="false" native="false" synchronized="false"
  14739. static="false" final="false" visibility="public"
  14740. deprecated="not deprecated">
  14741. <param name="out" type="java.io.DataOutput"/>
  14742. <exception name="IOException" type="java.io.IOException"/>
  14743. </method>
  14744. <doc>
  14745. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  14746. </doc>
  14747. </class>
  14748. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  14749. <!-- start class org.apache.hadoop.io.UTF8 -->
  14750. <class name="UTF8" extends="java.lang.Object"
  14751. abstract="false"
  14752. static="false" final="false" visibility="public"
  14753. deprecated="replaced by Text">
  14754. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14755. <constructor name="UTF8"
  14756. static="false" final="false" visibility="public"
  14757. deprecated="not deprecated">
  14758. </constructor>
  14759. <constructor name="UTF8" type="java.lang.String"
  14760. static="false" final="false" visibility="public"
  14761. deprecated="not deprecated">
  14762. <doc>
  14763. <![CDATA[Construct from a given string.]]>
  14764. </doc>
  14765. </constructor>
  14766. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  14767. static="false" final="false" visibility="public"
  14768. deprecated="not deprecated">
  14769. <doc>
  14770. <![CDATA[Construct from a given string.]]>
  14771. </doc>
  14772. </constructor>
  14773. <method name="getBytes" return="byte[]"
  14774. abstract="false" native="false" synchronized="false"
  14775. static="false" final="false" visibility="public"
  14776. deprecated="not deprecated">
  14777. <doc>
  14778. <![CDATA[The raw bytes.]]>
  14779. </doc>
  14780. </method>
  14781. <method name="getLength" return="int"
  14782. abstract="false" native="false" synchronized="false"
  14783. static="false" final="false" visibility="public"
  14784. deprecated="not deprecated">
  14785. <doc>
  14786. <![CDATA[The number of bytes in the encoded string.]]>
  14787. </doc>
  14788. </method>
  14789. <method name="set"
  14790. abstract="false" native="false" synchronized="false"
  14791. static="false" final="false" visibility="public"
  14792. deprecated="not deprecated">
  14793. <param name="string" type="java.lang.String"/>
  14794. <doc>
  14795. <![CDATA[Set to contain the contents of a string.]]>
  14796. </doc>
  14797. </method>
  14798. <method name="set"
  14799. abstract="false" native="false" synchronized="false"
  14800. static="false" final="false" visibility="public"
  14801. deprecated="not deprecated">
  14802. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  14803. <doc>
  14804. <![CDATA[Set to contain the contents of a string.]]>
  14805. </doc>
  14806. </method>
  14807. <method name="readFields"
  14808. abstract="false" native="false" synchronized="false"
  14809. static="false" final="false" visibility="public"
  14810. deprecated="not deprecated">
  14811. <param name="in" type="java.io.DataInput"/>
  14812. <exception name="IOException" type="java.io.IOException"/>
  14813. </method>
  14814. <method name="skip"
  14815. abstract="false" native="false" synchronized="false"
  14816. static="true" final="false" visibility="public"
  14817. deprecated="not deprecated">
  14818. <param name="in" type="java.io.DataInput"/>
  14819. <exception name="IOException" type="java.io.IOException"/>
  14820. <doc>
  14821. <![CDATA[Skips over one UTF8 in the input.]]>
  14822. </doc>
  14823. </method>
  14824. <method name="write"
  14825. abstract="false" native="false" synchronized="false"
  14826. static="false" final="false" visibility="public"
  14827. deprecated="not deprecated">
  14828. <param name="out" type="java.io.DataOutput"/>
  14829. <exception name="IOException" type="java.io.IOException"/>
  14830. </method>
  14831. <method name="compareTo" return="int"
  14832. abstract="false" native="false" synchronized="false"
  14833. static="false" final="false" visibility="public"
  14834. deprecated="not deprecated">
  14835. <param name="o" type="java.lang.Object"/>
  14836. <doc>
  14837. <![CDATA[Compare two UTF8s.]]>
  14838. </doc>
  14839. </method>
  14840. <method name="toString" return="java.lang.String"
  14841. abstract="false" native="false" synchronized="false"
  14842. static="false" final="false" visibility="public"
  14843. deprecated="not deprecated">
  14844. <doc>
  14845. <![CDATA[Convert to a String.]]>
  14846. </doc>
  14847. </method>
  14848. <method name="equals" return="boolean"
  14849. abstract="false" native="false" synchronized="false"
  14850. static="false" final="false" visibility="public"
  14851. deprecated="not deprecated">
  14852. <param name="o" type="java.lang.Object"/>
  14853. <doc>
  14854. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  14855. </doc>
  14856. </method>
  14857. <method name="hashCode" return="int"
  14858. abstract="false" native="false" synchronized="false"
  14859. static="false" final="false" visibility="public"
  14860. deprecated="not deprecated">
  14861. </method>
  14862. <method name="getBytes" return="byte[]"
  14863. abstract="false" native="false" synchronized="false"
  14864. static="true" final="false" visibility="public"
  14865. deprecated="not deprecated">
  14866. <param name="string" type="java.lang.String"/>
  14867. <doc>
  14868. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  14869. @see String#getBytes(String)]]>
  14870. </doc>
  14871. </method>
  14872. <method name="readString" return="java.lang.String"
  14873. abstract="false" native="false" synchronized="false"
  14874. static="true" final="false" visibility="public"
  14875. deprecated="not deprecated">
  14876. <param name="in" type="java.io.DataInput"/>
  14877. <exception name="IOException" type="java.io.IOException"/>
  14878. <doc>
  14879. <![CDATA[Read a UTF-8 encoded string.
  14880. @see DataInput#readUTF()]]>
  14881. </doc>
  14882. </method>
  14883. <method name="writeString" return="int"
  14884. abstract="false" native="false" synchronized="false"
  14885. static="true" final="false" visibility="public"
  14886. deprecated="not deprecated">
  14887. <param name="out" type="java.io.DataOutput"/>
  14888. <param name="s" type="java.lang.String"/>
  14889. <exception name="IOException" type="java.io.IOException"/>
  14890. <doc>
  14891. <![CDATA[Write a UTF-8 encoded string.
  14892. @see DataOutput#writeUTF(String)]]>
  14893. </doc>
  14894. </method>
  14895. <doc>
  14896. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  14897. <p>Also includes utilities for efficiently reading and writing UTF-8.
  14898. @deprecated replaced by Text]]>
  14899. </doc>
  14900. </class>
  14901. <!-- end class org.apache.hadoop.io.UTF8 -->
  14902. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  14903. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14904. abstract="false"
  14905. static="true" final="false" visibility="public"
  14906. deprecated="not deprecated">
  14907. <constructor name="UTF8.Comparator"
  14908. static="false" final="false" visibility="public"
  14909. deprecated="not deprecated">
  14910. </constructor>
  14911. <method name="compare" return="int"
  14912. abstract="false" native="false" synchronized="false"
  14913. static="false" final="false" visibility="public"
  14914. deprecated="not deprecated">
  14915. <param name="b1" type="byte[]"/>
  14916. <param name="s1" type="int"/>
  14917. <param name="l1" type="int"/>
  14918. <param name="b2" type="byte[]"/>
  14919. <param name="s2" type="int"/>
  14920. <param name="l2" type="int"/>
  14921. </method>
  14922. <doc>
  14923. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  14924. </doc>
  14925. </class>
  14926. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  14927. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  14928. <class name="VersionedWritable" extends="java.lang.Object"
  14929. abstract="true"
  14930. static="false" final="false" visibility="public"
  14931. deprecated="not deprecated">
  14932. <implements name="org.apache.hadoop.io.Writable"/>
  14933. <constructor name="VersionedWritable"
  14934. static="false" final="false" visibility="public"
  14935. deprecated="not deprecated">
  14936. </constructor>
  14937. <method name="getVersion" return="byte"
  14938. abstract="true" native="false" synchronized="false"
  14939. static="false" final="false" visibility="public"
  14940. deprecated="not deprecated">
  14941. <doc>
  14942. <![CDATA[Return the version number of the current implementation.]]>
  14943. </doc>
  14944. </method>
  14945. <method name="write"
  14946. abstract="false" native="false" synchronized="false"
  14947. static="false" final="false" visibility="public"
  14948. deprecated="not deprecated">
  14949. <param name="out" type="java.io.DataOutput"/>
  14950. <exception name="IOException" type="java.io.IOException"/>
  14951. </method>
  14952. <method name="readFields"
  14953. abstract="false" native="false" synchronized="false"
  14954. static="false" final="false" visibility="public"
  14955. deprecated="not deprecated">
  14956. <param name="in" type="java.io.DataInput"/>
  14957. <exception name="IOException" type="java.io.IOException"/>
  14958. </method>
  14959. <doc>
  14960. <![CDATA[A base class for Writables that provides version checking.
  14961. <p>This is useful when a class may evolve, so that instances written by the
  14962. old version of the class may still be processed by the new version. To
  14963. handle this situation, {@link #readFields(DataInput)}
  14964. implementations should catch {@link VersionMismatchException}.]]>
  14965. </doc>
  14966. </class>
  14967. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  14968. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  14969. <class name="VersionMismatchException" extends="java.io.IOException"
  14970. abstract="false"
  14971. static="false" final="false" visibility="public"
  14972. deprecated="not deprecated">
  14973. <constructor name="VersionMismatchException" type="byte, byte"
  14974. static="false" final="false" visibility="public"
  14975. deprecated="not deprecated">
  14976. </constructor>
  14977. <method name="toString" return="java.lang.String"
  14978. abstract="false" native="false" synchronized="false"
  14979. static="false" final="false" visibility="public"
  14980. deprecated="not deprecated">
  14981. <doc>
  14982. <![CDATA[Returns a string representation of this object.]]>
  14983. </doc>
  14984. </method>
  14985. <doc>
  14986. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  14987. version of an object being read does not match the current implementation
  14988. version as returned by {@link VersionedWritable#getVersion()}.]]>
  14989. </doc>
  14990. </class>
  14991. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  14992. <!-- start class org.apache.hadoop.io.VIntWritable -->
  14993. <class name="VIntWritable" extends="java.lang.Object"
  14994. abstract="false"
  14995. static="false" final="false" visibility="public"
  14996. deprecated="not deprecated">
  14997. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14998. <constructor name="VIntWritable"
  14999. static="false" final="false" visibility="public"
  15000. deprecated="not deprecated">
  15001. </constructor>
  15002. <constructor name="VIntWritable" type="int"
  15003. static="false" final="false" visibility="public"
  15004. deprecated="not deprecated">
  15005. </constructor>
  15006. <method name="set"
  15007. abstract="false" native="false" synchronized="false"
  15008. static="false" final="false" visibility="public"
  15009. deprecated="not deprecated">
  15010. <param name="value" type="int"/>
  15011. <doc>
  15012. <![CDATA[Set the value of this VIntWritable.]]>
  15013. </doc>
  15014. </method>
  15015. <method name="get" return="int"
  15016. abstract="false" native="false" synchronized="false"
  15017. static="false" final="false" visibility="public"
  15018. deprecated="not deprecated">
  15019. <doc>
  15020. <![CDATA[Return the value of this VIntWritable.]]>
  15021. </doc>
  15022. </method>
  15023. <method name="readFields"
  15024. abstract="false" native="false" synchronized="false"
  15025. static="false" final="false" visibility="public"
  15026. deprecated="not deprecated">
  15027. <param name="in" type="java.io.DataInput"/>
  15028. <exception name="IOException" type="java.io.IOException"/>
  15029. </method>
  15030. <method name="write"
  15031. abstract="false" native="false" synchronized="false"
  15032. static="false" final="false" visibility="public"
  15033. deprecated="not deprecated">
  15034. <param name="out" type="java.io.DataOutput"/>
  15035. <exception name="IOException" type="java.io.IOException"/>
  15036. </method>
  15037. <method name="equals" return="boolean"
  15038. abstract="false" native="false" synchronized="false"
  15039. static="false" final="false" visibility="public"
  15040. deprecated="not deprecated">
  15041. <param name="o" type="java.lang.Object"/>
  15042. <doc>
  15043. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15044. </doc>
  15045. </method>
  15046. <method name="hashCode" return="int"
  15047. abstract="false" native="false" synchronized="false"
  15048. static="false" final="false" visibility="public"
  15049. deprecated="not deprecated">
  15050. </method>
  15051. <method name="compareTo" return="int"
  15052. abstract="false" native="false" synchronized="false"
  15053. static="false" final="false" visibility="public"
  15054. deprecated="not deprecated">
  15055. <param name="o" type="java.lang.Object"/>
  15056. <doc>
  15057. <![CDATA[Compares two VIntWritables.]]>
  15058. </doc>
  15059. </method>
  15060. <method name="toString" return="java.lang.String"
  15061. abstract="false" native="false" synchronized="false"
  15062. static="false" final="false" visibility="public"
  15063. deprecated="not deprecated">
  15064. </method>
  15065. <doc>
  15066. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15067. Such values take between one and five bytes. Smaller values take fewer bytes.
  15068. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15069. </doc>
  15070. </class>
  15071. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15072. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15073. <class name="VLongWritable" extends="java.lang.Object"
  15074. abstract="false"
  15075. static="false" final="false" visibility="public"
  15076. deprecated="not deprecated">
  15077. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15078. <constructor name="VLongWritable"
  15079. static="false" final="false" visibility="public"
  15080. deprecated="not deprecated">
  15081. </constructor>
  15082. <constructor name="VLongWritable" type="long"
  15083. static="false" final="false" visibility="public"
  15084. deprecated="not deprecated">
  15085. </constructor>
  15086. <method name="set"
  15087. abstract="false" native="false" synchronized="false"
  15088. static="false" final="false" visibility="public"
  15089. deprecated="not deprecated">
  15090. <param name="value" type="long"/>
  15091. <doc>
  15092. <![CDATA[Set the value of this LongWritable.]]>
  15093. </doc>
  15094. </method>
  15095. <method name="get" return="long"
  15096. abstract="false" native="false" synchronized="false"
  15097. static="false" final="false" visibility="public"
  15098. deprecated="not deprecated">
  15099. <doc>
  15100. <![CDATA[Return the value of this LongWritable.]]>
  15101. </doc>
  15102. </method>
  15103. <method name="readFields"
  15104. abstract="false" native="false" synchronized="false"
  15105. static="false" final="false" visibility="public"
  15106. deprecated="not deprecated">
  15107. <param name="in" type="java.io.DataInput"/>
  15108. <exception name="IOException" type="java.io.IOException"/>
  15109. </method>
  15110. <method name="write"
  15111. abstract="false" native="false" synchronized="false"
  15112. static="false" final="false" visibility="public"
  15113. deprecated="not deprecated">
  15114. <param name="out" type="java.io.DataOutput"/>
  15115. <exception name="IOException" type="java.io.IOException"/>
  15116. </method>
  15117. <method name="equals" return="boolean"
  15118. abstract="false" native="false" synchronized="false"
  15119. static="false" final="false" visibility="public"
  15120. deprecated="not deprecated">
  15121. <param name="o" type="java.lang.Object"/>
  15122. <doc>
  15123. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15124. </doc>
  15125. </method>
  15126. <method name="hashCode" return="int"
  15127. abstract="false" native="false" synchronized="false"
  15128. static="false" final="false" visibility="public"
  15129. deprecated="not deprecated">
  15130. </method>
  15131. <method name="compareTo" return="int"
  15132. abstract="false" native="false" synchronized="false"
  15133. static="false" final="false" visibility="public"
  15134. deprecated="not deprecated">
  15135. <param name="o" type="java.lang.Object"/>
  15136. <doc>
  15137. <![CDATA[Compares two VLongWritables.]]>
  15138. </doc>
  15139. </method>
  15140. <method name="toString" return="java.lang.String"
  15141. abstract="false" native="false" synchronized="false"
  15142. static="false" final="false" visibility="public"
  15143. deprecated="not deprecated">
  15144. </method>
  15145. <doc>
  15146. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15147. between one and five bytes. Smaller values take fewer bytes.
  15148. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15149. </doc>
  15150. </class>
  15151. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15152. <!-- start interface org.apache.hadoop.io.Writable -->
  15153. <interface name="Writable" abstract="true"
  15154. static="false" final="false" visibility="public"
  15155. deprecated="not deprecated">
  15156. <method name="write"
  15157. abstract="false" native="false" synchronized="false"
  15158. static="false" final="false" visibility="public"
  15159. deprecated="not deprecated">
  15160. <param name="out" type="java.io.DataOutput"/>
  15161. <exception name="IOException" type="java.io.IOException"/>
  15162. <doc>
  15163. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15164. @param out <code>DataOuput</code> to serialize this object into.
  15165. @throws IOException]]>
  15166. </doc>
  15167. </method>
  15168. <method name="readFields"
  15169. abstract="false" native="false" synchronized="false"
  15170. static="false" final="false" visibility="public"
  15171. deprecated="not deprecated">
  15172. <param name="in" type="java.io.DataInput"/>
  15173. <exception name="IOException" type="java.io.IOException"/>
  15174. <doc>
  15175. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15176. <p>For efficiency, implementations should attempt to re-use storage in the
  15177. existing object where possible.</p>
  15178. @param in <code>DataInput</code> to deseriablize this object from.
  15179. @throws IOException]]>
  15180. </doc>
  15181. </method>
  15182. <doc>
  15183. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15184. protocol, based on {@link DataInput} and {@link DataOutput}.
  15185. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15186. framework implements this interface.</p>
  15187. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15188. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15189. and returns the instance.</p>
  15190. <p>Example:</p>
  15191. <p><blockquote><pre>
  15192. public class MyWritable implements Writable {
  15193. // Some data
  15194. private int counter;
  15195. private long timestamp;
  15196. public void write(DataOutput out) throws IOException {
  15197. out.writeInt(counter);
  15198. out.writeLong(timestamp);
  15199. }
  15200. public void readFields(DataInput in) throws IOException {
  15201. counter = in.readInt();
  15202. timestamp = in.readLong();
  15203. }
  15204. public static MyWritable read(DataInput in) throws IOException {
  15205. MyWritable w = new MyWritable();
  15206. w.readFields(in);
  15207. return w;
  15208. }
  15209. }
  15210. </pre></blockquote></p>]]>
  15211. </doc>
  15212. </interface>
  15213. <!-- end interface org.apache.hadoop.io.Writable -->
  15214. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15215. <interface name="WritableComparable" abstract="true"
  15216. static="false" final="false" visibility="public"
  15217. deprecated="not deprecated">
  15218. <implements name="org.apache.hadoop.io.Writable"/>
  15219. <implements name="java.lang.Comparable"/>
  15220. <doc>
  15221. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15222. <p><code>WritableComparable</code>s can be compared to each other, typically
  15223. via <code>Comparator</code>s. Any type which is to be used as a
  15224. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15225. interface.</p>
  15226. <p>Example:</p>
  15227. <p><blockquote><pre>
  15228. public class MyWritableComparable implements WritableComparable {
  15229. // Some data
  15230. private int counter;
  15231. private long timestamp;
  15232. public void write(DataOutput out) throws IOException {
  15233. out.writeInt(counter);
  15234. out.writeLong(timestamp);
  15235. }
  15236. public void readFields(DataInput in) throws IOException {
  15237. counter = in.readInt();
  15238. timestamp = in.readLong();
  15239. }
  15240. public int compareTo(MyWritableComparable w) {
  15241. int thisValue = this.value;
  15242. int thatValue = ((IntWritable)o).value;
  15243. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15244. }
  15245. }
  15246. </pre></blockquote></p>]]>
  15247. </doc>
  15248. </interface>
  15249. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15250. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15251. <class name="WritableComparator" extends="java.lang.Object"
  15252. abstract="false"
  15253. static="false" final="false" visibility="public"
  15254. deprecated="not deprecated">
  15255. <implements name="org.apache.hadoop.io.RawComparator"/>
  15256. <constructor name="WritableComparator" type="java.lang.Class"
  15257. static="false" final="false" visibility="protected"
  15258. deprecated="not deprecated">
  15259. <doc>
  15260. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15261. </doc>
  15262. </constructor>
  15263. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15264. static="false" final="false" visibility="protected"
  15265. deprecated="not deprecated">
  15266. </constructor>
  15267. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15268. abstract="false" native="false" synchronized="true"
  15269. static="true" final="false" visibility="public"
  15270. deprecated="not deprecated">
  15271. <param name="c" type="java.lang.Class"/>
  15272. <doc>
  15273. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15274. </doc>
  15275. </method>
  15276. <method name="define"
  15277. abstract="false" native="false" synchronized="true"
  15278. static="true" final="false" visibility="public"
  15279. deprecated="not deprecated">
  15280. <param name="c" type="java.lang.Class"/>
  15281. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15282. <doc>
  15283. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15284. implementation.]]>
  15285. </doc>
  15286. </method>
  15287. <method name="getKeyClass" return="java.lang.Class"
  15288. abstract="false" native="false" synchronized="false"
  15289. static="false" final="false" visibility="public"
  15290. deprecated="not deprecated">
  15291. <doc>
  15292. <![CDATA[Returns the WritableComparable implementation class.]]>
  15293. </doc>
  15294. </method>
  15295. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15296. abstract="false" native="false" synchronized="false"
  15297. static="false" final="false" visibility="public"
  15298. deprecated="not deprecated">
  15299. <doc>
  15300. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15301. </doc>
  15302. </method>
  15303. <method name="compare" return="int"
  15304. abstract="false" native="false" synchronized="false"
  15305. static="false" final="false" visibility="public"
  15306. deprecated="not deprecated">
  15307. <param name="b1" type="byte[]"/>
  15308. <param name="s1" type="int"/>
  15309. <param name="l1" type="int"/>
  15310. <param name="b2" type="byte[]"/>
  15311. <param name="s2" type="int"/>
  15312. <param name="l2" type="int"/>
  15313. <doc>
  15314. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15315. <p>The default implementation reads the data into two {@link
  15316. WritableComparable}s (using {@link
  15317. Writable#readFields(DataInput)}, then calls {@link
  15318. #compare(WritableComparable,WritableComparable)}.]]>
  15319. </doc>
  15320. </method>
  15321. <method name="compare" return="int"
  15322. abstract="false" native="false" synchronized="false"
  15323. static="false" final="false" visibility="public"
  15324. deprecated="not deprecated">
  15325. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15326. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15327. <doc>
  15328. <![CDATA[Compare two WritableComparables.
  15329. <p> The default implementation uses the natural ordering, calling {@link
  15330. Comparable#compareTo(Object)}.]]>
  15331. </doc>
  15332. </method>
  15333. <method name="compare" return="int"
  15334. abstract="false" native="false" synchronized="false"
  15335. static="false" final="false" visibility="public"
  15336. deprecated="not deprecated">
  15337. <param name="a" type="java.lang.Object"/>
  15338. <param name="b" type="java.lang.Object"/>
  15339. </method>
  15340. <method name="compareBytes" return="int"
  15341. abstract="false" native="false" synchronized="false"
  15342. static="true" final="false" visibility="public"
  15343. deprecated="not deprecated">
  15344. <param name="b1" type="byte[]"/>
  15345. <param name="s1" type="int"/>
  15346. <param name="l1" type="int"/>
  15347. <param name="b2" type="byte[]"/>
  15348. <param name="s2" type="int"/>
  15349. <param name="l2" type="int"/>
  15350. <doc>
  15351. <![CDATA[Lexicographic order of binary data.]]>
  15352. </doc>
  15353. </method>
  15354. <method name="hashBytes" return="int"
  15355. abstract="false" native="false" synchronized="false"
  15356. static="true" final="false" visibility="public"
  15357. deprecated="not deprecated">
  15358. <param name="bytes" type="byte[]"/>
  15359. <param name="length" type="int"/>
  15360. <doc>
  15361. <![CDATA[Compute hash for binary data.]]>
  15362. </doc>
  15363. </method>
  15364. <method name="readUnsignedShort" return="int"
  15365. abstract="false" native="false" synchronized="false"
  15366. static="true" final="false" visibility="public"
  15367. deprecated="not deprecated">
  15368. <param name="bytes" type="byte[]"/>
  15369. <param name="start" type="int"/>
  15370. <doc>
  15371. <![CDATA[Parse an unsigned short from a byte array.]]>
  15372. </doc>
  15373. </method>
  15374. <method name="readInt" return="int"
  15375. abstract="false" native="false" synchronized="false"
  15376. static="true" final="false" visibility="public"
  15377. deprecated="not deprecated">
  15378. <param name="bytes" type="byte[]"/>
  15379. <param name="start" type="int"/>
  15380. <doc>
  15381. <![CDATA[Parse an integer from a byte array.]]>
  15382. </doc>
  15383. </method>
  15384. <method name="readFloat" return="float"
  15385. abstract="false" native="false" synchronized="false"
  15386. static="true" final="false" visibility="public"
  15387. deprecated="not deprecated">
  15388. <param name="bytes" type="byte[]"/>
  15389. <param name="start" type="int"/>
  15390. <doc>
  15391. <![CDATA[Parse a float from a byte array.]]>
  15392. </doc>
  15393. </method>
  15394. <method name="readLong" return="long"
  15395. abstract="false" native="false" synchronized="false"
  15396. static="true" final="false" visibility="public"
  15397. deprecated="not deprecated">
  15398. <param name="bytes" type="byte[]"/>
  15399. <param name="start" type="int"/>
  15400. <doc>
  15401. <![CDATA[Parse a long from a byte array.]]>
  15402. </doc>
  15403. </method>
  15404. <method name="readDouble" return="double"
  15405. abstract="false" native="false" synchronized="false"
  15406. static="true" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. <param name="bytes" type="byte[]"/>
  15409. <param name="start" type="int"/>
  15410. <doc>
  15411. <![CDATA[Parse a double from a byte array.]]>
  15412. </doc>
  15413. </method>
  15414. <method name="readVLong" return="long"
  15415. abstract="false" native="false" synchronized="false"
  15416. static="true" final="false" visibility="public"
  15417. deprecated="not deprecated">
  15418. <param name="bytes" type="byte[]"/>
  15419. <param name="start" type="int"/>
  15420. <exception name="IOException" type="java.io.IOException"/>
  15421. <doc>
  15422. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15423. @param bytes byte array with decode long
  15424. @param start starting index
  15425. @throws java.io.IOException
  15426. @return deserialized long]]>
  15427. </doc>
  15428. </method>
  15429. <method name="readVInt" return="int"
  15430. abstract="false" native="false" synchronized="false"
  15431. static="true" final="false" visibility="public"
  15432. deprecated="not deprecated">
  15433. <param name="bytes" type="byte[]"/>
  15434. <param name="start" type="int"/>
  15435. <exception name="IOException" type="java.io.IOException"/>
  15436. <doc>
  15437. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15438. @param bytes byte array with the encoded integer
  15439. @param start start index
  15440. @throws java.io.IOException
  15441. @return deserialized integer]]>
  15442. </doc>
  15443. </method>
  15444. <doc>
  15445. <![CDATA[A Comparator for {@link WritableComparable}s.
  15446. <p>This base implemenation uses the natural ordering. To define alternate
  15447. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15448. <p>One may optimize compare-intensive operations by overriding
  15449. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15450. provided to assist in optimized implementations of this method.]]>
  15451. </doc>
  15452. </class>
  15453. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15454. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15455. <class name="WritableFactories" extends="java.lang.Object"
  15456. abstract="false"
  15457. static="false" final="false" visibility="public"
  15458. deprecated="not deprecated">
  15459. <method name="setFactory"
  15460. abstract="false" native="false" synchronized="true"
  15461. static="true" final="false" visibility="public"
  15462. deprecated="not deprecated">
  15463. <param name="c" type="java.lang.Class"/>
  15464. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15465. <doc>
  15466. <![CDATA[Define a factory for a class.]]>
  15467. </doc>
  15468. </method>
  15469. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15470. abstract="false" native="false" synchronized="true"
  15471. static="true" final="false" visibility="public"
  15472. deprecated="not deprecated">
  15473. <param name="c" type="java.lang.Class"/>
  15474. <doc>
  15475. <![CDATA[Define a factory for a class.]]>
  15476. </doc>
  15477. </method>
  15478. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15479. abstract="false" native="false" synchronized="false"
  15480. static="true" final="false" visibility="public"
  15481. deprecated="not deprecated">
  15482. <param name="c" type="java.lang.Class"/>
  15483. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15484. <doc>
  15485. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15486. </doc>
  15487. </method>
  15488. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15489. abstract="false" native="false" synchronized="false"
  15490. static="true" final="false" visibility="public"
  15491. deprecated="not deprecated">
  15492. <param name="c" type="java.lang.Class"/>
  15493. <doc>
  15494. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15495. </doc>
  15496. </method>
  15497. <doc>
  15498. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15499. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15500. </doc>
  15501. </class>
  15502. <!-- end class org.apache.hadoop.io.WritableFactories -->
  15503. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  15504. <interface name="WritableFactory" abstract="true"
  15505. static="false" final="false" visibility="public"
  15506. deprecated="not deprecated">
  15507. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15508. abstract="false" native="false" synchronized="false"
  15509. static="false" final="false" visibility="public"
  15510. deprecated="not deprecated">
  15511. <doc>
  15512. <![CDATA[Return a new instance.]]>
  15513. </doc>
  15514. </method>
  15515. <doc>
  15516. <![CDATA[A factory for a class of Writable.
  15517. @see WritableFactories]]>
  15518. </doc>
  15519. </interface>
  15520. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  15521. <!-- start class org.apache.hadoop.io.WritableName -->
  15522. <class name="WritableName" extends="java.lang.Object"
  15523. abstract="false"
  15524. static="false" final="false" visibility="public"
  15525. deprecated="not deprecated">
  15526. <method name="setName"
  15527. abstract="false" native="false" synchronized="true"
  15528. static="true" final="false" visibility="public"
  15529. deprecated="not deprecated">
  15530. <param name="writableClass" type="java.lang.Class"/>
  15531. <param name="name" type="java.lang.String"/>
  15532. <doc>
  15533. <![CDATA[Set the name that a class should be known as to something other than the
  15534. class name.]]>
  15535. </doc>
  15536. </method>
  15537. <method name="addName"
  15538. abstract="false" native="false" synchronized="true"
  15539. static="true" final="false" visibility="public"
  15540. deprecated="not deprecated">
  15541. <param name="writableClass" type="java.lang.Class"/>
  15542. <param name="name" type="java.lang.String"/>
  15543. <doc>
  15544. <![CDATA[Add an alternate name for a class.]]>
  15545. </doc>
  15546. </method>
  15547. <method name="getName" return="java.lang.String"
  15548. abstract="false" native="false" synchronized="true"
  15549. static="true" final="false" visibility="public"
  15550. deprecated="not deprecated">
  15551. <param name="writableClass" type="java.lang.Class"/>
  15552. <doc>
  15553. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  15554. </doc>
  15555. </method>
  15556. <method name="getClass" return="java.lang.Class"
  15557. abstract="false" native="false" synchronized="true"
  15558. static="true" final="false" visibility="public"
  15559. deprecated="not deprecated">
  15560. <param name="name" type="java.lang.String"/>
  15561. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15562. <exception name="IOException" type="java.io.IOException"/>
  15563. <doc>
  15564. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  15565. </doc>
  15566. </method>
  15567. <doc>
  15568. <![CDATA[Utility to permit renaming of Writable implementation classes without
  15569. invalidiating files that contain their class name.]]>
  15570. </doc>
  15571. </class>
  15572. <!-- end class org.apache.hadoop.io.WritableName -->
  15573. <!-- start class org.apache.hadoop.io.WritableUtils -->
  15574. <class name="WritableUtils" extends="java.lang.Object"
  15575. abstract="false"
  15576. static="false" final="true" visibility="public"
  15577. deprecated="not deprecated">
  15578. <constructor name="WritableUtils"
  15579. static="false" final="false" visibility="public"
  15580. deprecated="not deprecated">
  15581. </constructor>
  15582. <method name="readCompressedByteArray" return="byte[]"
  15583. abstract="false" native="false" synchronized="false"
  15584. static="true" final="false" visibility="public"
  15585. deprecated="not deprecated">
  15586. <param name="in" type="java.io.DataInput"/>
  15587. <exception name="IOException" type="java.io.IOException"/>
  15588. </method>
  15589. <method name="skipCompressedByteArray"
  15590. abstract="false" native="false" synchronized="false"
  15591. static="true" final="false" visibility="public"
  15592. deprecated="not deprecated">
  15593. <param name="in" type="java.io.DataInput"/>
  15594. <exception name="IOException" type="java.io.IOException"/>
  15595. </method>
  15596. <method name="writeCompressedByteArray" return="int"
  15597. abstract="false" native="false" synchronized="false"
  15598. static="true" final="false" visibility="public"
  15599. deprecated="not deprecated">
  15600. <param name="out" type="java.io.DataOutput"/>
  15601. <param name="bytes" type="byte[]"/>
  15602. <exception name="IOException" type="java.io.IOException"/>
  15603. </method>
  15604. <method name="readCompressedString" return="java.lang.String"
  15605. abstract="false" native="false" synchronized="false"
  15606. static="true" final="false" visibility="public"
  15607. deprecated="not deprecated">
  15608. <param name="in" type="java.io.DataInput"/>
  15609. <exception name="IOException" type="java.io.IOException"/>
  15610. </method>
  15611. <method name="writeCompressedString" return="int"
  15612. abstract="false" native="false" synchronized="false"
  15613. static="true" final="false" visibility="public"
  15614. deprecated="not deprecated">
  15615. <param name="out" type="java.io.DataOutput"/>
  15616. <param name="s" type="java.lang.String"/>
  15617. <exception name="IOException" type="java.io.IOException"/>
  15618. </method>
  15619. <method name="writeString"
  15620. abstract="false" native="false" synchronized="false"
  15621. static="true" final="false" visibility="public"
  15622. deprecated="not deprecated">
  15623. <param name="out" type="java.io.DataOutput"/>
  15624. <param name="s" type="java.lang.String"/>
  15625. <exception name="IOException" type="java.io.IOException"/>
  15626. </method>
  15627. <method name="readString" return="java.lang.String"
  15628. abstract="false" native="false" synchronized="false"
  15629. static="true" final="false" visibility="public"
  15630. deprecated="not deprecated">
  15631. <param name="in" type="java.io.DataInput"/>
  15632. <exception name="IOException" type="java.io.IOException"/>
  15633. </method>
  15634. <method name="writeStringArray"
  15635. abstract="false" native="false" synchronized="false"
  15636. static="true" final="false" visibility="public"
  15637. deprecated="not deprecated">
  15638. <param name="out" type="java.io.DataOutput"/>
  15639. <param name="s" type="java.lang.String[]"/>
  15640. <exception name="IOException" type="java.io.IOException"/>
  15641. </method>
  15642. <method name="writeCompressedStringArray"
  15643. abstract="false" native="false" synchronized="false"
  15644. static="true" final="false" visibility="public"
  15645. deprecated="not deprecated">
  15646. <param name="out" type="java.io.DataOutput"/>
  15647. <param name="s" type="java.lang.String[]"/>
  15648. <exception name="IOException" type="java.io.IOException"/>
  15649. </method>
  15650. <method name="readStringArray" return="java.lang.String[]"
  15651. abstract="false" native="false" synchronized="false"
  15652. static="true" final="false" visibility="public"
  15653. deprecated="not deprecated">
  15654. <param name="in" type="java.io.DataInput"/>
  15655. <exception name="IOException" type="java.io.IOException"/>
  15656. </method>
  15657. <method name="readCompressedStringArray" return="java.lang.String[]"
  15658. abstract="false" native="false" synchronized="false"
  15659. static="true" final="false" visibility="public"
  15660. deprecated="not deprecated">
  15661. <param name="in" type="java.io.DataInput"/>
  15662. <exception name="IOException" type="java.io.IOException"/>
  15663. </method>
  15664. <method name="displayByteArray"
  15665. abstract="false" native="false" synchronized="false"
  15666. static="true" final="false" visibility="public"
  15667. deprecated="not deprecated">
  15668. <param name="record" type="byte[]"/>
  15669. </method>
  15670. <method name="clone" return="org.apache.hadoop.io.Writable"
  15671. abstract="false" native="false" synchronized="false"
  15672. static="true" final="false" visibility="public"
  15673. deprecated="not deprecated">
  15674. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  15675. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15676. <doc>
  15677. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  15678. @param orig The object to copy
  15679. @return The copied object]]>
  15680. </doc>
  15681. </method>
  15682. <method name="cloneInto"
  15683. abstract="false" native="false" synchronized="false"
  15684. static="true" final="false" visibility="public"
  15685. deprecated="use ReflectionUtils.cloneInto instead.">
  15686. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  15687. <param name="src" type="org.apache.hadoop.io.Writable"/>
  15688. <exception name="IOException" type="java.io.IOException"/>
  15689. <doc>
  15690. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  15691. @param dst the object to copy from
  15692. @param src the object to copy into, which is destroyed
  15693. @throws IOException
  15694. @deprecated use ReflectionUtils.cloneInto instead.]]>
  15695. </doc>
  15696. </method>
  15697. <method name="writeVInt"
  15698. abstract="false" native="false" synchronized="false"
  15699. static="true" final="false" visibility="public"
  15700. deprecated="not deprecated">
  15701. <param name="stream" type="java.io.DataOutput"/>
  15702. <param name="i" type="int"/>
  15703. <exception name="IOException" type="java.io.IOException"/>
  15704. <doc>
  15705. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  15706. For -120 <= i <= 127, only one byte is used with the actual value.
  15707. For other values of i, the first byte value indicates whether the
  15708. integer is positive or negative, and the number of bytes that follow.
  15709. If the first byte value v is between -121 and -124, the following integer
  15710. is positive, with number of bytes that follow are -(v+120).
  15711. If the first byte value v is between -125 and -128, the following integer
  15712. is negative, with number of bytes that follow are -(v+124). Bytes are
  15713. stored in the high-non-zero-byte-first order.
  15714. @param stream Binary output stream
  15715. @param i Integer to be serialized
  15716. @throws java.io.IOException]]>
  15717. </doc>
  15718. </method>
  15719. <method name="writeVLong"
  15720. abstract="false" native="false" synchronized="false"
  15721. static="true" final="false" visibility="public"
  15722. deprecated="not deprecated">
  15723. <param name="stream" type="java.io.DataOutput"/>
  15724. <param name="i" type="long"/>
  15725. <exception name="IOException" type="java.io.IOException"/>
  15726. <doc>
  15727. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  15728. For -112 <= i <= 127, only one byte is used with the actual value.
  15729. For other values of i, the first byte value indicates whether the
  15730. long is positive or negative, and the number of bytes that follow.
  15731. If the first byte value v is between -113 and -120, the following long
  15732. is positive, with number of bytes that follow are -(v+112).
  15733. If the first byte value v is between -121 and -128, the following long
  15734. is negative, with number of bytes that follow are -(v+120). Bytes are
  15735. stored in the high-non-zero-byte-first order.
  15736. @param stream Binary output stream
  15737. @param i Long to be serialized
  15738. @throws java.io.IOException]]>
  15739. </doc>
  15740. </method>
  15741. <method name="readVLong" return="long"
  15742. abstract="false" native="false" synchronized="false"
  15743. static="true" final="false" visibility="public"
  15744. deprecated="not deprecated">
  15745. <param name="stream" type="java.io.DataInput"/>
  15746. <exception name="IOException" type="java.io.IOException"/>
  15747. <doc>
  15748. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  15749. @param stream Binary input stream
  15750. @throws java.io.IOException
  15751. @return deserialized long from stream.]]>
  15752. </doc>
  15753. </method>
  15754. <method name="readVInt" return="int"
  15755. abstract="false" native="false" synchronized="false"
  15756. static="true" final="false" visibility="public"
  15757. deprecated="not deprecated">
  15758. <param name="stream" type="java.io.DataInput"/>
  15759. <exception name="IOException" type="java.io.IOException"/>
  15760. <doc>
  15761. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  15762. @param stream Binary input stream
  15763. @throws java.io.IOException
  15764. @return deserialized integer from stream.]]>
  15765. </doc>
  15766. </method>
  15767. <method name="isNegativeVInt" return="boolean"
  15768. abstract="false" native="false" synchronized="false"
  15769. static="true" final="false" visibility="public"
  15770. deprecated="not deprecated">
  15771. <param name="value" type="byte"/>
  15772. <doc>
  15773. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  15774. @param value the first byte
  15775. @return is the value negative]]>
  15776. </doc>
  15777. </method>
  15778. <method name="decodeVIntSize" return="int"
  15779. abstract="false" native="false" synchronized="false"
  15780. static="true" final="false" visibility="public"
  15781. deprecated="not deprecated">
  15782. <param name="value" type="byte"/>
  15783. <doc>
  15784. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  15785. @param value the first byte of the vint/vlong
  15786. @return the total number of bytes (1 to 9)]]>
  15787. </doc>
  15788. </method>
  15789. <method name="getVIntSize" return="int"
  15790. abstract="false" native="false" synchronized="false"
  15791. static="true" final="false" visibility="public"
  15792. deprecated="not deprecated">
  15793. <param name="i" type="long"/>
  15794. <doc>
  15795. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  15796. @return the encoded length]]>
  15797. </doc>
  15798. </method>
  15799. <method name="readEnum" return="java.lang.Enum"
  15800. abstract="false" native="false" synchronized="false"
  15801. static="true" final="false" visibility="public"
  15802. deprecated="not deprecated">
  15803. <param name="in" type="java.io.DataInput"/>
  15804. <param name="enumType" type="java.lang.Class"/>
  15805. <exception name="IOException" type="java.io.IOException"/>
  15806. <doc>
  15807. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  15808. using String values.
  15809. @param <T> Enum type
  15810. @param in DataInput to read from
  15811. @param enumType Class type of Enum
  15812. @return Enum represented by String read from DataInput
  15813. @throws IOException]]>
  15814. </doc>
  15815. </method>
  15816. <method name="writeEnum"
  15817. abstract="false" native="false" synchronized="false"
  15818. static="true" final="false" visibility="public"
  15819. deprecated="not deprecated">
  15820. <param name="out" type="java.io.DataOutput"/>
  15821. <param name="enumVal" type="java.lang.Enum"/>
  15822. <exception name="IOException" type="java.io.IOException"/>
  15823. <doc>
  15824. <![CDATA[writes String value of enum to DataOutput.
  15825. @param out Dataoutput stream
  15826. @param enumVal enum value
  15827. @throws IOException]]>
  15828. </doc>
  15829. </method>
  15830. <method name="skipFully"
  15831. abstract="false" native="false" synchronized="false"
  15832. static="true" final="false" visibility="public"
  15833. deprecated="not deprecated">
  15834. <param name="in" type="java.io.DataInput"/>
  15835. <param name="len" type="int"/>
  15836. <exception name="IOException" type="java.io.IOException"/>
  15837. <doc>
  15838. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  15839. @param in input stream
  15840. @param len number of bytes to skip
  15841. @throws IOException when skipped less number of bytes]]>
  15842. </doc>
  15843. </method>
  15844. <method name="toByteArray" return="byte[]"
  15845. abstract="false" native="false" synchronized="false"
  15846. static="true" final="false" visibility="public"
  15847. deprecated="not deprecated">
  15848. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  15849. <doc>
  15850. <![CDATA[Convert writables to a byte array]]>
  15851. </doc>
  15852. </method>
  15853. </class>
  15854. <!-- end class org.apache.hadoop.io.WritableUtils -->
  15855. </package>
  15856. <package name="org.apache.hadoop.io.compress">
  15857. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15858. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  15859. abstract="false"
  15860. static="false" final="false" visibility="public"
  15861. deprecated="not deprecated">
  15862. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  15863. static="false" final="false" visibility="public"
  15864. deprecated="not deprecated">
  15865. <doc>
  15866. <![CDATA[Create a {@link BlockCompressorStream}.
  15867. @param out stream
  15868. @param compressor compressor to be used
  15869. @param bufferSize size of buffer
  15870. @param compressionOverhead maximum 'overhead' of the compression
  15871. algorithm with given bufferSize]]>
  15872. </doc>
  15873. </constructor>
  15874. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  15875. static="false" final="false" visibility="public"
  15876. deprecated="not deprecated">
  15877. <doc>
  15878. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  15879. compressor.
  15880. Use default of 512 as bufferSize and compressionOverhead of
  15881. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  15882. @param out stream
  15883. @param compressor compressor to be used]]>
  15884. </doc>
  15885. </constructor>
  15886. <method name="write"
  15887. abstract="false" native="false" synchronized="false"
  15888. static="false" final="false" visibility="public"
  15889. deprecated="not deprecated">
  15890. <param name="b" type="byte[]"/>
  15891. <param name="off" type="int"/>
  15892. <param name="len" type="int"/>
  15893. <exception name="IOException" type="java.io.IOException"/>
  15894. <doc>
  15895. <![CDATA[Write the data provided to the compression codec, compressing no more
  15896. than the buffer size less the compression overhead as specified during
  15897. construction for each block.
  15898. Each block contains the uncompressed length for the block, followed by
  15899. one or more length-prefixed blocks of compressed data.]]>
  15900. </doc>
  15901. </method>
  15902. <method name="finish"
  15903. abstract="false" native="false" synchronized="false"
  15904. static="false" final="false" visibility="public"
  15905. deprecated="not deprecated">
  15906. <exception name="IOException" type="java.io.IOException"/>
  15907. </method>
  15908. <method name="compress"
  15909. abstract="false" native="false" synchronized="false"
  15910. static="false" final="false" visibility="protected"
  15911. deprecated="not deprecated">
  15912. <exception name="IOException" type="java.io.IOException"/>
  15913. </method>
  15914. <doc>
  15915. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  15916. with 'block-based' based compression algorithms, as opposed to
  15917. 'stream-based' compression algorithms.
  15918. It should be noted that this wrapper does not guarantee that blocks will
  15919. be sized for the compressor. If the
  15920. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  15921. effect meaningful compression, it is responsible for it.]]>
  15922. </doc>
  15923. </class>
  15924. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  15925. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  15926. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  15927. abstract="false"
  15928. static="false" final="false" visibility="public"
  15929. deprecated="not deprecated">
  15930. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15931. static="false" final="false" visibility="public"
  15932. deprecated="not deprecated">
  15933. <doc>
  15934. <![CDATA[Create a {@link BlockDecompressorStream}.
  15935. @param in input stream
  15936. @param decompressor decompressor to use
  15937. @param bufferSize size of buffer]]>
  15938. </doc>
  15939. </constructor>
  15940. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  15941. static="false" final="false" visibility="public"
  15942. deprecated="not deprecated">
  15943. <doc>
  15944. <![CDATA[Create a {@link BlockDecompressorStream}.
  15945. @param in input stream
  15946. @param decompressor decompressor to use]]>
  15947. </doc>
  15948. </constructor>
  15949. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  15950. static="false" final="false" visibility="protected"
  15951. deprecated="not deprecated">
  15952. </constructor>
  15953. <method name="decompress" return="int"
  15954. abstract="false" native="false" synchronized="false"
  15955. static="false" final="false" visibility="protected"
  15956. deprecated="not deprecated">
  15957. <param name="b" type="byte[]"/>
  15958. <param name="off" type="int"/>
  15959. <param name="len" type="int"/>
  15960. <exception name="IOException" type="java.io.IOException"/>
  15961. </method>
  15962. <method name="getCompressedData" return="int"
  15963. abstract="false" native="false" synchronized="false"
  15964. static="false" final="false" visibility="protected"
  15965. deprecated="not deprecated">
  15966. <exception name="IOException" type="java.io.IOException"/>
  15967. </method>
  15968. <method name="resetState"
  15969. abstract="false" native="false" synchronized="false"
  15970. static="false" final="false" visibility="public"
  15971. deprecated="not deprecated">
  15972. <exception name="IOException" type="java.io.IOException"/>
  15973. </method>
  15974. <doc>
  15975. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  15976. with 'block-based' based compression algorithms, as opposed to
  15977. 'stream-based' compression algorithms.]]>
  15978. </doc>
  15979. </class>
  15980. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  15981. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  15982. <class name="BZip2Codec" extends="java.lang.Object"
  15983. abstract="false"
  15984. static="false" final="false" visibility="public"
  15985. deprecated="not deprecated">
  15986. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  15987. <constructor name="BZip2Codec"
  15988. static="false" final="false" visibility="public"
  15989. deprecated="not deprecated">
  15990. <doc>
  15991. <![CDATA[Creates a new instance of BZip2Codec]]>
  15992. </doc>
  15993. </constructor>
  15994. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15995. abstract="false" native="false" synchronized="false"
  15996. static="false" final="false" visibility="public"
  15997. deprecated="not deprecated">
  15998. <param name="out" type="java.io.OutputStream"/>
  15999. <exception name="IOException" type="java.io.IOException"/>
  16000. <doc>
  16001. <![CDATA[Creates CompressionOutputStream for BZip2
  16002. @param out
  16003. The output Stream
  16004. @return The BZip2 CompressionOutputStream
  16005. @throws java.io.IOException
  16006. Throws IO exception]]>
  16007. </doc>
  16008. </method>
  16009. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16010. abstract="false" native="false" synchronized="false"
  16011. static="false" final="false" visibility="public"
  16012. deprecated="not deprecated">
  16013. <param name="out" type="java.io.OutputStream"/>
  16014. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16015. <exception name="IOException" type="java.io.IOException"/>
  16016. <doc>
  16017. <![CDATA[This functionality is currently not supported.
  16018. @throws java.lang.UnsupportedOperationException
  16019. Throws UnsupportedOperationException]]>
  16020. </doc>
  16021. </method>
  16022. <method name="getCompressorType" return="java.lang.Class"
  16023. abstract="false" native="false" synchronized="false"
  16024. static="false" final="false" visibility="public"
  16025. deprecated="not deprecated">
  16026. <doc>
  16027. <![CDATA[This functionality is currently not supported.
  16028. @throws java.lang.UnsupportedOperationException
  16029. Throws UnsupportedOperationException]]>
  16030. </doc>
  16031. </method>
  16032. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16033. abstract="false" native="false" synchronized="false"
  16034. static="false" final="false" visibility="public"
  16035. deprecated="not deprecated">
  16036. <doc>
  16037. <![CDATA[This functionality is currently not supported.
  16038. @throws java.lang.UnsupportedOperationException
  16039. Throws UnsupportedOperationException]]>
  16040. </doc>
  16041. </method>
  16042. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16043. abstract="false" native="false" synchronized="false"
  16044. static="false" final="false" visibility="public"
  16045. deprecated="not deprecated">
  16046. <param name="in" type="java.io.InputStream"/>
  16047. <exception name="IOException" type="java.io.IOException"/>
  16048. <doc>
  16049. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16050. @param in
  16051. The InputStream
  16052. @return Returns CompressionInputStream for BZip2
  16053. @throws java.io.IOException
  16054. Throws IOException]]>
  16055. </doc>
  16056. </method>
  16057. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16058. abstract="false" native="false" synchronized="false"
  16059. static="false" final="false" visibility="public"
  16060. deprecated="not deprecated">
  16061. <param name="in" type="java.io.InputStream"/>
  16062. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16063. <exception name="IOException" type="java.io.IOException"/>
  16064. <doc>
  16065. <![CDATA[This functionality is currently not supported.
  16066. @throws java.lang.UnsupportedOperationException
  16067. Throws UnsupportedOperationException]]>
  16068. </doc>
  16069. </method>
  16070. <method name="getDecompressorType" return="java.lang.Class"
  16071. abstract="false" native="false" synchronized="false"
  16072. static="false" final="false" visibility="public"
  16073. deprecated="not deprecated">
  16074. <doc>
  16075. <![CDATA[This functionality is currently not supported.
  16076. @throws java.lang.UnsupportedOperationException
  16077. Throws UnsupportedOperationException]]>
  16078. </doc>
  16079. </method>
  16080. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16081. abstract="false" native="false" synchronized="false"
  16082. static="false" final="false" visibility="public"
  16083. deprecated="not deprecated">
  16084. <doc>
  16085. <![CDATA[This functionality is currently not supported.
  16086. @throws java.lang.UnsupportedOperationException
  16087. Throws UnsupportedOperationException]]>
  16088. </doc>
  16089. </method>
  16090. <method name="getDefaultExtension" return="java.lang.String"
  16091. abstract="false" native="false" synchronized="false"
  16092. static="false" final="false" visibility="public"
  16093. deprecated="not deprecated">
  16094. <doc>
  16095. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16096. @return A String telling the default bzip2 file extension]]>
  16097. </doc>
  16098. </method>
  16099. <doc>
  16100. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16101. compression and decompression. Currently we dont have an implementation of
  16102. the Compressor and Decompressor interfaces, so those methods of
  16103. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16104. UnsupportedOperationException.]]>
  16105. </doc>
  16106. </class>
  16107. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16108. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16109. <class name="CodecPool" extends="java.lang.Object"
  16110. abstract="false"
  16111. static="false" final="false" visibility="public"
  16112. deprecated="not deprecated">
  16113. <constructor name="CodecPool"
  16114. static="false" final="false" visibility="public"
  16115. deprecated="not deprecated">
  16116. </constructor>
  16117. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16118. abstract="false" native="false" synchronized="false"
  16119. static="true" final="false" visibility="public"
  16120. deprecated="not deprecated">
  16121. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16122. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16123. <doc>
  16124. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16125. pool or a new one.
  16126. @param codec the <code>CompressionCodec</code> for which to get the
  16127. <code>Compressor</code>
  16128. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16129. @return <code>Compressor</code> for the given
  16130. <code>CompressionCodec</code> from the pool or a new one]]>
  16131. </doc>
  16132. </method>
  16133. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16134. abstract="false" native="false" synchronized="false"
  16135. static="true" final="false" visibility="public"
  16136. deprecated="not deprecated">
  16137. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16138. </method>
  16139. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16140. abstract="false" native="false" synchronized="false"
  16141. static="true" final="false" visibility="public"
  16142. deprecated="not deprecated">
  16143. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16144. <doc>
  16145. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16146. pool or a new one.
  16147. @param codec the <code>CompressionCodec</code> for which to get the
  16148. <code>Decompressor</code>
  16149. @return <code>Decompressor</code> for the given
  16150. <code>CompressionCodec</code> the pool or a new one]]>
  16151. </doc>
  16152. </method>
  16153. <method name="returnCompressor"
  16154. abstract="false" native="false" synchronized="false"
  16155. static="true" final="false" visibility="public"
  16156. deprecated="not deprecated">
  16157. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16158. <doc>
  16159. <![CDATA[Return the {@link Compressor} to the pool.
  16160. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16161. </doc>
  16162. </method>
  16163. <method name="returnDecompressor"
  16164. abstract="false" native="false" synchronized="false"
  16165. static="true" final="false" visibility="public"
  16166. deprecated="not deprecated">
  16167. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16168. <doc>
  16169. <![CDATA[Return the {@link Decompressor} to the pool.
  16170. @param decompressor the <code>Decompressor</code> to be returned to the
  16171. pool]]>
  16172. </doc>
  16173. </method>
  16174. <doc>
  16175. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16176. (possibly native) compression/decompression codecs.]]>
  16177. </doc>
  16178. </class>
  16179. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16180. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16181. <interface name="CompressionCodec" abstract="true"
  16182. static="false" final="false" visibility="public"
  16183. deprecated="not deprecated">
  16184. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16185. abstract="false" native="false" synchronized="false"
  16186. static="false" final="false" visibility="public"
  16187. deprecated="not deprecated">
  16188. <param name="out" type="java.io.OutputStream"/>
  16189. <exception name="IOException" type="java.io.IOException"/>
  16190. <doc>
  16191. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16192. {@link OutputStream}.
  16193. @param out the location for the final output stream
  16194. @return a stream the user can write uncompressed data to have it compressed
  16195. @throws IOException]]>
  16196. </doc>
  16197. </method>
  16198. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16199. abstract="false" native="false" synchronized="false"
  16200. static="false" final="false" visibility="public"
  16201. deprecated="not deprecated">
  16202. <param name="out" type="java.io.OutputStream"/>
  16203. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16204. <exception name="IOException" type="java.io.IOException"/>
  16205. <doc>
  16206. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16207. {@link OutputStream} with the given {@link Compressor}.
  16208. @param out the location for the final output stream
  16209. @param compressor compressor to use
  16210. @return a stream the user can write uncompressed data to have it compressed
  16211. @throws IOException]]>
  16212. </doc>
  16213. </method>
  16214. <method name="getCompressorType" return="java.lang.Class"
  16215. abstract="false" native="false" synchronized="false"
  16216. static="false" final="false" visibility="public"
  16217. deprecated="not deprecated">
  16218. <doc>
  16219. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16220. @return the type of compressor needed by this codec.]]>
  16221. </doc>
  16222. </method>
  16223. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16224. abstract="false" native="false" synchronized="false"
  16225. static="false" final="false" visibility="public"
  16226. deprecated="not deprecated">
  16227. <doc>
  16228. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16229. @return a new compressor for use by this codec]]>
  16230. </doc>
  16231. </method>
  16232. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16233. abstract="false" native="false" synchronized="false"
  16234. static="false" final="false" visibility="public"
  16235. deprecated="not deprecated">
  16236. <param name="in" type="java.io.InputStream"/>
  16237. <exception name="IOException" type="java.io.IOException"/>
  16238. <doc>
  16239. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16240. @param in the stream to read compressed bytes from
  16241. @return a stream to read uncompressed bytes from
  16242. @throws IOException]]>
  16243. </doc>
  16244. </method>
  16245. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16246. abstract="false" native="false" synchronized="false"
  16247. static="false" final="false" visibility="public"
  16248. deprecated="not deprecated">
  16249. <param name="in" type="java.io.InputStream"/>
  16250. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16251. <exception name="IOException" type="java.io.IOException"/>
  16252. <doc>
  16253. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16254. {@link InputStream} with the given {@link Decompressor}.
  16255. @param in the stream to read compressed bytes from
  16256. @param decompressor decompressor to use
  16257. @return a stream to read uncompressed bytes from
  16258. @throws IOException]]>
  16259. </doc>
  16260. </method>
  16261. <method name="getDecompressorType" return="java.lang.Class"
  16262. abstract="false" native="false" synchronized="false"
  16263. static="false" final="false" visibility="public"
  16264. deprecated="not deprecated">
  16265. <doc>
  16266. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16267. @return the type of decompressor needed by this codec.]]>
  16268. </doc>
  16269. </method>
  16270. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16271. abstract="false" native="false" synchronized="false"
  16272. static="false" final="false" visibility="public"
  16273. deprecated="not deprecated">
  16274. <doc>
  16275. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16276. @return a new decompressor for use by this codec]]>
  16277. </doc>
  16278. </method>
  16279. <method name="getDefaultExtension" return="java.lang.String"
  16280. abstract="false" native="false" synchronized="false"
  16281. static="false" final="false" visibility="public"
  16282. deprecated="not deprecated">
  16283. <doc>
  16284. <![CDATA[Get the default filename extension for this kind of compression.
  16285. @return the extension including the '.']]>
  16286. </doc>
  16287. </method>
  16288. <doc>
  16289. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16290. </doc>
  16291. </interface>
  16292. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16293. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16294. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16295. abstract="false"
  16296. static="false" final="false" visibility="public"
  16297. deprecated="not deprecated">
  16298. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16299. static="false" final="false" visibility="public"
  16300. deprecated="not deprecated">
  16301. <doc>
  16302. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16303. and register them. Defaults to gzip and zip.]]>
  16304. </doc>
  16305. </constructor>
  16306. <method name="toString" return="java.lang.String"
  16307. abstract="false" native="false" synchronized="false"
  16308. static="false" final="false" visibility="public"
  16309. deprecated="not deprecated">
  16310. <doc>
  16311. <![CDATA[Print the extension map out as a string.]]>
  16312. </doc>
  16313. </method>
  16314. <method name="getCodecClasses" return="java.util.List"
  16315. abstract="false" native="false" synchronized="false"
  16316. static="true" final="false" visibility="public"
  16317. deprecated="not deprecated">
  16318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16319. <doc>
  16320. <![CDATA[Get the list of codecs listed in the configuration
  16321. @param conf the configuration to look in
  16322. @return a list of the Configuration classes or null if the attribute
  16323. was not set]]>
  16324. </doc>
  16325. </method>
  16326. <method name="setCodecClasses"
  16327. abstract="false" native="false" synchronized="false"
  16328. static="true" final="false" visibility="public"
  16329. deprecated="not deprecated">
  16330. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16331. <param name="classes" type="java.util.List"/>
  16332. <doc>
  16333. <![CDATA[Sets a list of codec classes in the configuration.
  16334. @param conf the configuration to modify
  16335. @param classes the list of classes to set]]>
  16336. </doc>
  16337. </method>
  16338. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16339. abstract="false" native="false" synchronized="false"
  16340. static="false" final="false" visibility="public"
  16341. deprecated="not deprecated">
  16342. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16343. <doc>
  16344. <![CDATA[Find the relevant compression codec for the given file based on its
  16345. filename suffix.
  16346. @param file the filename to check
  16347. @return the codec object]]>
  16348. </doc>
  16349. </method>
  16350. <method name="removeSuffix" return="java.lang.String"
  16351. abstract="false" native="false" synchronized="false"
  16352. static="true" final="false" visibility="public"
  16353. deprecated="not deprecated">
  16354. <param name="filename" type="java.lang.String"/>
  16355. <param name="suffix" type="java.lang.String"/>
  16356. <doc>
  16357. <![CDATA[Removes a suffix from a filename, if it has it.
  16358. @param filename the filename to strip
  16359. @param suffix the suffix to remove
  16360. @return the shortened filename]]>
  16361. </doc>
  16362. </method>
  16363. <method name="main"
  16364. abstract="false" native="false" synchronized="false"
  16365. static="true" final="false" visibility="public"
  16366. deprecated="not deprecated">
  16367. <param name="args" type="java.lang.String[]"/>
  16368. <exception name="Exception" type="java.lang.Exception"/>
  16369. <doc>
  16370. <![CDATA[A little test program.
  16371. @param args]]>
  16372. </doc>
  16373. </method>
  16374. <field name="LOG" type="org.apache.commons.logging.Log"
  16375. transient="false" volatile="false"
  16376. static="true" final="true" visibility="public"
  16377. deprecated="not deprecated">
  16378. </field>
  16379. <doc>
  16380. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16381. </doc>
  16382. </class>
  16383. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16384. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16385. <class name="CompressionInputStream" extends="java.io.InputStream"
  16386. abstract="true"
  16387. static="false" final="false" visibility="public"
  16388. deprecated="not deprecated">
  16389. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16390. static="false" final="false" visibility="protected"
  16391. deprecated="not deprecated">
  16392. <doc>
  16393. <![CDATA[Create a compression input stream that reads
  16394. the decompressed bytes from the given stream.
  16395. @param in The input stream to be compressed.]]>
  16396. </doc>
  16397. </constructor>
  16398. <method name="close"
  16399. abstract="false" native="false" synchronized="false"
  16400. static="false" final="false" visibility="public"
  16401. deprecated="not deprecated">
  16402. <exception name="IOException" type="java.io.IOException"/>
  16403. </method>
  16404. <method name="read" return="int"
  16405. abstract="true" native="false" synchronized="false"
  16406. static="false" final="false" visibility="public"
  16407. deprecated="not deprecated">
  16408. <param name="b" type="byte[]"/>
  16409. <param name="off" type="int"/>
  16410. <param name="len" type="int"/>
  16411. <exception name="IOException" type="java.io.IOException"/>
  16412. <doc>
  16413. <![CDATA[Read bytes from the stream.
  16414. Made abstract to prevent leakage to underlying stream.]]>
  16415. </doc>
  16416. </method>
  16417. <method name="resetState"
  16418. abstract="true" native="false" synchronized="false"
  16419. static="false" final="false" visibility="public"
  16420. deprecated="not deprecated">
  16421. <exception name="IOException" type="java.io.IOException"/>
  16422. <doc>
  16423. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16424. as the underlying stream may have been repositioned.]]>
  16425. </doc>
  16426. </method>
  16427. <field name="in" type="java.io.InputStream"
  16428. transient="false" volatile="false"
  16429. static="false" final="true" visibility="protected"
  16430. deprecated="not deprecated">
  16431. <doc>
  16432. <![CDATA[The input stream to be compressed.]]>
  16433. </doc>
  16434. </field>
  16435. <doc>
  16436. <![CDATA[A compression input stream.
  16437. <p>Implementations are assumed to be buffered. This permits clients to
  16438. reposition the underlying input stream then call {@link #resetState()},
  16439. without having to also synchronize client buffers.]]>
  16440. </doc>
  16441. </class>
  16442. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  16443. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16444. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  16445. abstract="true"
  16446. static="false" final="false" visibility="public"
  16447. deprecated="not deprecated">
  16448. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  16449. static="false" final="false" visibility="protected"
  16450. deprecated="not deprecated">
  16451. <doc>
  16452. <![CDATA[Create a compression output stream that writes
  16453. the compressed bytes to the given stream.
  16454. @param out]]>
  16455. </doc>
  16456. </constructor>
  16457. <method name="close"
  16458. abstract="false" native="false" synchronized="false"
  16459. static="false" final="false" visibility="public"
  16460. deprecated="not deprecated">
  16461. <exception name="IOException" type="java.io.IOException"/>
  16462. </method>
  16463. <method name="flush"
  16464. abstract="false" native="false" synchronized="false"
  16465. static="false" final="false" visibility="public"
  16466. deprecated="not deprecated">
  16467. <exception name="IOException" type="java.io.IOException"/>
  16468. </method>
  16469. <method name="write"
  16470. abstract="true" native="false" synchronized="false"
  16471. static="false" final="false" visibility="public"
  16472. deprecated="not deprecated">
  16473. <param name="b" type="byte[]"/>
  16474. <param name="off" type="int"/>
  16475. <param name="len" type="int"/>
  16476. <exception name="IOException" type="java.io.IOException"/>
  16477. <doc>
  16478. <![CDATA[Write compressed bytes to the stream.
  16479. Made abstract to prevent leakage to underlying stream.]]>
  16480. </doc>
  16481. </method>
  16482. <method name="finish"
  16483. abstract="true" native="false" synchronized="false"
  16484. static="false" final="false" visibility="public"
  16485. deprecated="not deprecated">
  16486. <exception name="IOException" type="java.io.IOException"/>
  16487. <doc>
  16488. <![CDATA[Finishes writing compressed data to the output stream
  16489. without closing the underlying stream.]]>
  16490. </doc>
  16491. </method>
  16492. <method name="resetState"
  16493. abstract="true" native="false" synchronized="false"
  16494. static="false" final="false" visibility="public"
  16495. deprecated="not deprecated">
  16496. <exception name="IOException" type="java.io.IOException"/>
  16497. <doc>
  16498. <![CDATA[Reset the compression to the initial state.
  16499. Does not reset the underlying stream.]]>
  16500. </doc>
  16501. </method>
  16502. <field name="out" type="java.io.OutputStream"
  16503. transient="false" volatile="false"
  16504. static="false" final="true" visibility="protected"
  16505. deprecated="not deprecated">
  16506. <doc>
  16507. <![CDATA[The output stream to be compressed.]]>
  16508. </doc>
  16509. </field>
  16510. <doc>
  16511. <![CDATA[A compression output stream.]]>
  16512. </doc>
  16513. </class>
  16514. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  16515. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  16516. <interface name="Compressor" abstract="true"
  16517. static="false" final="false" visibility="public"
  16518. deprecated="not deprecated">
  16519. <method name="setInput"
  16520. abstract="false" native="false" synchronized="false"
  16521. static="false" final="false" visibility="public"
  16522. deprecated="not deprecated">
  16523. <param name="b" type="byte[]"/>
  16524. <param name="off" type="int"/>
  16525. <param name="len" type="int"/>
  16526. <doc>
  16527. <![CDATA[Sets input data for compression.
  16528. This should be called whenever #needsInput() returns
  16529. <code>true</code> indicating that more input data is required.
  16530. @param b Input data
  16531. @param off Start offset
  16532. @param len Length]]>
  16533. </doc>
  16534. </method>
  16535. <method name="needsInput" return="boolean"
  16536. abstract="false" native="false" synchronized="false"
  16537. static="false" final="false" visibility="public"
  16538. deprecated="not deprecated">
  16539. <doc>
  16540. <![CDATA[Returns true if the input data buffer is empty and
  16541. #setInput() should be called to provide more input.
  16542. @return <code>true</code> if the input data buffer is empty and
  16543. #setInput() should be called in order to provide more input.]]>
  16544. </doc>
  16545. </method>
  16546. <method name="setDictionary"
  16547. abstract="false" native="false" synchronized="false"
  16548. static="false" final="false" visibility="public"
  16549. deprecated="not deprecated">
  16550. <param name="b" type="byte[]"/>
  16551. <param name="off" type="int"/>
  16552. <param name="len" type="int"/>
  16553. <doc>
  16554. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16555. is used when the history buffer can be predetermined.
  16556. @param b Dictionary data bytes
  16557. @param off Start offset
  16558. @param len Length]]>
  16559. </doc>
  16560. </method>
  16561. <method name="getBytesRead" return="long"
  16562. abstract="false" native="false" synchronized="false"
  16563. static="false" final="false" visibility="public"
  16564. deprecated="not deprecated">
  16565. <doc>
  16566. <![CDATA[Return number of uncompressed bytes input so far.]]>
  16567. </doc>
  16568. </method>
  16569. <method name="getBytesWritten" return="long"
  16570. abstract="false" native="false" synchronized="false"
  16571. static="false" final="false" visibility="public"
  16572. deprecated="not deprecated">
  16573. <doc>
  16574. <![CDATA[Return number of compressed bytes output so far.]]>
  16575. </doc>
  16576. </method>
  16577. <method name="finish"
  16578. abstract="false" native="false" synchronized="false"
  16579. static="false" final="false" visibility="public"
  16580. deprecated="not deprecated">
  16581. <doc>
  16582. <![CDATA[When called, indicates that compression should end
  16583. with the current contents of the input buffer.]]>
  16584. </doc>
  16585. </method>
  16586. <method name="finished" return="boolean"
  16587. abstract="false" native="false" synchronized="false"
  16588. static="false" final="false" visibility="public"
  16589. deprecated="not deprecated">
  16590. <doc>
  16591. <![CDATA[Returns true if the end of the compressed
  16592. data output stream has been reached.
  16593. @return <code>true</code> if the end of the compressed
  16594. data output stream has been reached.]]>
  16595. </doc>
  16596. </method>
  16597. <method name="compress" return="int"
  16598. abstract="false" native="false" synchronized="false"
  16599. static="false" final="false" visibility="public"
  16600. deprecated="not deprecated">
  16601. <param name="b" type="byte[]"/>
  16602. <param name="off" type="int"/>
  16603. <param name="len" type="int"/>
  16604. <exception name="IOException" type="java.io.IOException"/>
  16605. <doc>
  16606. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  16607. of bytes of compressed data. A return value of 0 indicates that
  16608. needsInput() should be called in order to determine if more input
  16609. data is required.
  16610. @param b Buffer for the compressed data
  16611. @param off Start offset of the data
  16612. @param len Size of the buffer
  16613. @return The actual number of bytes of compressed data.]]>
  16614. </doc>
  16615. </method>
  16616. <method name="reset"
  16617. abstract="false" native="false" synchronized="false"
  16618. static="false" final="false" visibility="public"
  16619. deprecated="not deprecated">
  16620. <doc>
  16621. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  16622. </doc>
  16623. </method>
  16624. <method name="end"
  16625. abstract="false" native="false" synchronized="false"
  16626. static="false" final="false" visibility="public"
  16627. deprecated="not deprecated">
  16628. <doc>
  16629. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  16630. </doc>
  16631. </method>
  16632. <method name="reinit"
  16633. abstract="false" native="false" synchronized="false"
  16634. static="false" final="false" visibility="public"
  16635. deprecated="not deprecated">
  16636. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16637. <doc>
  16638. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  16639. the given Configuration
  16640. @param conf Configuration from which new setting are fetched]]>
  16641. </doc>
  16642. </method>
  16643. <doc>
  16644. <![CDATA[Specification of a stream-based 'compressor' which can be
  16645. plugged into a {@link CompressionOutputStream} to compress data.
  16646. This is modelled after {@link java.util.zip.Deflater}]]>
  16647. </doc>
  16648. </interface>
  16649. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  16650. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  16651. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  16652. abstract="false"
  16653. static="false" final="false" visibility="public"
  16654. deprecated="not deprecated">
  16655. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  16656. static="false" final="false" visibility="public"
  16657. deprecated="not deprecated">
  16658. </constructor>
  16659. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16660. static="false" final="false" visibility="public"
  16661. deprecated="not deprecated">
  16662. </constructor>
  16663. <constructor name="CompressorStream" type="java.io.OutputStream"
  16664. static="false" final="false" visibility="protected"
  16665. deprecated="not deprecated">
  16666. <doc>
  16667. <![CDATA[Allow derived classes to directly set the underlying stream.
  16668. @param out Underlying output stream.]]>
  16669. </doc>
  16670. </constructor>
  16671. <method name="write"
  16672. abstract="false" native="false" synchronized="false"
  16673. static="false" final="false" visibility="public"
  16674. deprecated="not deprecated">
  16675. <param name="b" type="byte[]"/>
  16676. <param name="off" type="int"/>
  16677. <param name="len" type="int"/>
  16678. <exception name="IOException" type="java.io.IOException"/>
  16679. </method>
  16680. <method name="compress"
  16681. abstract="false" native="false" synchronized="false"
  16682. static="false" final="false" visibility="protected"
  16683. deprecated="not deprecated">
  16684. <exception name="IOException" type="java.io.IOException"/>
  16685. </method>
  16686. <method name="finish"
  16687. abstract="false" native="false" synchronized="false"
  16688. static="false" final="false" visibility="public"
  16689. deprecated="not deprecated">
  16690. <exception name="IOException" type="java.io.IOException"/>
  16691. </method>
  16692. <method name="resetState"
  16693. abstract="false" native="false" synchronized="false"
  16694. static="false" final="false" visibility="public"
  16695. deprecated="not deprecated">
  16696. <exception name="IOException" type="java.io.IOException"/>
  16697. </method>
  16698. <method name="close"
  16699. abstract="false" native="false" synchronized="false"
  16700. static="false" final="false" visibility="public"
  16701. deprecated="not deprecated">
  16702. <exception name="IOException" type="java.io.IOException"/>
  16703. </method>
  16704. <method name="write"
  16705. abstract="false" native="false" synchronized="false"
  16706. static="false" final="false" visibility="public"
  16707. deprecated="not deprecated">
  16708. <param name="b" type="int"/>
  16709. <exception name="IOException" type="java.io.IOException"/>
  16710. </method>
  16711. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  16712. transient="false" volatile="false"
  16713. static="false" final="false" visibility="protected"
  16714. deprecated="not deprecated">
  16715. </field>
  16716. <field name="buffer" type="byte[]"
  16717. transient="false" volatile="false"
  16718. static="false" final="false" visibility="protected"
  16719. deprecated="not deprecated">
  16720. </field>
  16721. <field name="closed" type="boolean"
  16722. transient="false" volatile="false"
  16723. static="false" final="false" visibility="protected"
  16724. deprecated="not deprecated">
  16725. </field>
  16726. </class>
  16727. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  16728. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  16729. <interface name="Decompressor" abstract="true"
  16730. static="false" final="false" visibility="public"
  16731. deprecated="not deprecated">
  16732. <method name="setInput"
  16733. abstract="false" native="false" synchronized="false"
  16734. static="false" final="false" visibility="public"
  16735. deprecated="not deprecated">
  16736. <param name="b" type="byte[]"/>
  16737. <param name="off" type="int"/>
  16738. <param name="len" type="int"/>
  16739. <doc>
  16740. <![CDATA[Sets input data for decompression.
  16741. This should be called if and only if {@link #needsInput()} returns
  16742. <code>true</code> indicating that more input data is required.
  16743. (Both native and non-native versions of various Decompressors require
  16744. that the data passed in via <code>b[]</code> remain unmodified until
  16745. the caller is explicitly notified--via {@link #needsInput()}--that the
  16746. buffer may be safely modified. With this requirement, an extra
  16747. buffer-copy can be avoided.)
  16748. @param b Input data
  16749. @param off Start offset
  16750. @param len Length]]>
  16751. </doc>
  16752. </method>
  16753. <method name="needsInput" return="boolean"
  16754. abstract="false" native="false" synchronized="false"
  16755. static="false" final="false" visibility="public"
  16756. deprecated="not deprecated">
  16757. <doc>
  16758. <![CDATA[Returns true if the input data buffer is empty and
  16759. {@link #setInput(byte[], int, int)} should be called to
  16760. provide more input.
  16761. @return <code>true</code> if the input data buffer is empty and
  16762. {@link #setInput(byte[], int, int)} should be called in
  16763. order to provide more input.]]>
  16764. </doc>
  16765. </method>
  16766. <method name="setDictionary"
  16767. abstract="false" native="false" synchronized="false"
  16768. static="false" final="false" visibility="public"
  16769. deprecated="not deprecated">
  16770. <param name="b" type="byte[]"/>
  16771. <param name="off" type="int"/>
  16772. <param name="len" type="int"/>
  16773. <doc>
  16774. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  16775. is used when the history buffer can be predetermined.
  16776. @param b Dictionary data bytes
  16777. @param off Start offset
  16778. @param len Length]]>
  16779. </doc>
  16780. </method>
  16781. <method name="needsDictionary" return="boolean"
  16782. abstract="false" native="false" synchronized="false"
  16783. static="false" final="false" visibility="public"
  16784. deprecated="not deprecated">
  16785. <doc>
  16786. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  16787. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  16788. </doc>
  16789. </method>
  16790. <method name="finished" return="boolean"
  16791. abstract="false" native="false" synchronized="false"
  16792. static="false" final="false" visibility="public"
  16793. deprecated="not deprecated">
  16794. <doc>
  16795. <![CDATA[Returns true if the end of the decompressed
  16796. data output stream has been reached.
  16797. @return <code>true</code> if the end of the decompressed
  16798. data output stream has been reached.]]>
  16799. </doc>
  16800. </method>
  16801. <method name="decompress" return="int"
  16802. abstract="false" native="false" synchronized="false"
  16803. static="false" final="false" visibility="public"
  16804. deprecated="not deprecated">
  16805. <param name="b" type="byte[]"/>
  16806. <param name="off" type="int"/>
  16807. <param name="len" type="int"/>
  16808. <exception name="IOException" type="java.io.IOException"/>
  16809. <doc>
  16810. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  16811. of bytes of uncompressed data. A return value of 0 indicates that
  16812. {@link #needsInput()} should be called in order to determine if more
  16813. input data is required.
  16814. @param b Buffer for the compressed data
  16815. @param off Start offset of the data
  16816. @param len Size of the buffer
  16817. @return The actual number of bytes of compressed data.
  16818. @throws IOException]]>
  16819. </doc>
  16820. </method>
  16821. <method name="getRemaining" return="int"
  16822. abstract="false" native="false" synchronized="false"
  16823. static="false" final="false" visibility="public"
  16824. deprecated="not deprecated">
  16825. <doc>
  16826. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  16827. typically called after the decompressor has finished decompressing
  16828. the current gzip stream (a.k.a. "member").]]>
  16829. </doc>
  16830. </method>
  16831. <method name="reset"
  16832. abstract="false" native="false" synchronized="false"
  16833. static="false" final="false" visibility="public"
  16834. deprecated="not deprecated">
  16835. <doc>
  16836. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  16837. input data can be processed.]]>
  16838. </doc>
  16839. </method>
  16840. <method name="end"
  16841. abstract="false" native="false" synchronized="false"
  16842. static="false" final="false" visibility="public"
  16843. deprecated="not deprecated">
  16844. <doc>
  16845. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  16846. </doc>
  16847. </method>
  16848. <doc>
  16849. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  16850. plugged into a {@link CompressionInputStream} to compress data.
  16851. This is modelled after {@link java.util.zip.Inflater}]]>
  16852. </doc>
  16853. </interface>
  16854. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  16855. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  16856. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  16857. abstract="false"
  16858. static="false" final="false" visibility="public"
  16859. deprecated="not deprecated">
  16860. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16861. static="false" final="false" visibility="public"
  16862. deprecated="not deprecated">
  16863. </constructor>
  16864. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16865. static="false" final="false" visibility="public"
  16866. deprecated="not deprecated">
  16867. </constructor>
  16868. <constructor name="DecompressorStream" type="java.io.InputStream"
  16869. static="false" final="false" visibility="protected"
  16870. deprecated="not deprecated">
  16871. <doc>
  16872. <![CDATA[Allow derived classes to directly set the underlying stream.
  16873. @param in Underlying input stream.]]>
  16874. </doc>
  16875. </constructor>
  16876. <method name="read" return="int"
  16877. abstract="false" native="false" synchronized="false"
  16878. static="false" final="false" visibility="public"
  16879. deprecated="not deprecated">
  16880. <exception name="IOException" type="java.io.IOException"/>
  16881. </method>
  16882. <method name="read" return="int"
  16883. abstract="false" native="false" synchronized="false"
  16884. static="false" final="false" visibility="public"
  16885. deprecated="not deprecated">
  16886. <param name="b" type="byte[]"/>
  16887. <param name="off" type="int"/>
  16888. <param name="len" type="int"/>
  16889. <exception name="IOException" type="java.io.IOException"/>
  16890. </method>
  16891. <method name="decompress" return="int"
  16892. abstract="false" native="false" synchronized="false"
  16893. static="false" final="false" visibility="protected"
  16894. deprecated="not deprecated">
  16895. <param name="b" type="byte[]"/>
  16896. <param name="off" type="int"/>
  16897. <param name="len" type="int"/>
  16898. <exception name="IOException" type="java.io.IOException"/>
  16899. </method>
  16900. <method name="getCompressedData" return="int"
  16901. abstract="false" native="false" synchronized="false"
  16902. static="false" final="false" visibility="protected"
  16903. deprecated="not deprecated">
  16904. <exception name="IOException" type="java.io.IOException"/>
  16905. </method>
  16906. <method name="checkStream"
  16907. abstract="false" native="false" synchronized="false"
  16908. static="false" final="false" visibility="protected"
  16909. deprecated="not deprecated">
  16910. <exception name="IOException" type="java.io.IOException"/>
  16911. </method>
  16912. <method name="resetState"
  16913. abstract="false" native="false" synchronized="false"
  16914. static="false" final="false" visibility="public"
  16915. deprecated="not deprecated">
  16916. <exception name="IOException" type="java.io.IOException"/>
  16917. </method>
  16918. <method name="skip" return="long"
  16919. abstract="false" native="false" synchronized="false"
  16920. static="false" final="false" visibility="public"
  16921. deprecated="not deprecated">
  16922. <param name="n" type="long"/>
  16923. <exception name="IOException" type="java.io.IOException"/>
  16924. </method>
  16925. <method name="available" return="int"
  16926. abstract="false" native="false" synchronized="false"
  16927. static="false" final="false" visibility="public"
  16928. deprecated="not deprecated">
  16929. <exception name="IOException" type="java.io.IOException"/>
  16930. </method>
  16931. <method name="close"
  16932. abstract="false" native="false" synchronized="false"
  16933. static="false" final="false" visibility="public"
  16934. deprecated="not deprecated">
  16935. <exception name="IOException" type="java.io.IOException"/>
  16936. </method>
  16937. <method name="markSupported" return="boolean"
  16938. abstract="false" native="false" synchronized="false"
  16939. static="false" final="false" visibility="public"
  16940. deprecated="not deprecated">
  16941. </method>
  16942. <method name="mark"
  16943. abstract="false" native="false" synchronized="true"
  16944. static="false" final="false" visibility="public"
  16945. deprecated="not deprecated">
  16946. <param name="readlimit" type="int"/>
  16947. </method>
  16948. <method name="reset"
  16949. abstract="false" native="false" synchronized="true"
  16950. static="false" final="false" visibility="public"
  16951. deprecated="not deprecated">
  16952. <exception name="IOException" type="java.io.IOException"/>
  16953. </method>
  16954. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  16955. transient="false" volatile="false"
  16956. static="false" final="false" visibility="protected"
  16957. deprecated="not deprecated">
  16958. </field>
  16959. <field name="buffer" type="byte[]"
  16960. transient="false" volatile="false"
  16961. static="false" final="false" visibility="protected"
  16962. deprecated="not deprecated">
  16963. </field>
  16964. <field name="eof" type="boolean"
  16965. transient="false" volatile="false"
  16966. static="false" final="false" visibility="protected"
  16967. deprecated="not deprecated">
  16968. </field>
  16969. <field name="closed" type="boolean"
  16970. transient="false" volatile="false"
  16971. static="false" final="false" visibility="protected"
  16972. deprecated="not deprecated">
  16973. </field>
  16974. </class>
  16975. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  16976. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  16977. <class name="DefaultCodec" extends="java.lang.Object"
  16978. abstract="false"
  16979. static="false" final="false" visibility="public"
  16980. deprecated="not deprecated">
  16981. <implements name="org.apache.hadoop.conf.Configurable"/>
  16982. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  16983. <constructor name="DefaultCodec"
  16984. static="false" final="false" visibility="public"
  16985. deprecated="not deprecated">
  16986. </constructor>
  16987. <method name="setConf"
  16988. abstract="false" native="false" synchronized="false"
  16989. static="false" final="false" visibility="public"
  16990. deprecated="not deprecated">
  16991. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16992. </method>
  16993. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16994. abstract="false" native="false" synchronized="false"
  16995. static="false" final="false" visibility="public"
  16996. deprecated="not deprecated">
  16997. </method>
  16998. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16999. abstract="false" native="false" synchronized="false"
  17000. static="false" final="false" visibility="public"
  17001. deprecated="not deprecated">
  17002. <param name="out" type="java.io.OutputStream"/>
  17003. <exception name="IOException" type="java.io.IOException"/>
  17004. </method>
  17005. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17006. abstract="false" native="false" synchronized="false"
  17007. static="false" final="false" visibility="public"
  17008. deprecated="not deprecated">
  17009. <param name="out" type="java.io.OutputStream"/>
  17010. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17011. <exception name="IOException" type="java.io.IOException"/>
  17012. </method>
  17013. <method name="getCompressorType" return="java.lang.Class"
  17014. abstract="false" native="false" synchronized="false"
  17015. static="false" final="false" visibility="public"
  17016. deprecated="not deprecated">
  17017. </method>
  17018. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17019. abstract="false" native="false" synchronized="false"
  17020. static="false" final="false" visibility="public"
  17021. deprecated="not deprecated">
  17022. </method>
  17023. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17024. abstract="false" native="false" synchronized="false"
  17025. static="false" final="false" visibility="public"
  17026. deprecated="not deprecated">
  17027. <param name="in" type="java.io.InputStream"/>
  17028. <exception name="IOException" type="java.io.IOException"/>
  17029. </method>
  17030. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17031. abstract="false" native="false" synchronized="false"
  17032. static="false" final="false" visibility="public"
  17033. deprecated="not deprecated">
  17034. <param name="in" type="java.io.InputStream"/>
  17035. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17036. <exception name="IOException" type="java.io.IOException"/>
  17037. </method>
  17038. <method name="getDecompressorType" return="java.lang.Class"
  17039. abstract="false" native="false" synchronized="false"
  17040. static="false" final="false" visibility="public"
  17041. deprecated="not deprecated">
  17042. </method>
  17043. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17044. abstract="false" native="false" synchronized="false"
  17045. static="false" final="false" visibility="public"
  17046. deprecated="not deprecated">
  17047. </method>
  17048. <method name="getDefaultExtension" return="java.lang.String"
  17049. abstract="false" native="false" synchronized="false"
  17050. static="false" final="false" visibility="public"
  17051. deprecated="not deprecated">
  17052. </method>
  17053. </class>
  17054. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17055. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  17056. <interface name="DoNotPool" abstract="true"
  17057. static="false" final="false" visibility="public"
  17058. deprecated="not deprecated">
  17059. <implements name="java.lang.annotation.Annotation"/>
  17060. <doc>
  17061. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  17062. type as not to be pooled.]]>
  17063. </doc>
  17064. </interface>
  17065. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  17066. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17067. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17068. abstract="false"
  17069. static="false" final="false" visibility="public"
  17070. deprecated="not deprecated">
  17071. <constructor name="GzipCodec"
  17072. static="false" final="false" visibility="public"
  17073. deprecated="not deprecated">
  17074. </constructor>
  17075. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17076. abstract="false" native="false" synchronized="false"
  17077. static="false" final="false" visibility="public"
  17078. deprecated="not deprecated">
  17079. <param name="out" type="java.io.OutputStream"/>
  17080. <exception name="IOException" type="java.io.IOException"/>
  17081. </method>
  17082. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17083. abstract="false" native="false" synchronized="false"
  17084. static="false" final="false" visibility="public"
  17085. deprecated="not deprecated">
  17086. <param name="out" type="java.io.OutputStream"/>
  17087. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17088. <exception name="IOException" type="java.io.IOException"/>
  17089. </method>
  17090. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17091. abstract="false" native="false" synchronized="false"
  17092. static="false" final="false" visibility="public"
  17093. deprecated="not deprecated">
  17094. </method>
  17095. <method name="getCompressorType" return="java.lang.Class"
  17096. abstract="false" native="false" synchronized="false"
  17097. static="false" final="false" visibility="public"
  17098. deprecated="not deprecated">
  17099. </method>
  17100. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17101. abstract="false" native="false" synchronized="false"
  17102. static="false" final="false" visibility="public"
  17103. deprecated="not deprecated">
  17104. <param name="in" type="java.io.InputStream"/>
  17105. <exception name="IOException" type="java.io.IOException"/>
  17106. </method>
  17107. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17108. abstract="false" native="false" synchronized="false"
  17109. static="false" final="false" visibility="public"
  17110. deprecated="not deprecated">
  17111. <param name="in" type="java.io.InputStream"/>
  17112. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17113. <exception name="IOException" type="java.io.IOException"/>
  17114. </method>
  17115. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17116. abstract="false" native="false" synchronized="false"
  17117. static="false" final="false" visibility="public"
  17118. deprecated="not deprecated">
  17119. </method>
  17120. <method name="getDecompressorType" return="java.lang.Class"
  17121. abstract="false" native="false" synchronized="false"
  17122. static="false" final="false" visibility="public"
  17123. deprecated="not deprecated">
  17124. </method>
  17125. <method name="getDefaultExtension" return="java.lang.String"
  17126. abstract="false" native="false" synchronized="false"
  17127. static="false" final="false" visibility="public"
  17128. deprecated="not deprecated">
  17129. </method>
  17130. <doc>
  17131. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17132. </doc>
  17133. </class>
  17134. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17135. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17136. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17137. abstract="false"
  17138. static="true" final="false" visibility="protected"
  17139. deprecated="not deprecated">
  17140. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17141. static="false" final="false" visibility="public"
  17142. deprecated="not deprecated">
  17143. <exception name="IOException" type="java.io.IOException"/>
  17144. </constructor>
  17145. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17146. static="false" final="false" visibility="protected"
  17147. deprecated="not deprecated">
  17148. <doc>
  17149. <![CDATA[Allow children types to put a different type in here.
  17150. @param out the Deflater stream to use]]>
  17151. </doc>
  17152. </constructor>
  17153. <method name="close"
  17154. abstract="false" native="false" synchronized="false"
  17155. static="false" final="false" visibility="public"
  17156. deprecated="not deprecated">
  17157. <exception name="IOException" type="java.io.IOException"/>
  17158. </method>
  17159. <method name="flush"
  17160. abstract="false" native="false" synchronized="false"
  17161. static="false" final="false" visibility="public"
  17162. deprecated="not deprecated">
  17163. <exception name="IOException" type="java.io.IOException"/>
  17164. </method>
  17165. <method name="write"
  17166. abstract="false" native="false" synchronized="false"
  17167. static="false" final="false" visibility="public"
  17168. deprecated="not deprecated">
  17169. <param name="b" type="int"/>
  17170. <exception name="IOException" type="java.io.IOException"/>
  17171. </method>
  17172. <method name="write"
  17173. abstract="false" native="false" synchronized="false"
  17174. static="false" final="false" visibility="public"
  17175. deprecated="not deprecated">
  17176. <param name="data" type="byte[]"/>
  17177. <param name="offset" type="int"/>
  17178. <param name="length" type="int"/>
  17179. <exception name="IOException" type="java.io.IOException"/>
  17180. </method>
  17181. <method name="finish"
  17182. abstract="false" native="false" synchronized="false"
  17183. static="false" final="false" visibility="public"
  17184. deprecated="not deprecated">
  17185. <exception name="IOException" type="java.io.IOException"/>
  17186. </method>
  17187. <method name="resetState"
  17188. abstract="false" native="false" synchronized="false"
  17189. static="false" final="false" visibility="public"
  17190. deprecated="not deprecated">
  17191. <exception name="IOException" type="java.io.IOException"/>
  17192. </method>
  17193. <doc>
  17194. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17195. a CompressionOutputStream.]]>
  17196. </doc>
  17197. </class>
  17198. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17199. </package>
  17200. <package name="org.apache.hadoop.io.compress.bzip2">
  17201. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17202. <interface name="BZip2Constants" abstract="true"
  17203. static="false" final="false" visibility="public"
  17204. deprecated="not deprecated">
  17205. <field name="baseBlockSize" type="int"
  17206. transient="false" volatile="false"
  17207. static="true" final="true" visibility="public"
  17208. deprecated="not deprecated">
  17209. </field>
  17210. <field name="MAX_ALPHA_SIZE" type="int"
  17211. transient="false" volatile="false"
  17212. static="true" final="true" visibility="public"
  17213. deprecated="not deprecated">
  17214. </field>
  17215. <field name="MAX_CODE_LEN" type="int"
  17216. transient="false" volatile="false"
  17217. static="true" final="true" visibility="public"
  17218. deprecated="not deprecated">
  17219. </field>
  17220. <field name="RUNA" type="int"
  17221. transient="false" volatile="false"
  17222. static="true" final="true" visibility="public"
  17223. deprecated="not deprecated">
  17224. </field>
  17225. <field name="RUNB" type="int"
  17226. transient="false" volatile="false"
  17227. static="true" final="true" visibility="public"
  17228. deprecated="not deprecated">
  17229. </field>
  17230. <field name="N_GROUPS" type="int"
  17231. transient="false" volatile="false"
  17232. static="true" final="true" visibility="public"
  17233. deprecated="not deprecated">
  17234. </field>
  17235. <field name="G_SIZE" type="int"
  17236. transient="false" volatile="false"
  17237. static="true" final="true" visibility="public"
  17238. deprecated="not deprecated">
  17239. </field>
  17240. <field name="N_ITERS" type="int"
  17241. transient="false" volatile="false"
  17242. static="true" final="true" visibility="public"
  17243. deprecated="not deprecated">
  17244. </field>
  17245. <field name="MAX_SELECTORS" type="int"
  17246. transient="false" volatile="false"
  17247. static="true" final="true" visibility="public"
  17248. deprecated="not deprecated">
  17249. </field>
  17250. <field name="NUM_OVERSHOOT_BYTES" type="int"
  17251. transient="false" volatile="false"
  17252. static="true" final="true" visibility="public"
  17253. deprecated="not deprecated">
  17254. </field>
  17255. <field name="rNums" type="int[]"
  17256. transient="false" volatile="false"
  17257. static="true" final="true" visibility="public"
  17258. deprecated="not deprecated">
  17259. <doc>
  17260. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  17261. is.
  17262. <p>
  17263. FIXME: This array should be in a private or package private location,
  17264. since it could be modified by malicious code.
  17265. </p>]]>
  17266. </doc>
  17267. </field>
  17268. <doc>
  17269. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  17270. and static data.
  17271. <p>
  17272. This interface is public for historical purposes. You should have no need to
  17273. use it.
  17274. </p>]]>
  17275. </doc>
  17276. </interface>
  17277. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  17278. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17279. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  17280. abstract="false"
  17281. static="false" final="false" visibility="public"
  17282. deprecated="not deprecated">
  17283. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17284. <constructor name="BZip2DummyCompressor"
  17285. static="false" final="false" visibility="public"
  17286. deprecated="not deprecated">
  17287. </constructor>
  17288. <method name="compress" return="int"
  17289. abstract="false" native="false" synchronized="false"
  17290. static="false" final="false" visibility="public"
  17291. deprecated="not deprecated">
  17292. <param name="b" type="byte[]"/>
  17293. <param name="off" type="int"/>
  17294. <param name="len" type="int"/>
  17295. <exception name="IOException" type="java.io.IOException"/>
  17296. </method>
  17297. <method name="end"
  17298. abstract="false" native="false" synchronized="false"
  17299. static="false" final="false" visibility="public"
  17300. deprecated="not deprecated">
  17301. </method>
  17302. <method name="finish"
  17303. abstract="false" native="false" synchronized="false"
  17304. static="false" final="false" visibility="public"
  17305. deprecated="not deprecated">
  17306. </method>
  17307. <method name="finished" return="boolean"
  17308. abstract="false" native="false" synchronized="false"
  17309. static="false" final="false" visibility="public"
  17310. deprecated="not deprecated">
  17311. </method>
  17312. <method name="getBytesRead" return="long"
  17313. abstract="false" native="false" synchronized="false"
  17314. static="false" final="false" visibility="public"
  17315. deprecated="not deprecated">
  17316. </method>
  17317. <method name="getBytesWritten" return="long"
  17318. abstract="false" native="false" synchronized="false"
  17319. static="false" final="false" visibility="public"
  17320. deprecated="not deprecated">
  17321. </method>
  17322. <method name="needsInput" return="boolean"
  17323. abstract="false" native="false" synchronized="false"
  17324. static="false" final="false" visibility="public"
  17325. deprecated="not deprecated">
  17326. </method>
  17327. <method name="reset"
  17328. abstract="false" native="false" synchronized="false"
  17329. static="false" final="false" visibility="public"
  17330. deprecated="not deprecated">
  17331. </method>
  17332. <method name="setDictionary"
  17333. abstract="false" native="false" synchronized="false"
  17334. static="false" final="false" visibility="public"
  17335. deprecated="not deprecated">
  17336. <param name="b" type="byte[]"/>
  17337. <param name="off" type="int"/>
  17338. <param name="len" type="int"/>
  17339. </method>
  17340. <method name="setInput"
  17341. abstract="false" native="false" synchronized="false"
  17342. static="false" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. <param name="b" type="byte[]"/>
  17345. <param name="off" type="int"/>
  17346. <param name="len" type="int"/>
  17347. </method>
  17348. <method name="reinit"
  17349. abstract="false" native="false" synchronized="false"
  17350. static="false" final="false" visibility="public"
  17351. deprecated="not deprecated">
  17352. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17353. </method>
  17354. <doc>
  17355. <![CDATA[This is a dummy compressor for BZip2.]]>
  17356. </doc>
  17357. </class>
  17358. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  17359. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17360. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  17361. abstract="false"
  17362. static="false" final="false" visibility="public"
  17363. deprecated="not deprecated">
  17364. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17365. <constructor name="BZip2DummyDecompressor"
  17366. static="false" final="false" visibility="public"
  17367. deprecated="not deprecated">
  17368. </constructor>
  17369. <method name="decompress" return="int"
  17370. abstract="false" native="false" synchronized="false"
  17371. static="false" final="false" visibility="public"
  17372. deprecated="not deprecated">
  17373. <param name="b" type="byte[]"/>
  17374. <param name="off" type="int"/>
  17375. <param name="len" type="int"/>
  17376. <exception name="IOException" type="java.io.IOException"/>
  17377. </method>
  17378. <method name="end"
  17379. abstract="false" native="false" synchronized="false"
  17380. static="false" final="false" visibility="public"
  17381. deprecated="not deprecated">
  17382. </method>
  17383. <method name="finished" return="boolean"
  17384. abstract="false" native="false" synchronized="false"
  17385. static="false" final="false" visibility="public"
  17386. deprecated="not deprecated">
  17387. </method>
  17388. <method name="needsDictionary" return="boolean"
  17389. abstract="false" native="false" synchronized="false"
  17390. static="false" final="false" visibility="public"
  17391. deprecated="not deprecated">
  17392. </method>
  17393. <method name="needsInput" return="boolean"
  17394. abstract="false" native="false" synchronized="false"
  17395. static="false" final="false" visibility="public"
  17396. deprecated="not deprecated">
  17397. </method>
  17398. <method name="getRemaining" return="int"
  17399. abstract="false" native="false" synchronized="false"
  17400. static="false" final="false" visibility="public"
  17401. deprecated="not deprecated">
  17402. </method>
  17403. <method name="reset"
  17404. abstract="false" native="false" synchronized="false"
  17405. static="false" final="false" visibility="public"
  17406. deprecated="not deprecated">
  17407. </method>
  17408. <method name="setDictionary"
  17409. abstract="false" native="false" synchronized="false"
  17410. static="false" final="false" visibility="public"
  17411. deprecated="not deprecated">
  17412. <param name="b" type="byte[]"/>
  17413. <param name="off" type="int"/>
  17414. <param name="len" type="int"/>
  17415. </method>
  17416. <method name="setInput"
  17417. abstract="false" native="false" synchronized="false"
  17418. static="false" final="false" visibility="public"
  17419. deprecated="not deprecated">
  17420. <param name="b" type="byte[]"/>
  17421. <param name="off" type="int"/>
  17422. <param name="len" type="int"/>
  17423. </method>
  17424. <doc>
  17425. <![CDATA[This is a dummy decompressor for BZip2.]]>
  17426. </doc>
  17427. </class>
  17428. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  17429. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  17430. <class name="CBZip2InputStream" extends="java.io.InputStream"
  17431. abstract="false"
  17432. static="false" final="false" visibility="public"
  17433. deprecated="not deprecated">
  17434. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  17435. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  17436. static="false" final="false" visibility="public"
  17437. deprecated="not deprecated">
  17438. <exception name="IOException" type="java.io.IOException"/>
  17439. <doc>
  17440. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  17441. specified stream.
  17442. <p>
  17443. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  17444. constructor expects the next byte in the stream to be the first one after
  17445. the magic. Thus callers have to skip the first two bytes. Otherwise this
  17446. constructor will throw an exception.
  17447. </p>
  17448. @throws IOException
  17449. if the stream content is malformed or an I/O error occurs.
  17450. @throws NullPointerException
  17451. if <tt>in == null</tt>]]>
  17452. </doc>
  17453. </constructor>
  17454. <method name="read" return="int"
  17455. abstract="false" native="false" synchronized="false"
  17456. static="false" final="false" visibility="public"
  17457. deprecated="not deprecated">
  17458. <exception name="IOException" type="java.io.IOException"/>
  17459. </method>
  17460. <method name="read" return="int"
  17461. abstract="false" native="false" synchronized="false"
  17462. static="false" final="false" visibility="public"
  17463. deprecated="not deprecated">
  17464. <param name="dest" type="byte[]"/>
  17465. <param name="offs" type="int"/>
  17466. <param name="len" type="int"/>
  17467. <exception name="IOException" type="java.io.IOException"/>
  17468. </method>
  17469. <method name="close"
  17470. abstract="false" native="false" synchronized="false"
  17471. static="false" final="false" visibility="public"
  17472. deprecated="not deprecated">
  17473. <exception name="IOException" type="java.io.IOException"/>
  17474. </method>
  17475. <doc>
  17476. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  17477. header chars) to be read as any other stream.
  17478. <p>
  17479. The decompression requires large amounts of memory. Thus you should call the
  17480. {@link #close() close()} method as soon as possible, to force
  17481. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  17482. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  17483. usage.
  17484. </p>
  17485. <p>
  17486. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  17487. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  17488. Thus you should consider to use a buffered source stream.
  17489. </p>
  17490. <p>
  17491. Instances of this class are not threadsafe.
  17492. </p>]]>
  17493. </doc>
  17494. </class>
  17495. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  17496. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  17497. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  17498. abstract="false"
  17499. static="false" final="false" visibility="public"
  17500. deprecated="not deprecated">
  17501. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  17502. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  17503. static="false" final="false" visibility="public"
  17504. deprecated="not deprecated">
  17505. <exception name="IOException" type="java.io.IOException"/>
  17506. <doc>
  17507. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  17508. <p>
  17509. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  17510. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  17511. constructor.
  17512. </p>
  17513. @param out *
  17514. the destination stream.
  17515. @throws IOException
  17516. if an I/O error occurs in the specified stream.
  17517. @throws NullPointerException
  17518. if <code>out == null</code>.]]>
  17519. </doc>
  17520. </constructor>
  17521. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  17522. static="false" final="false" visibility="public"
  17523. deprecated="not deprecated">
  17524. <exception name="IOException" type="java.io.IOException"/>
  17525. <doc>
  17526. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  17527. <p>
  17528. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  17529. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  17530. constructor.
  17531. </p>
  17532. @param out
  17533. the destination stream.
  17534. @param blockSize
  17535. the blockSize as 100k units.
  17536. @throws IOException
  17537. if an I/O error occurs in the specified stream.
  17538. @throws IllegalArgumentException
  17539. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  17540. @throws NullPointerException
  17541. if <code>out == null</code>.
  17542. @see #MIN_BLOCKSIZE
  17543. @see #MAX_BLOCKSIZE]]>
  17544. </doc>
  17545. </constructor>
  17546. <method name="hbMakeCodeLengths"
  17547. abstract="false" native="false" synchronized="false"
  17548. static="true" final="false" visibility="protected"
  17549. deprecated="not deprecated">
  17550. <param name="len" type="char[]"/>
  17551. <param name="freq" type="int[]"/>
  17552. <param name="alphaSize" type="int"/>
  17553. <param name="maxLen" type="int"/>
  17554. <doc>
  17555. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  17556. don't know what it does then you don't need it.]]>
  17557. </doc>
  17558. </method>
  17559. <method name="chooseBlockSize" return="int"
  17560. abstract="false" native="false" synchronized="false"
  17561. static="true" final="false" visibility="public"
  17562. deprecated="not deprecated">
  17563. <param name="inputLength" type="long"/>
  17564. <doc>
  17565. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  17566. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  17567. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  17568. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  17569. always.
  17570. @param inputLength
  17571. The length of the data which will be compressed by
  17572. <tt>CBZip2OutputStream</tt>.]]>
  17573. </doc>
  17574. </method>
  17575. <method name="write"
  17576. abstract="false" native="false" synchronized="false"
  17577. static="false" final="false" visibility="public"
  17578. deprecated="not deprecated">
  17579. <param name="b" type="int"/>
  17580. <exception name="IOException" type="java.io.IOException"/>
  17581. </method>
  17582. <method name="finalize"
  17583. abstract="false" native="false" synchronized="false"
  17584. static="false" final="false" visibility="protected"
  17585. deprecated="not deprecated">
  17586. <exception name="Throwable" type="java.lang.Throwable"/>
  17587. <doc>
  17588. <![CDATA[Overriden to close the stream.]]>
  17589. </doc>
  17590. </method>
  17591. <method name="finish"
  17592. abstract="false" native="false" synchronized="false"
  17593. static="false" final="false" visibility="public"
  17594. deprecated="not deprecated">
  17595. <exception name="IOException" type="java.io.IOException"/>
  17596. </method>
  17597. <method name="close"
  17598. abstract="false" native="false" synchronized="false"
  17599. static="false" final="false" visibility="public"
  17600. deprecated="not deprecated">
  17601. <exception name="IOException" type="java.io.IOException"/>
  17602. </method>
  17603. <method name="flush"
  17604. abstract="false" native="false" synchronized="false"
  17605. static="false" final="false" visibility="public"
  17606. deprecated="not deprecated">
  17607. <exception name="IOException" type="java.io.IOException"/>
  17608. </method>
  17609. <method name="getBlockSize" return="int"
  17610. abstract="false" native="false" synchronized="false"
  17611. static="false" final="true" visibility="public"
  17612. deprecated="not deprecated">
  17613. <doc>
  17614. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  17615. </doc>
  17616. </method>
  17617. <method name="write"
  17618. abstract="false" native="false" synchronized="false"
  17619. static="false" final="false" visibility="public"
  17620. deprecated="not deprecated">
  17621. <param name="buf" type="byte[]"/>
  17622. <param name="offs" type="int"/>
  17623. <param name="len" type="int"/>
  17624. <exception name="IOException" type="java.io.IOException"/>
  17625. </method>
  17626. <field name="MIN_BLOCKSIZE" type="int"
  17627. transient="false" volatile="false"
  17628. static="true" final="true" visibility="public"
  17629. deprecated="not deprecated">
  17630. <doc>
  17631. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  17632. </doc>
  17633. </field>
  17634. <field name="MAX_BLOCKSIZE" type="int"
  17635. transient="false" volatile="false"
  17636. static="true" final="true" visibility="public"
  17637. deprecated="not deprecated">
  17638. <doc>
  17639. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  17640. </doc>
  17641. </field>
  17642. <field name="SETMASK" type="int"
  17643. transient="false" volatile="false"
  17644. static="true" final="true" visibility="protected"
  17645. deprecated="not deprecated">
  17646. <doc>
  17647. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17648. don't know what it means then you don't need it.]]>
  17649. </doc>
  17650. </field>
  17651. <field name="CLEARMASK" type="int"
  17652. transient="false" volatile="false"
  17653. static="true" final="true" visibility="protected"
  17654. deprecated="not deprecated">
  17655. <doc>
  17656. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17657. don't know what it means then you don't need it.]]>
  17658. </doc>
  17659. </field>
  17660. <field name="GREATER_ICOST" type="int"
  17661. transient="false" volatile="false"
  17662. static="true" final="true" visibility="protected"
  17663. deprecated="not deprecated">
  17664. <doc>
  17665. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17666. don't know what it means then you don't need it.]]>
  17667. </doc>
  17668. </field>
  17669. <field name="LESSER_ICOST" type="int"
  17670. transient="false" volatile="false"
  17671. static="true" final="true" visibility="protected"
  17672. deprecated="not deprecated">
  17673. <doc>
  17674. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17675. don't know what it means then you don't need it.]]>
  17676. </doc>
  17677. </field>
  17678. <field name="SMALL_THRESH" type="int"
  17679. transient="false" volatile="false"
  17680. static="true" final="true" visibility="protected"
  17681. deprecated="not deprecated">
  17682. <doc>
  17683. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17684. don't know what it means then you don't need it.]]>
  17685. </doc>
  17686. </field>
  17687. <field name="DEPTH_THRESH" type="int"
  17688. transient="false" volatile="false"
  17689. static="true" final="true" visibility="protected"
  17690. deprecated="not deprecated">
  17691. <doc>
  17692. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17693. don't know what it means then you don't need it.]]>
  17694. </doc>
  17695. </field>
  17696. <field name="WORK_FACTOR" type="int"
  17697. transient="false" volatile="false"
  17698. static="true" final="true" visibility="protected"
  17699. deprecated="not deprecated">
  17700. <doc>
  17701. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17702. don't know what it means then you don't need it.]]>
  17703. </doc>
  17704. </field>
  17705. <field name="QSORT_STACK_SIZE" type="int"
  17706. transient="false" volatile="false"
  17707. static="true" final="true" visibility="protected"
  17708. deprecated="not deprecated">
  17709. <doc>
  17710. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  17711. don't know what it means then you don't need it.
  17712. <p>
  17713. If you are ever unlucky/improbable enough to get a stack overflow whilst
  17714. sorting, increase the following constant and try again. In practice I
  17715. have never seen the stack go above 27 elems, so the following limit seems
  17716. very generous.
  17717. </p>]]>
  17718. </doc>
  17719. </field>
  17720. <doc>
  17721. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  17722. header chars) into another stream.
  17723. <p>
  17724. The compression requires large amounts of memory. Thus you should call the
  17725. {@link #close() close()} method as soon as possible, to force
  17726. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  17727. </p>
  17728. <p>
  17729. You can shrink the amount of allocated memory and maybe raise the compression
  17730. speed by choosing a lower blocksize, which in turn may cause a lower
  17731. compression ratio. You can avoid unnecessary memory allocation by avoiding
  17732. using a blocksize which is bigger than the size of the input.
  17733. </p>
  17734. <p>
  17735. You can compute the memory usage for compressing by the following formula:
  17736. </p>
  17737. <pre>
  17738. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  17739. </pre>
  17740. <p>
  17741. To get the memory required for decompression by {@link CBZip2InputStream
  17742. CBZip2InputStream} use
  17743. </p>
  17744. <pre>
  17745. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  17746. </pre>
  17747. <table width="100%" border="1">
  17748. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  17749. </colgroup>
  17750. <tr>
  17751. <th colspan="3">Memory usage by blocksize</th>
  17752. </tr>
  17753. <tr>
  17754. <th align="right">Blocksize</th> <th align="right">Compression<br>
  17755. memory usage</th> <th align="right">Decompression<br>
  17756. memory usage</th>
  17757. </tr>
  17758. <tr>
  17759. <td align="right">100k</td>
  17760. <td align="right">1300k</td>
  17761. <td align="right">565k</td>
  17762. </tr>
  17763. <tr>
  17764. <td align="right">200k</td>
  17765. <td align="right">2200k</td>
  17766. <td align="right">1065k</td>
  17767. </tr>
  17768. <tr>
  17769. <td align="right">300k</td>
  17770. <td align="right">3100k</td>
  17771. <td align="right">1565k</td>
  17772. </tr>
  17773. <tr>
  17774. <td align="right">400k</td>
  17775. <td align="right">4000k</td>
  17776. <td align="right">2065k</td>
  17777. </tr>
  17778. <tr>
  17779. <td align="right">500k</td>
  17780. <td align="right">4900k</td>
  17781. <td align="right">2565k</td>
  17782. </tr>
  17783. <tr>
  17784. <td align="right">600k</td>
  17785. <td align="right">5800k</td>
  17786. <td align="right">3065k</td>
  17787. </tr>
  17788. <tr>
  17789. <td align="right">700k</td>
  17790. <td align="right">6700k</td>
  17791. <td align="right">3565k</td>
  17792. </tr>
  17793. <tr>
  17794. <td align="right">800k</td>
  17795. <td align="right">7600k</td>
  17796. <td align="right">4065k</td>
  17797. </tr>
  17798. <tr>
  17799. <td align="right">900k</td>
  17800. <td align="right">8500k</td>
  17801. <td align="right">4565k</td>
  17802. </tr>
  17803. </table>
  17804. <p>
  17805. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  17806. bzipped input is smaller than one block.
  17807. </p>
  17808. <p>
  17809. Instances of this class are not threadsafe.
  17810. </p>
  17811. <p>
  17812. TODO: Update to BZip2 1.0.1
  17813. </p>]]>
  17814. </doc>
  17815. </class>
  17816. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  17817. </package>
  17818. <package name="org.apache.hadoop.io.compress.zlib">
  17819. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  17820. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  17821. abstract="false"
  17822. static="false" final="false" visibility="public"
  17823. deprecated="not deprecated">
  17824. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17825. <constructor name="BuiltInGzipDecompressor"
  17826. static="false" final="false" visibility="public"
  17827. deprecated="not deprecated">
  17828. <doc>
  17829. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  17830. </doc>
  17831. </constructor>
  17832. <method name="needsInput" return="boolean"
  17833. abstract="false" native="false" synchronized="true"
  17834. static="false" final="false" visibility="public"
  17835. deprecated="not deprecated">
  17836. <doc>
  17837. <![CDATA[{@inheritDoc}]]>
  17838. </doc>
  17839. </method>
  17840. <method name="setInput"
  17841. abstract="false" native="false" synchronized="true"
  17842. static="false" final="false" visibility="public"
  17843. deprecated="not deprecated">
  17844. <param name="b" type="byte[]"/>
  17845. <param name="off" type="int"/>
  17846. <param name="len" type="int"/>
  17847. <doc>
  17848. <![CDATA[{@inheritDoc}]]>
  17849. </doc>
  17850. </method>
  17851. <method name="decompress" return="int"
  17852. abstract="false" native="false" synchronized="true"
  17853. static="false" final="false" visibility="public"
  17854. deprecated="not deprecated">
  17855. <param name="b" type="byte[]"/>
  17856. <param name="off" type="int"/>
  17857. <param name="len" type="int"/>
  17858. <exception name="IOException" type="java.io.IOException"/>
  17859. <doc>
  17860. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  17861. provided buffer.
  17862. @return the number of decompressed bytes placed into b]]>
  17863. </doc>
  17864. </method>
  17865. <method name="getBytesRead" return="long"
  17866. abstract="false" native="false" synchronized="true"
  17867. static="false" final="false" visibility="public"
  17868. deprecated="not deprecated">
  17869. <doc>
  17870. <![CDATA[Returns the total number of compressed bytes input so far, including
  17871. gzip header/trailer bytes.</p>
  17872. @return the total (non-negative) number of compressed bytes read so far]]>
  17873. </doc>
  17874. </method>
  17875. <method name="getRemaining" return="int"
  17876. abstract="false" native="false" synchronized="true"
  17877. static="false" final="false" visibility="public"
  17878. deprecated="not deprecated">
  17879. <doc>
  17880. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  17881. called when finished() is true to determine amount of post-gzip-stream
  17882. data. Note that, other than the finished state with concatenated data
  17883. after the end of the current gzip stream, this will never return a
  17884. non-zero value unless called after {@link #setInput(byte[] b, int off,
  17885. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  17886. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  17887. always returns zero, except in finished state with concatenated data.)</p>
  17888. @return the total (non-negative) number of unprocessed bytes in input]]>
  17889. </doc>
  17890. </method>
  17891. <method name="needsDictionary" return="boolean"
  17892. abstract="false" native="false" synchronized="true"
  17893. static="false" final="false" visibility="public"
  17894. deprecated="not deprecated">
  17895. <doc>
  17896. <![CDATA[{@inheritDoc}]]>
  17897. </doc>
  17898. </method>
  17899. <method name="setDictionary"
  17900. abstract="false" native="false" synchronized="true"
  17901. static="false" final="false" visibility="public"
  17902. deprecated="not deprecated">
  17903. <param name="b" type="byte[]"/>
  17904. <param name="off" type="int"/>
  17905. <param name="len" type="int"/>
  17906. <doc>
  17907. <![CDATA[{@inheritDoc}]]>
  17908. </doc>
  17909. </method>
  17910. <method name="finished" return="boolean"
  17911. abstract="false" native="false" synchronized="true"
  17912. static="false" final="false" visibility="public"
  17913. deprecated="not deprecated">
  17914. <doc>
  17915. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  17916. reached.</p>]]>
  17917. </doc>
  17918. </method>
  17919. <method name="reset"
  17920. abstract="false" native="false" synchronized="true"
  17921. static="false" final="false" visibility="public"
  17922. deprecated="not deprecated">
  17923. <doc>
  17924. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  17925. current gzip substream is finished.</p>]]>
  17926. </doc>
  17927. </method>
  17928. <method name="end"
  17929. abstract="false" native="false" synchronized="true"
  17930. static="false" final="false" visibility="public"
  17931. deprecated="not deprecated">
  17932. <doc>
  17933. <![CDATA[{@inheritDoc}]]>
  17934. </doc>
  17935. </method>
  17936. <doc>
  17937. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  17938. http://www.gzip.org/]]>
  17939. </doc>
  17940. </class>
  17941. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  17942. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  17943. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  17944. abstract="false"
  17945. static="false" final="false" visibility="public"
  17946. deprecated="not deprecated">
  17947. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  17948. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  17949. static="false" final="false" visibility="public"
  17950. deprecated="not deprecated">
  17951. </constructor>
  17952. <constructor name="BuiltInZlibDeflater" type="int"
  17953. static="false" final="false" visibility="public"
  17954. deprecated="not deprecated">
  17955. </constructor>
  17956. <constructor name="BuiltInZlibDeflater"
  17957. static="false" final="false" visibility="public"
  17958. deprecated="not deprecated">
  17959. </constructor>
  17960. <method name="compress" return="int"
  17961. abstract="false" native="false" synchronized="true"
  17962. static="false" final="false" visibility="public"
  17963. deprecated="not deprecated">
  17964. <param name="b" type="byte[]"/>
  17965. <param name="off" type="int"/>
  17966. <param name="len" type="int"/>
  17967. <exception name="IOException" type="java.io.IOException"/>
  17968. </method>
  17969. <method name="reinit"
  17970. abstract="false" native="false" synchronized="false"
  17971. static="false" final="false" visibility="public"
  17972. deprecated="not deprecated">
  17973. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17974. <doc>
  17975. <![CDATA[reinit the compressor with the given configuration. It will reset the
  17976. compressor's compression level and compression strategy. Different from
  17977. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  17978. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  17979. It will use DEFAULT_STRATEGY as default if the configured compression
  17980. strategy is not supported.]]>
  17981. </doc>
  17982. </method>
  17983. <doc>
  17984. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  17985. to org.apache.hadoop.io.compress.Compressor interface.]]>
  17986. </doc>
  17987. </class>
  17988. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  17989. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  17990. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  17991. abstract="false"
  17992. static="false" final="false" visibility="public"
  17993. deprecated="not deprecated">
  17994. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  17995. <constructor name="BuiltInZlibInflater" type="boolean"
  17996. static="false" final="false" visibility="public"
  17997. deprecated="not deprecated">
  17998. </constructor>
  17999. <constructor name="BuiltInZlibInflater"
  18000. static="false" final="false" visibility="public"
  18001. deprecated="not deprecated">
  18002. </constructor>
  18003. <method name="decompress" return="int"
  18004. abstract="false" native="false" synchronized="true"
  18005. static="false" final="false" visibility="public"
  18006. deprecated="not deprecated">
  18007. <param name="b" type="byte[]"/>
  18008. <param name="off" type="int"/>
  18009. <param name="len" type="int"/>
  18010. <exception name="IOException" type="java.io.IOException"/>
  18011. </method>
  18012. <doc>
  18013. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  18014. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  18015. </doc>
  18016. </class>
  18017. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  18018. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  18019. <class name="ZlibCompressor" extends="java.lang.Object"
  18020. abstract="false"
  18021. static="false" final="false" visibility="public"
  18022. deprecated="not deprecated">
  18023. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18024. <constructor name="ZlibCompressor"
  18025. static="false" final="false" visibility="public"
  18026. deprecated="not deprecated">
  18027. <doc>
  18028. <![CDATA[Creates a new compressor with the default compression level.
  18029. Compressed data will be generated in ZLIB format.]]>
  18030. </doc>
  18031. </constructor>
  18032. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  18033. static="false" final="false" visibility="public"
  18034. deprecated="not deprecated">
  18035. <doc>
  18036. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  18037. </doc>
  18038. </constructor>
  18039. <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"
  18040. static="false" final="false" visibility="public"
  18041. deprecated="not deprecated">
  18042. <doc>
  18043. <![CDATA[Creates a new compressor using the specified compression level.
  18044. Compressed data will be generated in ZLIB format.
  18045. @param level Compression level #CompressionLevel
  18046. @param strategy Compression strategy #CompressionStrategy
  18047. @param header Compression header #CompressionHeader
  18048. @param directBufferSize Size of the direct buffer to be used.]]>
  18049. </doc>
  18050. </constructor>
  18051. <method name="construct"
  18052. abstract="false" native="false" synchronized="false"
  18053. static="false" final="true" visibility="protected"
  18054. deprecated="not deprecated">
  18055. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  18056. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  18057. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  18058. <param name="directBufferSize" type="int"/>
  18059. </method>
  18060. <method name="reinit"
  18061. abstract="false" native="false" synchronized="true"
  18062. static="false" final="false" visibility="public"
  18063. deprecated="not deprecated">
  18064. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18065. <doc>
  18066. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  18067. the given Configuration. It will reset the compressor's compression level
  18068. and compression strategy.
  18069. @param conf Configuration storing new settings]]>
  18070. </doc>
  18071. </method>
  18072. <method name="setInput"
  18073. abstract="false" native="false" synchronized="true"
  18074. static="false" final="false" visibility="public"
  18075. deprecated="not deprecated">
  18076. <param name="b" type="byte[]"/>
  18077. <param name="off" type="int"/>
  18078. <param name="len" type="int"/>
  18079. </method>
  18080. <method name="setDictionary"
  18081. abstract="false" native="false" synchronized="true"
  18082. static="false" final="false" visibility="public"
  18083. deprecated="not deprecated">
  18084. <param name="b" type="byte[]"/>
  18085. <param name="off" type="int"/>
  18086. <param name="len" type="int"/>
  18087. </method>
  18088. <method name="needsInput" return="boolean"
  18089. abstract="false" native="false" synchronized="false"
  18090. static="false" final="false" visibility="public"
  18091. deprecated="not deprecated">
  18092. </method>
  18093. <method name="finish"
  18094. abstract="false" native="false" synchronized="true"
  18095. static="false" final="false" visibility="public"
  18096. deprecated="not deprecated">
  18097. </method>
  18098. <method name="finished" return="boolean"
  18099. abstract="false" native="false" synchronized="true"
  18100. static="false" final="false" visibility="public"
  18101. deprecated="not deprecated">
  18102. </method>
  18103. <method name="compress" return="int"
  18104. abstract="false" native="false" synchronized="true"
  18105. static="false" final="false" visibility="public"
  18106. deprecated="not deprecated">
  18107. <param name="b" type="byte[]"/>
  18108. <param name="off" type="int"/>
  18109. <param name="len" type="int"/>
  18110. <exception name="IOException" type="java.io.IOException"/>
  18111. </method>
  18112. <method name="getBytesWritten" return="long"
  18113. abstract="false" native="false" synchronized="true"
  18114. static="false" final="false" visibility="public"
  18115. deprecated="not deprecated">
  18116. <doc>
  18117. <![CDATA[Returns the total number of compressed bytes output so far.
  18118. @return the total (non-negative) number of compressed bytes output so far]]>
  18119. </doc>
  18120. </method>
  18121. <method name="getBytesRead" return="long"
  18122. abstract="false" native="false" synchronized="true"
  18123. static="false" final="false" visibility="public"
  18124. deprecated="not deprecated">
  18125. <doc>
  18126. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  18127. @return the total (non-negative) number of uncompressed bytes input so far]]>
  18128. </doc>
  18129. </method>
  18130. <method name="reset"
  18131. abstract="false" native="false" synchronized="true"
  18132. static="false" final="false" visibility="public"
  18133. deprecated="not deprecated">
  18134. </method>
  18135. <method name="end"
  18136. abstract="false" native="false" synchronized="true"
  18137. static="false" final="false" visibility="public"
  18138. deprecated="not deprecated">
  18139. </method>
  18140. <doc>
  18141. <![CDATA[A {@link Compressor} based on the popular
  18142. zlib compression algorithm.
  18143. http://www.zlib.net/]]>
  18144. </doc>
  18145. </class>
  18146. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  18147. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  18148. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  18149. abstract="false"
  18150. static="true" final="true" visibility="public"
  18151. deprecated="not deprecated">
  18152. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  18153. abstract="false" native="false" synchronized="false"
  18154. static="true" final="false" visibility="public"
  18155. deprecated="not deprecated">
  18156. </method>
  18157. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18158. abstract="false" native="false" synchronized="false"
  18159. static="true" final="false" visibility="public"
  18160. deprecated="not deprecated">
  18161. <param name="name" type="java.lang.String"/>
  18162. </method>
  18163. <method name="windowBits" return="int"
  18164. abstract="false" native="false" synchronized="false"
  18165. static="false" final="false" visibility="public"
  18166. deprecated="not deprecated">
  18167. </method>
  18168. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18169. transient="false" volatile="false"
  18170. static="true" final="true" visibility="public"
  18171. deprecated="not deprecated">
  18172. <doc>
  18173. <![CDATA[No headers/trailers/checksums.]]>
  18174. </doc>
  18175. </field>
  18176. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18177. transient="false" volatile="false"
  18178. static="true" final="true" visibility="public"
  18179. deprecated="not deprecated">
  18180. <doc>
  18181. <![CDATA[Default headers/trailers/checksums.]]>
  18182. </doc>
  18183. </field>
  18184. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  18185. transient="false" volatile="false"
  18186. static="true" final="true" visibility="public"
  18187. deprecated="not deprecated">
  18188. <doc>
  18189. <![CDATA[Simple gzip headers/trailers.]]>
  18190. </doc>
  18191. </field>
  18192. <doc>
  18193. <![CDATA[The type of header for compressed data.]]>
  18194. </doc>
  18195. </class>
  18196. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  18197. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  18198. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  18199. abstract="false"
  18200. static="true" final="true" visibility="public"
  18201. deprecated="not deprecated">
  18202. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  18203. abstract="false" native="false" synchronized="false"
  18204. static="true" final="false" visibility="public"
  18205. deprecated="not deprecated">
  18206. </method>
  18207. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18208. abstract="false" native="false" synchronized="false"
  18209. static="true" final="false" visibility="public"
  18210. deprecated="not deprecated">
  18211. <param name="name" type="java.lang.String"/>
  18212. </method>
  18213. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18214. transient="false" volatile="false"
  18215. static="true" final="true" visibility="public"
  18216. deprecated="not deprecated">
  18217. <doc>
  18218. <![CDATA[Compression level for no compression.]]>
  18219. </doc>
  18220. </field>
  18221. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18222. transient="false" volatile="false"
  18223. static="true" final="true" visibility="public"
  18224. deprecated="not deprecated">
  18225. <doc>
  18226. <![CDATA[Compression level for fastest compression.]]>
  18227. </doc>
  18228. </field>
  18229. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18230. transient="false" volatile="false"
  18231. static="true" final="true" visibility="public"
  18232. deprecated="not deprecated">
  18233. <doc>
  18234. <![CDATA[Compression level for best compression.]]>
  18235. </doc>
  18236. </field>
  18237. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18238. transient="false" volatile="false"
  18239. static="true" final="true" visibility="public"
  18240. deprecated="not deprecated">
  18241. <doc>
  18242. <![CDATA[Default compression level.]]>
  18243. </doc>
  18244. </field>
  18245. <doc>
  18246. <![CDATA[The compression level for zlib library.]]>
  18247. </doc>
  18248. </class>
  18249. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  18250. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  18251. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  18252. abstract="false"
  18253. static="true" final="true" visibility="public"
  18254. deprecated="not deprecated">
  18255. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  18256. abstract="false" native="false" synchronized="false"
  18257. static="true" final="false" visibility="public"
  18258. deprecated="not deprecated">
  18259. </method>
  18260. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18261. abstract="false" native="false" synchronized="false"
  18262. static="true" final="false" visibility="public"
  18263. deprecated="not deprecated">
  18264. <param name="name" type="java.lang.String"/>
  18265. </method>
  18266. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18267. transient="false" volatile="false"
  18268. static="true" final="true" visibility="public"
  18269. deprecated="not deprecated">
  18270. <doc>
  18271. <![CDATA[Compression strategy best used for data consisting mostly of small
  18272. values with a somewhat random distribution. Forces more Huffman coding
  18273. and less string matching.]]>
  18274. </doc>
  18275. </field>
  18276. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18277. transient="false" volatile="false"
  18278. static="true" final="true" visibility="public"
  18279. deprecated="not deprecated">
  18280. <doc>
  18281. <![CDATA[Compression strategy for Huffman coding only.]]>
  18282. </doc>
  18283. </field>
  18284. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18285. transient="false" volatile="false"
  18286. static="true" final="true" visibility="public"
  18287. deprecated="not deprecated">
  18288. <doc>
  18289. <![CDATA[Compression strategy to limit match distances to one
  18290. (run-length encoding).]]>
  18291. </doc>
  18292. </field>
  18293. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18294. transient="false" volatile="false"
  18295. static="true" final="true" visibility="public"
  18296. deprecated="not deprecated">
  18297. <doc>
  18298. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  18299. allowing for a simpler decoder for special applications.]]>
  18300. </doc>
  18301. </field>
  18302. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18303. transient="false" volatile="false"
  18304. static="true" final="true" visibility="public"
  18305. deprecated="not deprecated">
  18306. <doc>
  18307. <![CDATA[Default compression strategy.]]>
  18308. </doc>
  18309. </field>
  18310. <doc>
  18311. <![CDATA[The compression level for zlib library.]]>
  18312. </doc>
  18313. </class>
  18314. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  18315. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  18316. <class name="ZlibDecompressor" extends="java.lang.Object"
  18317. abstract="false"
  18318. static="false" final="false" visibility="public"
  18319. deprecated="not deprecated">
  18320. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18321. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  18322. static="false" final="false" visibility="public"
  18323. deprecated="not deprecated">
  18324. <doc>
  18325. <![CDATA[Creates a new decompressor.]]>
  18326. </doc>
  18327. </constructor>
  18328. <constructor name="ZlibDecompressor"
  18329. static="false" final="false" visibility="public"
  18330. deprecated="not deprecated">
  18331. </constructor>
  18332. <method name="setInput"
  18333. abstract="false" native="false" synchronized="true"
  18334. static="false" final="false" visibility="public"
  18335. deprecated="not deprecated">
  18336. <param name="b" type="byte[]"/>
  18337. <param name="off" type="int"/>
  18338. <param name="len" type="int"/>
  18339. </method>
  18340. <method name="setDictionary"
  18341. abstract="false" native="false" synchronized="true"
  18342. static="false" final="false" visibility="public"
  18343. deprecated="not deprecated">
  18344. <param name="b" type="byte[]"/>
  18345. <param name="off" type="int"/>
  18346. <param name="len" type="int"/>
  18347. </method>
  18348. <method name="needsInput" return="boolean"
  18349. abstract="false" native="false" synchronized="true"
  18350. static="false" final="false" visibility="public"
  18351. deprecated="not deprecated">
  18352. </method>
  18353. <method name="needsDictionary" return="boolean"
  18354. abstract="false" native="false" synchronized="true"
  18355. static="false" final="false" visibility="public"
  18356. deprecated="not deprecated">
  18357. </method>
  18358. <method name="finished" return="boolean"
  18359. abstract="false" native="false" synchronized="true"
  18360. static="false" final="false" visibility="public"
  18361. deprecated="not deprecated">
  18362. </method>
  18363. <method name="decompress" return="int"
  18364. abstract="false" native="false" synchronized="true"
  18365. static="false" final="false" visibility="public"
  18366. deprecated="not deprecated">
  18367. <param name="b" type="byte[]"/>
  18368. <param name="off" type="int"/>
  18369. <param name="len" type="int"/>
  18370. <exception name="IOException" type="java.io.IOException"/>
  18371. </method>
  18372. <method name="getBytesWritten" return="long"
  18373. abstract="false" native="false" synchronized="true"
  18374. static="false" final="false" visibility="public"
  18375. deprecated="not deprecated">
  18376. <doc>
  18377. <![CDATA[Returns the total number of uncompressed bytes output so far.
  18378. @return the total (non-negative) number of uncompressed bytes output so far]]>
  18379. </doc>
  18380. </method>
  18381. <method name="getBytesRead" return="long"
  18382. abstract="false" native="false" synchronized="true"
  18383. static="false" final="false" visibility="public"
  18384. deprecated="not deprecated">
  18385. <doc>
  18386. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  18387. @return the total (non-negative) number of compressed bytes input so far]]>
  18388. </doc>
  18389. </method>
  18390. <method name="getRemaining" return="int"
  18391. abstract="false" native="false" synchronized="true"
  18392. static="false" final="false" visibility="public"
  18393. deprecated="not deprecated">
  18394. <doc>
  18395. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  18396. called when finished() is true to determine amount of post-gzip-stream
  18397. data.</p>
  18398. @return the total (non-negative) number of unprocessed bytes in input]]>
  18399. </doc>
  18400. </method>
  18401. <method name="reset"
  18402. abstract="false" native="false" synchronized="true"
  18403. static="false" final="false" visibility="public"
  18404. deprecated="not deprecated">
  18405. <doc>
  18406. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  18407. </doc>
  18408. </method>
  18409. <method name="end"
  18410. abstract="false" native="false" synchronized="true"
  18411. static="false" final="false" visibility="public"
  18412. deprecated="not deprecated">
  18413. </method>
  18414. <method name="finalize"
  18415. abstract="false" native="false" synchronized="false"
  18416. static="false" final="false" visibility="protected"
  18417. deprecated="not deprecated">
  18418. </method>
  18419. <doc>
  18420. <![CDATA[A {@link Decompressor} based on the popular
  18421. zlib compression algorithm.
  18422. http://www.zlib.net/]]>
  18423. </doc>
  18424. </class>
  18425. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  18426. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  18427. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  18428. abstract="false"
  18429. static="true" final="true" visibility="public"
  18430. deprecated="not deprecated">
  18431. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  18432. abstract="false" native="false" synchronized="false"
  18433. static="true" final="false" visibility="public"
  18434. deprecated="not deprecated">
  18435. </method>
  18436. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18437. abstract="false" native="false" synchronized="false"
  18438. static="true" final="false" visibility="public"
  18439. deprecated="not deprecated">
  18440. <param name="name" type="java.lang.String"/>
  18441. </method>
  18442. <method name="windowBits" return="int"
  18443. abstract="false" native="false" synchronized="false"
  18444. static="false" final="false" visibility="public"
  18445. deprecated="not deprecated">
  18446. </method>
  18447. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18448. transient="false" volatile="false"
  18449. static="true" final="true" visibility="public"
  18450. deprecated="not deprecated">
  18451. <doc>
  18452. <![CDATA[No headers/trailers/checksums.]]>
  18453. </doc>
  18454. </field>
  18455. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18456. transient="false" volatile="false"
  18457. static="true" final="true" visibility="public"
  18458. deprecated="not deprecated">
  18459. <doc>
  18460. <![CDATA[Default headers/trailers/checksums.]]>
  18461. </doc>
  18462. </field>
  18463. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18464. transient="false" volatile="false"
  18465. static="true" final="true" visibility="public"
  18466. deprecated="not deprecated">
  18467. <doc>
  18468. <![CDATA[Simple gzip headers/trailers.]]>
  18469. </doc>
  18470. </field>
  18471. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  18472. transient="false" volatile="false"
  18473. static="true" final="true" visibility="public"
  18474. deprecated="not deprecated">
  18475. <doc>
  18476. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  18477. </doc>
  18478. </field>
  18479. <doc>
  18480. <![CDATA[The headers to detect from compressed data.]]>
  18481. </doc>
  18482. </class>
  18483. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  18484. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  18485. <class name="ZlibFactory" extends="java.lang.Object"
  18486. abstract="false"
  18487. static="false" final="false" visibility="public"
  18488. deprecated="not deprecated">
  18489. <constructor name="ZlibFactory"
  18490. static="false" final="false" visibility="public"
  18491. deprecated="not deprecated">
  18492. </constructor>
  18493. <method name="isNativeZlibLoaded" return="boolean"
  18494. abstract="false" native="false" synchronized="false"
  18495. static="true" final="false" visibility="public"
  18496. deprecated="not deprecated">
  18497. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18498. <doc>
  18499. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  18500. can be loaded for this job.
  18501. @param conf configuration
  18502. @return <code>true</code> if native-zlib is loaded & initialized
  18503. and can be loaded for this job, else <code>false</code>]]>
  18504. </doc>
  18505. </method>
  18506. <method name="getZlibCompressorType" return="java.lang.Class"
  18507. abstract="false" native="false" synchronized="false"
  18508. static="true" final="false" visibility="public"
  18509. deprecated="not deprecated">
  18510. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18511. <doc>
  18512. <![CDATA[Return the appropriate type of the zlib compressor.
  18513. @param conf configuration
  18514. @return the appropriate type of the zlib compressor.]]>
  18515. </doc>
  18516. </method>
  18517. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  18518. abstract="false" native="false" synchronized="false"
  18519. static="true" final="false" visibility="public"
  18520. deprecated="not deprecated">
  18521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18522. <doc>
  18523. <![CDATA[Return the appropriate implementation of the zlib compressor.
  18524. @param conf configuration
  18525. @return the appropriate implementation of the zlib compressor.]]>
  18526. </doc>
  18527. </method>
  18528. <method name="getZlibDecompressorType" return="java.lang.Class"
  18529. abstract="false" native="false" synchronized="false"
  18530. static="true" final="false" visibility="public"
  18531. deprecated="not deprecated">
  18532. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18533. <doc>
  18534. <![CDATA[Return the appropriate type of the zlib decompressor.
  18535. @param conf configuration
  18536. @return the appropriate type of the zlib decompressor.]]>
  18537. </doc>
  18538. </method>
  18539. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  18540. abstract="false" native="false" synchronized="false"
  18541. static="true" final="false" visibility="public"
  18542. deprecated="not deprecated">
  18543. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18544. <doc>
  18545. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  18546. @param conf configuration
  18547. @return the appropriate implementation of the zlib decompressor.]]>
  18548. </doc>
  18549. </method>
  18550. <method name="setCompressionStrategy"
  18551. abstract="false" native="false" synchronized="false"
  18552. static="true" final="false" visibility="public"
  18553. deprecated="not deprecated">
  18554. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18555. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  18556. </method>
  18557. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  18558. abstract="false" native="false" synchronized="false"
  18559. static="true" final="false" visibility="public"
  18560. deprecated="not deprecated">
  18561. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18562. </method>
  18563. <method name="setCompressionLevel"
  18564. abstract="false" native="false" synchronized="false"
  18565. static="true" final="false" visibility="public"
  18566. deprecated="not deprecated">
  18567. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18568. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  18569. </method>
  18570. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  18571. abstract="false" native="false" synchronized="false"
  18572. static="true" final="false" visibility="public"
  18573. deprecated="not deprecated">
  18574. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18575. </method>
  18576. <doc>
  18577. <![CDATA[A collection of factories to create the right
  18578. zlib/gzip compressor/decompressor instances.]]>
  18579. </doc>
  18580. </class>
  18581. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  18582. </package>
  18583. <package name="org.apache.hadoop.io.file.tfile">
  18584. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  18585. <class name="ByteArray" extends="java.lang.Object"
  18586. abstract="false"
  18587. static="false" final="true" visibility="public"
  18588. deprecated="not deprecated">
  18589. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  18590. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  18591. static="false" final="false" visibility="public"
  18592. deprecated="not deprecated">
  18593. <doc>
  18594. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  18595. @param other]]>
  18596. </doc>
  18597. </constructor>
  18598. <constructor name="ByteArray" type="byte[]"
  18599. static="false" final="false" visibility="public"
  18600. deprecated="not deprecated">
  18601. <doc>
  18602. <![CDATA[Wrap a whole byte array as a RawComparable.
  18603. @param buffer
  18604. the byte array buffer.]]>
  18605. </doc>
  18606. </constructor>
  18607. <constructor name="ByteArray" type="byte[], int, int"
  18608. static="false" final="false" visibility="public"
  18609. deprecated="not deprecated">
  18610. <doc>
  18611. <![CDATA[Wrap a partial byte array as a RawComparable.
  18612. @param buffer
  18613. the byte array buffer.
  18614. @param offset
  18615. the starting offset
  18616. @param len
  18617. the length of the consecutive bytes to be wrapped.]]>
  18618. </doc>
  18619. </constructor>
  18620. <method name="buffer" return="byte[]"
  18621. abstract="false" native="false" synchronized="false"
  18622. static="false" final="false" visibility="public"
  18623. deprecated="not deprecated">
  18624. <doc>
  18625. <![CDATA[@return the underlying buffer.]]>
  18626. </doc>
  18627. </method>
  18628. <method name="offset" return="int"
  18629. abstract="false" native="false" synchronized="false"
  18630. static="false" final="false" visibility="public"
  18631. deprecated="not deprecated">
  18632. <doc>
  18633. <![CDATA[@return the offset in the buffer.]]>
  18634. </doc>
  18635. </method>
  18636. <method name="size" return="int"
  18637. abstract="false" native="false" synchronized="false"
  18638. static="false" final="false" visibility="public"
  18639. deprecated="not deprecated">
  18640. <doc>
  18641. <![CDATA[@return the size of the byte array.]]>
  18642. </doc>
  18643. </method>
  18644. <doc>
  18645. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  18646. as RawComparable objects.]]>
  18647. </doc>
  18648. </class>
  18649. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  18650. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  18651. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  18652. abstract="false"
  18653. static="false" final="false" visibility="public"
  18654. deprecated="not deprecated">
  18655. <doc>
  18656. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  18657. </doc>
  18658. </class>
  18659. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  18660. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  18661. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  18662. abstract="false"
  18663. static="false" final="false" visibility="public"
  18664. deprecated="not deprecated">
  18665. <doc>
  18666. <![CDATA[Exception - No such Meta Block with the given name.]]>
  18667. </doc>
  18668. </class>
  18669. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  18670. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  18671. <interface name="RawComparable" abstract="true"
  18672. static="false" final="false" visibility="public"
  18673. deprecated="not deprecated">
  18674. <method name="buffer" return="byte[]"
  18675. abstract="false" native="false" synchronized="false"
  18676. static="false" final="false" visibility="public"
  18677. deprecated="not deprecated">
  18678. <doc>
  18679. <![CDATA[Get the underlying byte array.
  18680. @return The underlying byte array.]]>
  18681. </doc>
  18682. </method>
  18683. <method name="offset" return="int"
  18684. abstract="false" native="false" synchronized="false"
  18685. static="false" final="false" visibility="public"
  18686. deprecated="not deprecated">
  18687. <doc>
  18688. <![CDATA[Get the offset of the first byte in the byte array.
  18689. @return The offset of the first byte in the byte array.]]>
  18690. </doc>
  18691. </method>
  18692. <method name="size" return="int"
  18693. abstract="false" native="false" synchronized="false"
  18694. static="false" final="false" visibility="public"
  18695. deprecated="not deprecated">
  18696. <doc>
  18697. <![CDATA[Get the size of the byte range in the byte array.
  18698. @return The size of the byte range in the byte array.]]>
  18699. </doc>
  18700. </method>
  18701. <doc>
  18702. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  18703. This is useful in places where we need a single object reference to specify a
  18704. range of bytes in a byte array, such as {@link Comparable} or
  18705. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  18706. The actual comparison among RawComparable's requires an external
  18707. RawComparator and it is applications' responsibility to ensure two
  18708. RawComparable are supposed to be semantically comparable with the same
  18709. RawComparator.]]>
  18710. </doc>
  18711. </interface>
  18712. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  18713. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  18714. <class name="TFile" extends="java.lang.Object"
  18715. abstract="false"
  18716. static="false" final="false" visibility="public"
  18717. deprecated="not deprecated">
  18718. <method name="makeComparator" return="java.util.Comparator"
  18719. abstract="false" native="false" synchronized="false"
  18720. static="true" final="false" visibility="public"
  18721. deprecated="not deprecated">
  18722. <param name="name" type="java.lang.String"/>
  18723. <doc>
  18724. <![CDATA[Make a raw comparator from a string name.
  18725. @param name
  18726. Comparator name
  18727. @return A RawComparable comparator.]]>
  18728. </doc>
  18729. </method>
  18730. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  18731. abstract="false" native="false" synchronized="false"
  18732. static="true" final="false" visibility="public"
  18733. deprecated="not deprecated">
  18734. <doc>
  18735. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  18736. TFile.Writer.
  18737. @return Array of strings, each represents a supported compression
  18738. algorithm. Currently, the following compression algorithms are
  18739. supported.
  18740. <ul>
  18741. <li>"none" - No compression.
  18742. <li>"lzo" - LZO compression.
  18743. <li>"gz" - GZIP compression.
  18744. </ul>]]>
  18745. </doc>
  18746. </method>
  18747. <method name="main"
  18748. abstract="false" native="false" synchronized="false"
  18749. static="true" final="false" visibility="public"
  18750. deprecated="not deprecated">
  18751. <param name="args" type="java.lang.String[]"/>
  18752. <doc>
  18753. <![CDATA[Dumping the TFile information.
  18754. @param args
  18755. A list of TFile paths.]]>
  18756. </doc>
  18757. </method>
  18758. <field name="COMPRESSION_GZ" type="java.lang.String"
  18759. transient="false" volatile="false"
  18760. static="true" final="true" visibility="public"
  18761. deprecated="not deprecated">
  18762. <doc>
  18763. <![CDATA[compression: gzip]]>
  18764. </doc>
  18765. </field>
  18766. <field name="COMPRESSION_LZO" type="java.lang.String"
  18767. transient="false" volatile="false"
  18768. static="true" final="true" visibility="public"
  18769. deprecated="not deprecated">
  18770. <doc>
  18771. <![CDATA[compression: lzo]]>
  18772. </doc>
  18773. </field>
  18774. <field name="COMPRESSION_NONE" type="java.lang.String"
  18775. transient="false" volatile="false"
  18776. static="true" final="true" visibility="public"
  18777. deprecated="not deprecated">
  18778. <doc>
  18779. <![CDATA[compression: none]]>
  18780. </doc>
  18781. </field>
  18782. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  18783. transient="false" volatile="false"
  18784. static="true" final="true" visibility="public"
  18785. deprecated="not deprecated">
  18786. <doc>
  18787. <![CDATA[comparator: memcmp]]>
  18788. </doc>
  18789. </field>
  18790. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  18791. transient="false" volatile="false"
  18792. static="true" final="true" visibility="public"
  18793. deprecated="not deprecated">
  18794. <doc>
  18795. <![CDATA[comparator prefix: java class]]>
  18796. </doc>
  18797. </field>
  18798. <doc>
  18799. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  18800. bytes. Keys are restricted to 64KB, value length is not restricted
  18801. (practically limited to the available disk storage). TFile further provides
  18802. the following features:
  18803. <ul>
  18804. <li>Block Compression.
  18805. <li>Named meta data blocks.
  18806. <li>Sorted or unsorted keys.
  18807. <li>Seek by key or by file offset.
  18808. </ul>
  18809. The memory footprint of a TFile includes the following:
  18810. <ul>
  18811. <li>Some constant overhead of reading or writing a compressed block.
  18812. <ul>
  18813. <li>Each compressed block requires one compression/decompression codec for
  18814. I/O.
  18815. <li>Temporary space to buffer the key.
  18816. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  18817. chunk encoded, so that we buffer at most one chunk of user data. By default,
  18818. the chunk buffer is 1MB. Reading chunked value does not require additional
  18819. memory.
  18820. </ul>
  18821. <li>TFile index, which is proportional to the total number of Data Blocks.
  18822. The total amount of memory needed to hold the index can be estimated as
  18823. (56+AvgKeySize)*NumBlocks.
  18824. <li>MetaBlock index, which is proportional to the total number of Meta
  18825. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  18826. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  18827. </ul>
  18828. <p>
  18829. The behavior of TFile can be customized by the following variables through
  18830. Configuration:
  18831. <ul>
  18832. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  18833. to 1MB. Values of the length less than the chunk size is guaranteed to have
  18834. known value length in read time (See
  18835. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  18836. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  18837. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  18838. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  18839. FSDataInputStream. Integer (in bytes). Default to 256KB.
  18840. </ul>
  18841. <p>
  18842. Suggestions on performance optimization.
  18843. <ul>
  18844. <li>Minimum block size. We recommend a setting of minimum block size between
  18845. 256KB to 1MB for general usage. Larger block size is preferred if files are
  18846. primarily for sequential access. However, it would lead to inefficient random
  18847. access (because there are more data to decompress). Smaller blocks are good
  18848. for random access, but require more memory to hold the block index, and may
  18849. be slower to create (because we must flush the compressor stream at the
  18850. conclusion of each data block, which leads to an FS I/O flush). Further, due
  18851. to the internal caching in Compression codec, the smallest possible block
  18852. size would be around 20KB-30KB.
  18853. <li>The current implementation does not offer true multi-threading for
  18854. reading. The implementation uses FSDataInputStream seek()+read(), which is
  18855. shown to be much faster than positioned-read call in single thread mode.
  18856. However, it also means that if multiple threads attempt to access the same
  18857. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  18858. sequentially even if they access different DFS blocks.
  18859. <li>Compression codec. Use "none" if the data is not very compressable (by
  18860. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  18861. as the starting point for experimenting. "gz" overs slightly better
  18862. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  18863. decompress, comparing to "lzo".
  18864. <li>File system buffering, if the underlying FSDataInputStream and
  18865. FSDataOutputStream is already adequately buffered; or if applications
  18866. reads/writes keys and values in large buffers, we can reduce the sizes of
  18867. input/output buffering in TFile layer by setting the configuration parameters
  18868. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  18869. </ul>
  18870. Some design rationale behind TFile can be found at <a
  18871. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  18872. </doc>
  18873. </class>
  18874. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  18875. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  18876. <class name="TFile.Reader" extends="java.lang.Object"
  18877. abstract="false"
  18878. static="true" final="false" visibility="public"
  18879. deprecated="not deprecated">
  18880. <implements name="java.io.Closeable"/>
  18881. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  18882. static="false" final="false" visibility="public"
  18883. deprecated="not deprecated">
  18884. <exception name="IOException" type="java.io.IOException"/>
  18885. <doc>
  18886. <![CDATA[Constructor
  18887. @param fsdis
  18888. FS input stream of the TFile.
  18889. @param fileLength
  18890. The length of TFile. This is required because we have no easy
  18891. way of knowing the actual size of the input file through the
  18892. File input stream.
  18893. @param conf
  18894. @throws IOException]]>
  18895. </doc>
  18896. </constructor>
  18897. <method name="close"
  18898. abstract="false" native="false" synchronized="false"
  18899. static="false" final="false" visibility="public"
  18900. deprecated="not deprecated">
  18901. <exception name="IOException" type="java.io.IOException"/>
  18902. <doc>
  18903. <![CDATA[Close the reader. The state of the Reader object is undefined after
  18904. close. Calling close() for multiple times has no effect.]]>
  18905. </doc>
  18906. </method>
  18907. <method name="getComparatorName" return="java.lang.String"
  18908. abstract="false" native="false" synchronized="false"
  18909. static="false" final="false" visibility="public"
  18910. deprecated="not deprecated">
  18911. <doc>
  18912. <![CDATA[Get the string representation of the comparator.
  18913. @return If the TFile is not sorted by keys, an empty string will be
  18914. returned. Otherwise, the actual comparator string that is
  18915. provided during the TFile creation time will be returned.]]>
  18916. </doc>
  18917. </method>
  18918. <method name="isSorted" return="boolean"
  18919. abstract="false" native="false" synchronized="false"
  18920. static="false" final="false" visibility="public"
  18921. deprecated="not deprecated">
  18922. <doc>
  18923. <![CDATA[Is the TFile sorted?
  18924. @return true if TFile is sorted.]]>
  18925. </doc>
  18926. </method>
  18927. <method name="getEntryCount" return="long"
  18928. abstract="false" native="false" synchronized="false"
  18929. static="false" final="false" visibility="public"
  18930. deprecated="not deprecated">
  18931. <doc>
  18932. <![CDATA[Get the number of key-value pair entries in TFile.
  18933. @return the number of key-value pairs in TFile]]>
  18934. </doc>
  18935. </method>
  18936. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18937. abstract="false" native="false" synchronized="false"
  18938. static="false" final="false" visibility="public"
  18939. deprecated="not deprecated">
  18940. <exception name="IOException" type="java.io.IOException"/>
  18941. <doc>
  18942. <![CDATA[Get the first key in the TFile.
  18943. @return The first key in the TFile.
  18944. @throws IOException]]>
  18945. </doc>
  18946. </method>
  18947. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  18948. abstract="false" native="false" synchronized="false"
  18949. static="false" final="false" visibility="public"
  18950. deprecated="not deprecated">
  18951. <exception name="IOException" type="java.io.IOException"/>
  18952. <doc>
  18953. <![CDATA[Get the last key in the TFile.
  18954. @return The last key in the TFile.
  18955. @throws IOException]]>
  18956. </doc>
  18957. </method>
  18958. <method name="getEntryComparator" return="java.util.Comparator"
  18959. abstract="false" native="false" synchronized="false"
  18960. static="false" final="false" visibility="public"
  18961. deprecated="not deprecated">
  18962. <doc>
  18963. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  18964. stores the entries in a collection (such as PriorityQueue) and perform
  18965. sorting or comparison among entries based on the keys without copying out
  18966. the key.
  18967. @return An Entry Comparator..]]>
  18968. </doc>
  18969. </method>
  18970. <method name="getComparator" return="java.util.Comparator"
  18971. abstract="false" native="false" synchronized="false"
  18972. static="false" final="false" visibility="public"
  18973. deprecated="not deprecated">
  18974. <doc>
  18975. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  18976. string comparator representation.
  18977. @return a Comparator that can compare RawComparable's.]]>
  18978. </doc>
  18979. </method>
  18980. <method name="getMetaBlock" return="java.io.DataInputStream"
  18981. abstract="false" native="false" synchronized="false"
  18982. static="false" final="false" visibility="public"
  18983. deprecated="not deprecated">
  18984. <param name="name" type="java.lang.String"/>
  18985. <exception name="IOException" type="java.io.IOException"/>
  18986. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  18987. <doc>
  18988. <![CDATA[Stream access to a meta block.``
  18989. @param name
  18990. The name of the meta block.
  18991. @return The input stream.
  18992. @throws IOException
  18993. on I/O error.
  18994. @throws MetaBlockDoesNotExist
  18995. If the meta block with the name does not exist.]]>
  18996. </doc>
  18997. </method>
  18998. <method name="getRecordNumNear" return="long"
  18999. abstract="false" native="false" synchronized="false"
  19000. static="false" final="false" visibility="public"
  19001. deprecated="not deprecated">
  19002. <param name="offset" type="long"/>
  19003. <exception name="IOException" type="java.io.IOException"/>
  19004. <doc>
  19005. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  19006. whose byte offset in the TFile is greater than or equal to the specified
  19007. offset.
  19008. @param offset
  19009. the user supplied offset.
  19010. @return the RecordNum to the corresponding entry. If no such entry
  19011. exists, it returns the total entry count.
  19012. @throws IOException]]>
  19013. </doc>
  19014. </method>
  19015. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  19016. abstract="false" native="false" synchronized="false"
  19017. static="false" final="false" visibility="public"
  19018. deprecated="not deprecated">
  19019. <param name="offset" type="long"/>
  19020. <exception name="IOException" type="java.io.IOException"/>
  19021. <doc>
  19022. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  19023. than or equal to the specified offset.
  19024. @param offset
  19025. The file offset.
  19026. @return the key that fits the requirement; or null if no such key exists
  19027. (which could happen if the offset is close to the end of the
  19028. TFile).
  19029. @throws IOException]]>
  19030. </doc>
  19031. </method>
  19032. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19033. abstract="false" native="false" synchronized="false"
  19034. static="false" final="false" visibility="public"
  19035. deprecated="not deprecated">
  19036. <exception name="IOException" type="java.io.IOException"/>
  19037. <doc>
  19038. <![CDATA[Get a scanner than can scan the whole TFile.
  19039. @return The scanner object. A valid Scanner is always returned even if
  19040. the TFile is empty.
  19041. @throws IOException]]>
  19042. </doc>
  19043. </method>
  19044. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19045. abstract="false" native="false" synchronized="false"
  19046. static="false" final="false" visibility="public"
  19047. deprecated="not deprecated">
  19048. <param name="offset" type="long"/>
  19049. <param name="length" type="long"/>
  19050. <exception name="IOException" type="java.io.IOException"/>
  19051. <doc>
  19052. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  19053. @param offset
  19054. The beginning byte offset in the TFile.
  19055. @param length
  19056. The length of the region.
  19057. @return The actual coverage of the returned scanner tries to match the
  19058. specified byte-region but always round up to the compression
  19059. block boundaries. It is possible that the returned scanner
  19060. contains zero key-value pairs even if length is positive.
  19061. @throws IOException]]>
  19062. </doc>
  19063. </method>
  19064. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19065. abstract="false" native="false" synchronized="false"
  19066. static="false" final="false" visibility="public"
  19067. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  19068. <param name="beginKey" type="byte[]"/>
  19069. <param name="endKey" type="byte[]"/>
  19070. <exception name="IOException" type="java.io.IOException"/>
  19071. <doc>
  19072. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  19073. @param beginKey
  19074. Begin key of the scan (inclusive). If null, scan from the first
  19075. key-value entry of the TFile.
  19076. @param endKey
  19077. End key of the scan (exclusive). If null, scan up to the last
  19078. key-value entry of the TFile.
  19079. @return The actual coverage of the returned scanner will cover all keys
  19080. greater than or equal to the beginKey and less than the endKey.
  19081. @throws IOException
  19082. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  19083. </doc>
  19084. </method>
  19085. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19086. abstract="false" native="false" synchronized="false"
  19087. static="false" final="false" visibility="public"
  19088. deprecated="not deprecated">
  19089. <param name="beginKey" type="byte[]"/>
  19090. <param name="endKey" type="byte[]"/>
  19091. <exception name="IOException" type="java.io.IOException"/>
  19092. <doc>
  19093. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  19094. @param beginKey
  19095. Begin key of the scan (inclusive). If null, scan from the first
  19096. key-value entry of the TFile.
  19097. @param endKey
  19098. End key of the scan (exclusive). If null, scan up to the last
  19099. key-value entry of the TFile.
  19100. @return The actual coverage of the returned scanner will cover all keys
  19101. greater than or equal to the beginKey and less than the endKey.
  19102. @throws IOException]]>
  19103. </doc>
  19104. </method>
  19105. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19106. abstract="false" native="false" synchronized="false"
  19107. static="false" final="false" visibility="public"
  19108. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  19109. instead.">
  19110. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19111. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19112. <exception name="IOException" type="java.io.IOException"/>
  19113. <doc>
  19114. <![CDATA[Get a scanner that covers a specific key range.
  19115. @param beginKey
  19116. Begin key of the scan (inclusive). If null, scan from the first
  19117. key-value entry of the TFile.
  19118. @param endKey
  19119. End key of the scan (exclusive). If null, scan up to the last
  19120. key-value entry of the TFile.
  19121. @return The actual coverage of the returned scanner will cover all keys
  19122. greater than or equal to the beginKey and less than the endKey.
  19123. @throws IOException
  19124. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  19125. instead.]]>
  19126. </doc>
  19127. </method>
  19128. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19129. abstract="false" native="false" synchronized="false"
  19130. static="false" final="false" visibility="public"
  19131. deprecated="not deprecated">
  19132. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19133. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19134. <exception name="IOException" type="java.io.IOException"/>
  19135. <doc>
  19136. <![CDATA[Get a scanner that covers a specific key range.
  19137. @param beginKey
  19138. Begin key of the scan (inclusive). If null, scan from the first
  19139. key-value entry of the TFile.
  19140. @param endKey
  19141. End key of the scan (exclusive). If null, scan up to the last
  19142. key-value entry of the TFile.
  19143. @return The actual coverage of the returned scanner will cover all keys
  19144. greater than or equal to the beginKey and less than the endKey.
  19145. @throws IOException]]>
  19146. </doc>
  19147. </method>
  19148. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  19149. abstract="false" native="false" synchronized="false"
  19150. static="false" final="false" visibility="public"
  19151. deprecated="not deprecated">
  19152. <param name="beginRecNum" type="long"/>
  19153. <param name="endRecNum" type="long"/>
  19154. <exception name="IOException" type="java.io.IOException"/>
  19155. <doc>
  19156. <![CDATA[Create a scanner that covers a range of records.
  19157. @param beginRecNum
  19158. The RecordNum for the first record (inclusive).
  19159. @param endRecNum
  19160. The RecordNum for the last record (exclusive). To scan the whole
  19161. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  19162. @return The TFile scanner that covers the specified range of records.
  19163. @throws IOException]]>
  19164. </doc>
  19165. </method>
  19166. <doc>
  19167. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  19168. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  19169. ) , a portion of TFile based on byte offsets (
  19170. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  19171. fall in a certain key range (for sorted TFile only,
  19172. {@link Reader#createScannerByKey(byte[], byte[])} or
  19173. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  19174. </doc>
  19175. </class>
  19176. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  19177. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  19178. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  19179. abstract="false"
  19180. static="true" final="false" visibility="public"
  19181. deprecated="not deprecated">
  19182. <implements name="java.io.Closeable"/>
  19183. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  19184. static="false" final="false" visibility="protected"
  19185. deprecated="not deprecated">
  19186. <exception name="IOException" type="java.io.IOException"/>
  19187. <doc>
  19188. <![CDATA[Constructor
  19189. @param reader
  19190. The TFile reader object.
  19191. @param offBegin
  19192. Begin byte-offset of the scan.
  19193. @param offEnd
  19194. End byte-offset of the scan.
  19195. @throws IOException
  19196. The offsets will be rounded to the beginning of a compressed
  19197. block whose offset is greater than or equal to the specified
  19198. offset.]]>
  19199. </doc>
  19200. </constructor>
  19201. <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"
  19202. static="false" final="false" visibility="protected"
  19203. deprecated="not deprecated">
  19204. <exception name="IOException" type="java.io.IOException"/>
  19205. <doc>
  19206. <![CDATA[Constructor
  19207. @param reader
  19208. The TFile reader object.
  19209. @param beginKey
  19210. Begin key of the scan. If null, scan from the first <K,V>
  19211. entry of the TFile.
  19212. @param endKey
  19213. End key of the scan. If null, scan up to the last <K, V> entry
  19214. of the TFile.
  19215. @throws IOException]]>
  19216. </doc>
  19217. </constructor>
  19218. <method name="seekTo" return="boolean"
  19219. abstract="false" native="false" synchronized="false"
  19220. static="false" final="false" visibility="public"
  19221. deprecated="not deprecated">
  19222. <param name="key" type="byte[]"/>
  19223. <exception name="IOException" type="java.io.IOException"/>
  19224. <doc>
  19225. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19226. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  19227. returned by the previous entry() call will be invalid.
  19228. @param key
  19229. The input key
  19230. @return true if we find an equal key.
  19231. @throws IOException]]>
  19232. </doc>
  19233. </method>
  19234. <method name="seekTo" return="boolean"
  19235. abstract="false" native="false" synchronized="false"
  19236. static="false" final="false" visibility="public"
  19237. deprecated="not deprecated">
  19238. <param name="key" type="byte[]"/>
  19239. <param name="keyOffset" type="int"/>
  19240. <param name="keyLen" type="int"/>
  19241. <exception name="IOException" type="java.io.IOException"/>
  19242. <doc>
  19243. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19244. to the input key. The entry returned by the previous entry() call will
  19245. be invalid.
  19246. @param key
  19247. The input key
  19248. @param keyOffset
  19249. offset in the key buffer.
  19250. @param keyLen
  19251. key buffer length.
  19252. @return true if we find an equal key; false otherwise.
  19253. @throws IOException]]>
  19254. </doc>
  19255. </method>
  19256. <method name="rewind"
  19257. abstract="false" native="false" synchronized="false"
  19258. static="false" final="false" visibility="public"
  19259. deprecated="not deprecated">
  19260. <exception name="IOException" type="java.io.IOException"/>
  19261. <doc>
  19262. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  19263. previous entry() call will be invalid.
  19264. @throws IOException]]>
  19265. </doc>
  19266. </method>
  19267. <method name="seekToEnd"
  19268. abstract="false" native="false" synchronized="false"
  19269. static="false" final="false" visibility="public"
  19270. deprecated="not deprecated">
  19271. <exception name="IOException" type="java.io.IOException"/>
  19272. <doc>
  19273. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  19274. entry() call will be invalid.
  19275. @throws IOException]]>
  19276. </doc>
  19277. </method>
  19278. <method name="lowerBound"
  19279. abstract="false" native="false" synchronized="false"
  19280. static="false" final="false" visibility="public"
  19281. deprecated="not deprecated">
  19282. <param name="key" type="byte[]"/>
  19283. <exception name="IOException" type="java.io.IOException"/>
  19284. <doc>
  19285. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19286. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  19287. entry returned by the previous entry() call will be invalid.
  19288. @param key
  19289. The input key
  19290. @throws IOException]]>
  19291. </doc>
  19292. </method>
  19293. <method name="lowerBound"
  19294. abstract="false" native="false" synchronized="false"
  19295. static="false" final="false" visibility="public"
  19296. deprecated="not deprecated">
  19297. <param name="key" type="byte[]"/>
  19298. <param name="keyOffset" type="int"/>
  19299. <param name="keyLen" type="int"/>
  19300. <exception name="IOException" type="java.io.IOException"/>
  19301. <doc>
  19302. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  19303. to the input key. The entry returned by the previous entry() call will
  19304. be invalid.
  19305. @param key
  19306. The input key
  19307. @param keyOffset
  19308. offset in the key buffer.
  19309. @param keyLen
  19310. key buffer length.
  19311. @throws IOException]]>
  19312. </doc>
  19313. </method>
  19314. <method name="upperBound"
  19315. abstract="false" native="false" synchronized="false"
  19316. static="false" final="false" visibility="public"
  19317. deprecated="not deprecated">
  19318. <param name="key" type="byte[]"/>
  19319. <exception name="IOException" type="java.io.IOException"/>
  19320. <doc>
  19321. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  19322. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  19323. returned by the previous entry() call will be invalid.
  19324. @param key
  19325. The input key
  19326. @throws IOException]]>
  19327. </doc>
  19328. </method>
  19329. <method name="upperBound"
  19330. abstract="false" native="false" synchronized="false"
  19331. static="false" final="false" visibility="public"
  19332. deprecated="not deprecated">
  19333. <param name="key" type="byte[]"/>
  19334. <param name="keyOffset" type="int"/>
  19335. <param name="keyLen" type="int"/>
  19336. <exception name="IOException" type="java.io.IOException"/>
  19337. <doc>
  19338. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  19339. the input key. The entry returned by the previous entry() call will be
  19340. invalid.
  19341. @param key
  19342. The input key
  19343. @param keyOffset
  19344. offset in the key buffer.
  19345. @param keyLen
  19346. key buffer length.
  19347. @throws IOException]]>
  19348. </doc>
  19349. </method>
  19350. <method name="advance" return="boolean"
  19351. abstract="false" native="false" synchronized="false"
  19352. static="false" final="false" visibility="public"
  19353. deprecated="not deprecated">
  19354. <exception name="IOException" type="java.io.IOException"/>
  19355. <doc>
  19356. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  19357. previous entry() call will be invalid.
  19358. @return true if the cursor successfully moves. False when cursor is
  19359. already at the end location and cannot be advanced.
  19360. @throws IOException]]>
  19361. </doc>
  19362. </method>
  19363. <method name="close"
  19364. abstract="false" native="false" synchronized="false"
  19365. static="false" final="false" visibility="public"
  19366. deprecated="not deprecated">
  19367. <exception name="IOException" type="java.io.IOException"/>
  19368. <doc>
  19369. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  19370. scanner after calling close is not defined. The entry returned by the
  19371. previous entry() call will be invalid.]]>
  19372. </doc>
  19373. </method>
  19374. <method name="atEnd" return="boolean"
  19375. abstract="false" native="false" synchronized="false"
  19376. static="false" final="false" visibility="public"
  19377. deprecated="not deprecated">
  19378. <doc>
  19379. <![CDATA[Is cursor at the end location?
  19380. @return true if the cursor is at the end location.]]>
  19381. </doc>
  19382. </method>
  19383. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  19384. abstract="false" native="false" synchronized="false"
  19385. static="false" final="false" visibility="public"
  19386. deprecated="not deprecated">
  19387. <exception name="IOException" type="java.io.IOException"/>
  19388. <doc>
  19389. <![CDATA[Get an entry to access the key and value.
  19390. @return The Entry object to access the key and value.
  19391. @throws IOException]]>
  19392. </doc>
  19393. </method>
  19394. <method name="getRecordNum" return="long"
  19395. abstract="false" native="false" synchronized="false"
  19396. static="false" final="false" visibility="public"
  19397. deprecated="not deprecated">
  19398. <exception name="IOException" type="java.io.IOException"/>
  19399. <doc>
  19400. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  19401. @return The RecordNum corresponding to the entry pointed by the cursor.
  19402. @throws IOException]]>
  19403. </doc>
  19404. </method>
  19405. <doc>
  19406. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  19407. creation, points to the first key-value pair in the scan range. If the
  19408. scan range is empty, the cursor will point to the end of the scan range.
  19409. <p>
  19410. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  19411. location of the scanner.
  19412. <p>
  19413. Use {@link Scanner#advance()} to move the cursor to the next key-value
  19414. pair (or end if none exists). Use seekTo methods (
  19415. {@link Scanner#seekTo(byte[])} or
  19416. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  19417. location in the covered range (including backward seeking). Use
  19418. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  19419. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  19420. <p>
  19421. Actual keys and values may be obtained through {@link Scanner.Entry}
  19422. object, which is obtained through {@link Scanner#entry()}.]]>
  19423. </doc>
  19424. </class>
  19425. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  19426. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  19427. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  19428. abstract="false"
  19429. static="false" final="false" visibility="public"
  19430. deprecated="not deprecated">
  19431. <implements name="java.lang.Comparable"/>
  19432. <constructor name="TFile.Reader.Scanner.Entry"
  19433. static="false" final="false" visibility="public"
  19434. deprecated="not deprecated">
  19435. </constructor>
  19436. <method name="getKeyLength" return="int"
  19437. abstract="false" native="false" synchronized="false"
  19438. static="false" final="false" visibility="public"
  19439. deprecated="not deprecated">
  19440. <doc>
  19441. <![CDATA[Get the length of the key.
  19442. @return the length of the key.]]>
  19443. </doc>
  19444. </method>
  19445. <method name="get"
  19446. abstract="false" native="false" synchronized="false"
  19447. static="false" final="false" visibility="public"
  19448. deprecated="not deprecated">
  19449. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  19450. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  19451. <exception name="IOException" type="java.io.IOException"/>
  19452. <doc>
  19453. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  19454. equivalent to getKey(key); getValue(value);
  19455. @param key
  19456. BytesWritable to hold key.
  19457. @param value
  19458. BytesWritable to hold value
  19459. @throws IOException]]>
  19460. </doc>
  19461. </method>
  19462. <method name="getKey" return="int"
  19463. abstract="false" native="false" synchronized="false"
  19464. static="false" final="false" visibility="public"
  19465. deprecated="not deprecated">
  19466. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  19467. <exception name="IOException" type="java.io.IOException"/>
  19468. <doc>
  19469. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  19470. automatically resized to the actual key size.
  19471. @param key
  19472. BytesWritable to hold the key.
  19473. @throws IOException]]>
  19474. </doc>
  19475. </method>
  19476. <method name="getValue" return="long"
  19477. abstract="false" native="false" synchronized="false"
  19478. static="false" final="false" visibility="public"
  19479. deprecated="not deprecated">
  19480. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  19481. <exception name="IOException" type="java.io.IOException"/>
  19482. <doc>
  19483. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  19484. automatically resized to the actual value size. The implementation
  19485. directly uses the buffer inside BytesWritable for storing the value.
  19486. The call does not require the value length to be known.
  19487. @param value
  19488. @throws IOException]]>
  19489. </doc>
  19490. </method>
  19491. <method name="writeKey" return="int"
  19492. abstract="false" native="false" synchronized="false"
  19493. static="false" final="false" visibility="public"
  19494. deprecated="not deprecated">
  19495. <param name="out" type="java.io.OutputStream"/>
  19496. <exception name="IOException" type="java.io.IOException"/>
  19497. <doc>
  19498. <![CDATA[Writing the key to the output stream. This method avoids copying key
  19499. buffer from Scanner into user buffer, then writing to the output
  19500. stream.
  19501. @param out
  19502. The output stream
  19503. @return the length of the key.
  19504. @throws IOException]]>
  19505. </doc>
  19506. </method>
  19507. <method name="writeValue" return="long"
  19508. abstract="false" native="false" synchronized="false"
  19509. static="false" final="false" visibility="public"
  19510. deprecated="not deprecated">
  19511. <param name="out" type="java.io.OutputStream"/>
  19512. <exception name="IOException" type="java.io.IOException"/>
  19513. <doc>
  19514. <![CDATA[Writing the value to the output stream. This method avoids copying
  19515. value data from Scanner into user buffer, then writing to the output
  19516. stream. It does not require the value length to be known.
  19517. @param out
  19518. The output stream
  19519. @return the length of the value
  19520. @throws IOException]]>
  19521. </doc>
  19522. </method>
  19523. <method name="getKey" return="int"
  19524. abstract="false" native="false" synchronized="false"
  19525. static="false" final="false" visibility="public"
  19526. deprecated="not deprecated">
  19527. <param name="buf" type="byte[]"/>
  19528. <exception name="IOException" type="java.io.IOException"/>
  19529. <doc>
  19530. <![CDATA[Copy the key into user supplied buffer.
  19531. @param buf
  19532. The buffer supplied by user. The length of the buffer must
  19533. not be shorter than the key length.
  19534. @return The length of the key.
  19535. @throws IOException]]>
  19536. </doc>
  19537. </method>
  19538. <method name="getKey" return="int"
  19539. abstract="false" native="false" synchronized="false"
  19540. static="false" final="false" visibility="public"
  19541. deprecated="not deprecated">
  19542. <param name="buf" type="byte[]"/>
  19543. <param name="offset" type="int"/>
  19544. <exception name="IOException" type="java.io.IOException"/>
  19545. <doc>
  19546. <![CDATA[Copy the key into user supplied buffer.
  19547. @param buf
  19548. The buffer supplied by user.
  19549. @param offset
  19550. The starting offset of the user buffer where we should copy
  19551. the key into. Requiring the key-length + offset no greater
  19552. than the buffer length.
  19553. @return The length of the key.
  19554. @throws IOException]]>
  19555. </doc>
  19556. </method>
  19557. <method name="getKeyStream" return="java.io.DataInputStream"
  19558. abstract="false" native="false" synchronized="false"
  19559. static="false" final="false" visibility="public"
  19560. deprecated="not deprecated">
  19561. <doc>
  19562. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  19563. user objects.
  19564. @return The input stream.]]>
  19565. </doc>
  19566. </method>
  19567. <method name="getValueLength" return="int"
  19568. abstract="false" native="false" synchronized="false"
  19569. static="false" final="false" visibility="public"
  19570. deprecated="not deprecated">
  19571. <doc>
  19572. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  19573. true.
  19574. @return the length of the value.]]>
  19575. </doc>
  19576. </method>
  19577. <method name="getValue" return="int"
  19578. abstract="false" native="false" synchronized="false"
  19579. static="false" final="false" visibility="public"
  19580. deprecated="not deprecated">
  19581. <param name="buf" type="byte[]"/>
  19582. <exception name="IOException" type="java.io.IOException"/>
  19583. <doc>
  19584. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  19585. large enough to hold the whole value. The value part of the key-value
  19586. pair pointed by the current cursor is not cached and can only be
  19587. examined once. Calling any of the following functions more than once
  19588. without moving the cursor will result in exception:
  19589. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  19590. {@link #getValueStream}.
  19591. @return the length of the value. Does not require
  19592. isValueLengthKnown() to be true.
  19593. @throws IOException]]>
  19594. </doc>
  19595. </method>
  19596. <method name="getValue" return="int"
  19597. abstract="false" native="false" synchronized="false"
  19598. static="false" final="false" visibility="public"
  19599. deprecated="not deprecated">
  19600. <param name="buf" type="byte[]"/>
  19601. <param name="offset" type="int"/>
  19602. <exception name="IOException" type="java.io.IOException"/>
  19603. <doc>
  19604. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  19605. large enough to hold the whole value (starting from the offset). The
  19606. value part of the key-value pair pointed by the current cursor is not
  19607. cached and can only be examined once. Calling any of the following
  19608. functions more than once without moving the cursor will result in
  19609. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  19610. {@link #getValueStream}.
  19611. @return the length of the value. Does not require
  19612. isValueLengthKnown() to be true.
  19613. @throws IOException]]>
  19614. </doc>
  19615. </method>
  19616. <method name="getValueStream" return="java.io.DataInputStream"
  19617. abstract="false" native="false" synchronized="false"
  19618. static="false" final="false" visibility="public"
  19619. deprecated="not deprecated">
  19620. <exception name="IOException" type="java.io.IOException"/>
  19621. <doc>
  19622. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  19623. by the current cursor is not cached and can only be examined once.
  19624. Calling any of the following functions more than once without moving
  19625. the cursor will result in exception: {@link #getValue(byte[])},
  19626. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  19627. @return The input stream for reading the value.
  19628. @throws IOException]]>
  19629. </doc>
  19630. </method>
  19631. <method name="isValueLengthKnown" return="boolean"
  19632. abstract="false" native="false" synchronized="false"
  19633. static="false" final="false" visibility="public"
  19634. deprecated="not deprecated">
  19635. <doc>
  19636. <![CDATA[Check whether it is safe to call getValueLength().
  19637. @return true if value length is known before hand. Values less than
  19638. the chunk size will always have their lengths known before
  19639. hand. Values that are written out as a whole (with advertised
  19640. length up-front) will always have their lengths known in
  19641. read.]]>
  19642. </doc>
  19643. </method>
  19644. <method name="compareTo" return="int"
  19645. abstract="false" native="false" synchronized="false"
  19646. static="false" final="false" visibility="public"
  19647. deprecated="not deprecated">
  19648. <param name="buf" type="byte[]"/>
  19649. <doc>
  19650. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  19651. key.length).
  19652. @param buf
  19653. The key buffer.
  19654. @return comparison result between the entry key with the input key.]]>
  19655. </doc>
  19656. </method>
  19657. <method name="compareTo" return="int"
  19658. abstract="false" native="false" synchronized="false"
  19659. static="false" final="false" visibility="public"
  19660. deprecated="not deprecated">
  19661. <param name="buf" type="byte[]"/>
  19662. <param name="offset" type="int"/>
  19663. <param name="length" type="int"/>
  19664. <doc>
  19665. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  19666. ByteArray(buf, offset, length)
  19667. @param buf
  19668. The key buffer
  19669. @param offset
  19670. offset into the key buffer.
  19671. @param length
  19672. the length of the key.
  19673. @return comparison result between the entry key with the input key.]]>
  19674. </doc>
  19675. </method>
  19676. <method name="compareTo" return="int"
  19677. abstract="false" native="false" synchronized="false"
  19678. static="false" final="false" visibility="public"
  19679. deprecated="not deprecated">
  19680. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19681. <doc>
  19682. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  19683. Entries are stored in a collection, and we want to compare a user
  19684. supplied key.]]>
  19685. </doc>
  19686. </method>
  19687. <method name="equals" return="boolean"
  19688. abstract="false" native="false" synchronized="false"
  19689. static="false" final="false" visibility="public"
  19690. deprecated="not deprecated">
  19691. <param name="other" type="java.lang.Object"/>
  19692. <doc>
  19693. <![CDATA[Compare whether this and other points to the same key value.]]>
  19694. </doc>
  19695. </method>
  19696. <method name="hashCode" return="int"
  19697. abstract="false" native="false" synchronized="false"
  19698. static="false" final="false" visibility="public"
  19699. deprecated="not deprecated">
  19700. </method>
  19701. <doc>
  19702. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  19703. </doc>
  19704. </class>
  19705. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  19706. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  19707. <class name="TFile.Writer" extends="java.lang.Object"
  19708. abstract="false"
  19709. static="true" final="false" visibility="public"
  19710. deprecated="not deprecated">
  19711. <implements name="java.io.Closeable"/>
  19712. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  19713. static="false" final="false" visibility="public"
  19714. deprecated="not deprecated">
  19715. <exception name="IOException" type="java.io.IOException"/>
  19716. <doc>
  19717. <![CDATA[Constructor
  19718. @param fsdos
  19719. output stream for writing. Must be at position 0.
  19720. @param minBlockSize
  19721. Minimum compressed block size in bytes. A compression block will
  19722. not be closed until it reaches this size except for the last
  19723. block.
  19724. @param compressName
  19725. Name of the compression algorithm. Must be one of the strings
  19726. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  19727. @param comparator
  19728. Leave comparator as null or empty string if TFile is not sorted.
  19729. Otherwise, provide the string name for the comparison algorithm
  19730. for keys. Two kinds of comparators are supported.
  19731. <ul>
  19732. <li>Algorithmic comparator: binary comparators that is language
  19733. independent. Currently, only "memcmp" is supported.
  19734. <li>Language-specific comparator: binary comparators that can
  19735. only be constructed in specific language. For Java, the syntax
  19736. is "jclass:", followed by the class name of the RawComparator.
  19737. Currently, we only support RawComparators that can be
  19738. constructed through the default constructor (with no
  19739. parameters). Parameterized RawComparators such as
  19740. {@link WritableComparator} or
  19741. {@link JavaSerializationComparator} may not be directly used.
  19742. One should write a wrapper class that inherits from such classes
  19743. and use its default constructor to perform proper
  19744. initialization.
  19745. </ul>
  19746. @param conf
  19747. The configuration object.
  19748. @throws IOException]]>
  19749. </doc>
  19750. </constructor>
  19751. <method name="close"
  19752. abstract="false" native="false" synchronized="false"
  19753. static="false" final="false" visibility="public"
  19754. deprecated="not deprecated">
  19755. <exception name="IOException" type="java.io.IOException"/>
  19756. <doc>
  19757. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  19758. being thrown. Future close calls will have no effect.
  19759. The underlying FSDataOutputStream is not closed.]]>
  19760. </doc>
  19761. </method>
  19762. <method name="append"
  19763. abstract="false" native="false" synchronized="false"
  19764. static="false" final="false" visibility="public"
  19765. deprecated="not deprecated">
  19766. <param name="key" type="byte[]"/>
  19767. <param name="value" type="byte[]"/>
  19768. <exception name="IOException" type="java.io.IOException"/>
  19769. <doc>
  19770. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  19771. append(key, 0, key.length, value, 0, value.length)
  19772. @param key
  19773. Buffer for key.
  19774. @param value
  19775. Buffer for value.
  19776. @throws IOException]]>
  19777. </doc>
  19778. </method>
  19779. <method name="append"
  19780. abstract="false" native="false" synchronized="false"
  19781. static="false" final="false" visibility="public"
  19782. deprecated="not deprecated">
  19783. <param name="key" type="byte[]"/>
  19784. <param name="koff" type="int"/>
  19785. <param name="klen" type="int"/>
  19786. <param name="value" type="byte[]"/>
  19787. <param name="voff" type="int"/>
  19788. <param name="vlen" type="int"/>
  19789. <exception name="IOException" type="java.io.IOException"/>
  19790. <doc>
  19791. <![CDATA[Adding a new key-value pair to TFile.
  19792. @param key
  19793. buffer for key.
  19794. @param koff
  19795. offset in key buffer.
  19796. @param klen
  19797. length of key.
  19798. @param value
  19799. buffer for value.
  19800. @param voff
  19801. offset in value buffer.
  19802. @param vlen
  19803. length of value.
  19804. @throws IOException
  19805. Upon IO errors.
  19806. <p>
  19807. If an exception is thrown, the TFile will be in an inconsistent
  19808. state. The only legitimate call after that would be close]]>
  19809. </doc>
  19810. </method>
  19811. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  19812. abstract="false" native="false" synchronized="false"
  19813. static="false" final="false" visibility="public"
  19814. deprecated="not deprecated">
  19815. <param name="length" type="int"/>
  19816. <exception name="IOException" type="java.io.IOException"/>
  19817. <doc>
  19818. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  19819. called when there is no active Key appending stream or value appending
  19820. stream.
  19821. @param length
  19822. The expected length of the key. If length of the key is not
  19823. known, set length = -1. Otherwise, the application must write
  19824. exactly as many bytes as specified here before calling close on
  19825. the returned output stream.
  19826. @return The key appending output stream.
  19827. @throws IOException]]>
  19828. </doc>
  19829. </method>
  19830. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  19831. abstract="false" native="false" synchronized="false"
  19832. static="false" final="false" visibility="public"
  19833. deprecated="not deprecated">
  19834. <param name="length" type="int"/>
  19835. <exception name="IOException" type="java.io.IOException"/>
  19836. <doc>
  19837. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  19838. called right after a key appending operation (the key append stream must
  19839. be closed).
  19840. @param length
  19841. The expected length of the value. If length of the value is not
  19842. known, set length = -1. Otherwise, the application must write
  19843. exactly as many bytes as specified here before calling close on
  19844. the returned output stream. Advertising the value size up-front
  19845. guarantees that the value is encoded in one chunk, and avoids
  19846. intermediate chunk buffering.
  19847. @throws IOException]]>
  19848. </doc>
  19849. </method>
  19850. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  19851. abstract="false" native="false" synchronized="false"
  19852. static="false" final="false" visibility="public"
  19853. deprecated="not deprecated">
  19854. <param name="name" type="java.lang.String"/>
  19855. <param name="compressName" type="java.lang.String"/>
  19856. <exception name="IOException" type="java.io.IOException"/>
  19857. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  19858. <doc>
  19859. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  19860. be called when there is a key append stream or value append stream
  19861. active. No more key-value insertion is allowed after a meta data block
  19862. has been added to TFile.
  19863. @param name
  19864. Name of the meta block.
  19865. @param compressName
  19866. Name of the compression algorithm to be used. Must be one of the
  19867. strings returned by
  19868. {@link TFile#getSupportedCompressionAlgorithms()}.
  19869. @return A DataOutputStream that can be used to write Meta Block data.
  19870. Closing the stream would signal the ending of the block.
  19871. @throws IOException
  19872. @throws MetaBlockAlreadyExists
  19873. the Meta Block with the same name already exists.]]>
  19874. </doc>
  19875. </method>
  19876. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  19877. abstract="false" native="false" synchronized="false"
  19878. static="false" final="false" visibility="public"
  19879. deprecated="not deprecated">
  19880. <param name="name" type="java.lang.String"/>
  19881. <exception name="IOException" type="java.io.IOException"/>
  19882. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  19883. <doc>
  19884. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  19885. be called when there is a key append stream or value append stream
  19886. active. No more key-value insertion is allowed after a meta data block
  19887. has been added to TFile. Data will be compressed using the default
  19888. compressor as defined in Writer's constructor.
  19889. @param name
  19890. Name of the meta block.
  19891. @return A DataOutputStream that can be used to write Meta Block data.
  19892. Closing the stream would signal the ending of the block.
  19893. @throws IOException
  19894. @throws MetaBlockAlreadyExists
  19895. the Meta Block with the same name already exists.]]>
  19896. </doc>
  19897. </method>
  19898. <doc>
  19899. <![CDATA[TFile Writer.]]>
  19900. </doc>
  19901. </class>
  19902. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  19903. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  19904. <class name="Utils" extends="java.lang.Object"
  19905. abstract="false"
  19906. static="false" final="true" visibility="public"
  19907. deprecated="not deprecated">
  19908. <method name="writeVInt"
  19909. abstract="false" native="false" synchronized="false"
  19910. static="true" final="false" visibility="public"
  19911. deprecated="not deprecated">
  19912. <param name="out" type="java.io.DataOutput"/>
  19913. <param name="n" type="int"/>
  19914. <exception name="IOException" type="java.io.IOException"/>
  19915. <doc>
  19916. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  19917. <code>Utils#writeVLong(out, n)</code>.
  19918. @param out
  19919. output stream
  19920. @param n
  19921. The integer to be encoded
  19922. @throws IOException
  19923. @see Utils#writeVLong(DataOutput, long)]]>
  19924. </doc>
  19925. </method>
  19926. <method name="writeVLong"
  19927. abstract="false" native="false" synchronized="false"
  19928. static="true" final="false" visibility="public"
  19929. deprecated="not deprecated">
  19930. <param name="out" type="java.io.DataOutput"/>
  19931. <param name="n" type="long"/>
  19932. <exception name="IOException" type="java.io.IOException"/>
  19933. <doc>
  19934. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  19935. <ul>
  19936. <li>if n in [-32, 127): encode in one byte with the actual value.
  19937. Otherwise,
  19938. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  19939. byte[1]=n&0xff. Otherwise,
  19940. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  19941. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  19942. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  19943. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  19944. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  19945. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  19946. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  19947. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  19948. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  19949. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  19950. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  19951. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  19952. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  19953. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  19954. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  19955. byte[7]=n&0xff;
  19956. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  19957. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  19958. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  19959. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  19960. </ul>
  19961. @param out
  19962. output stream
  19963. @param n
  19964. the integer number
  19965. @throws IOException]]>
  19966. </doc>
  19967. </method>
  19968. <method name="readVInt" return="int"
  19969. abstract="false" native="false" synchronized="false"
  19970. static="true" final="false" visibility="public"
  19971. deprecated="not deprecated">
  19972. <param name="in" type="java.io.DataInput"/>
  19973. <exception name="IOException" type="java.io.IOException"/>
  19974. <doc>
  19975. <![CDATA[Decoding the variable-length integer. Synonymous to
  19976. <code>(int)Utils#readVLong(in)</code>.
  19977. @param in
  19978. input stream
  19979. @return the decoded integer
  19980. @throws IOException
  19981. @see Utils#readVLong(DataInput)]]>
  19982. </doc>
  19983. </method>
  19984. <method name="readVLong" return="long"
  19985. abstract="false" native="false" synchronized="false"
  19986. static="true" final="false" visibility="public"
  19987. deprecated="not deprecated">
  19988. <param name="in" type="java.io.DataInput"/>
  19989. <exception name="IOException" type="java.io.IOException"/>
  19990. <doc>
  19991. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  19992. is FB, and the following bytes are NB[*].
  19993. <ul>
  19994. <li>if (FB >= -32), return (long)FB;
  19995. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  19996. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  19997. NB[1]&0xff;
  19998. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  19999. (NB[1]&0xff)<<8 + NB[2]&0xff;
  20000. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  20001. big-endian integer.
  20002. @param in
  20003. input stream
  20004. @return the decoded long integer.
  20005. @throws IOException]]>
  20006. </doc>
  20007. </method>
  20008. <method name="writeString"
  20009. abstract="false" native="false" synchronized="false"
  20010. static="true" final="false" visibility="public"
  20011. deprecated="not deprecated">
  20012. <param name="out" type="java.io.DataOutput"/>
  20013. <param name="s" type="java.lang.String"/>
  20014. <exception name="IOException" type="java.io.IOException"/>
  20015. <doc>
  20016. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  20017. @param out
  20018. @param s
  20019. @throws IOException]]>
  20020. </doc>
  20021. </method>
  20022. <method name="readString" return="java.lang.String"
  20023. abstract="false" native="false" synchronized="false"
  20024. static="true" final="false" visibility="public"
  20025. deprecated="not deprecated">
  20026. <param name="in" type="java.io.DataInput"/>
  20027. <exception name="IOException" type="java.io.IOException"/>
  20028. <doc>
  20029. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  20030. @param in
  20031. The input stream.
  20032. @return The string
  20033. @throws IOException]]>
  20034. </doc>
  20035. </method>
  20036. <method name="lowerBound" return="int"
  20037. abstract="false" native="false" synchronized="false"
  20038. static="true" final="false" visibility="public"
  20039. deprecated="not deprecated">
  20040. <param name="list" type="java.util.List"/>
  20041. <param name="key" type="java.lang.Object"/>
  20042. <param name="cmp" type="java.util.Comparator"/>
  20043. <doc>
  20044. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  20045. that compares greater than or equal to key.
  20046. @param <T>
  20047. Type of the input key.
  20048. @param list
  20049. The list
  20050. @param key
  20051. The input key.
  20052. @param cmp
  20053. Comparator for the key.
  20054. @return The index to the desired element if it exists; or list.size()
  20055. otherwise.]]>
  20056. </doc>
  20057. </method>
  20058. <method name="upperBound" return="int"
  20059. abstract="false" native="false" synchronized="false"
  20060. static="true" final="false" visibility="public"
  20061. deprecated="not deprecated">
  20062. <param name="list" type="java.util.List"/>
  20063. <param name="key" type="java.lang.Object"/>
  20064. <param name="cmp" type="java.util.Comparator"/>
  20065. <doc>
  20066. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  20067. that compares greater than the input key.
  20068. @param <T>
  20069. Type of the input key.
  20070. @param list
  20071. The list
  20072. @param key
  20073. The input key.
  20074. @param cmp
  20075. Comparator for the key.
  20076. @return The index to the desired element if it exists; or list.size()
  20077. otherwise.]]>
  20078. </doc>
  20079. </method>
  20080. <method name="lowerBound" return="int"
  20081. abstract="false" native="false" synchronized="false"
  20082. static="true" final="false" visibility="public"
  20083. deprecated="not deprecated">
  20084. <param name="list" type="java.util.List"/>
  20085. <param name="key" type="java.lang.Object"/>
  20086. <doc>
  20087. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  20088. that compares greater than or equal to key.
  20089. @param <T>
  20090. Type of the input key.
  20091. @param list
  20092. The list
  20093. @param key
  20094. The input key.
  20095. @return The index to the desired element if it exists; or list.size()
  20096. otherwise.]]>
  20097. </doc>
  20098. </method>
  20099. <method name="upperBound" return="int"
  20100. abstract="false" native="false" synchronized="false"
  20101. static="true" final="false" visibility="public"
  20102. deprecated="not deprecated">
  20103. <param name="list" type="java.util.List"/>
  20104. <param name="key" type="java.lang.Object"/>
  20105. <doc>
  20106. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  20107. that compares greater than the input key.
  20108. @param <T>
  20109. Type of the input key.
  20110. @param list
  20111. The list
  20112. @param key
  20113. The input key.
  20114. @return The index to the desired element if it exists; or list.size()
  20115. otherwise.]]>
  20116. </doc>
  20117. </method>
  20118. <doc>
  20119. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  20120. </doc>
  20121. </class>
  20122. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  20123. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  20124. <class name="Utils.Version" extends="java.lang.Object"
  20125. abstract="false"
  20126. static="true" final="true" visibility="public"
  20127. deprecated="not deprecated">
  20128. <implements name="java.lang.Comparable"/>
  20129. <constructor name="Utils.Version" type="java.io.DataInput"
  20130. static="false" final="false" visibility="public"
  20131. deprecated="not deprecated">
  20132. <exception name="IOException" type="java.io.IOException"/>
  20133. <doc>
  20134. <![CDATA[Construct the Version object by reading from the input stream.
  20135. @param in
  20136. input stream
  20137. @throws IOException]]>
  20138. </doc>
  20139. </constructor>
  20140. <constructor name="Utils.Version" type="short, short"
  20141. static="false" final="false" visibility="public"
  20142. deprecated="not deprecated">
  20143. <doc>
  20144. <![CDATA[Constructor.
  20145. @param major
  20146. major version.
  20147. @param minor
  20148. minor version.]]>
  20149. </doc>
  20150. </constructor>
  20151. <method name="write"
  20152. abstract="false" native="false" synchronized="false"
  20153. static="false" final="false" visibility="public"
  20154. deprecated="not deprecated">
  20155. <param name="out" type="java.io.DataOutput"/>
  20156. <exception name="IOException" type="java.io.IOException"/>
  20157. <doc>
  20158. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  20159. major version followed by minor version, both as big-endian short
  20160. integers.
  20161. @param out
  20162. The DataOutput object.
  20163. @throws IOException]]>
  20164. </doc>
  20165. </method>
  20166. <method name="getMajor" return="int"
  20167. abstract="false" native="false" synchronized="false"
  20168. static="false" final="false" visibility="public"
  20169. deprecated="not deprecated">
  20170. <doc>
  20171. <![CDATA[Get the major version.
  20172. @return Major version.]]>
  20173. </doc>
  20174. </method>
  20175. <method name="getMinor" return="int"
  20176. abstract="false" native="false" synchronized="false"
  20177. static="false" final="false" visibility="public"
  20178. deprecated="not deprecated">
  20179. <doc>
  20180. <![CDATA[Get the minor version.
  20181. @return The minor version.]]>
  20182. </doc>
  20183. </method>
  20184. <method name="size" return="int"
  20185. abstract="false" native="false" synchronized="false"
  20186. static="true" final="false" visibility="public"
  20187. deprecated="not deprecated">
  20188. <doc>
  20189. <![CDATA[Get the size of the serialized Version object.
  20190. @return serialized size of the version object.]]>
  20191. </doc>
  20192. </method>
  20193. <method name="toString" return="java.lang.String"
  20194. abstract="false" native="false" synchronized="false"
  20195. static="false" final="false" visibility="public"
  20196. deprecated="not deprecated">
  20197. <doc>
  20198. <![CDATA[Return a string representation of the version.]]>
  20199. </doc>
  20200. </method>
  20201. <method name="compatibleWith" return="boolean"
  20202. abstract="false" native="false" synchronized="false"
  20203. static="false" final="false" visibility="public"
  20204. deprecated="not deprecated">
  20205. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  20206. <doc>
  20207. <![CDATA[Test compatibility.
  20208. @param other
  20209. The Version object to test compatibility with.
  20210. @return true if both versions have the same major version number; false
  20211. otherwise.]]>
  20212. </doc>
  20213. </method>
  20214. <method name="compareTo" return="int"
  20215. abstract="false" native="false" synchronized="false"
  20216. static="false" final="false" visibility="public"
  20217. deprecated="not deprecated">
  20218. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  20219. <doc>
  20220. <![CDATA[Compare this version with another version.]]>
  20221. </doc>
  20222. </method>
  20223. <method name="equals" return="boolean"
  20224. abstract="false" native="false" synchronized="false"
  20225. static="false" final="false" visibility="public"
  20226. deprecated="not deprecated">
  20227. <param name="other" type="java.lang.Object"/>
  20228. </method>
  20229. <method name="hashCode" return="int"
  20230. abstract="false" native="false" synchronized="false"
  20231. static="false" final="false" visibility="public"
  20232. deprecated="not deprecated">
  20233. </method>
  20234. <doc>
  20235. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  20236. this class to maintain version information in their meta blocks.
  20237. A version number consists of a major version and a minor version. The
  20238. suggested usage of major and minor version number is to increment major
  20239. version number when the new storage format is not backward compatible, and
  20240. increment the minor version otherwise.]]>
  20241. </doc>
  20242. </class>
  20243. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  20244. </package>
  20245. <package name="org.apache.hadoop.io.nativeio">
  20246. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  20247. <class name="Errno" extends="java.lang.Enum"
  20248. abstract="false"
  20249. static="false" final="true" visibility="public"
  20250. deprecated="not deprecated">
  20251. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  20252. abstract="false" native="false" synchronized="false"
  20253. static="true" final="false" visibility="public"
  20254. deprecated="not deprecated">
  20255. </method>
  20256. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  20257. abstract="false" native="false" synchronized="false"
  20258. static="true" final="false" visibility="public"
  20259. deprecated="not deprecated">
  20260. <param name="name" type="java.lang.String"/>
  20261. </method>
  20262. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  20263. transient="false" volatile="false"
  20264. static="true" final="true" visibility="public"
  20265. deprecated="not deprecated">
  20266. </field>
  20267. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  20268. transient="false" volatile="false"
  20269. static="true" final="true" visibility="public"
  20270. deprecated="not deprecated">
  20271. </field>
  20272. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  20273. transient="false" volatile="false"
  20274. static="true" final="true" visibility="public"
  20275. deprecated="not deprecated">
  20276. </field>
  20277. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  20278. transient="false" volatile="false"
  20279. static="true" final="true" visibility="public"
  20280. deprecated="not deprecated">
  20281. </field>
  20282. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  20283. transient="false" volatile="false"
  20284. static="true" final="true" visibility="public"
  20285. deprecated="not deprecated">
  20286. </field>
  20287. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  20288. transient="false" volatile="false"
  20289. static="true" final="true" visibility="public"
  20290. deprecated="not deprecated">
  20291. </field>
  20292. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  20293. transient="false" volatile="false"
  20294. static="true" final="true" visibility="public"
  20295. deprecated="not deprecated">
  20296. </field>
  20297. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  20298. transient="false" volatile="false"
  20299. static="true" final="true" visibility="public"
  20300. deprecated="not deprecated">
  20301. </field>
  20302. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  20303. transient="false" volatile="false"
  20304. static="true" final="true" visibility="public"
  20305. deprecated="not deprecated">
  20306. </field>
  20307. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  20308. transient="false" volatile="false"
  20309. static="true" final="true" visibility="public"
  20310. deprecated="not deprecated">
  20311. </field>
  20312. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  20313. transient="false" volatile="false"
  20314. static="true" final="true" visibility="public"
  20315. deprecated="not deprecated">
  20316. </field>
  20317. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  20318. transient="false" volatile="false"
  20319. static="true" final="true" visibility="public"
  20320. deprecated="not deprecated">
  20321. </field>
  20322. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  20323. transient="false" volatile="false"
  20324. static="true" final="true" visibility="public"
  20325. deprecated="not deprecated">
  20326. </field>
  20327. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  20328. transient="false" volatile="false"
  20329. static="true" final="true" visibility="public"
  20330. deprecated="not deprecated">
  20331. </field>
  20332. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  20333. transient="false" volatile="false"
  20334. static="true" final="true" visibility="public"
  20335. deprecated="not deprecated">
  20336. </field>
  20337. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  20338. transient="false" volatile="false"
  20339. static="true" final="true" visibility="public"
  20340. deprecated="not deprecated">
  20341. </field>
  20342. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  20343. transient="false" volatile="false"
  20344. static="true" final="true" visibility="public"
  20345. deprecated="not deprecated">
  20346. </field>
  20347. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  20348. transient="false" volatile="false"
  20349. static="true" final="true" visibility="public"
  20350. deprecated="not deprecated">
  20351. </field>
  20352. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  20353. transient="false" volatile="false"
  20354. static="true" final="true" visibility="public"
  20355. deprecated="not deprecated">
  20356. </field>
  20357. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  20358. transient="false" volatile="false"
  20359. static="true" final="true" visibility="public"
  20360. deprecated="not deprecated">
  20361. </field>
  20362. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  20363. transient="false" volatile="false"
  20364. static="true" final="true" visibility="public"
  20365. deprecated="not deprecated">
  20366. </field>
  20367. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  20368. transient="false" volatile="false"
  20369. static="true" final="true" visibility="public"
  20370. deprecated="not deprecated">
  20371. </field>
  20372. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  20373. transient="false" volatile="false"
  20374. static="true" final="true" visibility="public"
  20375. deprecated="not deprecated">
  20376. </field>
  20377. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  20378. transient="false" volatile="false"
  20379. static="true" final="true" visibility="public"
  20380. deprecated="not deprecated">
  20381. </field>
  20382. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  20383. transient="false" volatile="false"
  20384. static="true" final="true" visibility="public"
  20385. deprecated="not deprecated">
  20386. </field>
  20387. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  20388. transient="false" volatile="false"
  20389. static="true" final="true" visibility="public"
  20390. deprecated="not deprecated">
  20391. </field>
  20392. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  20393. transient="false" volatile="false"
  20394. static="true" final="true" visibility="public"
  20395. deprecated="not deprecated">
  20396. </field>
  20397. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  20398. transient="false" volatile="false"
  20399. static="true" final="true" visibility="public"
  20400. deprecated="not deprecated">
  20401. </field>
  20402. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  20403. transient="false" volatile="false"
  20404. static="true" final="true" visibility="public"
  20405. deprecated="not deprecated">
  20406. </field>
  20407. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  20408. transient="false" volatile="false"
  20409. static="true" final="true" visibility="public"
  20410. deprecated="not deprecated">
  20411. </field>
  20412. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  20413. transient="false" volatile="false"
  20414. static="true" final="true" visibility="public"
  20415. deprecated="not deprecated">
  20416. </field>
  20417. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  20418. transient="false" volatile="false"
  20419. static="true" final="true" visibility="public"
  20420. deprecated="not deprecated">
  20421. </field>
  20422. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  20423. transient="false" volatile="false"
  20424. static="true" final="true" visibility="public"
  20425. deprecated="not deprecated">
  20426. </field>
  20427. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  20428. transient="false" volatile="false"
  20429. static="true" final="true" visibility="public"
  20430. deprecated="not deprecated">
  20431. </field>
  20432. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  20433. transient="false" volatile="false"
  20434. static="true" final="true" visibility="public"
  20435. deprecated="not deprecated">
  20436. </field>
  20437. <doc>
  20438. <![CDATA[Enum representing POSIX errno values.]]>
  20439. </doc>
  20440. </class>
  20441. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  20442. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  20443. <class name="NativeIO" extends="java.lang.Object"
  20444. abstract="false"
  20445. static="false" final="false" visibility="public"
  20446. deprecated="not deprecated">
  20447. <constructor name="NativeIO"
  20448. static="false" final="false" visibility="public"
  20449. deprecated="not deprecated">
  20450. </constructor>
  20451. <method name="isAvailable" return="boolean"
  20452. abstract="false" native="false" synchronized="false"
  20453. static="true" final="false" visibility="public"
  20454. deprecated="not deprecated">
  20455. <doc>
  20456. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  20457. </doc>
  20458. </method>
  20459. <method name="open" return="java.io.FileDescriptor"
  20460. abstract="false" native="true" synchronized="false"
  20461. static="true" final="false" visibility="public"
  20462. deprecated="not deprecated">
  20463. <param name="path" type="java.lang.String"/>
  20464. <param name="flags" type="int"/>
  20465. <param name="mode" type="int"/>
  20466. <exception name="IOException" type="java.io.IOException"/>
  20467. <doc>
  20468. <![CDATA[Wrapper around open(2)]]>
  20469. </doc>
  20470. </method>
  20471. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  20472. abstract="false" native="true" synchronized="false"
  20473. static="true" final="false" visibility="public"
  20474. deprecated="not deprecated">
  20475. <param name="fd" type="java.io.FileDescriptor"/>
  20476. <exception name="IOException" type="java.io.IOException"/>
  20477. <doc>
  20478. <![CDATA[Wrapper around fstat(2)]]>
  20479. </doc>
  20480. </method>
  20481. <method name="chmod"
  20482. abstract="false" native="true" synchronized="false"
  20483. static="true" final="false" visibility="public"
  20484. deprecated="not deprecated">
  20485. <param name="path" type="java.lang.String"/>
  20486. <param name="mode" type="int"/>
  20487. <exception name="IOException" type="java.io.IOException"/>
  20488. <doc>
  20489. <![CDATA[Wrapper around chmod(2)]]>
  20490. </doc>
  20491. </method>
  20492. <method name="getOwner" return="java.lang.String"
  20493. abstract="false" native="false" synchronized="false"
  20494. static="true" final="false" visibility="public"
  20495. deprecated="not deprecated">
  20496. <param name="fd" type="java.io.FileDescriptor"/>
  20497. <exception name="IOException" type="java.io.IOException"/>
  20498. </method>
  20499. <field name="O_RDONLY" type="int"
  20500. transient="false" volatile="false"
  20501. static="true" final="true" visibility="public"
  20502. deprecated="not deprecated">
  20503. </field>
  20504. <field name="O_WRONLY" type="int"
  20505. transient="false" volatile="false"
  20506. static="true" final="true" visibility="public"
  20507. deprecated="not deprecated">
  20508. </field>
  20509. <field name="O_RDWR" type="int"
  20510. transient="false" volatile="false"
  20511. static="true" final="true" visibility="public"
  20512. deprecated="not deprecated">
  20513. </field>
  20514. <field name="O_CREAT" type="int"
  20515. transient="false" volatile="false"
  20516. static="true" final="true" visibility="public"
  20517. deprecated="not deprecated">
  20518. </field>
  20519. <field name="O_EXCL" type="int"
  20520. transient="false" volatile="false"
  20521. static="true" final="true" visibility="public"
  20522. deprecated="not deprecated">
  20523. </field>
  20524. <field name="O_NOCTTY" type="int"
  20525. transient="false" volatile="false"
  20526. static="true" final="true" visibility="public"
  20527. deprecated="not deprecated">
  20528. </field>
  20529. <field name="O_TRUNC" type="int"
  20530. transient="false" volatile="false"
  20531. static="true" final="true" visibility="public"
  20532. deprecated="not deprecated">
  20533. </field>
  20534. <field name="O_APPEND" type="int"
  20535. transient="false" volatile="false"
  20536. static="true" final="true" visibility="public"
  20537. deprecated="not deprecated">
  20538. </field>
  20539. <field name="O_NONBLOCK" type="int"
  20540. transient="false" volatile="false"
  20541. static="true" final="true" visibility="public"
  20542. deprecated="not deprecated">
  20543. </field>
  20544. <field name="O_SYNC" type="int"
  20545. transient="false" volatile="false"
  20546. static="true" final="true" visibility="public"
  20547. deprecated="not deprecated">
  20548. </field>
  20549. <field name="O_ASYNC" type="int"
  20550. transient="false" volatile="false"
  20551. static="true" final="true" visibility="public"
  20552. deprecated="not deprecated">
  20553. </field>
  20554. <field name="O_FSYNC" type="int"
  20555. transient="false" volatile="false"
  20556. static="true" final="true" visibility="public"
  20557. deprecated="not deprecated">
  20558. </field>
  20559. <field name="O_NDELAY" type="int"
  20560. transient="false" volatile="false"
  20561. static="true" final="true" visibility="public"
  20562. deprecated="not deprecated">
  20563. </field>
  20564. <doc>
  20565. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  20566. These functions should generally be used alongside a fallback to another
  20567. more portable mechanism.]]>
  20568. </doc>
  20569. </class>
  20570. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  20571. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  20572. <class name="NativeIO.Stat" extends="java.lang.Object"
  20573. abstract="false"
  20574. static="true" final="false" visibility="public"
  20575. deprecated="not deprecated">
  20576. <method name="toString" return="java.lang.String"
  20577. abstract="false" native="false" synchronized="false"
  20578. static="false" final="false" visibility="public"
  20579. deprecated="not deprecated">
  20580. </method>
  20581. <method name="getOwner" return="java.lang.String"
  20582. abstract="false" native="false" synchronized="false"
  20583. static="false" final="false" visibility="public"
  20584. deprecated="not deprecated">
  20585. </method>
  20586. <method name="getMode" return="int"
  20587. abstract="false" native="false" synchronized="false"
  20588. static="false" final="false" visibility="public"
  20589. deprecated="not deprecated">
  20590. </method>
  20591. <field name="S_IFMT" type="int"
  20592. transient="false" volatile="false"
  20593. static="true" final="true" visibility="public"
  20594. deprecated="not deprecated">
  20595. </field>
  20596. <field name="S_IFIFO" type="int"
  20597. transient="false" volatile="false"
  20598. static="true" final="true" visibility="public"
  20599. deprecated="not deprecated">
  20600. </field>
  20601. <field name="S_IFCHR" type="int"
  20602. transient="false" volatile="false"
  20603. static="true" final="true" visibility="public"
  20604. deprecated="not deprecated">
  20605. </field>
  20606. <field name="S_IFDIR" type="int"
  20607. transient="false" volatile="false"
  20608. static="true" final="true" visibility="public"
  20609. deprecated="not deprecated">
  20610. </field>
  20611. <field name="S_IFBLK" type="int"
  20612. transient="false" volatile="false"
  20613. static="true" final="true" visibility="public"
  20614. deprecated="not deprecated">
  20615. </field>
  20616. <field name="S_IFREG" type="int"
  20617. transient="false" volatile="false"
  20618. static="true" final="true" visibility="public"
  20619. deprecated="not deprecated">
  20620. </field>
  20621. <field name="S_IFLNK" type="int"
  20622. transient="false" volatile="false"
  20623. static="true" final="true" visibility="public"
  20624. deprecated="not deprecated">
  20625. </field>
  20626. <field name="S_IFSOCK" type="int"
  20627. transient="false" volatile="false"
  20628. static="true" final="true" visibility="public"
  20629. deprecated="not deprecated">
  20630. </field>
  20631. <field name="S_IFWHT" type="int"
  20632. transient="false" volatile="false"
  20633. static="true" final="true" visibility="public"
  20634. deprecated="not deprecated">
  20635. </field>
  20636. <field name="S_ISUID" type="int"
  20637. transient="false" volatile="false"
  20638. static="true" final="true" visibility="public"
  20639. deprecated="not deprecated">
  20640. </field>
  20641. <field name="S_ISGID" type="int"
  20642. transient="false" volatile="false"
  20643. static="true" final="true" visibility="public"
  20644. deprecated="not deprecated">
  20645. </field>
  20646. <field name="S_ISVTX" type="int"
  20647. transient="false" volatile="false"
  20648. static="true" final="true" visibility="public"
  20649. deprecated="not deprecated">
  20650. </field>
  20651. <field name="S_IRUSR" type="int"
  20652. transient="false" volatile="false"
  20653. static="true" final="true" visibility="public"
  20654. deprecated="not deprecated">
  20655. </field>
  20656. <field name="S_IWUSR" type="int"
  20657. transient="false" volatile="false"
  20658. static="true" final="true" visibility="public"
  20659. deprecated="not deprecated">
  20660. </field>
  20661. <field name="S_IXUSR" type="int"
  20662. transient="false" volatile="false"
  20663. static="true" final="true" visibility="public"
  20664. deprecated="not deprecated">
  20665. </field>
  20666. <doc>
  20667. <![CDATA[Result type of the fstat call]]>
  20668. </doc>
  20669. </class>
  20670. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  20671. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  20672. <class name="NativeIOException" extends="java.io.IOException"
  20673. abstract="false"
  20674. static="false" final="false" visibility="public"
  20675. deprecated="not deprecated">
  20676. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  20677. static="false" final="false" visibility="public"
  20678. deprecated="not deprecated">
  20679. </constructor>
  20680. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  20681. abstract="false" native="false" synchronized="false"
  20682. static="false" final="false" visibility="public"
  20683. deprecated="not deprecated">
  20684. </method>
  20685. <method name="toString" return="java.lang.String"
  20686. abstract="false" native="false" synchronized="false"
  20687. static="false" final="false" visibility="public"
  20688. deprecated="not deprecated">
  20689. </method>
  20690. <doc>
  20691. <![CDATA[An exception generated by a call to the native IO code.
  20692. These exceptions simply wrap <i>errno</i> result codes.]]>
  20693. </doc>
  20694. </class>
  20695. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  20696. </package>
  20697. <package name="org.apache.hadoop.io.retry">
  20698. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  20699. <class name="RetryPolicies" extends="java.lang.Object"
  20700. abstract="false"
  20701. static="false" final="false" visibility="public"
  20702. deprecated="not deprecated">
  20703. <constructor name="RetryPolicies"
  20704. static="false" final="false" visibility="public"
  20705. deprecated="not deprecated">
  20706. </constructor>
  20707. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20708. abstract="false" native="false" synchronized="false"
  20709. static="true" final="true" visibility="public"
  20710. deprecated="not deprecated">
  20711. <param name="maxRetries" type="int"/>
  20712. <param name="sleepTime" type="long"/>
  20713. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20714. <doc>
  20715. <![CDATA[<p>
  20716. Keep trying a limited number of times, waiting a fixed time between attempts,
  20717. and then fail by re-throwing the exception.
  20718. </p>]]>
  20719. </doc>
  20720. </method>
  20721. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20722. abstract="false" native="false" synchronized="false"
  20723. static="true" final="true" visibility="public"
  20724. deprecated="not deprecated">
  20725. <param name="maxTime" type="long"/>
  20726. <param name="sleepTime" type="long"/>
  20727. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20728. <doc>
  20729. <![CDATA[<p>
  20730. Keep trying for a maximum time, waiting a fixed time between attempts,
  20731. and then fail by re-throwing the exception.
  20732. </p>]]>
  20733. </doc>
  20734. </method>
  20735. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  20736. abstract="false" native="false" synchronized="false"
  20737. static="true" final="true" visibility="public"
  20738. deprecated="not deprecated">
  20739. <param name="maxRetries" type="int"/>
  20740. <param name="sleepTime" type="long"/>
  20741. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20742. <doc>
  20743. <![CDATA[<p>
  20744. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  20745. and then fail by re-throwing the exception.
  20746. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  20747. </p>]]>
  20748. </doc>
  20749. </method>
  20750. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  20751. abstract="false" native="false" synchronized="false"
  20752. static="true" final="true" visibility="public"
  20753. deprecated="not deprecated">
  20754. <param name="maxRetries" type="int"/>
  20755. <param name="sleepTime" type="long"/>
  20756. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  20757. <doc>
  20758. <![CDATA[<p>
  20759. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  20760. and then fail by re-throwing the exception.
  20761. The time between attempts is <code>sleepTime</code> mutliplied by a random
  20762. number in the range of [0, 2 to the number of retries)
  20763. </p>]]>
  20764. </doc>
  20765. </method>
  20766. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  20767. abstract="false" native="false" synchronized="false"
  20768. static="true" final="true" visibility="public"
  20769. deprecated="not deprecated">
  20770. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20771. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  20772. <doc>
  20773. <![CDATA[<p>
  20774. Set a default policy with some explicit handlers for specific exceptions.
  20775. </p>]]>
  20776. </doc>
  20777. </method>
  20778. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  20779. abstract="false" native="false" synchronized="false"
  20780. static="true" final="true" visibility="public"
  20781. deprecated="not deprecated">
  20782. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20783. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  20784. <doc>
  20785. <![CDATA[<p>
  20786. A retry policy for RemoteException
  20787. Set a default policy with some explicit handlers for specific exceptions.
  20788. </p>]]>
  20789. </doc>
  20790. </method>
  20791. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  20792. transient="false" volatile="false"
  20793. static="true" final="true" visibility="public"
  20794. deprecated="not deprecated">
  20795. <doc>
  20796. <![CDATA[<p>
  20797. Try once, and fail by re-throwing the exception.
  20798. This corresponds to having no retry mechanism in place.
  20799. </p>]]>
  20800. </doc>
  20801. </field>
  20802. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  20803. transient="false" volatile="false"
  20804. static="true" final="true" visibility="public"
  20805. deprecated="not deprecated">
  20806. <doc>
  20807. <![CDATA[<p>
  20808. Try once, and fail silently for <code>void</code> methods, or by
  20809. re-throwing the exception for non-<code>void</code> methods.
  20810. </p>]]>
  20811. </doc>
  20812. </field>
  20813. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  20814. transient="false" volatile="false"
  20815. static="true" final="true" visibility="public"
  20816. deprecated="not deprecated">
  20817. <doc>
  20818. <![CDATA[<p>
  20819. Keep trying forever.
  20820. </p>]]>
  20821. </doc>
  20822. </field>
  20823. <doc>
  20824. <![CDATA[<p>
  20825. A collection of useful implementations of {@link RetryPolicy}.
  20826. </p>]]>
  20827. </doc>
  20828. </class>
  20829. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  20830. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  20831. <interface name="RetryPolicy" abstract="true"
  20832. static="false" final="false" visibility="public"
  20833. deprecated="not deprecated">
  20834. <method name="shouldRetry" return="boolean"
  20835. abstract="false" native="false" synchronized="false"
  20836. static="false" final="false" visibility="public"
  20837. deprecated="not deprecated">
  20838. <param name="e" type="java.lang.Exception"/>
  20839. <param name="retries" type="int"/>
  20840. <exception name="Exception" type="java.lang.Exception"/>
  20841. <doc>
  20842. <![CDATA[<p>
  20843. Determines whether the framework should retry a
  20844. method for the given exception, and the number
  20845. of retries that have been made for that operation
  20846. so far.
  20847. </p>
  20848. @param e The exception that caused the method to fail.
  20849. @param retries The number of times the method has been retried.
  20850. @return <code>true</code> if the method should be retried,
  20851. <code>false</code> if the method should not be retried
  20852. but shouldn't fail with an exception (only for void methods).
  20853. @throws Exception The re-thrown exception <code>e</code> indicating
  20854. that the method failed and should not be retried further.]]>
  20855. </doc>
  20856. </method>
  20857. <doc>
  20858. <![CDATA[<p>
  20859. Specifies a policy for retrying method failures.
  20860. Implementations of this interface should be immutable.
  20861. </p>]]>
  20862. </doc>
  20863. </interface>
  20864. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  20865. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  20866. <class name="RetryProxy" extends="java.lang.Object"
  20867. abstract="false"
  20868. static="false" final="false" visibility="public"
  20869. deprecated="not deprecated">
  20870. <constructor name="RetryProxy"
  20871. static="false" final="false" visibility="public"
  20872. deprecated="not deprecated">
  20873. </constructor>
  20874. <method name="create" return="java.lang.Object"
  20875. abstract="false" native="false" synchronized="false"
  20876. static="true" final="false" visibility="public"
  20877. deprecated="not deprecated">
  20878. <param name="iface" type="java.lang.Class"/>
  20879. <param name="implementation" type="java.lang.Object"/>
  20880. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  20881. <doc>
  20882. <![CDATA[<p>
  20883. Create a proxy for an interface of an implementation class
  20884. using the same retry policy for each method in the interface.
  20885. </p>
  20886. @param iface the interface that the retry will implement
  20887. @param implementation the instance whose methods should be retried
  20888. @param retryPolicy the policy for retirying method call failures
  20889. @return the retry proxy]]>
  20890. </doc>
  20891. </method>
  20892. <method name="create" return="java.lang.Object"
  20893. abstract="false" native="false" synchronized="false"
  20894. static="true" final="false" visibility="public"
  20895. deprecated="not deprecated">
  20896. <param name="iface" type="java.lang.Class"/>
  20897. <param name="implementation" type="java.lang.Object"/>
  20898. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  20899. <doc>
  20900. <![CDATA[<p>
  20901. Create a proxy for an interface of an implementation class
  20902. using the a set of retry policies specified by method name.
  20903. If no retry policy is defined for a method then a default of
  20904. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  20905. </p>
  20906. @param iface the interface that the retry will implement
  20907. @param implementation the instance whose methods should be retried
  20908. @param methodNameToPolicyMap a map of method names to retry policies
  20909. @return the retry proxy]]>
  20910. </doc>
  20911. </method>
  20912. <doc>
  20913. <![CDATA[<p>
  20914. A factory for creating retry proxies.
  20915. </p>]]>
  20916. </doc>
  20917. </class>
  20918. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  20919. </package>
  20920. <package name="org.apache.hadoop.io.serializer">
  20921. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  20922. <interface name="Deserializer" abstract="true"
  20923. static="false" final="false" visibility="public"
  20924. deprecated="not deprecated">
  20925. <method name="open"
  20926. abstract="false" native="false" synchronized="false"
  20927. static="false" final="false" visibility="public"
  20928. deprecated="not deprecated">
  20929. <param name="in" type="java.io.InputStream"/>
  20930. <exception name="IOException" type="java.io.IOException"/>
  20931. <doc>
  20932. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  20933. </doc>
  20934. </method>
  20935. <method name="deserialize" return="java.lang.Object"
  20936. abstract="false" native="false" synchronized="false"
  20937. static="false" final="false" visibility="public"
  20938. deprecated="not deprecated">
  20939. <param name="t" type="java.lang.Object"/>
  20940. <exception name="IOException" type="java.io.IOException"/>
  20941. <doc>
  20942. <![CDATA[<p>
  20943. Deserialize the next object from the underlying input stream.
  20944. If the object <code>t</code> is non-null then this deserializer
  20945. <i>may</i> set its internal state to the next object read from the input
  20946. stream. Otherwise, if the object <code>t</code> is null a new
  20947. deserialized object will be created.
  20948. </p>
  20949. @return the deserialized object]]>
  20950. </doc>
  20951. </method>
  20952. <method name="close"
  20953. abstract="false" native="false" synchronized="false"
  20954. static="false" final="false" visibility="public"
  20955. deprecated="not deprecated">
  20956. <exception name="IOException" type="java.io.IOException"/>
  20957. <doc>
  20958. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  20959. </doc>
  20960. </method>
  20961. <doc>
  20962. <![CDATA[<p>
  20963. Provides a facility for deserializing objects of type <T> from an
  20964. {@link InputStream}.
  20965. </p>
  20966. <p>
  20967. Deserializers are stateful, but must not buffer the input since
  20968. other producers may read from the input between calls to
  20969. {@link #deserialize(Object)}.
  20970. </p>
  20971. @param <T>]]>
  20972. </doc>
  20973. </interface>
  20974. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  20975. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  20976. <class name="DeserializerComparator" extends="java.lang.Object"
  20977. abstract="true"
  20978. static="false" final="false" visibility="public"
  20979. deprecated="not deprecated">
  20980. <implements name="org.apache.hadoop.io.RawComparator"/>
  20981. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  20982. static="false" final="false" visibility="protected"
  20983. deprecated="not deprecated">
  20984. <exception name="IOException" type="java.io.IOException"/>
  20985. </constructor>
  20986. <method name="compare" return="int"
  20987. abstract="false" native="false" synchronized="false"
  20988. static="false" final="false" visibility="public"
  20989. deprecated="not deprecated">
  20990. <param name="b1" type="byte[]"/>
  20991. <param name="s1" type="int"/>
  20992. <param name="l1" type="int"/>
  20993. <param name="b2" type="byte[]"/>
  20994. <param name="s2" type="int"/>
  20995. <param name="l2" type="int"/>
  20996. </method>
  20997. <doc>
  20998. <![CDATA[<p>
  20999. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  21000. the objects to be compared so that the standard {@link Comparator} can
  21001. be used to compare them.
  21002. </p>
  21003. <p>
  21004. One may optimize compare-intensive operations by using a custom
  21005. implementation of {@link RawComparator} that operates directly
  21006. on byte representations.
  21007. </p>
  21008. @param <T>]]>
  21009. </doc>
  21010. </class>
  21011. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  21012. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  21013. <class name="JavaSerialization" extends="java.lang.Object"
  21014. abstract="false"
  21015. static="false" final="false" visibility="public"
  21016. deprecated="not deprecated">
  21017. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  21018. <constructor name="JavaSerialization"
  21019. static="false" final="false" visibility="public"
  21020. deprecated="not deprecated">
  21021. </constructor>
  21022. <method name="accept" return="boolean"
  21023. abstract="false" native="false" synchronized="false"
  21024. static="false" final="false" visibility="public"
  21025. deprecated="not deprecated">
  21026. <param name="c" type="java.lang.Class"/>
  21027. </method>
  21028. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21029. abstract="false" native="false" synchronized="false"
  21030. static="false" final="false" visibility="public"
  21031. deprecated="not deprecated">
  21032. <param name="c" type="java.lang.Class"/>
  21033. </method>
  21034. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21035. abstract="false" native="false" synchronized="false"
  21036. static="false" final="false" visibility="public"
  21037. deprecated="not deprecated">
  21038. <param name="c" type="java.lang.Class"/>
  21039. </method>
  21040. <doc>
  21041. <![CDATA[<p>
  21042. An experimental {@link Serialization} for Java {@link Serializable} classes.
  21043. </p>
  21044. @see JavaSerializationComparator]]>
  21045. </doc>
  21046. </class>
  21047. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  21048. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  21049. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  21050. abstract="false"
  21051. static="false" final="false" visibility="public"
  21052. deprecated="not deprecated">
  21053. <constructor name="JavaSerializationComparator"
  21054. static="false" final="false" visibility="public"
  21055. deprecated="not deprecated">
  21056. <exception name="IOException" type="java.io.IOException"/>
  21057. </constructor>
  21058. <method name="compare" return="int"
  21059. abstract="false" native="false" synchronized="false"
  21060. static="false" final="false" visibility="public"
  21061. deprecated="not deprecated">
  21062. <param name="o1" type="java.io.Serializable"/>
  21063. <param name="o2" type="java.io.Serializable"/>
  21064. </method>
  21065. <doc>
  21066. <![CDATA[<p>
  21067. A {@link RawComparator} that uses a {@link JavaSerialization}
  21068. {@link Deserializer} to deserialize objects that are then compared via
  21069. their {@link Comparable} interfaces.
  21070. </p>
  21071. @param <T>
  21072. @see JavaSerialization]]>
  21073. </doc>
  21074. </class>
  21075. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  21076. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  21077. <interface name="Serialization" abstract="true"
  21078. static="false" final="false" visibility="public"
  21079. deprecated="not deprecated">
  21080. <method name="accept" return="boolean"
  21081. abstract="false" native="false" synchronized="false"
  21082. static="false" final="false" visibility="public"
  21083. deprecated="not deprecated">
  21084. <param name="c" type="java.lang.Class"/>
  21085. <doc>
  21086. <![CDATA[Allows clients to test whether this {@link Serialization}
  21087. supports the given class.]]>
  21088. </doc>
  21089. </method>
  21090. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21091. abstract="false" native="false" synchronized="false"
  21092. static="false" final="false" visibility="public"
  21093. deprecated="not deprecated">
  21094. <param name="c" type="java.lang.Class"/>
  21095. <doc>
  21096. <![CDATA[@return a {@link Serializer} for the given class.]]>
  21097. </doc>
  21098. </method>
  21099. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21100. abstract="false" native="false" synchronized="false"
  21101. static="false" final="false" visibility="public"
  21102. deprecated="not deprecated">
  21103. <param name="c" type="java.lang.Class"/>
  21104. <doc>
  21105. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  21106. </doc>
  21107. </method>
  21108. <doc>
  21109. <![CDATA[<p>
  21110. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  21111. </p>
  21112. @param <T>]]>
  21113. </doc>
  21114. </interface>
  21115. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  21116. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  21117. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  21118. abstract="false"
  21119. static="false" final="false" visibility="public"
  21120. deprecated="not deprecated">
  21121. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  21122. static="false" final="false" visibility="public"
  21123. deprecated="not deprecated">
  21124. <doc>
  21125. <![CDATA[<p>
  21126. Serializations are found by reading the <code>io.serializations</code>
  21127. property from <code>conf</code>, which is a comma-delimited list of
  21128. classnames.
  21129. </p>]]>
  21130. </doc>
  21131. </constructor>
  21132. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21133. abstract="false" native="false" synchronized="false"
  21134. static="false" final="false" visibility="public"
  21135. deprecated="not deprecated">
  21136. <param name="c" type="java.lang.Class"/>
  21137. </method>
  21138. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21139. abstract="false" native="false" synchronized="false"
  21140. static="false" final="false" visibility="public"
  21141. deprecated="not deprecated">
  21142. <param name="c" type="java.lang.Class"/>
  21143. </method>
  21144. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  21145. abstract="false" native="false" synchronized="false"
  21146. static="false" final="false" visibility="public"
  21147. deprecated="not deprecated">
  21148. <param name="c" type="java.lang.Class"/>
  21149. </method>
  21150. <doc>
  21151. <![CDATA[<p>
  21152. A factory for {@link Serialization}s.
  21153. </p>]]>
  21154. </doc>
  21155. </class>
  21156. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  21157. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  21158. <interface name="Serializer" abstract="true"
  21159. static="false" final="false" visibility="public"
  21160. deprecated="not deprecated">
  21161. <method name="open"
  21162. abstract="false" native="false" synchronized="false"
  21163. static="false" final="false" visibility="public"
  21164. deprecated="not deprecated">
  21165. <param name="out" type="java.io.OutputStream"/>
  21166. <exception name="IOException" type="java.io.IOException"/>
  21167. <doc>
  21168. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  21169. </doc>
  21170. </method>
  21171. <method name="serialize"
  21172. abstract="false" native="false" synchronized="false"
  21173. static="false" final="false" visibility="public"
  21174. deprecated="not deprecated">
  21175. <param name="t" type="java.lang.Object"/>
  21176. <exception name="IOException" type="java.io.IOException"/>
  21177. <doc>
  21178. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  21179. </doc>
  21180. </method>
  21181. <method name="close"
  21182. abstract="false" native="false" synchronized="false"
  21183. static="false" final="false" visibility="public"
  21184. deprecated="not deprecated">
  21185. <exception name="IOException" type="java.io.IOException"/>
  21186. <doc>
  21187. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  21188. </doc>
  21189. </method>
  21190. <doc>
  21191. <![CDATA[<p>
  21192. Provides a facility for serializing objects of type <T> to an
  21193. {@link OutputStream}.
  21194. </p>
  21195. <p>
  21196. Serializers are stateful, but must not buffer the output since
  21197. other producers may write to the output between calls to
  21198. {@link #serialize(Object)}.
  21199. </p>
  21200. @param <T>]]>
  21201. </doc>
  21202. </interface>
  21203. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  21204. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  21205. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  21206. abstract="false"
  21207. static="false" final="false" visibility="public"
  21208. deprecated="not deprecated">
  21209. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  21210. <constructor name="WritableSerialization"
  21211. static="false" final="false" visibility="public"
  21212. deprecated="not deprecated">
  21213. </constructor>
  21214. <method name="accept" return="boolean"
  21215. abstract="false" native="false" synchronized="false"
  21216. static="false" final="false" visibility="public"
  21217. deprecated="not deprecated">
  21218. <param name="c" type="java.lang.Class"/>
  21219. </method>
  21220. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  21221. abstract="false" native="false" synchronized="false"
  21222. static="false" final="false" visibility="public"
  21223. deprecated="not deprecated">
  21224. <param name="c" type="java.lang.Class"/>
  21225. </method>
  21226. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  21227. abstract="false" native="false" synchronized="false"
  21228. static="false" final="false" visibility="public"
  21229. deprecated="not deprecated">
  21230. <param name="c" type="java.lang.Class"/>
  21231. </method>
  21232. <doc>
  21233. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  21234. {@link Writable#write(java.io.DataOutput)} and
  21235. {@link Writable#readFields(java.io.DataInput)}.]]>
  21236. </doc>
  21237. </class>
  21238. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  21239. </package>
  21240. <package name="org.apache.hadoop.ipc">
  21241. <!-- start class org.apache.hadoop.ipc.Client -->
  21242. <class name="Client" extends="java.lang.Object"
  21243. abstract="false"
  21244. static="false" final="false" visibility="public"
  21245. deprecated="not deprecated">
  21246. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  21247. static="false" final="false" visibility="public"
  21248. deprecated="not deprecated">
  21249. <doc>
  21250. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  21251. class.]]>
  21252. </doc>
  21253. </constructor>
  21254. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  21255. static="false" final="false" visibility="public"
  21256. deprecated="not deprecated">
  21257. <doc>
  21258. <![CDATA[Construct an IPC client with the default SocketFactory
  21259. @param valueClass
  21260. @param conf]]>
  21261. </doc>
  21262. </constructor>
  21263. <method name="setPingInterval"
  21264. abstract="false" native="false" synchronized="false"
  21265. static="true" final="true" visibility="public"
  21266. deprecated="not deprecated">
  21267. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21268. <param name="pingInterval" type="int"/>
  21269. <doc>
  21270. <![CDATA[set the ping interval value in configuration
  21271. @param conf Configuration
  21272. @param pingInterval the ping interval]]>
  21273. </doc>
  21274. </method>
  21275. <method name="stop"
  21276. abstract="false" native="false" synchronized="false"
  21277. static="false" final="false" visibility="public"
  21278. deprecated="not deprecated">
  21279. <doc>
  21280. <![CDATA[Stop all threads related to this client. No further calls may be made
  21281. using this client.]]>
  21282. </doc>
  21283. </method>
  21284. <method name="call" return="org.apache.hadoop.io.Writable"
  21285. abstract="false" native="false" synchronized="false"
  21286. static="false" final="false" visibility="public"
  21287. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21288. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21289. <param name="address" type="java.net.InetSocketAddress"/>
  21290. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21291. <exception name="IOException" type="java.io.IOException"/>
  21292. <doc>
  21293. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21294. <code>address</code>, returning the value. Throws exceptions if there are
  21295. network problems or if the remote code threw an exception.
  21296. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21297. </doc>
  21298. </method>
  21299. <method name="call" return="org.apache.hadoop.io.Writable"
  21300. abstract="false" native="false" synchronized="false"
  21301. static="false" final="false" visibility="public"
  21302. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21303. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21304. <param name="addr" type="java.net.InetSocketAddress"/>
  21305. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21306. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21307. <exception name="IOException" type="java.io.IOException"/>
  21308. <doc>
  21309. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21310. <code>address</code> with the <code>ticket</code> credentials, returning
  21311. the value.
  21312. Throws exceptions if there are network problems or if the remote code
  21313. threw an exception.
  21314. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21315. </doc>
  21316. </method>
  21317. <method name="call" return="org.apache.hadoop.io.Writable"
  21318. abstract="false" native="false" synchronized="false"
  21319. static="false" final="false" visibility="public"
  21320. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  21321. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21322. <param name="addr" type="java.net.InetSocketAddress"/>
  21323. <param name="protocol" type="java.lang.Class"/>
  21324. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21325. <param name="rpcTimeout" type="int"/>
  21326. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21327. <exception name="IOException" type="java.io.IOException"/>
  21328. <doc>
  21329. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21330. <code>address</code> which is servicing the <code>protocol</code> protocol,
  21331. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  21332. timeout, returning the value.
  21333. Throws exceptions if there are network problems or if the remote code
  21334. threw an exception.
  21335. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  21336. </doc>
  21337. </method>
  21338. <method name="call" return="org.apache.hadoop.io.Writable"
  21339. abstract="false" native="false" synchronized="false"
  21340. static="false" final="false" visibility="public"
  21341. deprecated="not deprecated">
  21342. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21343. <param name="addr" type="java.net.InetSocketAddress"/>
  21344. <param name="protocol" type="java.lang.Class"/>
  21345. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21346. <param name="rpcTimeout" type="int"/>
  21347. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21348. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21349. <exception name="IOException" type="java.io.IOException"/>
  21350. <doc>
  21351. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21352. <code>address</code> which is servicing the <code>protocol</code> protocol,
  21353. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  21354. and <code>conf</code> as configuration for this connection, returning the
  21355. value. Throws exceptions if there are network problems or if the remote code
  21356. threw an exception.]]>
  21357. </doc>
  21358. </method>
  21359. <method name="call" return="org.apache.hadoop.io.Writable"
  21360. abstract="false" native="false" synchronized="false"
  21361. static="false" final="false" visibility="public"
  21362. deprecated="not deprecated">
  21363. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21364. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  21365. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21366. <exception name="IOException" type="java.io.IOException"/>
  21367. <doc>
  21368. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  21369. <code>remoteId</code>, returning the value.
  21370. Throws exceptions if there are network problems or if the remote code
  21371. threw an exception.]]>
  21372. </doc>
  21373. </method>
  21374. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21375. abstract="false" native="false" synchronized="false"
  21376. static="false" final="false" visibility="public"
  21377. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  21378. Class, UserGroupInformation, Configuration)} instead">
  21379. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21380. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21381. <exception name="IOException" type="java.io.IOException"/>
  21382. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21383. <doc>
  21384. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  21385. Class, UserGroupInformation, Configuration)} instead]]>
  21386. </doc>
  21387. </method>
  21388. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21389. abstract="false" native="false" synchronized="false"
  21390. static="false" final="false" visibility="public"
  21391. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  21392. Class, UserGroupInformation, Configuration)} instead">
  21393. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21394. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21395. <param name="protocol" type="java.lang.Class"/>
  21396. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21397. <exception name="IOException" type="java.io.IOException"/>
  21398. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21399. <doc>
  21400. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  21401. Class, UserGroupInformation, Configuration)} instead]]>
  21402. </doc>
  21403. </method>
  21404. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21405. abstract="false" native="false" synchronized="false"
  21406. static="false" final="false" visibility="public"
  21407. deprecated="not deprecated">
  21408. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21409. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21410. <param name="protocol" type="java.lang.Class"/>
  21411. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21412. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21413. <exception name="IOException" type="java.io.IOException"/>
  21414. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21415. <doc>
  21416. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  21417. corresponding address. When all values are available, or have timed out
  21418. or errored, the collected results are returned in an array. The array
  21419. contains nulls for calls that timed out or errored.]]>
  21420. </doc>
  21421. </method>
  21422. <field name="LOG" type="org.apache.commons.logging.Log"
  21423. transient="false" volatile="false"
  21424. static="true" final="true" visibility="public"
  21425. deprecated="not deprecated">
  21426. </field>
  21427. <doc>
  21428. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  21429. parameter, and return a {@link Writable} as their value. A service runs on
  21430. a port and is defined by a parameter class and a value class.
  21431. @see Server]]>
  21432. </doc>
  21433. </class>
  21434. <!-- end class org.apache.hadoop.ipc.Client -->
  21435. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  21436. <class name="RemoteException" extends="java.io.IOException"
  21437. abstract="false"
  21438. static="false" final="false" visibility="public"
  21439. deprecated="not deprecated">
  21440. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  21441. static="false" final="false" visibility="public"
  21442. deprecated="not deprecated">
  21443. </constructor>
  21444. <method name="getClassName" return="java.lang.String"
  21445. abstract="false" native="false" synchronized="false"
  21446. static="false" final="false" visibility="public"
  21447. deprecated="not deprecated">
  21448. </method>
  21449. <method name="unwrapRemoteException" return="java.io.IOException"
  21450. abstract="false" native="false" synchronized="false"
  21451. static="false" final="false" visibility="public"
  21452. deprecated="not deprecated">
  21453. <param name="lookupTypes" type="java.lang.Class[]"/>
  21454. <doc>
  21455. <![CDATA[If this remote exception wraps up one of the lookupTypes
  21456. then return this exception.
  21457. <p>
  21458. Unwraps any IOException.
  21459. @param lookupTypes the desired exception class.
  21460. @return IOException, which is either the lookupClass exception or this.]]>
  21461. </doc>
  21462. </method>
  21463. <method name="unwrapRemoteException" return="java.io.IOException"
  21464. abstract="false" native="false" synchronized="false"
  21465. static="false" final="false" visibility="public"
  21466. deprecated="not deprecated">
  21467. <doc>
  21468. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  21469. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  21470. a <code>String</code> as a parameter.
  21471. Otherwise it returns this.
  21472. @return <code>Throwable]]>
  21473. </doc>
  21474. </method>
  21475. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  21476. abstract="false" native="false" synchronized="false"
  21477. static="true" final="false" visibility="public"
  21478. deprecated="not deprecated">
  21479. <param name="attrs" type="org.xml.sax.Attributes"/>
  21480. <doc>
  21481. <![CDATA[Create RemoteException from attributes]]>
  21482. </doc>
  21483. </method>
  21484. </class>
  21485. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  21486. <!-- start class org.apache.hadoop.ipc.RPC -->
  21487. <class name="RPC" extends="java.lang.Object"
  21488. abstract="false"
  21489. static="false" final="false" visibility="public"
  21490. deprecated="not deprecated">
  21491. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21492. abstract="false" native="false" synchronized="false"
  21493. static="true" final="false" visibility="public"
  21494. deprecated="not deprecated">
  21495. <param name="protocol" type="java.lang.Class"/>
  21496. <param name="clientVersion" type="long"/>
  21497. <param name="addr" type="java.net.InetSocketAddress"/>
  21498. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21499. <exception name="IOException" type="java.io.IOException"/>
  21500. </method>
  21501. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21502. abstract="false" native="false" synchronized="false"
  21503. static="true" final="false" visibility="public"
  21504. deprecated="not deprecated">
  21505. <param name="protocol" type="java.lang.Class"/>
  21506. <param name="clientVersion" type="long"/>
  21507. <param name="addr" type="java.net.InetSocketAddress"/>
  21508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21509. <param name="factory" type="javax.net.SocketFactory"/>
  21510. <exception name="IOException" type="java.io.IOException"/>
  21511. <doc>
  21512. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21513. talking to a server at the named address.]]>
  21514. </doc>
  21515. </method>
  21516. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21517. abstract="false" native="false" synchronized="false"
  21518. static="true" final="false" visibility="public"
  21519. deprecated="not deprecated">
  21520. <param name="protocol" type="java.lang.Class"/>
  21521. <param name="clientVersion" type="long"/>
  21522. <param name="addr" type="java.net.InetSocketAddress"/>
  21523. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21524. <param name="factory" type="javax.net.SocketFactory"/>
  21525. <param name="rpcTimeout" type="int"/>
  21526. <exception name="IOException" type="java.io.IOException"/>
  21527. <doc>
  21528. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21529. talking to a server at the named address.]]>
  21530. </doc>
  21531. </method>
  21532. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21533. abstract="false" native="false" synchronized="false"
  21534. static="true" final="false" visibility="public"
  21535. deprecated="not deprecated">
  21536. <param name="protocol" type="java.lang.Class"/>
  21537. <param name="clientVersion" type="long"/>
  21538. <param name="addr" type="java.net.InetSocketAddress"/>
  21539. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21540. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21541. <param name="factory" type="javax.net.SocketFactory"/>
  21542. <exception name="IOException" type="java.io.IOException"/>
  21543. <doc>
  21544. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21545. talking to a server at the named address.]]>
  21546. </doc>
  21547. </method>
  21548. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21549. abstract="false" native="false" synchronized="false"
  21550. static="true" final="false" visibility="public"
  21551. deprecated="not deprecated">
  21552. <param name="protocol" type="java.lang.Class"/>
  21553. <param name="clientVersion" type="long"/>
  21554. <param name="addr" type="java.net.InetSocketAddress"/>
  21555. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21556. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21557. <param name="factory" type="javax.net.SocketFactory"/>
  21558. <param name="rpcTimeout" type="int"/>
  21559. <exception name="IOException" type="java.io.IOException"/>
  21560. <doc>
  21561. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21562. talking to a server at the named address.]]>
  21563. </doc>
  21564. </method>
  21565. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21566. abstract="false" native="false" synchronized="false"
  21567. static="true" final="false" visibility="public"
  21568. deprecated="not deprecated">
  21569. <param name="protocol" type="java.lang.Class"/>
  21570. <param name="clientVersion" type="long"/>
  21571. <param name="addr" type="java.net.InetSocketAddress"/>
  21572. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21573. <exception name="IOException" type="java.io.IOException"/>
  21574. <doc>
  21575. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  21576. @param protocol
  21577. @param clientVersion
  21578. @param addr
  21579. @param conf
  21580. @return a proxy instance
  21581. @throws IOException]]>
  21582. </doc>
  21583. </method>
  21584. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21585. abstract="false" native="false" synchronized="false"
  21586. static="true" final="false" visibility="public"
  21587. deprecated="not deprecated">
  21588. <param name="protocol" type="java.lang.Class"/>
  21589. <param name="clientVersion" type="long"/>
  21590. <param name="addr" type="java.net.InetSocketAddress"/>
  21591. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21592. <param name="rpcTimeout" type="int"/>
  21593. <exception name="IOException" type="java.io.IOException"/>
  21594. </method>
  21595. <method name="stopProxy"
  21596. abstract="false" native="false" synchronized="false"
  21597. static="true" final="false" visibility="public"
  21598. deprecated="not deprecated">
  21599. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  21600. <doc>
  21601. <![CDATA[Stop this proxy and release its invoker's resource
  21602. @param proxy the proxy to be stopped]]>
  21603. </doc>
  21604. </method>
  21605. <method name="call" return="java.lang.Object[]"
  21606. abstract="false" native="false" synchronized="false"
  21607. static="true" final="false" visibility="public"
  21608. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  21609. <param name="method" type="java.lang.reflect.Method"/>
  21610. <param name="params" type="java.lang.Object[][]"/>
  21611. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  21612. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21613. <exception name="IOException" type="java.io.IOException"/>
  21614. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21615. <doc>
  21616. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  21617. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  21618. </doc>
  21619. </method>
  21620. <method name="call" return="java.lang.Object[]"
  21621. abstract="false" native="false" synchronized="false"
  21622. static="true" final="false" visibility="public"
  21623. deprecated="not deprecated">
  21624. <param name="method" type="java.lang.reflect.Method"/>
  21625. <param name="params" type="java.lang.Object[][]"/>
  21626. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  21627. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21628. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21629. <exception name="IOException" type="java.io.IOException"/>
  21630. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21631. <doc>
  21632. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  21633. </doc>
  21634. </method>
  21635. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21636. abstract="false" native="false" synchronized="false"
  21637. static="true" final="false" visibility="public"
  21638. deprecated="not deprecated">
  21639. <param name="instance" type="java.lang.Object"/>
  21640. <param name="bindAddress" type="java.lang.String"/>
  21641. <param name="port" type="int"/>
  21642. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21643. <exception name="IOException" type="java.io.IOException"/>
  21644. <doc>
  21645. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21646. port and address.]]>
  21647. </doc>
  21648. </method>
  21649. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21650. abstract="false" native="false" synchronized="false"
  21651. static="true" final="false" visibility="public"
  21652. deprecated="not deprecated">
  21653. <param name="instance" type="java.lang.Object"/>
  21654. <param name="bindAddress" type="java.lang.String"/>
  21655. <param name="port" type="int"/>
  21656. <param name="numHandlers" type="int"/>
  21657. <param name="verbose" type="boolean"/>
  21658. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21659. <exception name="IOException" type="java.io.IOException"/>
  21660. <doc>
  21661. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21662. port and address.]]>
  21663. </doc>
  21664. </method>
  21665. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21666. abstract="false" native="false" synchronized="false"
  21667. static="true" final="false" visibility="public"
  21668. deprecated="not deprecated">
  21669. <param name="instance" type="java.lang.Object"/>
  21670. <param name="bindAddress" type="java.lang.String"/>
  21671. <param name="port" type="int"/>
  21672. <param name="numHandlers" type="int"/>
  21673. <param name="verbose" type="boolean"/>
  21674. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21675. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  21676. <exception name="IOException" type="java.io.IOException"/>
  21677. <doc>
  21678. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21679. port and address, with a secret manager.]]>
  21680. </doc>
  21681. </method>
  21682. <doc>
  21683. <![CDATA[A simple RPC mechanism.
  21684. A <i>protocol</i> is a Java interface. All parameters and return types must
  21685. be one of:
  21686. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  21687. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  21688. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  21689. <li>a {@link String}; or</li>
  21690. <li>a {@link Writable}; or</li>
  21691. <li>an array of the above types</li> </ul>
  21692. All methods in the protocol should throw only IOException. No field data of
  21693. the protocol instance is transmitted.]]>
  21694. </doc>
  21695. </class>
  21696. <!-- end class org.apache.hadoop.ipc.RPC -->
  21697. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  21698. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  21699. abstract="false"
  21700. static="true" final="false" visibility="public"
  21701. deprecated="not deprecated">
  21702. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  21703. static="false" final="false" visibility="public"
  21704. deprecated="not deprecated">
  21705. <exception name="IOException" type="java.io.IOException"/>
  21706. <doc>
  21707. <![CDATA[Construct an RPC server.
  21708. @param instance the instance whose methods will be called
  21709. @param conf the configuration to use
  21710. @param bindAddress the address to bind on to listen for connection
  21711. @param port the port to listen for connections on]]>
  21712. </doc>
  21713. </constructor>
  21714. <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"
  21715. static="false" final="false" visibility="public"
  21716. deprecated="not deprecated">
  21717. <exception name="IOException" type="java.io.IOException"/>
  21718. <doc>
  21719. <![CDATA[Construct an RPC server.
  21720. @param instance the instance whose methods will be called
  21721. @param conf the configuration to use
  21722. @param bindAddress the address to bind on to listen for connection
  21723. @param port the port to listen for connections on
  21724. @param numHandlers the number of method handler threads to run
  21725. @param verbose whether each call should be logged]]>
  21726. </doc>
  21727. </constructor>
  21728. <method name="call" return="org.apache.hadoop.io.Writable"
  21729. abstract="false" native="false" synchronized="false"
  21730. static="false" final="false" visibility="public"
  21731. deprecated="not deprecated">
  21732. <param name="protocol" type="java.lang.Class"/>
  21733. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21734. <param name="receivedTime" type="long"/>
  21735. <exception name="IOException" type="java.io.IOException"/>
  21736. </method>
  21737. <doc>
  21738. <![CDATA[An RPC Server.]]>
  21739. </doc>
  21740. </class>
  21741. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  21742. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  21743. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  21744. abstract="false"
  21745. static="true" final="false" visibility="public"
  21746. deprecated="not deprecated">
  21747. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  21748. static="false" final="false" visibility="public"
  21749. deprecated="not deprecated">
  21750. <doc>
  21751. <![CDATA[Create a version mismatch exception
  21752. @param interfaceName the name of the protocol mismatch
  21753. @param clientVersion the client's version of the protocol
  21754. @param serverVersion the server's version of the protocol]]>
  21755. </doc>
  21756. </constructor>
  21757. <method name="getInterfaceName" return="java.lang.String"
  21758. abstract="false" native="false" synchronized="false"
  21759. static="false" final="false" visibility="public"
  21760. deprecated="not deprecated">
  21761. <doc>
  21762. <![CDATA[Get the interface name
  21763. @return the java class name
  21764. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  21765. </doc>
  21766. </method>
  21767. <method name="getClientVersion" return="long"
  21768. abstract="false" native="false" synchronized="false"
  21769. static="false" final="false" visibility="public"
  21770. deprecated="not deprecated">
  21771. <doc>
  21772. <![CDATA[Get the client's preferred version]]>
  21773. </doc>
  21774. </method>
  21775. <method name="getServerVersion" return="long"
  21776. abstract="false" native="false" synchronized="false"
  21777. static="false" final="false" visibility="public"
  21778. deprecated="not deprecated">
  21779. <doc>
  21780. <![CDATA[Get the server's agreed to version.]]>
  21781. </doc>
  21782. </method>
  21783. <doc>
  21784. <![CDATA[A version mismatch for the RPC protocol.]]>
  21785. </doc>
  21786. </class>
  21787. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  21788. <!-- start class org.apache.hadoop.ipc.Server -->
  21789. <class name="Server" extends="java.lang.Object"
  21790. abstract="true"
  21791. static="false" final="false" visibility="public"
  21792. deprecated="not deprecated">
  21793. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  21794. static="false" final="false" visibility="protected"
  21795. deprecated="not deprecated">
  21796. <exception name="IOException" type="java.io.IOException"/>
  21797. </constructor>
  21798. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  21799. static="false" final="false" visibility="protected"
  21800. deprecated="not deprecated">
  21801. <exception name="IOException" type="java.io.IOException"/>
  21802. </constructor>
  21803. <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"
  21804. static="false" final="false" visibility="protected"
  21805. deprecated="not deprecated">
  21806. <exception name="IOException" type="java.io.IOException"/>
  21807. <doc>
  21808. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  21809. be of the named class. The <code>handlerCount</handlerCount> determines
  21810. the number of handler threads that will be used to process calls.]]>
  21811. </doc>
  21812. </constructor>
  21813. <method name="get" return="org.apache.hadoop.ipc.Server"
  21814. abstract="false" native="false" synchronized="false"
  21815. static="true" final="false" visibility="public"
  21816. deprecated="not deprecated">
  21817. <doc>
  21818. <![CDATA[Returns the server instance called under or null. May be called under
  21819. {@link #call(Writable, long)} implementations, and under {@link Writable}
  21820. methods of paramters and return values. Permits applications to access
  21821. the server context.]]>
  21822. </doc>
  21823. </method>
  21824. <method name="getRemoteIp" return="java.net.InetAddress"
  21825. abstract="false" native="false" synchronized="false"
  21826. static="true" final="false" visibility="public"
  21827. deprecated="not deprecated">
  21828. <doc>
  21829. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  21830. Returns null incase of an error.]]>
  21831. </doc>
  21832. </method>
  21833. <method name="getRemoteAddress" return="java.lang.String"
  21834. abstract="false" native="false" synchronized="false"
  21835. static="true" final="false" visibility="public"
  21836. deprecated="not deprecated">
  21837. <doc>
  21838. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  21839. Returns null in case of an error.]]>
  21840. </doc>
  21841. </method>
  21842. <method name="bind"
  21843. abstract="false" native="false" synchronized="false"
  21844. static="true" final="false" visibility="public"
  21845. deprecated="not deprecated">
  21846. <param name="socket" type="java.net.ServerSocket"/>
  21847. <param name="address" type="java.net.InetSocketAddress"/>
  21848. <param name="backlog" type="int"/>
  21849. <exception name="IOException" type="java.io.IOException"/>
  21850. <doc>
  21851. <![CDATA[A convenience method to bind to a given address and report
  21852. better exceptions if the address is not a valid host.
  21853. @param socket the socket to bind
  21854. @param address the address to bind to
  21855. @param backlog the number of connections allowed in the queue
  21856. @throws BindException if the address can't be bound
  21857. @throws UnknownHostException if the address isn't a valid host name
  21858. @throws IOException other random errors from bind]]>
  21859. </doc>
  21860. </method>
  21861. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  21862. abstract="false" native="false" synchronized="false"
  21863. static="false" final="false" visibility="public"
  21864. deprecated="not deprecated">
  21865. <doc>
  21866. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  21867. @return rpc metrics]]>
  21868. </doc>
  21869. </method>
  21870. <method name="setSocketSendBufSize"
  21871. abstract="false" native="false" synchronized="false"
  21872. static="false" final="false" visibility="public"
  21873. deprecated="not deprecated">
  21874. <param name="size" type="int"/>
  21875. <doc>
  21876. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  21877. </doc>
  21878. </method>
  21879. <method name="start"
  21880. abstract="false" native="false" synchronized="true"
  21881. static="false" final="false" visibility="public"
  21882. deprecated="not deprecated">
  21883. <doc>
  21884. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  21885. </doc>
  21886. </method>
  21887. <method name="stop"
  21888. abstract="false" native="false" synchronized="true"
  21889. static="false" final="false" visibility="public"
  21890. deprecated="not deprecated">
  21891. <doc>
  21892. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  21893. </doc>
  21894. </method>
  21895. <method name="join"
  21896. abstract="false" native="false" synchronized="true"
  21897. static="false" final="false" visibility="public"
  21898. deprecated="not deprecated">
  21899. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21900. <doc>
  21901. <![CDATA[Wait for the server to be stopped.
  21902. Does not wait for all subthreads to finish.
  21903. See {@link #stop()}.]]>
  21904. </doc>
  21905. </method>
  21906. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  21907. abstract="false" native="false" synchronized="true"
  21908. static="false" final="false" visibility="public"
  21909. deprecated="not deprecated">
  21910. <doc>
  21911. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  21912. @return the socket (ip+port) on which the RPC server is listening to.]]>
  21913. </doc>
  21914. </method>
  21915. <method name="call" return="org.apache.hadoop.io.Writable"
  21916. abstract="false" native="false" synchronized="false"
  21917. static="false" final="false" visibility="public"
  21918. deprecated="Use {@link #call(Class, Writable, long)} instead">
  21919. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21920. <param name="receiveTime" type="long"/>
  21921. <exception name="IOException" type="java.io.IOException"/>
  21922. <doc>
  21923. <![CDATA[Called for each call.
  21924. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  21925. </doc>
  21926. </method>
  21927. <method name="call" return="org.apache.hadoop.io.Writable"
  21928. abstract="true" native="false" synchronized="false"
  21929. static="false" final="false" visibility="public"
  21930. deprecated="not deprecated">
  21931. <param name="protocol" type="java.lang.Class"/>
  21932. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21933. <param name="receiveTime" type="long"/>
  21934. <exception name="IOException" type="java.io.IOException"/>
  21935. <doc>
  21936. <![CDATA[Called for each call.]]>
  21937. </doc>
  21938. </method>
  21939. <method name="authorize"
  21940. abstract="false" native="false" synchronized="false"
  21941. static="false" final="false" visibility="public"
  21942. deprecated="not deprecated">
  21943. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  21944. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  21945. <param name="addr" type="java.net.InetAddress"/>
  21946. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  21947. <doc>
  21948. <![CDATA[Authorize the incoming client connection.
  21949. @param user client user
  21950. @param connection incoming connection
  21951. @param addr InetAddress of incoming connection
  21952. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  21953. </doc>
  21954. </method>
  21955. <method name="getNumOpenConnections" return="int"
  21956. abstract="false" native="false" synchronized="false"
  21957. static="false" final="false" visibility="public"
  21958. deprecated="not deprecated">
  21959. <doc>
  21960. <![CDATA[The number of open RPC conections
  21961. @return the number of open rpc connections]]>
  21962. </doc>
  21963. </method>
  21964. <method name="getCallQueueLen" return="int"
  21965. abstract="false" native="false" synchronized="false"
  21966. static="false" final="false" visibility="public"
  21967. deprecated="not deprecated">
  21968. <doc>
  21969. <![CDATA[The number of rpc calls in the queue.
  21970. @return The number of rpc calls in the queue.]]>
  21971. </doc>
  21972. </method>
  21973. <field name="HEADER" type="java.nio.ByteBuffer"
  21974. transient="false" volatile="false"
  21975. static="true" final="true" visibility="public"
  21976. deprecated="not deprecated">
  21977. <doc>
  21978. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  21979. </doc>
  21980. </field>
  21981. <field name="CURRENT_VERSION" type="byte"
  21982. transient="false" volatile="false"
  21983. static="true" final="true" visibility="public"
  21984. deprecated="not deprecated">
  21985. </field>
  21986. <field name="LOG" type="org.apache.commons.logging.Log"
  21987. transient="false" volatile="false"
  21988. static="true" final="true" visibility="public"
  21989. deprecated="not deprecated">
  21990. </field>
  21991. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  21992. transient="false" volatile="false"
  21993. static="false" final="false" visibility="protected"
  21994. deprecated="not deprecated">
  21995. </field>
  21996. <doc>
  21997. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  21998. parameter, and return a {@link Writable} as their value. A service runs on
  21999. a port and is defined by a parameter class and a value class.
  22000. @see Client]]>
  22001. </doc>
  22002. </class>
  22003. <!-- end class org.apache.hadoop.ipc.Server -->
  22004. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  22005. <class name="Server.Connection" extends="java.lang.Object"
  22006. abstract="false"
  22007. static="false" final="false" visibility="public"
  22008. deprecated="not deprecated">
  22009. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  22010. static="false" final="false" visibility="public"
  22011. deprecated="not deprecated">
  22012. </constructor>
  22013. <method name="toString" return="java.lang.String"
  22014. abstract="false" native="false" synchronized="false"
  22015. static="false" final="false" visibility="public"
  22016. deprecated="not deprecated">
  22017. </method>
  22018. <method name="getHostAddress" return="java.lang.String"
  22019. abstract="false" native="false" synchronized="false"
  22020. static="false" final="false" visibility="public"
  22021. deprecated="not deprecated">
  22022. </method>
  22023. <method name="getHostInetAddress" return="java.net.InetAddress"
  22024. abstract="false" native="false" synchronized="false"
  22025. static="false" final="false" visibility="public"
  22026. deprecated="not deprecated">
  22027. </method>
  22028. <method name="setLastContact"
  22029. abstract="false" native="false" synchronized="false"
  22030. static="false" final="false" visibility="public"
  22031. deprecated="not deprecated">
  22032. <param name="lastContact" type="long"/>
  22033. </method>
  22034. <method name="getLastContact" return="long"
  22035. abstract="false" native="false" synchronized="false"
  22036. static="false" final="false" visibility="public"
  22037. deprecated="not deprecated">
  22038. </method>
  22039. <method name="readAndProcess" return="int"
  22040. abstract="false" native="false" synchronized="false"
  22041. static="false" final="false" visibility="public"
  22042. deprecated="not deprecated">
  22043. <exception name="IOException" type="java.io.IOException"/>
  22044. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22045. </method>
  22046. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  22047. transient="false" volatile="false"
  22048. static="false" final="false" visibility="public"
  22049. deprecated="not deprecated">
  22050. </field>
  22051. <doc>
  22052. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  22053. </doc>
  22054. </class>
  22055. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  22056. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  22057. <interface name="VersionedProtocol" abstract="true"
  22058. static="false" final="false" visibility="public"
  22059. deprecated="not deprecated">
  22060. <method name="getProtocolVersion" return="long"
  22061. abstract="false" native="false" synchronized="false"
  22062. static="false" final="false" visibility="public"
  22063. deprecated="not deprecated">
  22064. <param name="protocol" type="java.lang.String"/>
  22065. <param name="clientVersion" type="long"/>
  22066. <exception name="IOException" type="java.io.IOException"/>
  22067. <doc>
  22068. <![CDATA[Return protocol version corresponding to protocol interface.
  22069. @param protocol The classname of the protocol interface
  22070. @param clientVersion The version of the protocol that the client speaks
  22071. @return the version that the server will speak]]>
  22072. </doc>
  22073. </method>
  22074. <doc>
  22075. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  22076. Subclasses of this interface are also supposed to have
  22077. a static final long versionID field.]]>
  22078. </doc>
  22079. </interface>
  22080. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  22081. </package>
  22082. <package name="org.apache.hadoop.ipc.metrics">
  22083. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  22084. <class name="RpcInstrumentation" extends="java.lang.Object"
  22085. abstract="false"
  22086. static="false" final="false" visibility="public"
  22087. deprecated="not deprecated">
  22088. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  22089. <method name="getMetrics"
  22090. abstract="false" native="false" synchronized="false"
  22091. static="false" final="false" visibility="public"
  22092. deprecated="not deprecated">
  22093. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  22094. <param name="all" type="boolean"/>
  22095. </method>
  22096. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22097. abstract="false" native="false" synchronized="false"
  22098. static="true" final="false" visibility="public"
  22099. deprecated="not deprecated">
  22100. <param name="serverName" type="java.lang.String"/>
  22101. <param name="port" type="int"/>
  22102. <doc>
  22103. <![CDATA[Create an RPC instrumentation object
  22104. @param serverName name of the server
  22105. @param port the RPC port
  22106. @return the instrumentation object]]>
  22107. </doc>
  22108. </method>
  22109. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  22110. abstract="false" native="false" synchronized="false"
  22111. static="true" final="false" visibility="public"
  22112. deprecated="not deprecated">
  22113. <param name="serverName" type="java.lang.String"/>
  22114. <param name="port" type="int"/>
  22115. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  22116. <doc>
  22117. <![CDATA[Create an RPC instrumentation object
  22118. Mostly useful for testing.
  22119. @param serverName name of the server
  22120. @param port the RPC port
  22121. @param ms the metrics system object
  22122. @return the instrumentation object]]>
  22123. </doc>
  22124. </method>
  22125. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  22126. abstract="false" native="false" synchronized="false"
  22127. static="false" final="false" visibility="public"
  22128. deprecated="not deprecated">
  22129. <doc>
  22130. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  22131. </doc>
  22132. </method>
  22133. <method name="incrAuthenticationFailures"
  22134. abstract="false" native="false" synchronized="false"
  22135. static="false" final="false" visibility="public"
  22136. deprecated="not deprecated">
  22137. <doc>
  22138. <![CDATA[One authentication failure event]]>
  22139. </doc>
  22140. </method>
  22141. <method name="incrAuthenticationSuccesses"
  22142. abstract="false" native="false" synchronized="false"
  22143. static="false" final="false" visibility="public"
  22144. deprecated="not deprecated">
  22145. <doc>
  22146. <![CDATA[One authentication success event]]>
  22147. </doc>
  22148. </method>
  22149. <method name="incrAuthorizationSuccesses"
  22150. abstract="false" native="false" synchronized="false"
  22151. static="false" final="false" visibility="public"
  22152. deprecated="not deprecated">
  22153. <doc>
  22154. <![CDATA[One authorization success event]]>
  22155. </doc>
  22156. </method>
  22157. <method name="incrAuthorizationFailures"
  22158. abstract="false" native="false" synchronized="false"
  22159. static="false" final="false" visibility="public"
  22160. deprecated="not deprecated">
  22161. <doc>
  22162. <![CDATA[One authorization failure event]]>
  22163. </doc>
  22164. </method>
  22165. <method name="shutdown"
  22166. abstract="false" native="false" synchronized="false"
  22167. static="false" final="false" visibility="public"
  22168. deprecated="not deprecated">
  22169. <doc>
  22170. <![CDATA[Shutdown the instrumentation for the process]]>
  22171. </doc>
  22172. </method>
  22173. <method name="incrSentBytes"
  22174. abstract="false" native="false" synchronized="false"
  22175. static="false" final="false" visibility="public"
  22176. deprecated="not deprecated">
  22177. <param name="count" type="int"/>
  22178. <doc>
  22179. <![CDATA[Increment sent bytes by count
  22180. @param count to increment]]>
  22181. </doc>
  22182. </method>
  22183. <method name="incrReceivedBytes"
  22184. abstract="false" native="false" synchronized="false"
  22185. static="false" final="false" visibility="public"
  22186. deprecated="not deprecated">
  22187. <param name="count" type="int"/>
  22188. <doc>
  22189. <![CDATA[Increment received bytes by count
  22190. @param count to increment]]>
  22191. </doc>
  22192. </method>
  22193. <method name="addRpcQueueTime"
  22194. abstract="false" native="false" synchronized="false"
  22195. static="false" final="false" visibility="public"
  22196. deprecated="not deprecated">
  22197. <param name="qTime" type="int"/>
  22198. <doc>
  22199. <![CDATA[Add an RPC queue time sample
  22200. @param qTime]]>
  22201. </doc>
  22202. </method>
  22203. <method name="addRpcProcessingTime"
  22204. abstract="false" native="false" synchronized="false"
  22205. static="false" final="false" visibility="public"
  22206. deprecated="not deprecated">
  22207. <param name="processingTime" type="int"/>
  22208. <doc>
  22209. <![CDATA[Add an RPC processing time sample
  22210. @param processingTime]]>
  22211. </doc>
  22212. </method>
  22213. <method name="addRpcProcessingTime"
  22214. abstract="false" native="false" synchronized="false"
  22215. static="false" final="false" visibility="public"
  22216. deprecated="not deprecated">
  22217. <param name="methodName" type="java.lang.String"/>
  22218. <param name="processingTime" type="int"/>
  22219. <doc>
  22220. <![CDATA[Add an RPC processing time sample for a particular RPC method
  22221. @param methodName method name of the RPC
  22222. @param processingTime elapsed processing time of the RPC]]>
  22223. </doc>
  22224. </method>
  22225. <doc>
  22226. <![CDATA[The RPC metrics instrumentation]]>
  22227. </doc>
  22228. </class>
  22229. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  22230. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  22231. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  22232. abstract="false"
  22233. static="true" final="false" visibility="public"
  22234. deprecated="not deprecated">
  22235. <method name="addRpcProcessingTime"
  22236. abstract="false" native="false" synchronized="true"
  22237. static="false" final="false" visibility="public"
  22238. deprecated="not deprecated">
  22239. <param name="methodName" type="java.lang.String"/>
  22240. <param name="processingTime" type="int"/>
  22241. </method>
  22242. <doc>
  22243. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  22244. easy and efficient filtering]]>
  22245. </doc>
  22246. </class>
  22247. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  22248. </package>
  22249. <package name="org.apache.hadoop.jmx">
  22250. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  22251. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  22252. abstract="false"
  22253. static="false" final="false" visibility="public"
  22254. deprecated="not deprecated">
  22255. <constructor name="JMXJsonServlet"
  22256. static="false" final="false" visibility="public"
  22257. deprecated="not deprecated">
  22258. </constructor>
  22259. <method name="init"
  22260. abstract="false" native="false" synchronized="false"
  22261. static="false" final="false" visibility="public"
  22262. deprecated="not deprecated">
  22263. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22264. <doc>
  22265. <![CDATA[Initialize this servlet.]]>
  22266. </doc>
  22267. </method>
  22268. <method name="doGet"
  22269. abstract="false" native="false" synchronized="false"
  22270. static="false" final="false" visibility="public"
  22271. deprecated="not deprecated">
  22272. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22273. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22274. <doc>
  22275. <![CDATA[Process a GET request for the specified resource.
  22276. @param request
  22277. The servlet request we are processing
  22278. @param response
  22279. The servlet response we are creating]]>
  22280. </doc>
  22281. </method>
  22282. <field name="mBeanServer" type="javax.management.MBeanServer"
  22283. transient="true" volatile="false"
  22284. static="false" final="false" visibility="protected"
  22285. deprecated="not deprecated">
  22286. <doc>
  22287. <![CDATA[MBean server.]]>
  22288. </doc>
  22289. </field>
  22290. <doc>
  22291. <![CDATA[Provides Read only web access to JMX.
  22292. <p>
  22293. This servlet generally will be placed under the /jmx URL for each
  22294. HttpServer. It provides read only
  22295. access to JMX metrics. The optional <code>qry</code> parameter
  22296. may be used to query only a subset of the JMX Beans. This query
  22297. functionality is provided through the
  22298. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  22299. method.
  22300. <p>
  22301. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  22302. all hadoop metrics exposed through JMX.
  22303. <p>
  22304. If the <code>qry</code> parameter is not formatted correctly then a
  22305. 400 BAD REQUEST http response code will be returned.
  22306. <p>
  22307. The return format is JSON and in the form
  22308. <p>
  22309. <code><pre>
  22310. {
  22311. "beans" : [
  22312. {
  22313. "name":"bean-name"
  22314. ...
  22315. }
  22316. ]
  22317. }
  22318. </pre></code>
  22319. <p>
  22320. The servlet attempts to convert the the JMXBeans into JSON. Each
  22321. bean's attributes will be converted to a JSON object member.
  22322. If the attribute is a boolean, a number, a string, or an array
  22323. it will be converted to the JSON equivalent.
  22324. If the value is a {@link CompositeData} then it will be converted
  22325. to a JSON object with the keys as the name of the JSON member and
  22326. the value is converted following these same rules.
  22327. If the value is a {@link TabularData} then it will be converted
  22328. to an array of the {@link CompositeData} elements that it contains.
  22329. All other objects will be converted to a string and output as such.
  22330. The bean's name and modelerType will be returned for all beans.]]>
  22331. </doc>
  22332. </class>
  22333. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  22334. </package>
  22335. <package name="org.apache.hadoop.log">
  22336. <!-- start class org.apache.hadoop.log.EventCounter -->
  22337. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  22338. abstract="false"
  22339. static="false" final="false" visibility="public"
  22340. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  22341. <constructor name="EventCounter"
  22342. static="false" final="false" visibility="public"
  22343. deprecated="not deprecated">
  22344. </constructor>
  22345. <doc>
  22346. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22347. fatal, error and warn. The class name is used in log4j.properties
  22348. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  22349. </doc>
  22350. </class>
  22351. <!-- end class org.apache.hadoop.log.EventCounter -->
  22352. <!-- start class org.apache.hadoop.log.LogLevel -->
  22353. <class name="LogLevel" extends="java.lang.Object"
  22354. abstract="false"
  22355. static="false" final="false" visibility="public"
  22356. deprecated="not deprecated">
  22357. <constructor name="LogLevel"
  22358. static="false" final="false" visibility="public"
  22359. deprecated="not deprecated">
  22360. </constructor>
  22361. <method name="main"
  22362. abstract="false" native="false" synchronized="false"
  22363. static="true" final="false" visibility="public"
  22364. deprecated="not deprecated">
  22365. <param name="args" type="java.lang.String[]"/>
  22366. <doc>
  22367. <![CDATA[A command line implementation]]>
  22368. </doc>
  22369. </method>
  22370. <field name="USAGES" type="java.lang.String"
  22371. transient="false" volatile="false"
  22372. static="true" final="true" visibility="public"
  22373. deprecated="not deprecated">
  22374. </field>
  22375. <doc>
  22376. <![CDATA[Change log level in runtime.]]>
  22377. </doc>
  22378. </class>
  22379. <!-- end class org.apache.hadoop.log.LogLevel -->
  22380. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  22381. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  22382. abstract="false"
  22383. static="true" final="false" visibility="public"
  22384. deprecated="not deprecated">
  22385. <constructor name="LogLevel.Servlet"
  22386. static="false" final="false" visibility="public"
  22387. deprecated="not deprecated">
  22388. </constructor>
  22389. <method name="doGet"
  22390. abstract="false" native="false" synchronized="false"
  22391. static="false" final="false" visibility="public"
  22392. deprecated="not deprecated">
  22393. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22394. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22395. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22396. <exception name="IOException" type="java.io.IOException"/>
  22397. </method>
  22398. <doc>
  22399. <![CDATA[A servlet implementation]]>
  22400. </doc>
  22401. </class>
  22402. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  22403. </package>
  22404. <package name="org.apache.hadoop.log.metrics">
  22405. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  22406. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  22407. abstract="false"
  22408. static="false" final="false" visibility="public"
  22409. deprecated="not deprecated">
  22410. <constructor name="EventCounter"
  22411. static="false" final="false" visibility="public"
  22412. deprecated="not deprecated">
  22413. </constructor>
  22414. <method name="getFatal" return="long"
  22415. abstract="false" native="false" synchronized="false"
  22416. static="true" final="false" visibility="public"
  22417. deprecated="not deprecated">
  22418. </method>
  22419. <method name="getError" return="long"
  22420. abstract="false" native="false" synchronized="false"
  22421. static="true" final="false" visibility="public"
  22422. deprecated="not deprecated">
  22423. </method>
  22424. <method name="getWarn" return="long"
  22425. abstract="false" native="false" synchronized="false"
  22426. static="true" final="false" visibility="public"
  22427. deprecated="not deprecated">
  22428. </method>
  22429. <method name="getInfo" return="long"
  22430. abstract="false" native="false" synchronized="false"
  22431. static="true" final="false" visibility="public"
  22432. deprecated="not deprecated">
  22433. </method>
  22434. <method name="append"
  22435. abstract="false" native="false" synchronized="false"
  22436. static="false" final="false" visibility="public"
  22437. deprecated="not deprecated">
  22438. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  22439. </method>
  22440. <method name="close"
  22441. abstract="false" native="false" synchronized="false"
  22442. static="false" final="false" visibility="public"
  22443. deprecated="not deprecated">
  22444. </method>
  22445. <method name="requiresLayout" return="boolean"
  22446. abstract="false" native="false" synchronized="false"
  22447. static="false" final="false" visibility="public"
  22448. deprecated="not deprecated">
  22449. </method>
  22450. <doc>
  22451. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  22452. fatal, error and warn. The class name is used in log4j.properties]]>
  22453. </doc>
  22454. </class>
  22455. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  22456. </package>
  22457. <package name="org.apache.hadoop.metrics">
  22458. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  22459. <class name="ContextFactory" extends="java.lang.Object"
  22460. abstract="false"
  22461. static="false" final="false" visibility="public"
  22462. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22463. <constructor name="ContextFactory"
  22464. static="false" final="false" visibility="protected"
  22465. deprecated="not deprecated">
  22466. <doc>
  22467. <![CDATA[Creates a new instance of ContextFactory]]>
  22468. </doc>
  22469. </constructor>
  22470. <method name="getAttribute" return="java.lang.Object"
  22471. abstract="false" native="false" synchronized="false"
  22472. static="false" final="false" visibility="public"
  22473. deprecated="not deprecated">
  22474. <param name="attributeName" type="java.lang.String"/>
  22475. <doc>
  22476. <![CDATA[Returns the value of the named attribute, or null if there is no
  22477. attribute of that name.
  22478. @param attributeName the attribute name
  22479. @return the attribute value]]>
  22480. </doc>
  22481. </method>
  22482. <method name="getAttributeNames" return="java.lang.String[]"
  22483. abstract="false" native="false" synchronized="false"
  22484. static="false" final="false" visibility="public"
  22485. deprecated="not deprecated">
  22486. <doc>
  22487. <![CDATA[Returns the names of all the factory's attributes.
  22488. @return the attribute names]]>
  22489. </doc>
  22490. </method>
  22491. <method name="setAttribute"
  22492. abstract="false" native="false" synchronized="false"
  22493. static="false" final="false" visibility="public"
  22494. deprecated="not deprecated">
  22495. <param name="attributeName" type="java.lang.String"/>
  22496. <param name="value" type="java.lang.Object"/>
  22497. <doc>
  22498. <![CDATA[Sets the named factory attribute to the specified value, creating it
  22499. if it did not already exist. If the value is null, this is the same as
  22500. calling removeAttribute.
  22501. @param attributeName the attribute name
  22502. @param value the new attribute value]]>
  22503. </doc>
  22504. </method>
  22505. <method name="removeAttribute"
  22506. abstract="false" native="false" synchronized="false"
  22507. static="false" final="false" visibility="public"
  22508. deprecated="not deprecated">
  22509. <param name="attributeName" type="java.lang.String"/>
  22510. <doc>
  22511. <![CDATA[Removes the named attribute if it exists.
  22512. @param attributeName the attribute name]]>
  22513. </doc>
  22514. </method>
  22515. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  22516. abstract="false" native="false" synchronized="true"
  22517. static="false" final="false" visibility="public"
  22518. deprecated="not deprecated">
  22519. <param name="refName" type="java.lang.String"/>
  22520. <param name="contextName" type="java.lang.String"/>
  22521. <exception name="IOException" type="java.io.IOException"/>
  22522. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  22523. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  22524. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  22525. <doc>
  22526. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  22527. using the factory's current configuration attributes. <p/>
  22528. When constructing the instance, if the factory property
  22529. <i>contextName</i>.class</code> exists,
  22530. its value is taken to be the name of the class to instantiate. Otherwise,
  22531. the default is to create an instance of
  22532. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  22533. dummy "no-op" context which will cause all metric data to be discarded.
  22534. @param contextName the name of the context
  22535. @return the named MetricsContext]]>
  22536. </doc>
  22537. </method>
  22538. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  22539. abstract="false" native="false" synchronized="true"
  22540. static="false" final="false" visibility="public"
  22541. deprecated="not deprecated">
  22542. <param name="contextName" type="java.lang.String"/>
  22543. <exception name="IOException" type="java.io.IOException"/>
  22544. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  22545. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  22546. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  22547. </method>
  22548. <method name="getAllContexts" return="java.util.Collection"
  22549. abstract="false" native="false" synchronized="true"
  22550. static="false" final="false" visibility="public"
  22551. deprecated="not deprecated">
  22552. <doc>
  22553. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  22554. </doc>
  22555. </method>
  22556. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  22557. abstract="false" native="false" synchronized="true"
  22558. static="true" final="false" visibility="public"
  22559. deprecated="not deprecated">
  22560. <param name="contextName" type="java.lang.String"/>
  22561. <doc>
  22562. <![CDATA[Returns a "null" context - one which does nothing.]]>
  22563. </doc>
  22564. </method>
  22565. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  22566. abstract="false" native="false" synchronized="true"
  22567. static="true" final="false" visibility="public"
  22568. deprecated="not deprecated">
  22569. <exception name="IOException" type="java.io.IOException"/>
  22570. <doc>
  22571. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  22572. necessary. <p/>
  22573. When the instance is constructed, this method checks if the file
  22574. <code>hadoop-metrics.properties</code> exists on the class path. If it
  22575. exists, it must be in the format defined by java.util.Properties, and all
  22576. the properties in the file are set as attributes on the newly created
  22577. ContextFactory instance.
  22578. @return the singleton ContextFactory instance]]>
  22579. </doc>
  22580. </method>
  22581. <doc>
  22582. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  22583. of this class, use the static <code>getFactory()</code> method.
  22584. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22585. </doc>
  22586. </class>
  22587. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  22588. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  22589. <interface name="MetricsContext" abstract="true"
  22590. static="false" final="false" visibility="public"
  22591. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22592. <method name="init"
  22593. abstract="false" native="false" synchronized="false"
  22594. static="false" final="false" visibility="public"
  22595. deprecated="not deprecated">
  22596. <param name="contextName" type="java.lang.String"/>
  22597. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  22598. <doc>
  22599. <![CDATA[Initialize this context.
  22600. @param contextName The given name for this context
  22601. @param factory The creator of this context]]>
  22602. </doc>
  22603. </method>
  22604. <method name="getContextName" return="java.lang.String"
  22605. abstract="false" native="false" synchronized="false"
  22606. static="false" final="false" visibility="public"
  22607. deprecated="not deprecated">
  22608. <doc>
  22609. <![CDATA[Returns the context name.
  22610. @return the context name]]>
  22611. </doc>
  22612. </method>
  22613. <method name="startMonitoring"
  22614. abstract="false" native="false" synchronized="false"
  22615. static="false" final="false" visibility="public"
  22616. deprecated="not deprecated">
  22617. <exception name="IOException" type="java.io.IOException"/>
  22618. <doc>
  22619. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  22620. updated.]]>
  22621. </doc>
  22622. </method>
  22623. <method name="stopMonitoring"
  22624. abstract="false" native="false" synchronized="false"
  22625. static="false" final="false" visibility="public"
  22626. deprecated="not deprecated">
  22627. <doc>
  22628. <![CDATA[Stops monitoring. This does not free any data that the implementation
  22629. may have buffered for sending at the next timer event. It
  22630. is OK to call <code>startMonitoring()</code> again after calling
  22631. this.
  22632. @see #close()]]>
  22633. </doc>
  22634. </method>
  22635. <method name="isMonitoring" return="boolean"
  22636. abstract="false" native="false" synchronized="false"
  22637. static="false" final="false" visibility="public"
  22638. deprecated="not deprecated">
  22639. <doc>
  22640. <![CDATA[Returns true if monitoring is currently in progress.]]>
  22641. </doc>
  22642. </method>
  22643. <method name="close"
  22644. abstract="false" native="false" synchronized="false"
  22645. static="false" final="false" visibility="public"
  22646. deprecated="not deprecated">
  22647. <doc>
  22648. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  22649. object to its initial state.]]>
  22650. </doc>
  22651. </method>
  22652. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  22653. abstract="false" native="false" synchronized="false"
  22654. static="false" final="false" visibility="public"
  22655. deprecated="not deprecated">
  22656. <param name="recordName" type="java.lang.String"/>
  22657. <doc>
  22658. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  22659. Throws an exception if the metrics implementation is configured with a fixed
  22660. set of record names and <code>recordName</code> is not in that set.
  22661. @param recordName the name of the record
  22662. @throws MetricsException if recordName conflicts with configuration data]]>
  22663. </doc>
  22664. </method>
  22665. <method name="registerUpdater"
  22666. abstract="false" native="false" synchronized="false"
  22667. static="false" final="false" visibility="public"
  22668. deprecated="not deprecated">
  22669. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  22670. <doc>
  22671. <![CDATA[Registers a callback to be called at regular time intervals, as
  22672. determined by the implementation-class specific configuration.
  22673. @param updater object to be run periodically; it should updated
  22674. some metrics records and then return]]>
  22675. </doc>
  22676. </method>
  22677. <method name="unregisterUpdater"
  22678. abstract="false" native="false" synchronized="false"
  22679. static="false" final="false" visibility="public"
  22680. deprecated="not deprecated">
  22681. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  22682. <doc>
  22683. <![CDATA[Removes a callback, if it exists.
  22684. @param updater object to be removed from the callback list]]>
  22685. </doc>
  22686. </method>
  22687. <method name="getPeriod" return="int"
  22688. abstract="false" native="false" synchronized="false"
  22689. static="false" final="false" visibility="public"
  22690. deprecated="not deprecated">
  22691. <doc>
  22692. <![CDATA[Returns the timer period.]]>
  22693. </doc>
  22694. </method>
  22695. <method name="getAllRecords" return="java.util.Map"
  22696. abstract="false" native="false" synchronized="false"
  22697. static="false" final="false" visibility="public"
  22698. deprecated="not deprecated">
  22699. <doc>
  22700. <![CDATA[Retrieves all the records managed by this MetricsContext.
  22701. Useful for monitoring systems that are polling-based.
  22702. @return A non-null map from all record names to the records managed.]]>
  22703. </doc>
  22704. </method>
  22705. <field name="DEFAULT_PERIOD" type="int"
  22706. transient="false" volatile="false"
  22707. static="true" final="true" visibility="public"
  22708. deprecated="not deprecated">
  22709. <doc>
  22710. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  22711. </doc>
  22712. </field>
  22713. <doc>
  22714. <![CDATA[The main interface to the metrics package.
  22715. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  22716. </doc>
  22717. </interface>
  22718. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  22719. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  22720. <class name="MetricsException" extends="java.lang.RuntimeException"
  22721. abstract="false"
  22722. static="false" final="false" visibility="public"
  22723. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  22724. <constructor name="MetricsException"
  22725. static="false" final="false" visibility="public"
  22726. deprecated="not deprecated">
  22727. <doc>
  22728. <![CDATA[Creates a new instance of MetricsException]]>
  22729. </doc>
  22730. </constructor>
  22731. <constructor name="MetricsException" type="java.lang.String"
  22732. static="false" final="false" visibility="public"
  22733. deprecated="not deprecated">
  22734. <doc>
  22735. <![CDATA[Creates a new instance of MetricsException
  22736. @param message an error message]]>
  22737. </doc>
  22738. </constructor>
  22739. <doc>
  22740. <![CDATA[General-purpose, unchecked metrics exception.
  22741. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  22742. </doc>
  22743. </class>
  22744. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  22745. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  22746. <interface name="MetricsRecord" abstract="true"
  22747. static="false" final="false" visibility="public"
  22748. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  22749. <method name="getRecordName" return="java.lang.String"
  22750. abstract="false" native="false" synchronized="false"
  22751. static="false" final="false" visibility="public"
  22752. deprecated="not deprecated">
  22753. <doc>
  22754. <![CDATA[Returns the record name.
  22755. @return the record name]]>
  22756. </doc>
  22757. </method>
  22758. <method name="setTag"
  22759. abstract="false" native="false" synchronized="false"
  22760. static="false" final="false" visibility="public"
  22761. deprecated="not deprecated">
  22762. <param name="tagName" type="java.lang.String"/>
  22763. <param name="tagValue" type="java.lang.String"/>
  22764. <doc>
  22765. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  22766. which is treated the same as an empty String.
  22767. @param tagName name of the tag
  22768. @param tagValue new value of the tag
  22769. @throws MetricsException if the tagName conflicts with the configuration]]>
  22770. </doc>
  22771. </method>
  22772. <method name="setTag"
  22773. abstract="false" native="false" synchronized="false"
  22774. static="false" final="false" visibility="public"
  22775. deprecated="not deprecated">
  22776. <param name="tagName" type="java.lang.String"/>
  22777. <param name="tagValue" type="int"/>
  22778. <doc>
  22779. <![CDATA[Sets the named tag to the specified value.
  22780. @param tagName name of the tag
  22781. @param tagValue new value of the tag
  22782. @throws MetricsException if the tagName conflicts with the configuration]]>
  22783. </doc>
  22784. </method>
  22785. <method name="setTag"
  22786. abstract="false" native="false" synchronized="false"
  22787. static="false" final="false" visibility="public"
  22788. deprecated="not deprecated">
  22789. <param name="tagName" type="java.lang.String"/>
  22790. <param name="tagValue" type="long"/>
  22791. <doc>
  22792. <![CDATA[Sets the named tag to the specified value.
  22793. @param tagName name of the tag
  22794. @param tagValue new value of the tag
  22795. @throws MetricsException if the tagName conflicts with the configuration]]>
  22796. </doc>
  22797. </method>
  22798. <method name="setTag"
  22799. abstract="false" native="false" synchronized="false"
  22800. static="false" final="false" visibility="public"
  22801. deprecated="not deprecated">
  22802. <param name="tagName" type="java.lang.String"/>
  22803. <param name="tagValue" type="short"/>
  22804. <doc>
  22805. <![CDATA[Sets the named tag to the specified value.
  22806. @param tagName name of the tag
  22807. @param tagValue new value of the tag
  22808. @throws MetricsException if the tagName conflicts with the configuration]]>
  22809. </doc>
  22810. </method>
  22811. <method name="setTag"
  22812. abstract="false" native="false" synchronized="false"
  22813. static="false" final="false" visibility="public"
  22814. deprecated="not deprecated">
  22815. <param name="tagName" type="java.lang.String"/>
  22816. <param name="tagValue" type="byte"/>
  22817. <doc>
  22818. <![CDATA[Sets the named tag to the specified value.
  22819. @param tagName name of the tag
  22820. @param tagValue new value of the tag
  22821. @throws MetricsException if the tagName conflicts with the configuration]]>
  22822. </doc>
  22823. </method>
  22824. <method name="removeTag"
  22825. abstract="false" native="false" synchronized="false"
  22826. static="false" final="false" visibility="public"
  22827. deprecated="not deprecated">
  22828. <param name="tagName" type="java.lang.String"/>
  22829. <doc>
  22830. <![CDATA[Removes any tag of the specified name.
  22831. @param tagName name of a tag]]>
  22832. </doc>
  22833. </method>
  22834. <method name="setMetric"
  22835. abstract="false" native="false" synchronized="false"
  22836. static="false" final="false" visibility="public"
  22837. deprecated="not deprecated">
  22838. <param name="metricName" type="java.lang.String"/>
  22839. <param name="metricValue" type="int"/>
  22840. <doc>
  22841. <![CDATA[Sets the named metric to the specified value.
  22842. @param metricName name of the metric
  22843. @param metricValue new value of the metric
  22844. @throws MetricsException if the metricName or the type of the metricValue
  22845. conflicts with the configuration]]>
  22846. </doc>
  22847. </method>
  22848. <method name="setMetric"
  22849. abstract="false" native="false" synchronized="false"
  22850. static="false" final="false" visibility="public"
  22851. deprecated="not deprecated">
  22852. <param name="metricName" type="java.lang.String"/>
  22853. <param name="metricValue" type="long"/>
  22854. <doc>
  22855. <![CDATA[Sets the named metric to the specified value.
  22856. @param metricName name of the metric
  22857. @param metricValue new value of the metric
  22858. @throws MetricsException if the metricName or the type of the metricValue
  22859. conflicts with the configuration]]>
  22860. </doc>
  22861. </method>
  22862. <method name="setMetric"
  22863. abstract="false" native="false" synchronized="false"
  22864. static="false" final="false" visibility="public"
  22865. deprecated="not deprecated">
  22866. <param name="metricName" type="java.lang.String"/>
  22867. <param name="metricValue" type="short"/>
  22868. <doc>
  22869. <![CDATA[Sets the named metric to the specified value.
  22870. @param metricName name of the metric
  22871. @param metricValue new value of the metric
  22872. @throws MetricsException if the metricName or the type of the metricValue
  22873. conflicts with the configuration]]>
  22874. </doc>
  22875. </method>
  22876. <method name="setMetric"
  22877. abstract="false" native="false" synchronized="false"
  22878. static="false" final="false" visibility="public"
  22879. deprecated="not deprecated">
  22880. <param name="metricName" type="java.lang.String"/>
  22881. <param name="metricValue" type="byte"/>
  22882. <doc>
  22883. <![CDATA[Sets the named metric to the specified value.
  22884. @param metricName name of the metric
  22885. @param metricValue new value of the metric
  22886. @throws MetricsException if the metricName or the type of the metricValue
  22887. conflicts with the configuration]]>
  22888. </doc>
  22889. </method>
  22890. <method name="setMetric"
  22891. abstract="false" native="false" synchronized="false"
  22892. static="false" final="false" visibility="public"
  22893. deprecated="not deprecated">
  22894. <param name="metricName" type="java.lang.String"/>
  22895. <param name="metricValue" type="float"/>
  22896. <doc>
  22897. <![CDATA[Sets the named metric to the specified value.
  22898. @param metricName name of the metric
  22899. @param metricValue new value of the metric
  22900. @throws MetricsException if the metricName or the type of the metricValue
  22901. conflicts with the configuration]]>
  22902. </doc>
  22903. </method>
  22904. <method name="incrMetric"
  22905. abstract="false" native="false" synchronized="false"
  22906. static="false" final="false" visibility="public"
  22907. deprecated="not deprecated">
  22908. <param name="metricName" type="java.lang.String"/>
  22909. <param name="metricValue" type="int"/>
  22910. <doc>
  22911. <![CDATA[Increments the named metric by the specified value.
  22912. @param metricName name of the metric
  22913. @param metricValue incremental value
  22914. @throws MetricsException if the metricName or the type of the metricValue
  22915. conflicts with the configuration]]>
  22916. </doc>
  22917. </method>
  22918. <method name="incrMetric"
  22919. abstract="false" native="false" synchronized="false"
  22920. static="false" final="false" visibility="public"
  22921. deprecated="not deprecated">
  22922. <param name="metricName" type="java.lang.String"/>
  22923. <param name="metricValue" type="long"/>
  22924. <doc>
  22925. <![CDATA[Increments the named metric by the specified value.
  22926. @param metricName name of the metric
  22927. @param metricValue incremental value
  22928. @throws MetricsException if the metricName or the type of the metricValue
  22929. conflicts with the configuration]]>
  22930. </doc>
  22931. </method>
  22932. <method name="incrMetric"
  22933. abstract="false" native="false" synchronized="false"
  22934. static="false" final="false" visibility="public"
  22935. deprecated="not deprecated">
  22936. <param name="metricName" type="java.lang.String"/>
  22937. <param name="metricValue" type="short"/>
  22938. <doc>
  22939. <![CDATA[Increments the named metric by the specified value.
  22940. @param metricName name of the metric
  22941. @param metricValue incremental value
  22942. @throws MetricsException if the metricName or the type of the metricValue
  22943. conflicts with the configuration]]>
  22944. </doc>
  22945. </method>
  22946. <method name="incrMetric"
  22947. abstract="false" native="false" synchronized="false"
  22948. static="false" final="false" visibility="public"
  22949. deprecated="not deprecated">
  22950. <param name="metricName" type="java.lang.String"/>
  22951. <param name="metricValue" type="byte"/>
  22952. <doc>
  22953. <![CDATA[Increments the named metric by the specified value.
  22954. @param metricName name of the metric
  22955. @param metricValue incremental value
  22956. @throws MetricsException if the metricName or the type of the metricValue
  22957. conflicts with the configuration]]>
  22958. </doc>
  22959. </method>
  22960. <method name="incrMetric"
  22961. abstract="false" native="false" synchronized="false"
  22962. static="false" final="false" visibility="public"
  22963. deprecated="not deprecated">
  22964. <param name="metricName" type="java.lang.String"/>
  22965. <param name="metricValue" type="float"/>
  22966. <doc>
  22967. <![CDATA[Increments the named metric by the specified value.
  22968. @param metricName name of the metric
  22969. @param metricValue incremental value
  22970. @throws MetricsException if the metricName or the type of the metricValue
  22971. conflicts with the configuration]]>
  22972. </doc>
  22973. </method>
  22974. <method name="update"
  22975. abstract="false" native="false" synchronized="false"
  22976. static="false" final="false" visibility="public"
  22977. deprecated="not deprecated">
  22978. <doc>
  22979. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  22980. If the tag values match an existing row, that row is updated;
  22981. otherwise, a new row is added.]]>
  22982. </doc>
  22983. </method>
  22984. <method name="remove"
  22985. abstract="false" native="false" synchronized="false"
  22986. static="false" final="false" visibility="public"
  22987. deprecated="not deprecated">
  22988. <doc>
  22989. <![CDATA[Removes, from the buffered data table, all rows having tags
  22990. that equal the tags that have been set on this record. For example,
  22991. if there are no tags on this record, all rows for this record name
  22992. would be removed. Or, if there is a single tag on this record, then
  22993. just rows containing a tag with the same name and value would be removed.]]>
  22994. </doc>
  22995. </method>
  22996. <doc>
  22997. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  22998. system. <p/>
  22999. A record name identifies the kind of data to be reported. For example, a
  23000. program reporting statistics relating to the disks on a computer might use
  23001. a record name "diskStats".<p/>
  23002. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  23003. continue the example, the "diskStats" record might use a tag named
  23004. "diskName" to identify a particular disk. Sometimes it is useful to have
  23005. more than one tag, so there might also be a "diskType" with value "ide" or
  23006. "scsi" or whatever.<p/>
  23007. A record also has zero or more <i>metrics</i>. These are the named
  23008. values that are to be reported to the metrics system. In the "diskStats"
  23009. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  23010. "kbReadPerSecond", etc.<p/>
  23011. The general procedure for using a MetricsRecord is to fill in its tag and
  23012. metric values, and then call <code>update()</code> to pass the record to the
  23013. client library.
  23014. Metric data is not immediately sent to the metrics system
  23015. each time that <code>update()</code> is called.
  23016. An internal table is maintained, identified by the record name. This
  23017. table has columns
  23018. corresponding to the tag and the metric names, and rows
  23019. corresponding to each unique set of tag values. An update
  23020. either modifies an existing row in the table, or adds a new row with a set of
  23021. tag values that are different from all the other rows. Note that if there
  23022. are no tags, then there can be at most one row in the table. <p/>
  23023. Once a row is added to the table, its data will be sent to the metrics system
  23024. on every timer period, whether or not it has been updated since the previous
  23025. timer period. If this is inappropriate, for example if metrics were being
  23026. reported by some transient object in an application, the <code>remove()</code>
  23027. method can be used to remove the row and thus stop the data from being
  23028. sent.<p/>
  23029. Note that the <code>update()</code> method is atomic. This means that it is
  23030. safe for different threads to be updating the same metric. More precisely,
  23031. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  23032. with the same set of tag names and tag values. Different threads should
  23033. <b>not</b> use the same MetricsRecord instance at the same time.
  23034. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23035. </doc>
  23036. </interface>
  23037. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  23038. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  23039. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  23040. abstract="false"
  23041. static="false" final="false" visibility="public"
  23042. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23043. <constructor name="MetricsServlet"
  23044. static="false" final="false" visibility="public"
  23045. deprecated="not deprecated">
  23046. </constructor>
  23047. <method name="doGet"
  23048. abstract="false" native="false" synchronized="false"
  23049. static="false" final="false" visibility="public"
  23050. deprecated="not deprecated">
  23051. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23052. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23053. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23054. <exception name="IOException" type="java.io.IOException"/>
  23055. </method>
  23056. <doc>
  23057. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  23058. textual representation (no promises are made for parseability), and
  23059. users can use "?format=json" for parseable output.
  23060. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23061. </doc>
  23062. </class>
  23063. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  23064. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  23065. <class name="MetricsUtil" extends="java.lang.Object"
  23066. abstract="false"
  23067. static="false" final="false" visibility="public"
  23068. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23069. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23070. abstract="false" native="false" synchronized="false"
  23071. static="true" final="false" visibility="public"
  23072. deprecated="not deprecated">
  23073. <param name="contextName" type="java.lang.String"/>
  23074. </method>
  23075. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  23076. abstract="false" native="false" synchronized="false"
  23077. static="true" final="false" visibility="public"
  23078. deprecated="not deprecated">
  23079. <param name="refName" type="java.lang.String"/>
  23080. <param name="contextName" type="java.lang.String"/>
  23081. <doc>
  23082. <![CDATA[Utility method to return the named context.
  23083. If the desired context cannot be created for any reason, the exception
  23084. is logged, and a null context is returned.]]>
  23085. </doc>
  23086. </method>
  23087. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23088. abstract="false" native="false" synchronized="false"
  23089. static="true" final="false" visibility="public"
  23090. deprecated="not deprecated">
  23091. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23092. <param name="recordName" type="java.lang.String"/>
  23093. <doc>
  23094. <![CDATA[Utility method to create and return new metrics record instance within the
  23095. given context. This record is tagged with the host name.
  23096. @param context the context
  23097. @param recordName name of the record
  23098. @return newly created metrics record]]>
  23099. </doc>
  23100. </method>
  23101. <field name="LOG" type="org.apache.commons.logging.Log"
  23102. transient="false" volatile="false"
  23103. static="true" final="true" visibility="public"
  23104. deprecated="not deprecated">
  23105. </field>
  23106. <doc>
  23107. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  23108. For examples of usage, see NameNodeMetrics.
  23109. @see org.apache.hadoop.metrics.MetricsRecord
  23110. @see org.apache.hadoop.metrics.MetricsContext
  23111. @see org.apache.hadoop.metrics.ContextFactory
  23112. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23113. </doc>
  23114. </class>
  23115. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  23116. <!-- start interface org.apache.hadoop.metrics.Updater -->
  23117. <interface name="Updater" abstract="true"
  23118. static="false" final="false" visibility="public"
  23119. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23120. <method name="doUpdates"
  23121. abstract="false" native="false" synchronized="false"
  23122. static="false" final="false" visibility="public"
  23123. deprecated="not deprecated">
  23124. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23125. <doc>
  23126. <![CDATA[Timer-based call-back from the metric library.]]>
  23127. </doc>
  23128. </method>
  23129. <doc>
  23130. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  23131. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23132. </doc>
  23133. </interface>
  23134. <!-- end interface org.apache.hadoop.metrics.Updater -->
  23135. </package>
  23136. <package name="org.apache.hadoop.metrics.file">
  23137. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  23138. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23139. abstract="false"
  23140. static="false" final="false" visibility="public"
  23141. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  23142. <constructor name="FileContext"
  23143. static="false" final="false" visibility="public"
  23144. deprecated="not deprecated">
  23145. <doc>
  23146. <![CDATA[Creates a new instance of FileContext]]>
  23147. </doc>
  23148. </constructor>
  23149. <method name="init"
  23150. abstract="false" native="false" synchronized="false"
  23151. static="false" final="false" visibility="public"
  23152. deprecated="not deprecated">
  23153. <param name="contextName" type="java.lang.String"/>
  23154. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23155. </method>
  23156. <method name="getFileName" return="java.lang.String"
  23157. abstract="false" native="false" synchronized="false"
  23158. static="false" final="false" visibility="public"
  23159. deprecated="not deprecated">
  23160. <doc>
  23161. <![CDATA[Returns the configured file name, or null.]]>
  23162. </doc>
  23163. </method>
  23164. <method name="startMonitoring"
  23165. abstract="false" native="false" synchronized="false"
  23166. static="false" final="false" visibility="public"
  23167. deprecated="not deprecated">
  23168. <exception name="IOException" type="java.io.IOException"/>
  23169. <doc>
  23170. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  23171. file specified by the <code>fileName</code> attribute,
  23172. if specified. Otherwise the data will be written to standard
  23173. output.]]>
  23174. </doc>
  23175. </method>
  23176. <method name="stopMonitoring"
  23177. abstract="false" native="false" synchronized="false"
  23178. static="false" final="false" visibility="public"
  23179. deprecated="not deprecated">
  23180. <doc>
  23181. <![CDATA[Stops monitoring, closing the file.
  23182. @see #close()]]>
  23183. </doc>
  23184. </method>
  23185. <method name="emitRecord"
  23186. abstract="false" native="false" synchronized="false"
  23187. static="false" final="false" visibility="public"
  23188. deprecated="not deprecated">
  23189. <param name="contextName" type="java.lang.String"/>
  23190. <param name="recordName" type="java.lang.String"/>
  23191. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23192. <doc>
  23193. <![CDATA[Emits a metrics record to a file.]]>
  23194. </doc>
  23195. </method>
  23196. <method name="flush"
  23197. abstract="false" native="false" synchronized="false"
  23198. static="false" final="false" visibility="public"
  23199. deprecated="not deprecated">
  23200. <doc>
  23201. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  23202. </doc>
  23203. </method>
  23204. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  23205. transient="false" volatile="false"
  23206. static="true" final="true" visibility="protected"
  23207. deprecated="not deprecated">
  23208. </field>
  23209. <field name="PERIOD_PROPERTY" type="java.lang.String"
  23210. transient="false" volatile="false"
  23211. static="true" final="true" visibility="protected"
  23212. deprecated="not deprecated">
  23213. </field>
  23214. <doc>
  23215. <![CDATA[Metrics context for writing metrics to a file.<p/>
  23216. This class is configured by setting ContextFactory attributes which in turn
  23217. are usually configured through a properties file. All the attributes are
  23218. prefixed by the contextName. For example, the properties file might contain:
  23219. <pre>
  23220. myContextName.fileName=/tmp/metrics.log
  23221. myContextName.period=5
  23222. </pre>
  23223. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  23224. </doc>
  23225. </class>
  23226. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  23227. </package>
  23228. <package name="org.apache.hadoop.metrics.ganglia">
  23229. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23230. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23231. abstract="false"
  23232. static="false" final="false" visibility="public"
  23233. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23234. <constructor name="GangliaContext"
  23235. static="false" final="false" visibility="public"
  23236. deprecated="not deprecated">
  23237. <doc>
  23238. <![CDATA[Creates a new instance of GangliaContext]]>
  23239. </doc>
  23240. </constructor>
  23241. <method name="init"
  23242. abstract="false" native="false" synchronized="false"
  23243. static="false" final="false" visibility="public"
  23244. deprecated="not deprecated">
  23245. <param name="contextName" type="java.lang.String"/>
  23246. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23247. </method>
  23248. <method name="emitRecord"
  23249. abstract="false" native="false" synchronized="false"
  23250. static="false" final="false" visibility="public"
  23251. deprecated="not deprecated">
  23252. <param name="contextName" type="java.lang.String"/>
  23253. <param name="recordName" type="java.lang.String"/>
  23254. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23255. <exception name="IOException" type="java.io.IOException"/>
  23256. </method>
  23257. <method name="emitMetric"
  23258. abstract="false" native="false" synchronized="false"
  23259. static="false" final="false" visibility="protected"
  23260. deprecated="not deprecated">
  23261. <param name="name" type="java.lang.String"/>
  23262. <param name="type" type="java.lang.String"/>
  23263. <param name="value" type="java.lang.String"/>
  23264. <exception name="IOException" type="java.io.IOException"/>
  23265. </method>
  23266. <method name="getUnits" return="java.lang.String"
  23267. abstract="false" native="false" synchronized="false"
  23268. static="false" final="false" visibility="protected"
  23269. deprecated="not deprecated">
  23270. <param name="metricName" type="java.lang.String"/>
  23271. </method>
  23272. <method name="getSlope" return="int"
  23273. abstract="false" native="false" synchronized="false"
  23274. static="false" final="false" visibility="protected"
  23275. deprecated="not deprecated">
  23276. <param name="metricName" type="java.lang.String"/>
  23277. </method>
  23278. <method name="getTmax" return="int"
  23279. abstract="false" native="false" synchronized="false"
  23280. static="false" final="false" visibility="protected"
  23281. deprecated="not deprecated">
  23282. <param name="metricName" type="java.lang.String"/>
  23283. </method>
  23284. <method name="getDmax" return="int"
  23285. abstract="false" native="false" synchronized="false"
  23286. static="false" final="false" visibility="protected"
  23287. deprecated="not deprecated">
  23288. <param name="metricName" type="java.lang.String"/>
  23289. </method>
  23290. <method name="xdr_string"
  23291. abstract="false" native="false" synchronized="false"
  23292. static="false" final="false" visibility="protected"
  23293. deprecated="not deprecated">
  23294. <param name="s" type="java.lang.String"/>
  23295. <doc>
  23296. <![CDATA[Puts a string into the buffer by first writing the size of the string
  23297. as an int, followed by the bytes of the string, padded if necessary to
  23298. a multiple of 4.]]>
  23299. </doc>
  23300. </method>
  23301. <method name="xdr_int"
  23302. abstract="false" native="false" synchronized="false"
  23303. static="false" final="false" visibility="protected"
  23304. deprecated="not deprecated">
  23305. <param name="i" type="int"/>
  23306. <doc>
  23307. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  23308. </doc>
  23309. </method>
  23310. <field name="buffer" type="byte[]"
  23311. transient="false" volatile="false"
  23312. static="false" final="false" visibility="protected"
  23313. deprecated="not deprecated">
  23314. </field>
  23315. <field name="offset" type="int"
  23316. transient="false" volatile="false"
  23317. static="false" final="false" visibility="protected"
  23318. deprecated="not deprecated">
  23319. </field>
  23320. <field name="metricsServers" type="java.util.List"
  23321. transient="false" volatile="false"
  23322. static="false" final="false" visibility="protected"
  23323. deprecated="not deprecated">
  23324. </field>
  23325. <field name="datagramSocket" type="java.net.DatagramSocket"
  23326. transient="false" volatile="false"
  23327. static="false" final="false" visibility="protected"
  23328. deprecated="not deprecated">
  23329. </field>
  23330. <doc>
  23331. <![CDATA[Context for sending metrics to Ganglia.
  23332. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23333. </doc>
  23334. </class>
  23335. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  23336. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  23337. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  23338. abstract="false"
  23339. static="false" final="false" visibility="public"
  23340. deprecated="not deprecated">
  23341. <constructor name="GangliaContext31"
  23342. static="false" final="false" visibility="public"
  23343. deprecated="not deprecated">
  23344. </constructor>
  23345. <method name="init"
  23346. abstract="false" native="false" synchronized="false"
  23347. static="false" final="false" visibility="public"
  23348. deprecated="not deprecated">
  23349. <param name="contextName" type="java.lang.String"/>
  23350. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23351. </method>
  23352. <method name="emitMetric"
  23353. abstract="false" native="false" synchronized="false"
  23354. static="false" final="false" visibility="protected"
  23355. deprecated="not deprecated">
  23356. <param name="name" type="java.lang.String"/>
  23357. <param name="type" type="java.lang.String"/>
  23358. <param name="value" type="java.lang.String"/>
  23359. <exception name="IOException" type="java.io.IOException"/>
  23360. </method>
  23361. <doc>
  23362. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  23363. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  23364. </doc>
  23365. </class>
  23366. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  23367. </package>
  23368. <package name="org.apache.hadoop.metrics.jvm">
  23369. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  23370. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  23371. abstract="false"
  23372. static="false" final="false" visibility="public"
  23373. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  23374. <constructor name="EventCounter"
  23375. static="false" final="false" visibility="public"
  23376. deprecated="not deprecated">
  23377. </constructor>
  23378. <doc>
  23379. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  23380. fatal, error and warn.
  23381. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  23382. </doc>
  23383. </class>
  23384. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  23385. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  23386. <class name="JvmMetrics" extends="java.lang.Object"
  23387. abstract="false"
  23388. static="false" final="false" visibility="public"
  23389. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23390. <implements name="org.apache.hadoop.metrics.Updater"/>
  23391. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  23392. abstract="false" native="false" synchronized="true"
  23393. static="true" final="false" visibility="public"
  23394. deprecated="not deprecated">
  23395. <param name="processName" type="java.lang.String"/>
  23396. <param name="sessionId" type="java.lang.String"/>
  23397. </method>
  23398. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  23399. abstract="false" native="false" synchronized="true"
  23400. static="true" final="false" visibility="public"
  23401. deprecated="not deprecated">
  23402. <param name="processName" type="java.lang.String"/>
  23403. <param name="sessionId" type="java.lang.String"/>
  23404. <param name="recordName" type="java.lang.String"/>
  23405. </method>
  23406. <method name="doUpdates"
  23407. abstract="false" native="false" synchronized="false"
  23408. static="false" final="false" visibility="public"
  23409. deprecated="not deprecated">
  23410. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  23411. <doc>
  23412. <![CDATA[This will be called periodically (with the period being configuration
  23413. dependent).]]>
  23414. </doc>
  23415. </method>
  23416. <doc>
  23417. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  23418. Any application can create an instance of this class in order to emit
  23419. Java VM metrics.
  23420. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23421. </doc>
  23422. </class>
  23423. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  23424. </package>
  23425. <package name="org.apache.hadoop.metrics.spi">
  23426. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23427. <class name="AbstractMetricsContext" extends="java.lang.Object"
  23428. abstract="true"
  23429. static="false" final="false" visibility="public"
  23430. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23431. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  23432. <constructor name="AbstractMetricsContext"
  23433. static="false" final="false" visibility="protected"
  23434. deprecated="not deprecated">
  23435. <doc>
  23436. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  23437. </doc>
  23438. </constructor>
  23439. <method name="init"
  23440. abstract="false" native="false" synchronized="false"
  23441. static="false" final="false" visibility="public"
  23442. deprecated="not deprecated">
  23443. <param name="contextName" type="java.lang.String"/>
  23444. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23445. <doc>
  23446. <![CDATA[Initializes the context.]]>
  23447. </doc>
  23448. </method>
  23449. <method name="getAttribute" return="java.lang.String"
  23450. abstract="false" native="false" synchronized="false"
  23451. static="false" final="false" visibility="protected"
  23452. deprecated="not deprecated">
  23453. <param name="attributeName" type="java.lang.String"/>
  23454. <doc>
  23455. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  23456. </doc>
  23457. </method>
  23458. <method name="getAttributeTable" return="java.util.Map"
  23459. abstract="false" native="false" synchronized="false"
  23460. static="false" final="false" visibility="protected"
  23461. deprecated="not deprecated">
  23462. <param name="tableName" type="java.lang.String"/>
  23463. <doc>
  23464. <![CDATA[Returns an attribute-value map derived from the factory attributes
  23465. by finding all factory attributes that begin with
  23466. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  23467. those attributes with the contextName and tableName stripped off.]]>
  23468. </doc>
  23469. </method>
  23470. <method name="getContextName" return="java.lang.String"
  23471. abstract="false" native="false" synchronized="false"
  23472. static="false" final="false" visibility="public"
  23473. deprecated="not deprecated">
  23474. <doc>
  23475. <![CDATA[Returns the context name.]]>
  23476. </doc>
  23477. </method>
  23478. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  23479. abstract="false" native="false" synchronized="false"
  23480. static="false" final="false" visibility="public"
  23481. deprecated="not deprecated">
  23482. <doc>
  23483. <![CDATA[Returns the factory by which this context was created.]]>
  23484. </doc>
  23485. </method>
  23486. <method name="startMonitoring"
  23487. abstract="false" native="false" synchronized="true"
  23488. static="false" final="false" visibility="public"
  23489. deprecated="not deprecated">
  23490. <exception name="IOException" type="java.io.IOException"/>
  23491. <doc>
  23492. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  23493. </doc>
  23494. </method>
  23495. <method name="stopMonitoring"
  23496. abstract="false" native="false" synchronized="true"
  23497. static="false" final="false" visibility="public"
  23498. deprecated="not deprecated">
  23499. <doc>
  23500. <![CDATA[Stops monitoring. This does not free buffered data.
  23501. @see #close()]]>
  23502. </doc>
  23503. </method>
  23504. <method name="isMonitoring" return="boolean"
  23505. abstract="false" native="false" synchronized="false"
  23506. static="false" final="false" visibility="public"
  23507. deprecated="not deprecated">
  23508. <doc>
  23509. <![CDATA[Returns true if monitoring is currently in progress.]]>
  23510. </doc>
  23511. </method>
  23512. <method name="close"
  23513. abstract="false" native="false" synchronized="true"
  23514. static="false" final="false" visibility="public"
  23515. deprecated="not deprecated">
  23516. <doc>
  23517. <![CDATA[Stops monitoring and frees buffered data, returning this
  23518. object to its initial state.]]>
  23519. </doc>
  23520. </method>
  23521. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23522. abstract="false" native="false" synchronized="true"
  23523. static="false" final="true" visibility="public"
  23524. deprecated="not deprecated">
  23525. <param name="recordName" type="java.lang.String"/>
  23526. <doc>
  23527. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  23528. Throws an exception if the metrics implementation is configured with a fixed
  23529. set of record names and <code>recordName</code> is not in that set.
  23530. @param recordName the name of the record
  23531. @throws MetricsException if recordName conflicts with configuration data]]>
  23532. </doc>
  23533. </method>
  23534. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23535. abstract="false" native="false" synchronized="false"
  23536. static="false" final="false" visibility="protected"
  23537. deprecated="not deprecated">
  23538. <param name="recordName" type="java.lang.String"/>
  23539. <doc>
  23540. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  23541. @param recordName the name of the record
  23542. @return newly created instance of MetricsRecordImpl or subclass]]>
  23543. </doc>
  23544. </method>
  23545. <method name="registerUpdater"
  23546. abstract="false" native="false" synchronized="true"
  23547. static="false" final="false" visibility="public"
  23548. deprecated="not deprecated">
  23549. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23550. <doc>
  23551. <![CDATA[Registers a callback to be called at time intervals determined by
  23552. the configuration.
  23553. @param updater object to be run periodically; it should update
  23554. some metrics records]]>
  23555. </doc>
  23556. </method>
  23557. <method name="unregisterUpdater"
  23558. abstract="false" native="false" synchronized="true"
  23559. static="false" final="false" visibility="public"
  23560. deprecated="not deprecated">
  23561. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23562. <doc>
  23563. <![CDATA[Removes a callback, if it exists.
  23564. @param updater object to be removed from the callback list]]>
  23565. </doc>
  23566. </method>
  23567. <method name="getAllRecords" return="java.util.Map"
  23568. abstract="false" native="false" synchronized="true"
  23569. static="false" final="false" visibility="public"
  23570. deprecated="not deprecated">
  23571. <doc>
  23572. <![CDATA[Retrieves all the records managed by this MetricsContext.
  23573. Useful for monitoring systems that are polling-based.
  23574. @return A non-null collection of all monitoring records.]]>
  23575. </doc>
  23576. </method>
  23577. <method name="emitRecord"
  23578. abstract="true" native="false" synchronized="false"
  23579. static="false" final="false" visibility="protected"
  23580. deprecated="not deprecated">
  23581. <param name="contextName" type="java.lang.String"/>
  23582. <param name="recordName" type="java.lang.String"/>
  23583. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23584. <exception name="IOException" type="java.io.IOException"/>
  23585. <doc>
  23586. <![CDATA[Sends a record to the metrics system.]]>
  23587. </doc>
  23588. </method>
  23589. <method name="flush"
  23590. abstract="false" native="false" synchronized="false"
  23591. static="false" final="false" visibility="protected"
  23592. deprecated="not deprecated">
  23593. <exception name="IOException" type="java.io.IOException"/>
  23594. <doc>
  23595. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  23596. Subclasses may override it in order to perform some kind of flush.]]>
  23597. </doc>
  23598. </method>
  23599. <method name="update"
  23600. abstract="false" native="false" synchronized="false"
  23601. static="false" final="false" visibility="protected"
  23602. deprecated="not deprecated">
  23603. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23604. <doc>
  23605. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  23606. the internal table of metric data.]]>
  23607. </doc>
  23608. </method>
  23609. <method name="remove"
  23610. abstract="false" native="false" synchronized="false"
  23611. static="false" final="false" visibility="protected"
  23612. deprecated="not deprecated">
  23613. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  23614. <doc>
  23615. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  23616. the internal table of metric data. A row matches if it has the same
  23617. tag names and values as record, but it may also have additional
  23618. tags.]]>
  23619. </doc>
  23620. </method>
  23621. <method name="getPeriod" return="int"
  23622. abstract="false" native="false" synchronized="false"
  23623. static="false" final="false" visibility="public"
  23624. deprecated="not deprecated">
  23625. <doc>
  23626. <![CDATA[Returns the timer period.]]>
  23627. </doc>
  23628. </method>
  23629. <method name="setPeriod"
  23630. abstract="false" native="false" synchronized="false"
  23631. static="false" final="false" visibility="protected"
  23632. deprecated="not deprecated">
  23633. <param name="period" type="int"/>
  23634. <doc>
  23635. <![CDATA[Sets the timer period]]>
  23636. </doc>
  23637. </method>
  23638. <method name="parseAndSetPeriod"
  23639. abstract="false" native="false" synchronized="false"
  23640. static="false" final="false" visibility="protected"
  23641. deprecated="not deprecated">
  23642. <param name="attributeName" type="java.lang.String"/>
  23643. <doc>
  23644. <![CDATA[If a period is set in the attribute passed in, override
  23645. the default with it.]]>
  23646. </doc>
  23647. </method>
  23648. <doc>
  23649. <![CDATA[The main class of the Service Provider Interface. This class should be
  23650. extended in order to integrate the Metrics API with a specific metrics
  23651. client library. <p/>
  23652. This class implements the internal table of metric data, and the timer
  23653. on which data is to be sent to the metrics system. Subclasses must
  23654. override the abstract <code>emitRecord</code> method in order to transmit
  23655. the data. <p/>
  23656. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23657. </doc>
  23658. </class>
  23659. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  23660. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  23661. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  23662. abstract="false"
  23663. static="true" final="false" visibility="public"
  23664. deprecated="not deprecated">
  23665. </class>
  23666. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  23667. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  23668. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  23669. abstract="false"
  23670. static="true" final="false" visibility="public"
  23671. deprecated="not deprecated">
  23672. <method name="containsAll" return="boolean"
  23673. abstract="false" native="false" synchronized="false"
  23674. static="false" final="false" visibility="public"
  23675. deprecated="not deprecated">
  23676. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  23677. <doc>
  23678. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  23679. </doc>
  23680. </method>
  23681. </class>
  23682. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  23683. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  23684. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23685. abstract="false"
  23686. static="false" final="false" visibility="public"
  23687. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23688. <constructor name="CompositeContext"
  23689. static="false" final="false" visibility="public"
  23690. deprecated="not deprecated">
  23691. </constructor>
  23692. <method name="init"
  23693. abstract="false" native="false" synchronized="false"
  23694. static="false" final="false" visibility="public"
  23695. deprecated="not deprecated">
  23696. <param name="contextName" type="java.lang.String"/>
  23697. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  23698. </method>
  23699. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  23700. abstract="false" native="false" synchronized="false"
  23701. static="false" final="false" visibility="public"
  23702. deprecated="not deprecated">
  23703. <param name="recordName" type="java.lang.String"/>
  23704. </method>
  23705. <method name="emitRecord"
  23706. abstract="false" native="false" synchronized="false"
  23707. static="false" final="false" visibility="protected"
  23708. deprecated="not deprecated">
  23709. <param name="contextName" type="java.lang.String"/>
  23710. <param name="recordName" type="java.lang.String"/>
  23711. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  23712. <exception name="IOException" type="java.io.IOException"/>
  23713. </method>
  23714. <method name="flush"
  23715. abstract="false" native="false" synchronized="false"
  23716. static="false" final="false" visibility="protected"
  23717. deprecated="not deprecated">
  23718. <exception name="IOException" type="java.io.IOException"/>
  23719. </method>
  23720. <method name="startMonitoring"
  23721. abstract="false" native="false" synchronized="false"
  23722. static="false" final="false" visibility="public"
  23723. deprecated="not deprecated">
  23724. <exception name="IOException" type="java.io.IOException"/>
  23725. </method>
  23726. <method name="stopMonitoring"
  23727. abstract="false" native="false" synchronized="false"
  23728. static="false" final="false" visibility="public"
  23729. deprecated="not deprecated">
  23730. </method>
  23731. <method name="isMonitoring" return="boolean"
  23732. abstract="false" native="false" synchronized="false"
  23733. static="false" final="false" visibility="public"
  23734. deprecated="not deprecated">
  23735. <doc>
  23736. <![CDATA[Return true if all subcontexts are monitoring.]]>
  23737. </doc>
  23738. </method>
  23739. <method name="close"
  23740. abstract="false" native="false" synchronized="false"
  23741. static="false" final="false" visibility="public"
  23742. deprecated="not deprecated">
  23743. </method>
  23744. <method name="registerUpdater"
  23745. abstract="false" native="false" synchronized="false"
  23746. static="false" final="false" visibility="public"
  23747. deprecated="not deprecated">
  23748. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23749. </method>
  23750. <method name="unregisterUpdater"
  23751. abstract="false" native="false" synchronized="false"
  23752. static="false" final="false" visibility="public"
  23753. deprecated="not deprecated">
  23754. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  23755. </method>
  23756. <doc>
  23757. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  23758. </doc>
  23759. </class>
  23760. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  23761. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  23762. <class name="MetricsRecordImpl" extends="java.lang.Object"
  23763. abstract="false"
  23764. static="false" final="false" visibility="public"
  23765. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  23766. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  23767. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  23768. static="false" final="false" visibility="protected"
  23769. deprecated="not deprecated">
  23770. <doc>
  23771. <![CDATA[Creates a new instance of FileRecord]]>
  23772. </doc>
  23773. </constructor>
  23774. <method name="getRecordName" return="java.lang.String"
  23775. abstract="false" native="false" synchronized="false"
  23776. static="false" final="false" visibility="public"
  23777. deprecated="not deprecated">
  23778. <doc>
  23779. <![CDATA[Returns the record name.
  23780. @return the record name]]>
  23781. </doc>
  23782. </method>
  23783. <method name="setTag"
  23784. abstract="false" native="false" synchronized="false"
  23785. static="false" final="false" visibility="public"
  23786. deprecated="not deprecated">
  23787. <param name="tagName" type="java.lang.String"/>
  23788. <param name="tagValue" type="java.lang.String"/>
  23789. <doc>
  23790. <![CDATA[Sets the named tag to the specified value.
  23791. @param tagName name of the tag
  23792. @param tagValue new value of the tag
  23793. @throws MetricsException if the tagName conflicts with the configuration]]>
  23794. </doc>
  23795. </method>
  23796. <method name="setTag"
  23797. abstract="false" native="false" synchronized="false"
  23798. static="false" final="false" visibility="public"
  23799. deprecated="not deprecated">
  23800. <param name="tagName" type="java.lang.String"/>
  23801. <param name="tagValue" type="int"/>
  23802. <doc>
  23803. <![CDATA[Sets the named tag to the specified value.
  23804. @param tagName name of the tag
  23805. @param tagValue new value of the tag
  23806. @throws MetricsException if the tagName conflicts with the configuration]]>
  23807. </doc>
  23808. </method>
  23809. <method name="setTag"
  23810. abstract="false" native="false" synchronized="false"
  23811. static="false" final="false" visibility="public"
  23812. deprecated="not deprecated">
  23813. <param name="tagName" type="java.lang.String"/>
  23814. <param name="tagValue" type="long"/>
  23815. <doc>
  23816. <![CDATA[Sets the named tag to the specified value.
  23817. @param tagName name of the tag
  23818. @param tagValue new value of the tag
  23819. @throws MetricsException if the tagName conflicts with the configuration]]>
  23820. </doc>
  23821. </method>
  23822. <method name="setTag"
  23823. abstract="false" native="false" synchronized="false"
  23824. static="false" final="false" visibility="public"
  23825. deprecated="not deprecated">
  23826. <param name="tagName" type="java.lang.String"/>
  23827. <param name="tagValue" type="short"/>
  23828. <doc>
  23829. <![CDATA[Sets the named tag to the specified value.
  23830. @param tagName name of the tag
  23831. @param tagValue new value of the tag
  23832. @throws MetricsException if the tagName conflicts with the configuration]]>
  23833. </doc>
  23834. </method>
  23835. <method name="setTag"
  23836. abstract="false" native="false" synchronized="false"
  23837. static="false" final="false" visibility="public"
  23838. deprecated="not deprecated">
  23839. <param name="tagName" type="java.lang.String"/>
  23840. <param name="tagValue" type="byte"/>
  23841. <doc>
  23842. <![CDATA[Sets the named tag to the specified value.
  23843. @param tagName name of the tag
  23844. @param tagValue new value of the tag
  23845. @throws MetricsException if the tagName conflicts with the configuration]]>
  23846. </doc>
  23847. </method>
  23848. <method name="removeTag"
  23849. abstract="false" native="false" synchronized="false"
  23850. static="false" final="false" visibility="public"
  23851. deprecated="not deprecated">
  23852. <param name="tagName" type="java.lang.String"/>
  23853. <doc>
  23854. <![CDATA[Removes any tag of the specified name.]]>
  23855. </doc>
  23856. </method>
  23857. <method name="setMetric"
  23858. abstract="false" native="false" synchronized="false"
  23859. static="false" final="false" visibility="public"
  23860. deprecated="not deprecated">
  23861. <param name="metricName" type="java.lang.String"/>
  23862. <param name="metricValue" type="int"/>
  23863. <doc>
  23864. <![CDATA[Sets the named metric to the specified value.
  23865. @param metricName name of the metric
  23866. @param metricValue new value of the metric
  23867. @throws MetricsException if the metricName or the type of the metricValue
  23868. conflicts with the configuration]]>
  23869. </doc>
  23870. </method>
  23871. <method name="setMetric"
  23872. abstract="false" native="false" synchronized="false"
  23873. static="false" final="false" visibility="public"
  23874. deprecated="not deprecated">
  23875. <param name="metricName" type="java.lang.String"/>
  23876. <param name="metricValue" type="long"/>
  23877. <doc>
  23878. <![CDATA[Sets the named metric to the specified value.
  23879. @param metricName name of the metric
  23880. @param metricValue new value of the metric
  23881. @throws MetricsException if the metricName or the type of the metricValue
  23882. conflicts with the configuration]]>
  23883. </doc>
  23884. </method>
  23885. <method name="setMetric"
  23886. abstract="false" native="false" synchronized="false"
  23887. static="false" final="false" visibility="public"
  23888. deprecated="not deprecated">
  23889. <param name="metricName" type="java.lang.String"/>
  23890. <param name="metricValue" type="short"/>
  23891. <doc>
  23892. <![CDATA[Sets the named metric to the specified value.
  23893. @param metricName name of the metric
  23894. @param metricValue new value of the metric
  23895. @throws MetricsException if the metricName or the type of the metricValue
  23896. conflicts with the configuration]]>
  23897. </doc>
  23898. </method>
  23899. <method name="setMetric"
  23900. abstract="false" native="false" synchronized="false"
  23901. static="false" final="false" visibility="public"
  23902. deprecated="not deprecated">
  23903. <param name="metricName" type="java.lang.String"/>
  23904. <param name="metricValue" type="byte"/>
  23905. <doc>
  23906. <![CDATA[Sets the named metric to the specified value.
  23907. @param metricName name of the metric
  23908. @param metricValue new value of the metric
  23909. @throws MetricsException if the metricName or the type of the metricValue
  23910. conflicts with the configuration]]>
  23911. </doc>
  23912. </method>
  23913. <method name="setMetric"
  23914. abstract="false" native="false" synchronized="false"
  23915. static="false" final="false" visibility="public"
  23916. deprecated="not deprecated">
  23917. <param name="metricName" type="java.lang.String"/>
  23918. <param name="metricValue" type="float"/>
  23919. <doc>
  23920. <![CDATA[Sets the named metric to the specified value.
  23921. @param metricName name of the metric
  23922. @param metricValue new value of the metric
  23923. @throws MetricsException if the metricName or the type of the metricValue
  23924. conflicts with the configuration]]>
  23925. </doc>
  23926. </method>
  23927. <method name="incrMetric"
  23928. abstract="false" native="false" synchronized="false"
  23929. static="false" final="false" visibility="public"
  23930. deprecated="not deprecated">
  23931. <param name="metricName" type="java.lang.String"/>
  23932. <param name="metricValue" type="int"/>
  23933. <doc>
  23934. <![CDATA[Increments the named metric by the specified value.
  23935. @param metricName name of the metric
  23936. @param metricValue incremental value
  23937. @throws MetricsException if the metricName or the type of the metricValue
  23938. conflicts with the configuration]]>
  23939. </doc>
  23940. </method>
  23941. <method name="incrMetric"
  23942. abstract="false" native="false" synchronized="false"
  23943. static="false" final="false" visibility="public"
  23944. deprecated="not deprecated">
  23945. <param name="metricName" type="java.lang.String"/>
  23946. <param name="metricValue" type="long"/>
  23947. <doc>
  23948. <![CDATA[Increments the named metric by the specified value.
  23949. @param metricName name of the metric
  23950. @param metricValue incremental value
  23951. @throws MetricsException if the metricName or the type of the metricValue
  23952. conflicts with the configuration]]>
  23953. </doc>
  23954. </method>
  23955. <method name="incrMetric"
  23956. abstract="false" native="false" synchronized="false"
  23957. static="false" final="false" visibility="public"
  23958. deprecated="not deprecated">
  23959. <param name="metricName" type="java.lang.String"/>
  23960. <param name="metricValue" type="short"/>
  23961. <doc>
  23962. <![CDATA[Increments the named metric by the specified value.
  23963. @param metricName name of the metric
  23964. @param metricValue incremental value
  23965. @throws MetricsException if the metricName or the type of the metricValue
  23966. conflicts with the configuration]]>
  23967. </doc>
  23968. </method>
  23969. <method name="incrMetric"
  23970. abstract="false" native="false" synchronized="false"
  23971. static="false" final="false" visibility="public"
  23972. deprecated="not deprecated">
  23973. <param name="metricName" type="java.lang.String"/>
  23974. <param name="metricValue" type="byte"/>
  23975. <doc>
  23976. <![CDATA[Increments the named metric by the specified value.
  23977. @param metricName name of the metric
  23978. @param metricValue incremental value
  23979. @throws MetricsException if the metricName or the type of the metricValue
  23980. conflicts with the configuration]]>
  23981. </doc>
  23982. </method>
  23983. <method name="incrMetric"
  23984. abstract="false" native="false" synchronized="false"
  23985. static="false" final="false" visibility="public"
  23986. deprecated="not deprecated">
  23987. <param name="metricName" type="java.lang.String"/>
  23988. <param name="metricValue" type="float"/>
  23989. <doc>
  23990. <![CDATA[Increments the named metric by the specified value.
  23991. @param metricName name of the metric
  23992. @param metricValue incremental value
  23993. @throws MetricsException if the metricName or the type of the metricValue
  23994. conflicts with the configuration]]>
  23995. </doc>
  23996. </method>
  23997. <method name="update"
  23998. abstract="false" native="false" synchronized="false"
  23999. static="false" final="false" visibility="public"
  24000. deprecated="not deprecated">
  24001. <doc>
  24002. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  24003. If the tag values match an existing row, that row is updated;
  24004. otherwise, a new row is added.]]>
  24005. </doc>
  24006. </method>
  24007. <method name="remove"
  24008. abstract="false" native="false" synchronized="false"
  24009. static="false" final="false" visibility="public"
  24010. deprecated="not deprecated">
  24011. <doc>
  24012. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  24013. that equal the tags that have been set on this record.]]>
  24014. </doc>
  24015. </method>
  24016. <doc>
  24017. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  24018. from which it was created, and delegates back to it on <code>update</code>
  24019. and <code>remove()</code>.
  24020. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24021. </doc>
  24022. </class>
  24023. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  24024. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  24025. <class name="MetricValue" extends="java.lang.Object"
  24026. abstract="false"
  24027. static="false" final="false" visibility="public"
  24028. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24029. <constructor name="MetricValue" type="java.lang.Number, boolean"
  24030. static="false" final="false" visibility="public"
  24031. deprecated="not deprecated">
  24032. <doc>
  24033. <![CDATA[Creates a new instance of MetricValue]]>
  24034. </doc>
  24035. </constructor>
  24036. <method name="isIncrement" return="boolean"
  24037. abstract="false" native="false" synchronized="false"
  24038. static="false" final="false" visibility="public"
  24039. deprecated="not deprecated">
  24040. </method>
  24041. <method name="isAbsolute" return="boolean"
  24042. abstract="false" native="false" synchronized="false"
  24043. static="false" final="false" visibility="public"
  24044. deprecated="not deprecated">
  24045. </method>
  24046. <method name="getNumber" return="java.lang.Number"
  24047. abstract="false" native="false" synchronized="false"
  24048. static="false" final="false" visibility="public"
  24049. deprecated="not deprecated">
  24050. </method>
  24051. <field name="ABSOLUTE" type="boolean"
  24052. transient="false" volatile="false"
  24053. static="true" final="true" visibility="public"
  24054. deprecated="not deprecated">
  24055. </field>
  24056. <field name="INCREMENT" type="boolean"
  24057. transient="false" volatile="false"
  24058. static="true" final="true" visibility="public"
  24059. deprecated="not deprecated">
  24060. </field>
  24061. <doc>
  24062. <![CDATA[A Number that is either an absolute or an incremental amount.
  24063. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24064. </doc>
  24065. </class>
  24066. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  24067. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  24068. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24069. abstract="false"
  24070. static="false" final="false" visibility="public"
  24071. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24072. <constructor name="NoEmitMetricsContext"
  24073. static="false" final="false" visibility="public"
  24074. deprecated="not deprecated">
  24075. <doc>
  24076. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  24077. </doc>
  24078. </constructor>
  24079. <method name="init"
  24080. abstract="false" native="false" synchronized="false"
  24081. static="false" final="false" visibility="public"
  24082. deprecated="not deprecated">
  24083. <param name="contextName" type="java.lang.String"/>
  24084. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24085. </method>
  24086. <method name="emitRecord"
  24087. abstract="false" native="false" synchronized="false"
  24088. static="false" final="false" visibility="protected"
  24089. deprecated="not deprecated">
  24090. <param name="contextName" type="java.lang.String"/>
  24091. <param name="recordName" type="java.lang.String"/>
  24092. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24093. <doc>
  24094. <![CDATA[Do-nothing version of emitRecord]]>
  24095. </doc>
  24096. </method>
  24097. <doc>
  24098. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  24099. does save it for retrieval with getAllRecords().
  24100. This is useful if you want to support {@link MetricsServlet}, but
  24101. not emit metrics in any other way.
  24102. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24103. </doc>
  24104. </class>
  24105. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  24106. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  24107. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24108. abstract="false"
  24109. static="false" final="false" visibility="public"
  24110. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24111. <constructor name="NullContext"
  24112. static="false" final="false" visibility="public"
  24113. deprecated="not deprecated">
  24114. <doc>
  24115. <![CDATA[Creates a new instance of NullContext]]>
  24116. </doc>
  24117. </constructor>
  24118. <method name="startMonitoring"
  24119. abstract="false" native="false" synchronized="false"
  24120. static="false" final="false" visibility="public"
  24121. deprecated="not deprecated">
  24122. <doc>
  24123. <![CDATA[Do-nothing version of startMonitoring]]>
  24124. </doc>
  24125. </method>
  24126. <method name="emitRecord"
  24127. abstract="false" native="false" synchronized="false"
  24128. static="false" final="false" visibility="protected"
  24129. deprecated="not deprecated">
  24130. <param name="contextName" type="java.lang.String"/>
  24131. <param name="recordName" type="java.lang.String"/>
  24132. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24133. <doc>
  24134. <![CDATA[Do-nothing version of emitRecord]]>
  24135. </doc>
  24136. </method>
  24137. <method name="update"
  24138. abstract="false" native="false" synchronized="false"
  24139. static="false" final="false" visibility="protected"
  24140. deprecated="not deprecated">
  24141. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24142. <doc>
  24143. <![CDATA[Do-nothing version of update]]>
  24144. </doc>
  24145. </method>
  24146. <method name="remove"
  24147. abstract="false" native="false" synchronized="false"
  24148. static="false" final="false" visibility="protected"
  24149. deprecated="not deprecated">
  24150. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24151. <doc>
  24152. <![CDATA[Do-nothing version of remove]]>
  24153. </doc>
  24154. </method>
  24155. <doc>
  24156. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  24157. default context, so that no performance data is emitted if no configuration
  24158. data is found.
  24159. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24160. </doc>
  24161. </class>
  24162. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  24163. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  24164. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24165. abstract="false"
  24166. static="false" final="false" visibility="public"
  24167. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24168. <constructor name="NullContextWithUpdateThread"
  24169. static="false" final="false" visibility="public"
  24170. deprecated="not deprecated">
  24171. <doc>
  24172. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  24173. </doc>
  24174. </constructor>
  24175. <method name="init"
  24176. abstract="false" native="false" synchronized="false"
  24177. static="false" final="false" visibility="public"
  24178. deprecated="not deprecated">
  24179. <param name="contextName" type="java.lang.String"/>
  24180. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24181. </method>
  24182. <method name="emitRecord"
  24183. abstract="false" native="false" synchronized="false"
  24184. static="false" final="false" visibility="protected"
  24185. deprecated="not deprecated">
  24186. <param name="contextName" type="java.lang.String"/>
  24187. <param name="recordName" type="java.lang.String"/>
  24188. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24189. <doc>
  24190. <![CDATA[Do-nothing version of emitRecord]]>
  24191. </doc>
  24192. </method>
  24193. <method name="update"
  24194. abstract="false" native="false" synchronized="false"
  24195. static="false" final="false" visibility="protected"
  24196. deprecated="not deprecated">
  24197. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24198. <doc>
  24199. <![CDATA[Do-nothing version of update]]>
  24200. </doc>
  24201. </method>
  24202. <method name="remove"
  24203. abstract="false" native="false" synchronized="false"
  24204. static="false" final="false" visibility="protected"
  24205. deprecated="not deprecated">
  24206. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  24207. <doc>
  24208. <![CDATA[Do-nothing version of remove]]>
  24209. </doc>
  24210. </method>
  24211. <doc>
  24212. <![CDATA[A null context which has a thread calling
  24213. periodically when monitoring is started. This keeps the data sampled
  24214. correctly.
  24215. In all other respects, this is like the NULL context: No data is emitted.
  24216. This is suitable for Monitoring systems like JMX which reads the metrics
  24217. when someone reads the data from JMX.
  24218. The default impl of start and stop monitoring:
  24219. is the AbstractMetricsContext is good enough.
  24220. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24221. </doc>
  24222. </class>
  24223. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  24224. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  24225. <class name="OutputRecord" extends="java.lang.Object"
  24226. abstract="false"
  24227. static="false" final="false" visibility="public"
  24228. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24229. <method name="getTagNames" return="java.util.Set"
  24230. abstract="false" native="false" synchronized="false"
  24231. static="false" final="false" visibility="public"
  24232. deprecated="not deprecated">
  24233. <doc>
  24234. <![CDATA[Returns the set of tag names]]>
  24235. </doc>
  24236. </method>
  24237. <method name="getTag" return="java.lang.Object"
  24238. abstract="false" native="false" synchronized="false"
  24239. static="false" final="false" visibility="public"
  24240. deprecated="not deprecated">
  24241. <param name="name" type="java.lang.String"/>
  24242. <doc>
  24243. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  24244. @return the tag value, or null if there is no such tag]]>
  24245. </doc>
  24246. </method>
  24247. <method name="getMetricNames" return="java.util.Set"
  24248. abstract="false" native="false" synchronized="false"
  24249. static="false" final="false" visibility="public"
  24250. deprecated="not deprecated">
  24251. <doc>
  24252. <![CDATA[Returns the set of metric names.]]>
  24253. </doc>
  24254. </method>
  24255. <method name="getMetric" return="java.lang.Number"
  24256. abstract="false" native="false" synchronized="false"
  24257. static="false" final="false" visibility="public"
  24258. deprecated="not deprecated">
  24259. <param name="name" type="java.lang.String"/>
  24260. <doc>
  24261. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  24262. </doc>
  24263. </method>
  24264. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  24265. abstract="false" native="false" synchronized="false"
  24266. static="false" final="false" visibility="public"
  24267. deprecated="not deprecated">
  24268. <doc>
  24269. <![CDATA[Returns a copy of this record's tags.]]>
  24270. </doc>
  24271. </method>
  24272. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  24273. abstract="false" native="false" synchronized="false"
  24274. static="false" final="false" visibility="public"
  24275. deprecated="not deprecated">
  24276. <doc>
  24277. <![CDATA[Returns a copy of this record's metrics.]]>
  24278. </doc>
  24279. </method>
  24280. <doc>
  24281. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  24282. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24283. </doc>
  24284. </class>
  24285. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  24286. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  24287. <class name="Util" extends="java.lang.Object"
  24288. abstract="false"
  24289. static="false" final="false" visibility="public"
  24290. deprecated="not deprecated">
  24291. <method name="parse" return="java.util.List"
  24292. abstract="false" native="false" synchronized="false"
  24293. static="true" final="false" visibility="public"
  24294. deprecated="not deprecated">
  24295. <param name="specs" type="java.lang.String"/>
  24296. <param name="defaultPort" type="int"/>
  24297. <doc>
  24298. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  24299. of the form <i>hostname</i> or <i>hostname:port</i>. If
  24300. the specs string is null, defaults to localhost:defaultPort.
  24301. @return a list of InetSocketAddress objects.]]>
  24302. </doc>
  24303. </method>
  24304. <doc>
  24305. <![CDATA[Static utility methods]]>
  24306. </doc>
  24307. </class>
  24308. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  24309. </package>
  24310. <package name="org.apache.hadoop.metrics.util">
  24311. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  24312. <class name="MBeanUtil" extends="java.lang.Object"
  24313. abstract="false"
  24314. static="false" final="false" visibility="public"
  24315. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  24316. <constructor name="MBeanUtil"
  24317. static="false" final="false" visibility="public"
  24318. deprecated="not deprecated">
  24319. </constructor>
  24320. <method name="registerMBean" return="javax.management.ObjectName"
  24321. abstract="false" native="false" synchronized="false"
  24322. static="true" final="false" visibility="public"
  24323. deprecated="not deprecated">
  24324. <param name="serviceName" type="java.lang.String"/>
  24325. <param name="nameName" type="java.lang.String"/>
  24326. <param name="theMbean" type="java.lang.Object"/>
  24327. <doc>
  24328. <![CDATA[Register the MBean using our standard MBeanName format
  24329. "hadoop:service=<serviceName>,name=<nameName>"
  24330. Where the <serviceName> and <nameName> are the supplied parameters
  24331. @param serviceName
  24332. @param nameName
  24333. @param theMbean - the MBean to register
  24334. @return the named used to register the MBean]]>
  24335. </doc>
  24336. </method>
  24337. <method name="unregisterMBean"
  24338. abstract="false" native="false" synchronized="false"
  24339. static="true" final="false" visibility="public"
  24340. deprecated="not deprecated">
  24341. <param name="mbeanName" type="javax.management.ObjectName"/>
  24342. </method>
  24343. <doc>
  24344. <![CDATA[This util class provides a method to register an MBean using
  24345. our standard naming convention as described in the doc
  24346. for {@link #registerMBean(String, String, Object)}
  24347. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  24348. </doc>
  24349. </class>
  24350. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  24351. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  24352. <class name="MetricsBase" extends="java.lang.Object"
  24353. abstract="true"
  24354. static="false" final="false" visibility="public"
  24355. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24356. <constructor name="MetricsBase" type="java.lang.String"
  24357. static="false" final="false" visibility="protected"
  24358. deprecated="not deprecated">
  24359. </constructor>
  24360. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  24361. static="false" final="false" visibility="protected"
  24362. deprecated="not deprecated">
  24363. </constructor>
  24364. <method name="pushMetric"
  24365. abstract="true" native="false" synchronized="false"
  24366. static="false" final="false" visibility="public"
  24367. deprecated="not deprecated">
  24368. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24369. </method>
  24370. <method name="getName" return="java.lang.String"
  24371. abstract="false" native="false" synchronized="false"
  24372. static="false" final="false" visibility="public"
  24373. deprecated="not deprecated">
  24374. </method>
  24375. <method name="getDescription" return="java.lang.String"
  24376. abstract="false" native="false" synchronized="false"
  24377. static="false" final="false" visibility="public"
  24378. deprecated="not deprecated">
  24379. </method>
  24380. <field name="NO_DESCRIPTION" type="java.lang.String"
  24381. transient="false" volatile="false"
  24382. static="true" final="true" visibility="public"
  24383. deprecated="not deprecated">
  24384. </field>
  24385. <doc>
  24386. <![CDATA[This is base class for all metrics
  24387. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24388. </doc>
  24389. </class>
  24390. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  24391. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  24392. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  24393. abstract="true"
  24394. static="false" final="false" visibility="public"
  24395. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24396. <implements name="javax.management.DynamicMBean"/>
  24397. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24398. static="false" final="false" visibility="protected"
  24399. deprecated="not deprecated">
  24400. </constructor>
  24401. <method name="getAttribute" return="java.lang.Object"
  24402. abstract="false" native="false" synchronized="false"
  24403. static="false" final="false" visibility="public"
  24404. deprecated="not deprecated">
  24405. <param name="attributeName" type="java.lang.String"/>
  24406. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  24407. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24408. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24409. </method>
  24410. <method name="getAttributes" return="javax.management.AttributeList"
  24411. abstract="false" native="false" synchronized="false"
  24412. static="false" final="false" visibility="public"
  24413. deprecated="not deprecated">
  24414. <param name="attributeNames" type="java.lang.String[]"/>
  24415. </method>
  24416. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  24417. abstract="false" native="false" synchronized="false"
  24418. static="false" final="false" visibility="public"
  24419. deprecated="not deprecated">
  24420. </method>
  24421. <method name="invoke" return="java.lang.Object"
  24422. abstract="false" native="false" synchronized="false"
  24423. static="false" final="false" visibility="public"
  24424. deprecated="not deprecated">
  24425. <param name="actionName" type="java.lang.String"/>
  24426. <param name="parms" type="java.lang.Object[]"/>
  24427. <param name="signature" type="java.lang.String[]"/>
  24428. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24429. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24430. </method>
  24431. <method name="setAttribute"
  24432. abstract="false" native="false" synchronized="false"
  24433. static="false" final="false" visibility="public"
  24434. deprecated="not deprecated">
  24435. <param name="attribute" type="javax.management.Attribute"/>
  24436. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  24437. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  24438. <exception name="MBeanException" type="javax.management.MBeanException"/>
  24439. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  24440. </method>
  24441. <method name="setAttributes" return="javax.management.AttributeList"
  24442. abstract="false" native="false" synchronized="false"
  24443. static="false" final="false" visibility="public"
  24444. deprecated="not deprecated">
  24445. <param name="attributes" type="javax.management.AttributeList"/>
  24446. </method>
  24447. <doc>
  24448. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  24449. metrics.
  24450. The metrics constructors registers metrics in a registry.
  24451. Different categories of metrics should be in differnt classes with their own
  24452. registry (as in NameNodeMetrics and DataNodeMetrics).
  24453. Then the MBean can be created passing the registry to the constructor.
  24454. The MBean should be then registered using a mbean name (example):
  24455. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  24456. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  24457. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  24458. "TestStatistics", theMBean);
  24459. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24460. </doc>
  24461. </class>
  24462. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  24463. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  24464. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24465. abstract="false"
  24466. static="false" final="false" visibility="public"
  24467. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  24468. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24469. static="false" final="false" visibility="public"
  24470. deprecated="not deprecated">
  24471. <doc>
  24472. <![CDATA[Constructor - create a new metric
  24473. @param nam the name of the metrics to be used to publish the metric
  24474. @param registry - where the metrics object will be registered]]>
  24475. </doc>
  24476. </constructor>
  24477. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24478. static="false" final="false" visibility="public"
  24479. deprecated="not deprecated">
  24480. <doc>
  24481. <![CDATA[Constructor - create a new metric
  24482. @param nam the name of the metrics to be used to publish the metric
  24483. @param registry - where the metrics object will be registered
  24484. A description of {@link #NO_DESCRIPTION} is used]]>
  24485. </doc>
  24486. </constructor>
  24487. <method name="set"
  24488. abstract="false" native="false" synchronized="true"
  24489. static="false" final="false" visibility="public"
  24490. deprecated="not deprecated">
  24491. <param name="newValue" type="int"/>
  24492. <doc>
  24493. <![CDATA[Set the value
  24494. @param newValue]]>
  24495. </doc>
  24496. </method>
  24497. <method name="get" return="int"
  24498. abstract="false" native="false" synchronized="true"
  24499. static="false" final="false" visibility="public"
  24500. deprecated="not deprecated">
  24501. <doc>
  24502. <![CDATA[Get value
  24503. @return the value last set]]>
  24504. </doc>
  24505. </method>
  24506. <method name="pushMetric"
  24507. abstract="false" native="false" synchronized="true"
  24508. static="false" final="false" visibility="public"
  24509. deprecated="not deprecated">
  24510. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24511. <doc>
  24512. <![CDATA[Push the metric to the mr.
  24513. The metric is pushed only if it was updated since last push
  24514. Note this does NOT push to JMX
  24515. (JMX gets the info via {@link #get()}
  24516. @param mr]]>
  24517. </doc>
  24518. </method>
  24519. <doc>
  24520. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  24521. but changes only when it is set.
  24522. Each time its value is set, it is published only *once* at the next update
  24523. call.
  24524. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  24525. </doc>
  24526. </class>
  24527. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  24528. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  24529. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24530. abstract="false"
  24531. static="false" final="false" visibility="public"
  24532. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24533. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24534. static="false" final="false" visibility="public"
  24535. deprecated="not deprecated">
  24536. <doc>
  24537. <![CDATA[Constructor - create a new metric
  24538. @param nam the name of the metrics to be used to publish the metric
  24539. @param registry - where the metrics object will be registered]]>
  24540. </doc>
  24541. </constructor>
  24542. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24543. static="false" final="false" visibility="public"
  24544. deprecated="not deprecated">
  24545. <doc>
  24546. <![CDATA[Constructor - create a new metric
  24547. @param nam the name of the metrics to be used to publish the metric
  24548. @param registry - where the metrics object will be registered
  24549. A description of {@link #NO_DESCRIPTION} is used]]>
  24550. </doc>
  24551. </constructor>
  24552. <method name="set"
  24553. abstract="false" native="false" synchronized="true"
  24554. static="false" final="false" visibility="public"
  24555. deprecated="not deprecated">
  24556. <param name="newValue" type="long"/>
  24557. <doc>
  24558. <![CDATA[Set the value
  24559. @param newValue]]>
  24560. </doc>
  24561. </method>
  24562. <method name="get" return="long"
  24563. abstract="false" native="false" synchronized="true"
  24564. static="false" final="false" visibility="public"
  24565. deprecated="not deprecated">
  24566. <doc>
  24567. <![CDATA[Get value
  24568. @return the value last set]]>
  24569. </doc>
  24570. </method>
  24571. <method name="pushMetric"
  24572. abstract="false" native="false" synchronized="true"
  24573. static="false" final="false" visibility="public"
  24574. deprecated="not deprecated">
  24575. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24576. <doc>
  24577. <![CDATA[Push the metric to the mr.
  24578. The metric is pushed only if it was updated since last push
  24579. Note this does NOT push to JMX
  24580. (JMX gets the info via {@link #get()}
  24581. @param mr]]>
  24582. </doc>
  24583. </method>
  24584. <doc>
  24585. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  24586. but changes only when it is set.
  24587. Each time its value is set, it is published only *once* at the next update
  24588. call.
  24589. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24590. </doc>
  24591. </class>
  24592. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  24593. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  24594. <class name="MetricsRegistry" extends="java.lang.Object"
  24595. abstract="false"
  24596. static="false" final="false" visibility="public"
  24597. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  24598. <constructor name="MetricsRegistry"
  24599. static="false" final="false" visibility="public"
  24600. deprecated="not deprecated">
  24601. </constructor>
  24602. <method name="size" return="int"
  24603. abstract="false" native="false" synchronized="false"
  24604. static="false" final="false" visibility="public"
  24605. deprecated="not deprecated">
  24606. <doc>
  24607. <![CDATA[@return number of metrics in the registry]]>
  24608. </doc>
  24609. </method>
  24610. <method name="add"
  24611. abstract="false" native="false" synchronized="true"
  24612. static="false" final="false" visibility="public"
  24613. deprecated="not deprecated">
  24614. <param name="metricsName" type="java.lang.String"/>
  24615. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  24616. <doc>
  24617. <![CDATA[Add a new metrics to the registry
  24618. @param metricsName - the name
  24619. @param theMetricsObj - the metrics
  24620. @throws IllegalArgumentException if a name is already registered]]>
  24621. </doc>
  24622. </method>
  24623. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  24624. abstract="false" native="false" synchronized="true"
  24625. static="false" final="false" visibility="public"
  24626. deprecated="not deprecated">
  24627. <param name="metricsName" type="java.lang.String"/>
  24628. <doc>
  24629. <![CDATA[@param metricsName
  24630. @return the metrics if there is one registered by the supplied name.
  24631. Returns null if none is registered]]>
  24632. </doc>
  24633. </method>
  24634. <method name="getKeyList" return="java.util.Collection"
  24635. abstract="false" native="false" synchronized="true"
  24636. static="false" final="false" visibility="public"
  24637. deprecated="not deprecated">
  24638. <doc>
  24639. <![CDATA[@return the list of metrics names]]>
  24640. </doc>
  24641. </method>
  24642. <method name="getMetricsList" return="java.util.Collection"
  24643. abstract="false" native="false" synchronized="true"
  24644. static="false" final="false" visibility="public"
  24645. deprecated="not deprecated">
  24646. <doc>
  24647. <![CDATA[@return the list of metrics]]>
  24648. </doc>
  24649. </method>
  24650. <doc>
  24651. <![CDATA[This is the registry for metrics.
  24652. Related set of metrics should be declared in a holding class and registered
  24653. in a registry for those metrics which is also stored in the the holding class.
  24654. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  24655. </doc>
  24656. </class>
  24657. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  24658. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  24659. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24660. abstract="false"
  24661. static="false" final="false" visibility="public"
  24662. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  24663. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24664. static="false" final="false" visibility="public"
  24665. deprecated="not deprecated">
  24666. <doc>
  24667. <![CDATA[Constructor - create a new metric
  24668. @param nam the name of the metrics to be used to publish the metric
  24669. @param registry - where the metrics object will be registered
  24670. @param description - the description]]>
  24671. </doc>
  24672. </constructor>
  24673. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24674. static="false" final="false" visibility="public"
  24675. deprecated="not deprecated">
  24676. <doc>
  24677. <![CDATA[Constructor - create a new metric
  24678. @param nam the name of the metrics to be used to publish the metric
  24679. @param registry - where the metrics object will be registered
  24680. A description of {@link #NO_DESCRIPTION} is used]]>
  24681. </doc>
  24682. </constructor>
  24683. <method name="inc"
  24684. abstract="false" native="false" synchronized="true"
  24685. static="false" final="false" visibility="public"
  24686. deprecated="not deprecated">
  24687. <param name="incr" type="int"/>
  24688. <doc>
  24689. <![CDATA[Inc metrics for incr vlaue
  24690. @param incr - number of operations]]>
  24691. </doc>
  24692. </method>
  24693. <method name="inc"
  24694. abstract="false" native="false" synchronized="true"
  24695. static="false" final="false" visibility="public"
  24696. deprecated="not deprecated">
  24697. <doc>
  24698. <![CDATA[Inc metrics by one]]>
  24699. </doc>
  24700. </method>
  24701. <method name="pushMetric"
  24702. abstract="false" native="false" synchronized="true"
  24703. static="false" final="false" visibility="public"
  24704. deprecated="not deprecated">
  24705. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24706. <doc>
  24707. <![CDATA[Push the delta metrics to the mr.
  24708. The delta is since the last push/interval.
  24709. Note this does NOT push to JMX
  24710. (JMX gets the info via {@link #previousIntervalValue}
  24711. @param mr]]>
  24712. </doc>
  24713. </method>
  24714. <method name="getPreviousIntervalValue" return="int"
  24715. abstract="false" native="false" synchronized="true"
  24716. static="false" final="false" visibility="public"
  24717. deprecated="not deprecated">
  24718. <doc>
  24719. <![CDATA[The Value at the Previous interval
  24720. @return prev interval value]]>
  24721. </doc>
  24722. </method>
  24723. <method name="getCurrentIntervalValue" return="int"
  24724. abstract="false" native="false" synchronized="true"
  24725. static="false" final="false" visibility="public"
  24726. deprecated="not deprecated">
  24727. <doc>
  24728. <![CDATA[The Value at the current interval
  24729. @return prev interval value]]>
  24730. </doc>
  24731. </method>
  24732. <doc>
  24733. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  24734. varies over time (e.g. number of files created). The metrics is accumulated
  24735. over an interval (set in the metrics config file); the metrics is
  24736. published at the end of each interval and then
  24737. reset to zero. Hence the counter has the value in the current interval.
  24738. Note if one wants a time associated with the metric then use
  24739. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  24740. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  24741. </doc>
  24742. </class>
  24743. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  24744. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  24745. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24746. abstract="false"
  24747. static="false" final="false" visibility="public"
  24748. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  24749. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24750. static="false" final="false" visibility="public"
  24751. deprecated="not deprecated">
  24752. <doc>
  24753. <![CDATA[Constructor - create a new metric
  24754. @param nam the name of the metrics to be used to publish the metric
  24755. @param registry - where the metrics object will be registered]]>
  24756. </doc>
  24757. </constructor>
  24758. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24759. static="false" final="false" visibility="public"
  24760. deprecated="not deprecated">
  24761. <doc>
  24762. <![CDATA[Constructor - create a new metric
  24763. @param nam the name of the metrics to be used to publish the metric
  24764. @param registry - where the metrics object will be registered
  24765. A description of {@link #NO_DESCRIPTION} is used]]>
  24766. </doc>
  24767. </constructor>
  24768. <method name="inc"
  24769. abstract="false" native="false" synchronized="true"
  24770. static="false" final="false" visibility="public"
  24771. deprecated="not deprecated">
  24772. <param name="incr" type="long"/>
  24773. <doc>
  24774. <![CDATA[Inc metrics for incr vlaue
  24775. @param incr - number of operations]]>
  24776. </doc>
  24777. </method>
  24778. <method name="inc"
  24779. abstract="false" native="false" synchronized="true"
  24780. static="false" final="false" visibility="public"
  24781. deprecated="not deprecated">
  24782. <doc>
  24783. <![CDATA[Inc metrics by one]]>
  24784. </doc>
  24785. </method>
  24786. <method name="pushMetric"
  24787. abstract="false" native="false" synchronized="true"
  24788. static="false" final="false" visibility="public"
  24789. deprecated="not deprecated">
  24790. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24791. <doc>
  24792. <![CDATA[Push the delta metrics to the mr.
  24793. The delta is since the last push/interval.
  24794. Note this does NOT push to JMX
  24795. (JMX gets the info via {@link #previousIntervalValue}
  24796. @param mr]]>
  24797. </doc>
  24798. </method>
  24799. <method name="getPreviousIntervalValue" return="long"
  24800. abstract="false" native="false" synchronized="true"
  24801. static="false" final="false" visibility="public"
  24802. deprecated="not deprecated">
  24803. <doc>
  24804. <![CDATA[The Value at the Previous interval
  24805. @return prev interval value]]>
  24806. </doc>
  24807. </method>
  24808. <method name="getCurrentIntervalValue" return="long"
  24809. abstract="false" native="false" synchronized="true"
  24810. static="false" final="false" visibility="public"
  24811. deprecated="not deprecated">
  24812. <doc>
  24813. <![CDATA[The Value at the current interval
  24814. @return prev interval value]]>
  24815. </doc>
  24816. </method>
  24817. <doc>
  24818. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  24819. varies over time (e.g. number of files created). The metrics is accumulated
  24820. over an interval (set in the metrics config file); the metrics is
  24821. published at the end of each interval and then
  24822. reset to zero. Hence the counter has the value in the current interval.
  24823. Note if one wants a time associated with the metric then use
  24824. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  24825. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  24826. </doc>
  24827. </class>
  24828. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  24829. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  24830. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  24831. abstract="false"
  24832. static="false" final="false" visibility="public"
  24833. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  24834. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  24835. static="false" final="false" visibility="public"
  24836. deprecated="not deprecated">
  24837. <doc>
  24838. <![CDATA[Constructor - create a new metric
  24839. @param nam the name of the metrics to be used to publish the metric
  24840. @param registry - where the metrics object will be registered]]>
  24841. </doc>
  24842. </constructor>
  24843. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  24844. static="false" final="false" visibility="public"
  24845. deprecated="not deprecated">
  24846. <doc>
  24847. <![CDATA[Constructor - create a new metric
  24848. @param nam the name of the metrics to be used to publish the metric
  24849. @param registry - where the metrics object will be registered
  24850. A description of {@link #NO_DESCRIPTION} is used]]>
  24851. </doc>
  24852. </constructor>
  24853. <method name="inc"
  24854. abstract="false" native="false" synchronized="true"
  24855. static="false" final="false" visibility="public"
  24856. deprecated="not deprecated">
  24857. <param name="numOps" type="int"/>
  24858. <param name="time" type="long"/>
  24859. <doc>
  24860. <![CDATA[Increment the metrics for numOps operations
  24861. @param numOps - number of operations
  24862. @param time - time for numOps operations]]>
  24863. </doc>
  24864. </method>
  24865. <method name="inc"
  24866. abstract="false" native="false" synchronized="true"
  24867. static="false" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. <param name="time" type="long"/>
  24870. <doc>
  24871. <![CDATA[Increment the metrics for one operation
  24872. @param time for one operation]]>
  24873. </doc>
  24874. </method>
  24875. <method name="pushMetric"
  24876. abstract="false" native="false" synchronized="true"
  24877. static="false" final="false" visibility="public"
  24878. deprecated="not deprecated">
  24879. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  24880. <doc>
  24881. <![CDATA[Push the delta metrics to the mr.
  24882. The delta is since the last push/interval.
  24883. Note this does NOT push to JMX
  24884. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  24885. {@link #getPreviousIntervalNumOps()}
  24886. @param mr]]>
  24887. </doc>
  24888. </method>
  24889. <method name="getPreviousIntervalNumOps" return="int"
  24890. abstract="false" native="false" synchronized="true"
  24891. static="false" final="false" visibility="public"
  24892. deprecated="not deprecated">
  24893. <doc>
  24894. <![CDATA[The number of operations in the previous interval
  24895. @return - ops in prev interval]]>
  24896. </doc>
  24897. </method>
  24898. <method name="getPreviousIntervalAverageTime" return="long"
  24899. abstract="false" native="false" synchronized="true"
  24900. static="false" final="false" visibility="public"
  24901. deprecated="not deprecated">
  24902. <doc>
  24903. <![CDATA[The average rate of an operation in the previous interval
  24904. @return - the average rate.]]>
  24905. </doc>
  24906. </method>
  24907. <method name="getMinTime" return="long"
  24908. abstract="false" native="false" synchronized="true"
  24909. static="false" final="false" visibility="public"
  24910. deprecated="not deprecated">
  24911. <doc>
  24912. <![CDATA[The min time for a single operation since the last reset
  24913. {@link #resetMinMax()}
  24914. @return min time for an operation]]>
  24915. </doc>
  24916. </method>
  24917. <method name="getMaxTime" return="long"
  24918. abstract="false" native="false" synchronized="true"
  24919. static="false" final="false" visibility="public"
  24920. deprecated="not deprecated">
  24921. <doc>
  24922. <![CDATA[The max time for a single operation since the last reset
  24923. {@link #resetMinMax()}
  24924. @return max time for an operation]]>
  24925. </doc>
  24926. </method>
  24927. <method name="resetMinMax"
  24928. abstract="false" native="false" synchronized="true"
  24929. static="false" final="false" visibility="public"
  24930. deprecated="not deprecated">
  24931. <doc>
  24932. <![CDATA[Reset the min max values]]>
  24933. </doc>
  24934. </method>
  24935. <doc>
  24936. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  24937. naturally varies over time (e.g. time taken to create a file).
  24938. The rate is averaged at each interval heart beat (the interval
  24939. is set in the metrics config file).
  24940. This class also keeps track of the min and max rates along with
  24941. a method to reset the min-max.
  24942. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  24943. </doc>
  24944. </class>
  24945. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  24946. </package>
  24947. <package name="org.apache.hadoop.metrics2">
  24948. <!-- start class org.apache.hadoop.metrics2.Metric -->
  24949. <class name="Metric" extends="java.lang.Object"
  24950. abstract="true"
  24951. static="false" final="false" visibility="public"
  24952. deprecated="not deprecated">
  24953. <constructor name="Metric" type="java.lang.String"
  24954. static="false" final="false" visibility="public"
  24955. deprecated="not deprecated">
  24956. <doc>
  24957. <![CDATA[Construct the metric with name only
  24958. @param name of the metric]]>
  24959. </doc>
  24960. </constructor>
  24961. <constructor name="Metric" type="java.lang.String, java.lang.String"
  24962. static="false" final="false" visibility="public"
  24963. deprecated="not deprecated">
  24964. <doc>
  24965. <![CDATA[Construct the metric with a name and a description
  24966. @param name of the metric
  24967. @param desc description of the metric]]>
  24968. </doc>
  24969. </constructor>
  24970. <method name="name" return="java.lang.String"
  24971. abstract="false" native="false" synchronized="false"
  24972. static="false" final="false" visibility="public"
  24973. deprecated="not deprecated">
  24974. <doc>
  24975. <![CDATA[Get the name of the metric
  24976. @return the name]]>
  24977. </doc>
  24978. </method>
  24979. <method name="description" return="java.lang.String"
  24980. abstract="false" native="false" synchronized="false"
  24981. static="false" final="false" visibility="public"
  24982. deprecated="not deprecated">
  24983. <doc>
  24984. <![CDATA[Get the description of the metric
  24985. @return the description]]>
  24986. </doc>
  24987. </method>
  24988. <method name="value" return="java.lang.Number"
  24989. abstract="true" native="false" synchronized="false"
  24990. static="false" final="false" visibility="public"
  24991. deprecated="not deprecated">
  24992. <doc>
  24993. <![CDATA[Get the value of the metric
  24994. @return the value of the metric]]>
  24995. </doc>
  24996. </method>
  24997. <method name="visit"
  24998. abstract="true" native="false" synchronized="false"
  24999. static="false" final="false" visibility="public"
  25000. deprecated="not deprecated">
  25001. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  25002. <doc>
  25003. <![CDATA[Accept a visitor interface
  25004. @param visitor of the metric]]>
  25005. </doc>
  25006. </method>
  25007. <method name="equals" return="boolean"
  25008. abstract="false" native="false" synchronized="false"
  25009. static="false" final="false" visibility="public"
  25010. deprecated="not deprecated">
  25011. <param name="obj" type="java.lang.Object"/>
  25012. </method>
  25013. <method name="hashCode" return="int"
  25014. abstract="false" native="false" synchronized="false"
  25015. static="false" final="false" visibility="public"
  25016. deprecated="not deprecated">
  25017. </method>
  25018. <method name="toString" return="java.lang.String"
  25019. abstract="false" native="false" synchronized="false"
  25020. static="false" final="false" visibility="public"
  25021. deprecated="not deprecated">
  25022. </method>
  25023. <field name="NO_DESCRIPTION" type="java.lang.String"
  25024. transient="false" volatile="false"
  25025. static="true" final="true" visibility="public"
  25026. deprecated="not deprecated">
  25027. </field>
  25028. <doc>
  25029. <![CDATA[The immutable metric]]>
  25030. </doc>
  25031. </class>
  25032. <!-- end class org.apache.hadoop.metrics2.Metric -->
  25033. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  25034. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  25035. abstract="true"
  25036. static="false" final="false" visibility="public"
  25037. deprecated="not deprecated">
  25038. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  25039. static="false" final="false" visibility="public"
  25040. deprecated="not deprecated">
  25041. <doc>
  25042. <![CDATA[Construct a counter metric
  25043. @param name of the metric
  25044. @param description of the metric]]>
  25045. </doc>
  25046. </constructor>
  25047. <method name="value" return="java.lang.Number"
  25048. abstract="true" native="false" synchronized="false"
  25049. static="false" final="false" visibility="public"
  25050. deprecated="not deprecated">
  25051. </method>
  25052. <doc>
  25053. <![CDATA[A generic immutable counter metric type
  25054. @param <T> value type of the metric]]>
  25055. </doc>
  25056. </class>
  25057. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  25058. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  25059. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  25060. abstract="true"
  25061. static="false" final="false" visibility="public"
  25062. deprecated="not deprecated">
  25063. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  25064. static="false" final="false" visibility="public"
  25065. deprecated="not deprecated">
  25066. <doc>
  25067. <![CDATA[Construct a gauge metric
  25068. @param name of the metric
  25069. @param description of the metric]]>
  25070. </doc>
  25071. </constructor>
  25072. <method name="value" return="java.lang.Number"
  25073. abstract="true" native="false" synchronized="false"
  25074. static="false" final="false" visibility="public"
  25075. deprecated="not deprecated">
  25076. </method>
  25077. <doc>
  25078. <![CDATA[A generic immutable gauge metric
  25079. @param <T> value type of the metric]]>
  25080. </doc>
  25081. </class>
  25082. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  25083. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  25084. <interface name="MetricsBuilder" abstract="true"
  25085. static="false" final="false" visibility="public"
  25086. deprecated="not deprecated">
  25087. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25088. abstract="false" native="false" synchronized="false"
  25089. static="false" final="false" visibility="public"
  25090. deprecated="not deprecated">
  25091. <param name="name" type="java.lang.String"/>
  25092. <doc>
  25093. <![CDATA[Add a metrics record
  25094. @param name of the record
  25095. @return a metrics record builder for the record]]>
  25096. </doc>
  25097. </method>
  25098. <doc>
  25099. <![CDATA[The metrics builder interface]]>
  25100. </doc>
  25101. </interface>
  25102. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  25103. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  25104. <class name="MetricsException" extends="java.lang.RuntimeException"
  25105. abstract="false"
  25106. static="false" final="false" visibility="public"
  25107. deprecated="not deprecated">
  25108. <constructor name="MetricsException" type="java.lang.String"
  25109. static="false" final="false" visibility="public"
  25110. deprecated="not deprecated">
  25111. <doc>
  25112. <![CDATA[Construct the exception with a message
  25113. @param message for the exception]]>
  25114. </doc>
  25115. </constructor>
  25116. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  25117. static="false" final="false" visibility="public"
  25118. deprecated="not deprecated">
  25119. <doc>
  25120. <![CDATA[Construct the exception with a message and a cause
  25121. @param message for the exception
  25122. @param cause of the exception]]>
  25123. </doc>
  25124. </constructor>
  25125. <constructor name="MetricsException" type="java.lang.Throwable"
  25126. static="false" final="false" visibility="public"
  25127. deprecated="not deprecated">
  25128. <doc>
  25129. <![CDATA[Construct the exception with a cause
  25130. @param cause of the exception]]>
  25131. </doc>
  25132. </constructor>
  25133. <doc>
  25134. <![CDATA[A general metrics exception wrapper]]>
  25135. </doc>
  25136. </class>
  25137. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  25138. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  25139. <class name="MetricsFilter" extends="java.lang.Object"
  25140. abstract="true"
  25141. static="false" final="false" visibility="public"
  25142. deprecated="not deprecated">
  25143. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25144. <constructor name="MetricsFilter"
  25145. static="false" final="false" visibility="public"
  25146. deprecated="not deprecated">
  25147. </constructor>
  25148. <method name="init"
  25149. abstract="true" native="false" synchronized="false"
  25150. static="false" final="false" visibility="public"
  25151. deprecated="not deprecated">
  25152. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25153. </method>
  25154. <method name="accepts" return="boolean"
  25155. abstract="true" native="false" synchronized="false"
  25156. static="false" final="false" visibility="public"
  25157. deprecated="not deprecated">
  25158. <param name="name" type="java.lang.String"/>
  25159. <doc>
  25160. <![CDATA[Whether to accept the name
  25161. @param name to filter on
  25162. @return true to accept; false otherwise.]]>
  25163. </doc>
  25164. </method>
  25165. <method name="accepts" return="boolean"
  25166. abstract="true" native="false" synchronized="false"
  25167. static="false" final="false" visibility="public"
  25168. deprecated="not deprecated">
  25169. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25170. <doc>
  25171. <![CDATA[Whether to accept the tag
  25172. @param tag to filter on
  25173. @return true to accept; false otherwise]]>
  25174. </doc>
  25175. </method>
  25176. <method name="accepts" return="boolean"
  25177. abstract="true" native="false" synchronized="false"
  25178. static="false" final="false" visibility="public"
  25179. deprecated="not deprecated">
  25180. <param name="tags" type="java.lang.Iterable"/>
  25181. <doc>
  25182. <![CDATA[Whether to accept the tags
  25183. @param tags to filter on
  25184. @return true to accept; false otherwise]]>
  25185. </doc>
  25186. </method>
  25187. <method name="accepts" return="boolean"
  25188. abstract="false" native="false" synchronized="false"
  25189. static="false" final="false" visibility="public"
  25190. deprecated="not deprecated">
  25191. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25192. <doc>
  25193. <![CDATA[Whether to accept the record
  25194. @param record to filter on
  25195. @return true to accept; false otherwise.]]>
  25196. </doc>
  25197. </method>
  25198. <doc>
  25199. <![CDATA[The metrics filter interface]]>
  25200. </doc>
  25201. </class>
  25202. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  25203. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25204. <interface name="MetricsPlugin" abstract="true"
  25205. static="false" final="false" visibility="public"
  25206. deprecated="not deprecated">
  25207. <method name="init"
  25208. abstract="false" native="false" synchronized="false"
  25209. static="false" final="false" visibility="public"
  25210. deprecated="not deprecated">
  25211. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  25212. <doc>
  25213. <![CDATA[Initialize the plugin
  25214. @param conf the configuration object for the plugin]]>
  25215. </doc>
  25216. </method>
  25217. <doc>
  25218. <![CDATA[A fairly generic plugin interface]]>
  25219. </doc>
  25220. </interface>
  25221. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  25222. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  25223. <interface name="MetricsRecord" abstract="true"
  25224. static="false" final="false" visibility="public"
  25225. deprecated="not deprecated">
  25226. <method name="timestamp" return="long"
  25227. abstract="false" native="false" synchronized="false"
  25228. static="false" final="false" visibility="public"
  25229. deprecated="not deprecated">
  25230. <doc>
  25231. <![CDATA[Get the timestamp of the metrics
  25232. @return the timestamp]]>
  25233. </doc>
  25234. </method>
  25235. <method name="name" return="java.lang.String"
  25236. abstract="false" native="false" synchronized="false"
  25237. static="false" final="false" visibility="public"
  25238. deprecated="not deprecated">
  25239. <doc>
  25240. <![CDATA[Get the record name of the metrics
  25241. @return the record name]]>
  25242. </doc>
  25243. </method>
  25244. <method name="context" return="java.lang.String"
  25245. abstract="false" native="false" synchronized="false"
  25246. static="false" final="false" visibility="public"
  25247. deprecated="not deprecated">
  25248. <doc>
  25249. <![CDATA[Get the context name of the metrics
  25250. @return the context name]]>
  25251. </doc>
  25252. </method>
  25253. <method name="tags" return="java.lang.Iterable"
  25254. abstract="false" native="false" synchronized="false"
  25255. static="false" final="false" visibility="public"
  25256. deprecated="not deprecated">
  25257. <doc>
  25258. <![CDATA[Get the tags of the record
  25259. @return the tags]]>
  25260. </doc>
  25261. </method>
  25262. <method name="metrics" return="java.lang.Iterable"
  25263. abstract="false" native="false" synchronized="false"
  25264. static="false" final="false" visibility="public"
  25265. deprecated="not deprecated">
  25266. <doc>
  25267. <![CDATA[Get the metrics of the record
  25268. @return the metrics]]>
  25269. </doc>
  25270. </method>
  25271. <doc>
  25272. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  25273. </doc>
  25274. </interface>
  25275. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  25276. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25277. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  25278. abstract="true"
  25279. static="false" final="false" visibility="public"
  25280. deprecated="not deprecated">
  25281. <constructor name="MetricsRecordBuilder"
  25282. static="false" final="false" visibility="public"
  25283. deprecated="not deprecated">
  25284. </constructor>
  25285. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25286. abstract="true" native="false" synchronized="false"
  25287. static="false" final="false" visibility="public"
  25288. deprecated="not deprecated">
  25289. <param name="name" type="java.lang.String"/>
  25290. <param name="description" type="java.lang.String"/>
  25291. <param name="value" type="java.lang.String"/>
  25292. <doc>
  25293. <![CDATA[Add a metrics tag
  25294. @param name of the tag
  25295. @param description of the tag
  25296. @param value of the tag
  25297. @return self]]>
  25298. </doc>
  25299. </method>
  25300. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25301. abstract="true" native="false" synchronized="false"
  25302. static="false" final="false" visibility="public"
  25303. deprecated="not deprecated">
  25304. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  25305. <doc>
  25306. <![CDATA[Add an immutable metrics tag object
  25307. @param tag a pre-made tag object (potentially save an object construction)
  25308. @return self]]>
  25309. </doc>
  25310. </method>
  25311. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25312. abstract="true" native="false" synchronized="false"
  25313. static="false" final="false" visibility="public"
  25314. deprecated="not deprecated">
  25315. <param name="value" type="java.lang.String"/>
  25316. <doc>
  25317. <![CDATA[Set the context tag
  25318. @param value of the context
  25319. @return self]]>
  25320. </doc>
  25321. </method>
  25322. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25323. abstract="true" native="false" synchronized="false"
  25324. static="false" final="false" visibility="public"
  25325. deprecated="not deprecated">
  25326. <param name="name" type="java.lang.String"/>
  25327. <param name="description" type="java.lang.String"/>
  25328. <param name="value" type="int"/>
  25329. <doc>
  25330. <![CDATA[Add an int counter metric
  25331. @param name of the metric
  25332. @param description of the metric
  25333. @param value of the metric
  25334. @return self]]>
  25335. </doc>
  25336. </method>
  25337. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25338. abstract="true" native="false" synchronized="false"
  25339. static="false" final="false" visibility="public"
  25340. deprecated="not deprecated">
  25341. <param name="name" type="java.lang.String"/>
  25342. <param name="description" type="java.lang.String"/>
  25343. <param name="value" type="long"/>
  25344. <doc>
  25345. <![CDATA[Add an long counter metric
  25346. @param name of the metric
  25347. @param description of the metric
  25348. @param value of the metric
  25349. @return self]]>
  25350. </doc>
  25351. </method>
  25352. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25353. abstract="true" native="false" synchronized="false"
  25354. static="false" final="false" visibility="public"
  25355. deprecated="not deprecated">
  25356. <param name="name" type="java.lang.String"/>
  25357. <param name="description" type="java.lang.String"/>
  25358. <param name="value" type="int"/>
  25359. <doc>
  25360. <![CDATA[Add a int gauge metric
  25361. @param name of the metric
  25362. @param description of the metric
  25363. @param value of the metric
  25364. @return self]]>
  25365. </doc>
  25366. </method>
  25367. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25368. abstract="true" native="false" synchronized="false"
  25369. static="false" final="false" visibility="public"
  25370. deprecated="not deprecated">
  25371. <param name="name" type="java.lang.String"/>
  25372. <param name="description" type="java.lang.String"/>
  25373. <param name="value" type="long"/>
  25374. <doc>
  25375. <![CDATA[Add a long gauge metric
  25376. @param name of the metric
  25377. @param description of the metric
  25378. @param value of the metric
  25379. @return self]]>
  25380. </doc>
  25381. </method>
  25382. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25383. abstract="true" native="false" synchronized="false"
  25384. static="false" final="false" visibility="public"
  25385. deprecated="not deprecated">
  25386. <param name="name" type="java.lang.String"/>
  25387. <param name="description" type="java.lang.String"/>
  25388. <param name="value" type="float"/>
  25389. <doc>
  25390. <![CDATA[Add a float gauge metric
  25391. @param name of the metric
  25392. @param description of the metric
  25393. @param value of the metric
  25394. @return self]]>
  25395. </doc>
  25396. </method>
  25397. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25398. abstract="true" native="false" synchronized="false"
  25399. static="false" final="false" visibility="public"
  25400. deprecated="not deprecated">
  25401. <param name="name" type="java.lang.String"/>
  25402. <param name="description" type="java.lang.String"/>
  25403. <param name="value" type="double"/>
  25404. <doc>
  25405. <![CDATA[Add a double gauge metric
  25406. @param name of the metric
  25407. @param description of the metric
  25408. @param value of the metric
  25409. @return self]]>
  25410. </doc>
  25411. </method>
  25412. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  25413. abstract="true" native="false" synchronized="false"
  25414. static="false" final="false" visibility="public"
  25415. deprecated="not deprecated">
  25416. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  25417. <doc>
  25418. <![CDATA[Add a pre-made immutable metric object
  25419. @param metric the pre-made metric to save an object construction
  25420. @return self]]>
  25421. </doc>
  25422. </method>
  25423. <doc>
  25424. <![CDATA[The metrics record builder interface]]>
  25425. </doc>
  25426. </class>
  25427. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  25428. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  25429. <interface name="MetricsSink" abstract="true"
  25430. static="false" final="false" visibility="public"
  25431. deprecated="not deprecated">
  25432. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  25433. <method name="putMetrics"
  25434. abstract="false" native="false" synchronized="false"
  25435. static="false" final="false" visibility="public"
  25436. deprecated="not deprecated">
  25437. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  25438. <doc>
  25439. <![CDATA[Put a metrics record in the sink
  25440. @param record the record to put]]>
  25441. </doc>
  25442. </method>
  25443. <method name="flush"
  25444. abstract="false" native="false" synchronized="false"
  25445. static="false" final="false" visibility="public"
  25446. deprecated="not deprecated">
  25447. <doc>
  25448. <![CDATA[Flush any buffered metrics]]>
  25449. </doc>
  25450. </method>
  25451. <doc>
  25452. <![CDATA[The metrics sink interface]]>
  25453. </doc>
  25454. </interface>
  25455. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  25456. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  25457. <interface name="MetricsSource" abstract="true"
  25458. static="false" final="false" visibility="public"
  25459. deprecated="not deprecated">
  25460. <method name="getMetrics"
  25461. abstract="false" native="false" synchronized="false"
  25462. static="false" final="false" visibility="public"
  25463. deprecated="not deprecated">
  25464. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  25465. <param name="all" type="boolean"/>
  25466. <doc>
  25467. <![CDATA[Get metrics from the source
  25468. @param builder to contain the resulting metrics snapshot
  25469. @param all if true, return all metrics even if unchanged.]]>
  25470. </doc>
  25471. </method>
  25472. <doc>
  25473. <![CDATA[The metrics source interface]]>
  25474. </doc>
  25475. </interface>
  25476. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  25477. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  25478. <interface name="MetricsSystem" abstract="true"
  25479. static="false" final="false" visibility="public"
  25480. deprecated="not deprecated">
  25481. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  25482. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  25483. abstract="false" native="false" synchronized="false"
  25484. static="false" final="false" visibility="public"
  25485. deprecated="not deprecated">
  25486. <param name="name" type="java.lang.String"/>
  25487. <param name="desc" type="java.lang.String"/>
  25488. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  25489. <doc>
  25490. <![CDATA[Register a metrics source
  25491. @param <T> the type of the source
  25492. @param source to register
  25493. @param name of the source. Must be unique.
  25494. @param desc the description of the source.
  25495. @return the source
  25496. @exception MetricsException]]>
  25497. </doc>
  25498. </method>
  25499. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  25500. abstract="false" native="false" synchronized="false"
  25501. static="false" final="false" visibility="public"
  25502. deprecated="not deprecated">
  25503. <param name="name" type="java.lang.String"/>
  25504. <param name="desc" type="java.lang.String"/>
  25505. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  25506. <doc>
  25507. <![CDATA[Register a metrics sink
  25508. @param <T> the type of the sink
  25509. @param sink to register
  25510. @param name of the sink. Must be unique.
  25511. @param desc the description of the sink
  25512. @return the sink
  25513. @exception MetricsException]]>
  25514. </doc>
  25515. </method>
  25516. <method name="register"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="false" final="false" visibility="public"
  25519. deprecated="not deprecated">
  25520. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25521. <doc>
  25522. <![CDATA[Register a callback interface for JMX events
  25523. @param callback the callback object implementing the MBean interface.]]>
  25524. </doc>
  25525. </method>
  25526. <method name="shutdown"
  25527. abstract="false" native="false" synchronized="false"
  25528. static="false" final="false" visibility="public"
  25529. deprecated="not deprecated">
  25530. <doc>
  25531. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  25532. The MetricsSystemMXBean will be unregistered.]]>
  25533. </doc>
  25534. </method>
  25535. <doc>
  25536. <![CDATA[The metrics system interface]]>
  25537. </doc>
  25538. </interface>
  25539. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  25540. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  25541. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  25542. abstract="true"
  25543. static="true" final="false" visibility="public"
  25544. deprecated="not deprecated">
  25545. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25546. <constructor name="MetricsSystem.AbstractCallback"
  25547. static="false" final="false" visibility="public"
  25548. deprecated="not deprecated">
  25549. </constructor>
  25550. <method name="preStart"
  25551. abstract="false" native="false" synchronized="false"
  25552. static="false" final="false" visibility="public"
  25553. deprecated="not deprecated">
  25554. </method>
  25555. <method name="postStart"
  25556. abstract="false" native="false" synchronized="false"
  25557. static="false" final="false" visibility="public"
  25558. deprecated="not deprecated">
  25559. </method>
  25560. <method name="preStop"
  25561. abstract="false" native="false" synchronized="false"
  25562. static="false" final="false" visibility="public"
  25563. deprecated="not deprecated">
  25564. </method>
  25565. <method name="postStop"
  25566. abstract="false" native="false" synchronized="false"
  25567. static="false" final="false" visibility="public"
  25568. deprecated="not deprecated">
  25569. </method>
  25570. <doc>
  25571. <![CDATA[Convenient abstract class for implementing callback interface]]>
  25572. </doc>
  25573. </class>
  25574. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  25575. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  25576. <interface name="MetricsSystem.Callback" abstract="true"
  25577. static="true" final="false" visibility="public"
  25578. deprecated="not deprecated">
  25579. <method name="preStart"
  25580. abstract="false" native="false" synchronized="false"
  25581. static="false" final="false" visibility="public"
  25582. deprecated="not deprecated">
  25583. <doc>
  25584. <![CDATA[Called before start()]]>
  25585. </doc>
  25586. </method>
  25587. <method name="postStart"
  25588. abstract="false" native="false" synchronized="false"
  25589. static="false" final="false" visibility="public"
  25590. deprecated="not deprecated">
  25591. <doc>
  25592. <![CDATA[Called after start()]]>
  25593. </doc>
  25594. </method>
  25595. <method name="preStop"
  25596. abstract="false" native="false" synchronized="false"
  25597. static="false" final="false" visibility="public"
  25598. deprecated="not deprecated">
  25599. <doc>
  25600. <![CDATA[Called before stop()]]>
  25601. </doc>
  25602. </method>
  25603. <method name="postStop"
  25604. abstract="false" native="false" synchronized="false"
  25605. static="false" final="false" visibility="public"
  25606. deprecated="not deprecated">
  25607. <doc>
  25608. <![CDATA[Called after stop()]]>
  25609. </doc>
  25610. </method>
  25611. <doc>
  25612. <![CDATA[The metrics system callback interface]]>
  25613. </doc>
  25614. </interface>
  25615. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  25616. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  25617. <interface name="MetricsSystemMXBean" abstract="true"
  25618. static="false" final="false" visibility="public"
  25619. deprecated="not deprecated">
  25620. <method name="start"
  25621. abstract="false" native="false" synchronized="false"
  25622. static="false" final="false" visibility="public"
  25623. deprecated="not deprecated">
  25624. <doc>
  25625. <![CDATA[Start the metrics system
  25626. @exception MetricsException]]>
  25627. </doc>
  25628. </method>
  25629. <method name="stop"
  25630. abstract="false" native="false" synchronized="false"
  25631. static="false" final="false" visibility="public"
  25632. deprecated="not deprecated">
  25633. <doc>
  25634. <![CDATA[Stop the metrics system
  25635. @exception MetricsException]]>
  25636. </doc>
  25637. </method>
  25638. <method name="refreshMBeans"
  25639. abstract="false" native="false" synchronized="false"
  25640. static="false" final="false" visibility="public"
  25641. deprecated="not deprecated">
  25642. <doc>
  25643. <![CDATA[Force a refresh of MBeans
  25644. @exception MetricsException]]>
  25645. </doc>
  25646. </method>
  25647. <method name="currentConfig" return="java.lang.String"
  25648. abstract="false" native="false" synchronized="false"
  25649. static="false" final="false" visibility="public"
  25650. deprecated="not deprecated">
  25651. <doc>
  25652. <![CDATA[@return the current config
  25653. Note, avoid getConfig, as it'll turn it into an attribute,
  25654. which doesn't support multiple lines in the values.
  25655. @exception MetricsException]]>
  25656. </doc>
  25657. </method>
  25658. <doc>
  25659. <![CDATA[The JMX interface to the metrics system]]>
  25660. </doc>
  25661. </interface>
  25662. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  25663. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  25664. <class name="MetricsTag" extends="java.lang.Object"
  25665. abstract="false"
  25666. static="false" final="false" visibility="public"
  25667. deprecated="not deprecated">
  25668. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  25669. static="false" final="false" visibility="public"
  25670. deprecated="not deprecated">
  25671. <doc>
  25672. <![CDATA[Construct the tag with name, description and value
  25673. @param name of the tag
  25674. @param description of the tag
  25675. @param value of the tag]]>
  25676. </doc>
  25677. </constructor>
  25678. <method name="name" return="java.lang.String"
  25679. abstract="false" native="false" synchronized="false"
  25680. static="false" final="false" visibility="public"
  25681. deprecated="not deprecated">
  25682. <doc>
  25683. <![CDATA[Get the name of the tag
  25684. @return the name]]>
  25685. </doc>
  25686. </method>
  25687. <method name="description" return="java.lang.String"
  25688. abstract="false" native="false" synchronized="false"
  25689. static="false" final="false" visibility="public"
  25690. deprecated="not deprecated">
  25691. <doc>
  25692. <![CDATA[Get the description of the tag
  25693. @return the description]]>
  25694. </doc>
  25695. </method>
  25696. <method name="value" return="java.lang.String"
  25697. abstract="false" native="false" synchronized="false"
  25698. static="false" final="false" visibility="public"
  25699. deprecated="not deprecated">
  25700. <doc>
  25701. <![CDATA[Get the value of the tag
  25702. @return the value]]>
  25703. </doc>
  25704. </method>
  25705. <method name="equals" return="boolean"
  25706. abstract="false" native="false" synchronized="false"
  25707. static="false" final="false" visibility="public"
  25708. deprecated="not deprecated">
  25709. <param name="obj" type="java.lang.Object"/>
  25710. </method>
  25711. <method name="hashCode" return="int"
  25712. abstract="false" native="false" synchronized="false"
  25713. static="false" final="false" visibility="public"
  25714. deprecated="not deprecated">
  25715. </method>
  25716. <method name="toString" return="java.lang.String"
  25717. abstract="false" native="false" synchronized="false"
  25718. static="false" final="false" visibility="public"
  25719. deprecated="not deprecated">
  25720. </method>
  25721. <doc>
  25722. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  25723. </doc>
  25724. </class>
  25725. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  25726. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25727. <interface name="MetricsVisitor" abstract="true"
  25728. static="false" final="false" visibility="public"
  25729. deprecated="not deprecated">
  25730. <method name="gauge"
  25731. abstract="false" native="false" synchronized="false"
  25732. static="false" final="false" visibility="public"
  25733. deprecated="not deprecated">
  25734. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25735. <param name="value" type="int"/>
  25736. <doc>
  25737. <![CDATA[Callback for int value gauges
  25738. @param metric the metric object
  25739. @param value of the metric]]>
  25740. </doc>
  25741. </method>
  25742. <method name="gauge"
  25743. abstract="false" native="false" synchronized="false"
  25744. static="false" final="false" visibility="public"
  25745. deprecated="not deprecated">
  25746. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25747. <param name="value" type="long"/>
  25748. <doc>
  25749. <![CDATA[Callback for long value gauges
  25750. @param metric the metric object
  25751. @param value of the metric]]>
  25752. </doc>
  25753. </method>
  25754. <method name="gauge"
  25755. abstract="false" native="false" synchronized="false"
  25756. static="false" final="false" visibility="public"
  25757. deprecated="not deprecated">
  25758. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25759. <param name="value" type="float"/>
  25760. <doc>
  25761. <![CDATA[Callback for float value gauges
  25762. @param metric the metric object
  25763. @param value of the metric]]>
  25764. </doc>
  25765. </method>
  25766. <method name="gauge"
  25767. abstract="false" native="false" synchronized="false"
  25768. static="false" final="false" visibility="public"
  25769. deprecated="not deprecated">
  25770. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  25771. <param name="value" type="double"/>
  25772. <doc>
  25773. <![CDATA[Callback for double value gauges
  25774. @param metric the metric object
  25775. @param value of the metric]]>
  25776. </doc>
  25777. </method>
  25778. <method name="counter"
  25779. abstract="false" native="false" synchronized="false"
  25780. static="false" final="false" visibility="public"
  25781. deprecated="not deprecated">
  25782. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  25783. <param name="value" type="int"/>
  25784. <doc>
  25785. <![CDATA[Callback for integer value counters
  25786. @param metric the metric object
  25787. @param value of the metric]]>
  25788. </doc>
  25789. </method>
  25790. <method name="counter"
  25791. abstract="false" native="false" synchronized="false"
  25792. static="false" final="false" visibility="public"
  25793. deprecated="not deprecated">
  25794. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  25795. <param name="value" type="long"/>
  25796. <doc>
  25797. <![CDATA[Callback for long value counters
  25798. @param metric the metric object
  25799. @param value of the metric]]>
  25800. </doc>
  25801. </method>
  25802. <doc>
  25803. <![CDATA[A visitor interface for metrics]]>
  25804. </doc>
  25805. </interface>
  25806. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  25807. </package>
  25808. <package name="org.apache.hadoop.metrics2.filter">
  25809. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25810. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25811. abstract="false"
  25812. static="false" final="false" visibility="public"
  25813. deprecated="not deprecated">
  25814. <constructor name="GlobFilter"
  25815. static="false" final="false" visibility="public"
  25816. deprecated="not deprecated">
  25817. </constructor>
  25818. <method name="compile" return="java.util.regex.Pattern"
  25819. abstract="false" native="false" synchronized="false"
  25820. static="false" final="false" visibility="protected"
  25821. deprecated="not deprecated">
  25822. <param name="s" type="java.lang.String"/>
  25823. </method>
  25824. <doc>
  25825. <![CDATA[A glob pattern filter for metrics]]>
  25826. </doc>
  25827. </class>
  25828. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  25829. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25830. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  25831. abstract="false"
  25832. static="false" final="false" visibility="public"
  25833. deprecated="not deprecated">
  25834. <constructor name="RegexFilter"
  25835. static="false" final="false" visibility="public"
  25836. deprecated="not deprecated">
  25837. </constructor>
  25838. <method name="compile" return="java.util.regex.Pattern"
  25839. abstract="false" native="false" synchronized="false"
  25840. static="false" final="false" visibility="protected"
  25841. deprecated="not deprecated">
  25842. <param name="s" type="java.lang.String"/>
  25843. </method>
  25844. <doc>
  25845. <![CDATA[A regex pattern filter for metrics]]>
  25846. </doc>
  25847. </class>
  25848. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  25849. </package>
  25850. <package name="org.apache.hadoop.metrics2.impl">
  25851. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  25852. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  25853. abstract="false"
  25854. static="false" final="false" visibility="public"
  25855. deprecated="not deprecated">
  25856. <doc>
  25857. <![CDATA[The metrics configuration runtime exception]]>
  25858. </doc>
  25859. </class>
  25860. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  25861. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  25862. <class name="MetricsRecordImpl" extends="java.lang.Object"
  25863. abstract="false"
  25864. static="false" final="false" visibility="public"
  25865. deprecated="not deprecated">
  25866. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  25867. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  25868. static="false" final="false" visibility="public"
  25869. deprecated="not deprecated">
  25870. <doc>
  25871. <![CDATA[Construct a metrics record
  25872. @param name of the record
  25873. @param timestamp of the record
  25874. @param tags of the record
  25875. @param metrics of the record]]>
  25876. </doc>
  25877. </constructor>
  25878. <method name="timestamp" return="long"
  25879. abstract="false" native="false" synchronized="false"
  25880. static="false" final="false" visibility="public"
  25881. deprecated="not deprecated">
  25882. </method>
  25883. <method name="name" return="java.lang.String"
  25884. abstract="false" native="false" synchronized="false"
  25885. static="false" final="false" visibility="public"
  25886. deprecated="not deprecated">
  25887. </method>
  25888. <method name="context" return="java.lang.String"
  25889. abstract="false" native="false" synchronized="false"
  25890. static="false" final="false" visibility="public"
  25891. deprecated="not deprecated">
  25892. </method>
  25893. <method name="tags" return="java.lang.Iterable"
  25894. abstract="false" native="false" synchronized="false"
  25895. static="false" final="false" visibility="public"
  25896. deprecated="not deprecated">
  25897. </method>
  25898. <method name="metrics" return="java.lang.Iterable"
  25899. abstract="false" native="false" synchronized="false"
  25900. static="false" final="false" visibility="public"
  25901. deprecated="not deprecated">
  25902. </method>
  25903. <method name="equals" return="boolean"
  25904. abstract="false" native="false" synchronized="false"
  25905. static="false" final="false" visibility="public"
  25906. deprecated="not deprecated">
  25907. <param name="obj" type="java.lang.Object"/>
  25908. </method>
  25909. <method name="hashCode" return="int"
  25910. abstract="false" native="false" synchronized="false"
  25911. static="false" final="false" visibility="public"
  25912. deprecated="not deprecated">
  25913. </method>
  25914. <method name="toString" return="java.lang.String"
  25915. abstract="false" native="false" synchronized="false"
  25916. static="false" final="false" visibility="public"
  25917. deprecated="not deprecated">
  25918. </method>
  25919. <field name="CONTEXT_KEY" type="java.lang.String"
  25920. transient="false" volatile="false"
  25921. static="true" final="true" visibility="protected"
  25922. deprecated="not deprecated">
  25923. </field>
  25924. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  25925. transient="false" volatile="false"
  25926. static="true" final="true" visibility="protected"
  25927. deprecated="not deprecated">
  25928. </field>
  25929. </class>
  25930. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  25931. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  25932. <class name="MetricsSystemImpl" extends="java.lang.Object"
  25933. abstract="false"
  25934. static="false" final="false" visibility="public"
  25935. deprecated="not deprecated">
  25936. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  25937. <constructor name="MetricsSystemImpl" type="java.lang.String"
  25938. static="false" final="false" visibility="public"
  25939. deprecated="not deprecated">
  25940. <doc>
  25941. <![CDATA[Construct the metrics system
  25942. @param prefix for the system]]>
  25943. </doc>
  25944. </constructor>
  25945. <constructor name="MetricsSystemImpl"
  25946. static="false" final="false" visibility="public"
  25947. deprecated="not deprecated">
  25948. <doc>
  25949. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  25950. </doc>
  25951. </constructor>
  25952. <method name="init"
  25953. abstract="false" native="false" synchronized="true"
  25954. static="false" final="false" visibility="public"
  25955. deprecated="not deprecated">
  25956. <param name="prefix" type="java.lang.String"/>
  25957. <doc>
  25958. <![CDATA[Initialized the metrics system with a prefix.
  25959. @param prefix the system will look for configs with the prefix]]>
  25960. </doc>
  25961. </method>
  25962. <method name="start"
  25963. abstract="false" native="false" synchronized="true"
  25964. static="false" final="false" visibility="public"
  25965. deprecated="not deprecated">
  25966. </method>
  25967. <method name="stop"
  25968. abstract="false" native="false" synchronized="true"
  25969. static="false" final="false" visibility="public"
  25970. deprecated="not deprecated">
  25971. </method>
  25972. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  25973. abstract="false" native="false" synchronized="true"
  25974. static="false" final="false" visibility="public"
  25975. deprecated="not deprecated">
  25976. <param name="name" type="java.lang.String"/>
  25977. <param name="desc" type="java.lang.String"/>
  25978. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  25979. </method>
  25980. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  25981. abstract="false" native="false" synchronized="true"
  25982. static="false" final="false" visibility="public"
  25983. deprecated="not deprecated">
  25984. <param name="name" type="java.lang.String"/>
  25985. <param name="description" type="java.lang.String"/>
  25986. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  25987. </method>
  25988. <method name="register"
  25989. abstract="false" native="false" synchronized="true"
  25990. static="false" final="false" visibility="public"
  25991. deprecated="not deprecated">
  25992. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  25993. </method>
  25994. <method name="refreshMBeans"
  25995. abstract="false" native="false" synchronized="true"
  25996. static="false" final="false" visibility="public"
  25997. deprecated="not deprecated">
  25998. </method>
  25999. <method name="currentConfig" return="java.lang.String"
  26000. abstract="false" native="false" synchronized="true"
  26001. static="false" final="false" visibility="public"
  26002. deprecated="not deprecated">
  26003. </method>
  26004. <method name="shutdown"
  26005. abstract="false" native="false" synchronized="true"
  26006. static="false" final="false" visibility="public"
  26007. deprecated="not deprecated">
  26008. </method>
  26009. <doc>
  26010. <![CDATA[A base class for metrics system singletons]]>
  26011. </doc>
  26012. </class>
  26013. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  26014. </package>
  26015. <package name="org.apache.hadoop.metrics2.lib">
  26016. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  26017. <class name="AbstractMetricsSource" extends="java.lang.Object"
  26018. abstract="true"
  26019. static="false" final="false" visibility="public"
  26020. deprecated="not deprecated">
  26021. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  26022. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  26023. static="false" final="false" visibility="public"
  26024. deprecated="not deprecated">
  26025. <doc>
  26026. <![CDATA[Construct the source with name and a mutable metrics factory
  26027. @param name of the default record
  26028. @param mf the factory to create mutable metrics]]>
  26029. </doc>
  26030. </constructor>
  26031. <constructor name="AbstractMetricsSource" type="java.lang.String"
  26032. static="false" final="false" visibility="public"
  26033. deprecated="not deprecated">
  26034. <doc>
  26035. <![CDATA[Construct the source with a name with a default factory
  26036. @param name of the default record]]>
  26037. </doc>
  26038. </constructor>
  26039. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26040. abstract="false" native="false" synchronized="false"
  26041. static="false" final="false" visibility="public"
  26042. deprecated="not deprecated">
  26043. <doc>
  26044. <![CDATA[@return the registry for mutable metrics]]>
  26045. </doc>
  26046. </method>
  26047. <method name="getMetrics"
  26048. abstract="false" native="false" synchronized="false"
  26049. static="false" final="false" visibility="public"
  26050. deprecated="not deprecated">
  26051. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  26052. <param name="all" type="boolean"/>
  26053. </method>
  26054. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26055. transient="false" volatile="false"
  26056. static="false" final="true" visibility="protected"
  26057. deprecated="not deprecated">
  26058. </field>
  26059. <doc>
  26060. <![CDATA[A convenient base class for writing metrics sources]]>
  26061. </doc>
  26062. </class>
  26063. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  26064. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26065. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  26066. abstract="false"
  26067. static="false" final="true" visibility="public"
  26068. deprecated="not deprecated">
  26069. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  26070. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  26071. abstract="false" native="false" synchronized="false"
  26072. static="true" final="false" visibility="public"
  26073. deprecated="not deprecated">
  26074. </method>
  26075. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26076. abstract="false" native="false" synchronized="false"
  26077. static="true" final="false" visibility="public"
  26078. deprecated="not deprecated">
  26079. <param name="name" type="java.lang.String"/>
  26080. </method>
  26081. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  26082. abstract="false" native="false" synchronized="false"
  26083. static="true" final="false" visibility="public"
  26084. deprecated="not deprecated">
  26085. <param name="prefix" type="java.lang.String"/>
  26086. <doc>
  26087. <![CDATA[Common static convenience method to initialize the metrics system
  26088. @param prefix for configuration
  26089. @return the metrics system instance]]>
  26090. </doc>
  26091. </method>
  26092. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  26093. abstract="false" native="false" synchronized="false"
  26094. static="false" final="false" visibility="public"
  26095. deprecated="not deprecated">
  26096. <param name="name" type="java.lang.String"/>
  26097. <param name="desc" type="java.lang.String"/>
  26098. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26099. </method>
  26100. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  26101. abstract="false" native="false" synchronized="false"
  26102. static="true" final="false" visibility="public"
  26103. deprecated="not deprecated">
  26104. <param name="name" type="java.lang.String"/>
  26105. <param name="desc" type="java.lang.String"/>
  26106. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  26107. <doc>
  26108. <![CDATA[Common static method to register a source
  26109. @param <T> type of the source
  26110. @param name of the source
  26111. @param desc description
  26112. @param source the source object to register
  26113. @return the source object]]>
  26114. </doc>
  26115. </method>
  26116. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  26117. abstract="false" native="false" synchronized="false"
  26118. static="false" final="false" visibility="public"
  26119. deprecated="not deprecated">
  26120. <param name="name" type="java.lang.String"/>
  26121. <param name="desc" type="java.lang.String"/>
  26122. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  26123. </method>
  26124. <method name="register"
  26125. abstract="false" native="false" synchronized="false"
  26126. static="false" final="false" visibility="public"
  26127. deprecated="not deprecated">
  26128. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  26129. </method>
  26130. <method name="start"
  26131. abstract="false" native="false" synchronized="false"
  26132. static="false" final="false" visibility="public"
  26133. deprecated="not deprecated">
  26134. </method>
  26135. <method name="stop"
  26136. abstract="false" native="false" synchronized="false"
  26137. static="false" final="false" visibility="public"
  26138. deprecated="not deprecated">
  26139. </method>
  26140. <method name="refreshMBeans"
  26141. abstract="false" native="false" synchronized="false"
  26142. static="false" final="false" visibility="public"
  26143. deprecated="not deprecated">
  26144. </method>
  26145. <method name="currentConfig" return="java.lang.String"
  26146. abstract="false" native="false" synchronized="false"
  26147. static="false" final="false" visibility="public"
  26148. deprecated="not deprecated">
  26149. </method>
  26150. <method name="shutdown"
  26151. abstract="false" native="false" synchronized="false"
  26152. static="false" final="false" visibility="public"
  26153. deprecated="not deprecated">
  26154. </method>
  26155. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  26156. transient="false" volatile="false"
  26157. static="true" final="true" visibility="public"
  26158. deprecated="not deprecated">
  26159. <doc>
  26160. <![CDATA[The singleton instance]]>
  26161. </doc>
  26162. </field>
  26163. <doc>
  26164. <![CDATA[The default metrics system singleton]]>
  26165. </doc>
  26166. </class>
  26167. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  26168. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  26169. <class name="MetricMutable" extends="java.lang.Object"
  26170. abstract="true"
  26171. static="false" final="false" visibility="public"
  26172. deprecated="not deprecated">
  26173. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  26174. static="false" final="false" visibility="public"
  26175. deprecated="not deprecated">
  26176. <doc>
  26177. <![CDATA[Construct a mutable metric
  26178. @param name of the metric
  26179. @param description of the metric]]>
  26180. </doc>
  26181. </constructor>
  26182. <method name="snapshot"
  26183. abstract="true" native="false" synchronized="false"
  26184. static="false" final="false" visibility="public"
  26185. deprecated="not deprecated">
  26186. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26187. <param name="all" type="boolean"/>
  26188. <doc>
  26189. <![CDATA[Get a snapshot/snapshot of the metric
  26190. @param builder the metrics record builder
  26191. @param all if true, snapshot unchanged metrics as well]]>
  26192. </doc>
  26193. </method>
  26194. <method name="snapshot"
  26195. abstract="false" native="false" synchronized="false"
  26196. static="false" final="false" visibility="public"
  26197. deprecated="not deprecated">
  26198. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26199. <doc>
  26200. <![CDATA[Get a sampe/snapshot of metric if changed
  26201. @param builder the metrics record builder]]>
  26202. </doc>
  26203. </method>
  26204. <method name="setChanged"
  26205. abstract="false" native="false" synchronized="false"
  26206. static="false" final="false" visibility="protected"
  26207. deprecated="not deprecated">
  26208. <doc>
  26209. <![CDATA[Set the changed flag in mutable operations]]>
  26210. </doc>
  26211. </method>
  26212. <method name="clearChanged"
  26213. abstract="false" native="false" synchronized="false"
  26214. static="false" final="false" visibility="protected"
  26215. deprecated="not deprecated">
  26216. <doc>
  26217. <![CDATA[Clear the changed flag in the snapshot operations]]>
  26218. </doc>
  26219. </method>
  26220. <method name="changed" return="boolean"
  26221. abstract="false" native="false" synchronized="false"
  26222. static="false" final="false" visibility="public"
  26223. deprecated="not deprecated">
  26224. <doc>
  26225. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  26226. </doc>
  26227. </method>
  26228. <field name="name" type="java.lang.String"
  26229. transient="false" volatile="false"
  26230. static="false" final="true" visibility="public"
  26231. deprecated="not deprecated">
  26232. <doc>
  26233. <![CDATA[name of the metric]]>
  26234. </doc>
  26235. </field>
  26236. <field name="description" type="java.lang.String"
  26237. transient="false" volatile="false"
  26238. static="false" final="true" visibility="public"
  26239. deprecated="not deprecated">
  26240. <doc>
  26241. <![CDATA[description of the metric]]>
  26242. </doc>
  26243. </field>
  26244. <doc>
  26245. <![CDATA[The mutable metric interface]]>
  26246. </doc>
  26247. </class>
  26248. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  26249. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  26250. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26251. abstract="true"
  26252. static="false" final="false" visibility="public"
  26253. deprecated="not deprecated">
  26254. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  26255. static="false" final="false" visibility="public"
  26256. deprecated="not deprecated">
  26257. <doc>
  26258. <![CDATA[Construct the metric with name and description
  26259. @param name
  26260. @param description]]>
  26261. </doc>
  26262. </constructor>
  26263. <method name="incr"
  26264. abstract="true" native="false" synchronized="false"
  26265. static="false" final="false" visibility="public"
  26266. deprecated="not deprecated">
  26267. <doc>
  26268. <![CDATA[Increment the metric value by 1.]]>
  26269. </doc>
  26270. </method>
  26271. <doc>
  26272. <![CDATA[The mutable counter (monotonically increasing) metric interface
  26273. @param <T> the type of the metric]]>
  26274. </doc>
  26275. </class>
  26276. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  26277. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  26278. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  26279. abstract="false"
  26280. static="false" final="false" visibility="public"
  26281. deprecated="not deprecated">
  26282. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  26283. static="false" final="false" visibility="public"
  26284. deprecated="not deprecated">
  26285. <doc>
  26286. <![CDATA[Construct a mutable int counter
  26287. @param name of the counter
  26288. @param description of the counter
  26289. @param initValue the initial value of the counter]]>
  26290. </doc>
  26291. </constructor>
  26292. <method name="incr"
  26293. abstract="false" native="false" synchronized="true"
  26294. static="false" final="false" visibility="public"
  26295. deprecated="not deprecated">
  26296. </method>
  26297. <method name="incr"
  26298. abstract="false" native="false" synchronized="true"
  26299. static="false" final="false" visibility="public"
  26300. deprecated="not deprecated">
  26301. <param name="delta" type="int"/>
  26302. <doc>
  26303. <![CDATA[Increment the value by a delta
  26304. @param delta of the increment]]>
  26305. </doc>
  26306. </method>
  26307. <method name="snapshot"
  26308. abstract="false" native="false" synchronized="false"
  26309. static="false" final="false" visibility="public"
  26310. deprecated="not deprecated">
  26311. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26312. <param name="all" type="boolean"/>
  26313. </method>
  26314. <doc>
  26315. <![CDATA[A mutable int counter for implementing metrics sources]]>
  26316. </doc>
  26317. </class>
  26318. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  26319. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  26320. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  26321. abstract="false"
  26322. static="false" final="false" visibility="public"
  26323. deprecated="not deprecated">
  26324. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  26325. static="false" final="false" visibility="public"
  26326. deprecated="not deprecated">
  26327. <doc>
  26328. <![CDATA[Construct a mutable long counter
  26329. @param name of the counter
  26330. @param description of the counter
  26331. @param initValue the initial value of the counter]]>
  26332. </doc>
  26333. </constructor>
  26334. <method name="incr"
  26335. abstract="false" native="false" synchronized="true"
  26336. static="false" final="false" visibility="public"
  26337. deprecated="not deprecated">
  26338. </method>
  26339. <method name="incr"
  26340. abstract="false" native="false" synchronized="true"
  26341. static="false" final="false" visibility="public"
  26342. deprecated="not deprecated">
  26343. <param name="delta" type="long"/>
  26344. <doc>
  26345. <![CDATA[Increment the value by a delta
  26346. @param delta of the increment]]>
  26347. </doc>
  26348. </method>
  26349. <method name="snapshot"
  26350. abstract="false" native="false" synchronized="false"
  26351. static="false" final="false" visibility="public"
  26352. deprecated="not deprecated">
  26353. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26354. <param name="all" type="boolean"/>
  26355. </method>
  26356. <doc>
  26357. <![CDATA[A mutable long counter]]>
  26358. </doc>
  26359. </class>
  26360. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  26361. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  26362. <class name="MetricMutableFactory" extends="java.lang.Object"
  26363. abstract="false"
  26364. static="false" final="false" visibility="public"
  26365. deprecated="not deprecated">
  26366. <constructor name="MetricMutableFactory"
  26367. static="false" final="false" visibility="public"
  26368. deprecated="not deprecated">
  26369. </constructor>
  26370. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  26371. abstract="false" native="false" synchronized="false"
  26372. static="false" final="false" visibility="public"
  26373. deprecated="not deprecated">
  26374. <param name="name" type="java.lang.String"/>
  26375. <doc>
  26376. <![CDATA[Create a new mutable metric by name
  26377. Usually overridden by app specific factory
  26378. @param name of the metric
  26379. @return a new metric object]]>
  26380. </doc>
  26381. </method>
  26382. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26383. abstract="false" native="false" synchronized="false"
  26384. static="false" final="false" visibility="public"
  26385. deprecated="not deprecated">
  26386. <param name="name" type="java.lang.String"/>
  26387. <param name="description" type="java.lang.String"/>
  26388. <param name="initValue" type="int"/>
  26389. <doc>
  26390. <![CDATA[Create a mutable integer counter
  26391. @param name of the metric
  26392. @param description of the metric
  26393. @param initValue of the metric
  26394. @return a new metric object]]>
  26395. </doc>
  26396. </method>
  26397. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26398. abstract="false" native="false" synchronized="false"
  26399. static="false" final="false" visibility="public"
  26400. deprecated="not deprecated">
  26401. <param name="name" type="java.lang.String"/>
  26402. <doc>
  26403. <![CDATA[Create a mutable integer counter with name only.
  26404. Usually gets overridden.
  26405. @param name of the metric
  26406. @return a new metric object]]>
  26407. </doc>
  26408. </method>
  26409. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26410. abstract="false" native="false" synchronized="false"
  26411. static="false" final="false" visibility="public"
  26412. deprecated="not deprecated">
  26413. <param name="name" type="java.lang.String"/>
  26414. <param name="description" type="java.lang.String"/>
  26415. <param name="initValue" type="long"/>
  26416. <doc>
  26417. <![CDATA[Create a mutable long integer counter
  26418. @param name of the metric
  26419. @param description of the metric
  26420. @param initValue of the metric
  26421. @return a new metric object]]>
  26422. </doc>
  26423. </method>
  26424. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26425. abstract="false" native="false" synchronized="false"
  26426. static="false" final="false" visibility="public"
  26427. deprecated="not deprecated">
  26428. <param name="name" type="java.lang.String"/>
  26429. <doc>
  26430. <![CDATA[Create a mutable long integer counter with a name
  26431. Usually gets overridden.
  26432. @param name of the metric
  26433. @return a new metric object]]>
  26434. </doc>
  26435. </method>
  26436. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26437. abstract="false" native="false" synchronized="false"
  26438. static="false" final="false" visibility="public"
  26439. deprecated="not deprecated">
  26440. <param name="name" type="java.lang.String"/>
  26441. <param name="description" type="java.lang.String"/>
  26442. <param name="initValue" type="int"/>
  26443. <doc>
  26444. <![CDATA[Create a mutable integer gauge
  26445. @param name of the metric
  26446. @param description of the metric
  26447. @param initValue of the metric
  26448. @return a new metric object]]>
  26449. </doc>
  26450. </method>
  26451. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26452. abstract="false" native="false" synchronized="false"
  26453. static="false" final="false" visibility="public"
  26454. deprecated="not deprecated">
  26455. <param name="name" type="java.lang.String"/>
  26456. <doc>
  26457. <![CDATA[Create a mutable integer gauge with name only.
  26458. Usually gets overridden.
  26459. @param name of the metric
  26460. @return a new metric object]]>
  26461. </doc>
  26462. </method>
  26463. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26464. abstract="false" native="false" synchronized="false"
  26465. static="false" final="false" visibility="public"
  26466. deprecated="not deprecated">
  26467. <param name="name" type="java.lang.String"/>
  26468. <param name="description" type="java.lang.String"/>
  26469. <param name="initValue" type="long"/>
  26470. <doc>
  26471. <![CDATA[Create a mutable long integer gauge
  26472. @param name of the metric
  26473. @param description of the metric
  26474. @param initValue of the metric
  26475. @return a new metric object]]>
  26476. </doc>
  26477. </method>
  26478. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26479. abstract="false" native="false" synchronized="false"
  26480. static="false" final="false" visibility="public"
  26481. deprecated="not deprecated">
  26482. <param name="name" type="java.lang.String"/>
  26483. <doc>
  26484. <![CDATA[Create a mutable long integer gauge with name only.
  26485. Usually gets overridden.
  26486. @param name of the metric
  26487. @return a new metric object]]>
  26488. </doc>
  26489. </method>
  26490. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26491. abstract="false" native="false" synchronized="false"
  26492. static="false" final="false" visibility="public"
  26493. deprecated="not deprecated">
  26494. <param name="name" type="java.lang.String"/>
  26495. <param name="description" type="java.lang.String"/>
  26496. <param name="sampleName" type="java.lang.String"/>
  26497. <param name="valueName" type="java.lang.String"/>
  26498. <param name="extended" type="boolean"/>
  26499. <doc>
  26500. <![CDATA[Create a mutable stat metric
  26501. @param name of the metric
  26502. @param description of the metric
  26503. @param sampleName of the metric (e.g., ops)
  26504. @param valueName of the metric (e.g., time or latency)
  26505. @param extended if true, produces extended stat (stdev, min/max etc.)
  26506. @return a new metric object]]>
  26507. </doc>
  26508. </method>
  26509. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26510. abstract="false" native="false" synchronized="false"
  26511. static="false" final="false" visibility="public"
  26512. deprecated="not deprecated">
  26513. <param name="name" type="java.lang.String"/>
  26514. <doc>
  26515. <![CDATA[Create a mutable stat metric with name only.
  26516. Usually gets overridden.
  26517. @param name of the metric
  26518. @return a new metric object]]>
  26519. </doc>
  26520. </method>
  26521. <doc>
  26522. <![CDATA[Factory class for mutable metrics]]>
  26523. </doc>
  26524. </class>
  26525. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  26526. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  26527. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26528. abstract="true"
  26529. static="false" final="false" visibility="public"
  26530. deprecated="not deprecated">
  26531. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  26532. static="false" final="false" visibility="public"
  26533. deprecated="not deprecated">
  26534. <doc>
  26535. <![CDATA[Construct the metric with name and description
  26536. @param name of the metric
  26537. @param description of the metric]]>
  26538. </doc>
  26539. </constructor>
  26540. <method name="incr"
  26541. abstract="true" native="false" synchronized="false"
  26542. static="false" final="false" visibility="public"
  26543. deprecated="not deprecated">
  26544. <doc>
  26545. <![CDATA[Increment the value of the metric by 1]]>
  26546. </doc>
  26547. </method>
  26548. <method name="decr"
  26549. abstract="true" native="false" synchronized="false"
  26550. static="false" final="false" visibility="public"
  26551. deprecated="not deprecated">
  26552. <doc>
  26553. <![CDATA[Decrement the value of the metric by 1]]>
  26554. </doc>
  26555. </method>
  26556. <doc>
  26557. <![CDATA[The mutable gauge metric interface
  26558. @param <T> the type of the metric]]>
  26559. </doc>
  26560. </class>
  26561. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  26562. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  26563. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  26564. abstract="false"
  26565. static="false" final="false" visibility="public"
  26566. deprecated="not deprecated">
  26567. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  26568. static="false" final="false" visibility="public"
  26569. deprecated="not deprecated">
  26570. <doc>
  26571. <![CDATA[Construct a mutable int gauge metric
  26572. @param name of the gauge
  26573. @param description of the gauge
  26574. @param initValue the initial value of the gauge]]>
  26575. </doc>
  26576. </constructor>
  26577. <method name="incr"
  26578. abstract="false" native="false" synchronized="true"
  26579. static="false" final="false" visibility="public"
  26580. deprecated="not deprecated">
  26581. </method>
  26582. <method name="incr"
  26583. abstract="false" native="false" synchronized="true"
  26584. static="false" final="false" visibility="public"
  26585. deprecated="not deprecated">
  26586. <param name="delta" type="int"/>
  26587. <doc>
  26588. <![CDATA[Increment by delta
  26589. @param delta of the increment]]>
  26590. </doc>
  26591. </method>
  26592. <method name="decr"
  26593. abstract="false" native="false" synchronized="true"
  26594. static="false" final="false" visibility="public"
  26595. deprecated="not deprecated">
  26596. </method>
  26597. <method name="decr"
  26598. abstract="false" native="false" synchronized="true"
  26599. static="false" final="false" visibility="public"
  26600. deprecated="not deprecated">
  26601. <param name="delta" type="int"/>
  26602. <doc>
  26603. <![CDATA[decrement by delta
  26604. @param delta of the decrement]]>
  26605. </doc>
  26606. </method>
  26607. <method name="set"
  26608. abstract="false" native="false" synchronized="false"
  26609. static="false" final="false" visibility="public"
  26610. deprecated="not deprecated">
  26611. <param name="value" type="int"/>
  26612. <doc>
  26613. <![CDATA[Set the value of the metric
  26614. @param value to set]]>
  26615. </doc>
  26616. </method>
  26617. <method name="snapshot"
  26618. abstract="false" native="false" synchronized="false"
  26619. static="false" final="false" visibility="public"
  26620. deprecated="not deprecated">
  26621. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26622. <param name="all" type="boolean"/>
  26623. </method>
  26624. <doc>
  26625. <![CDATA[A mutable int gauge]]>
  26626. </doc>
  26627. </class>
  26628. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  26629. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  26630. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  26631. abstract="false"
  26632. static="false" final="false" visibility="public"
  26633. deprecated="not deprecated">
  26634. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  26635. static="false" final="false" visibility="public"
  26636. deprecated="not deprecated">
  26637. <doc>
  26638. <![CDATA[Construct a mutable long gauge metric
  26639. @param name of the gauge
  26640. @param description of the gauge
  26641. @param initValue the initial value of the gauge]]>
  26642. </doc>
  26643. </constructor>
  26644. <method name="incr"
  26645. abstract="false" native="false" synchronized="true"
  26646. static="false" final="false" visibility="public"
  26647. deprecated="not deprecated">
  26648. </method>
  26649. <method name="incr"
  26650. abstract="false" native="false" synchronized="true"
  26651. static="false" final="false" visibility="public"
  26652. deprecated="not deprecated">
  26653. <param name="delta" type="long"/>
  26654. <doc>
  26655. <![CDATA[Increment by delta
  26656. @param delta of the increment]]>
  26657. </doc>
  26658. </method>
  26659. <method name="decr"
  26660. abstract="false" native="false" synchronized="true"
  26661. static="false" final="false" visibility="public"
  26662. deprecated="not deprecated">
  26663. </method>
  26664. <method name="decr"
  26665. abstract="false" native="false" synchronized="true"
  26666. static="false" final="false" visibility="public"
  26667. deprecated="not deprecated">
  26668. <param name="delta" type="long"/>
  26669. <doc>
  26670. <![CDATA[decrement by delta
  26671. @param delta of the decrement]]>
  26672. </doc>
  26673. </method>
  26674. <method name="set"
  26675. abstract="false" native="false" synchronized="false"
  26676. static="false" final="false" visibility="public"
  26677. deprecated="not deprecated">
  26678. <param name="value" type="long"/>
  26679. <doc>
  26680. <![CDATA[Set the value of the metric
  26681. @param value to set]]>
  26682. </doc>
  26683. </method>
  26684. <method name="snapshot"
  26685. abstract="false" native="false" synchronized="false"
  26686. static="false" final="false" visibility="public"
  26687. deprecated="not deprecated">
  26688. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26689. <param name="all" type="boolean"/>
  26690. </method>
  26691. <doc>
  26692. <![CDATA[A mutable long gauge]]>
  26693. </doc>
  26694. </class>
  26695. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  26696. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  26697. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  26698. abstract="false"
  26699. static="false" final="false" visibility="public"
  26700. deprecated="not deprecated">
  26701. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  26702. static="false" final="false" visibility="public"
  26703. deprecated="not deprecated">
  26704. <doc>
  26705. <![CDATA[Construct a sample statistics metric
  26706. @param name of the metric
  26707. @param description of the metric
  26708. @param sampleName of the metric (e.g. "ops")
  26709. @param valueName of the metric (e.g. "time", "latency")
  26710. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  26711. </doc>
  26712. </constructor>
  26713. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  26714. static="false" final="false" visibility="public"
  26715. deprecated="not deprecated">
  26716. <doc>
  26717. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  26718. @param name of the metric
  26719. @param description of the metric
  26720. @param sampleName of the metric (e.g. "ops")
  26721. @param valueName of the metric (e.g. "time", "latency")]]>
  26722. </doc>
  26723. </constructor>
  26724. <method name="add"
  26725. abstract="false" native="false" synchronized="true"
  26726. static="false" final="false" visibility="public"
  26727. deprecated="not deprecated">
  26728. <param name="numSamples" type="long"/>
  26729. <param name="sum" type="long"/>
  26730. <doc>
  26731. <![CDATA[Add a number of samples and their sum to the running stat
  26732. @param numSamples number of samples
  26733. @param sum of the samples]]>
  26734. </doc>
  26735. </method>
  26736. <method name="add"
  26737. abstract="false" native="false" synchronized="true"
  26738. static="false" final="false" visibility="public"
  26739. deprecated="not deprecated">
  26740. <param name="value" type="long"/>
  26741. <doc>
  26742. <![CDATA[Add a snapshot to the metric
  26743. @param value of the metric]]>
  26744. </doc>
  26745. </method>
  26746. <method name="snapshot"
  26747. abstract="false" native="false" synchronized="true"
  26748. static="false" final="false" visibility="public"
  26749. deprecated="not deprecated">
  26750. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  26751. <param name="all" type="boolean"/>
  26752. </method>
  26753. <method name="resetMinMax"
  26754. abstract="false" native="false" synchronized="false"
  26755. static="false" final="false" visibility="public"
  26756. deprecated="not deprecated">
  26757. <doc>
  26758. <![CDATA[Reset the all time min max of the metric]]>
  26759. </doc>
  26760. </method>
  26761. <doc>
  26762. <![CDATA[A mutable metric with stats
  26763. Useful for keep throughput/latency stats.
  26764. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  26765. </doc>
  26766. </class>
  26767. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  26768. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  26769. <class name="MetricsRegistry" extends="java.lang.Object"
  26770. abstract="false"
  26771. static="false" final="false" visibility="public"
  26772. deprecated="not deprecated">
  26773. <constructor name="MetricsRegistry" type="java.lang.String"
  26774. static="false" final="false" visibility="public"
  26775. deprecated="not deprecated">
  26776. <doc>
  26777. <![CDATA[Construct the registry with a record name
  26778. @param name of the record of the metrics]]>
  26779. </doc>
  26780. </constructor>
  26781. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  26782. static="false" final="false" visibility="public"
  26783. deprecated="not deprecated">
  26784. <doc>
  26785. <![CDATA[Construct the registry with a name and a metric factory
  26786. @param name of the record of the metrics
  26787. @param factory for creating new mutable metrics]]>
  26788. </doc>
  26789. </constructor>
  26790. <method name="name" return="java.lang.String"
  26791. abstract="false" native="false" synchronized="false"
  26792. static="false" final="false" visibility="public"
  26793. deprecated="not deprecated">
  26794. <doc>
  26795. <![CDATA[@return the name of the metrics registry]]>
  26796. </doc>
  26797. </method>
  26798. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  26799. abstract="false" native="false" synchronized="false"
  26800. static="false" final="false" visibility="public"
  26801. deprecated="not deprecated">
  26802. <param name="name" type="java.lang.String"/>
  26803. <doc>
  26804. <![CDATA[Get a metric by name
  26805. @param name of the metric
  26806. @return the metric object]]>
  26807. </doc>
  26808. </method>
  26809. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  26810. abstract="false" native="false" synchronized="false"
  26811. static="false" final="false" visibility="public"
  26812. deprecated="not deprecated">
  26813. <param name="name" type="java.lang.String"/>
  26814. <param name="description" type="java.lang.String"/>
  26815. <param name="initValue" type="int"/>
  26816. <doc>
  26817. <![CDATA[Create a mutable integer counter
  26818. @param name of the metric
  26819. @param description of the metric
  26820. @param initValue of the metric
  26821. @return a new counter object]]>
  26822. </doc>
  26823. </method>
  26824. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  26825. abstract="false" native="false" synchronized="false"
  26826. static="false" final="false" visibility="public"
  26827. deprecated="not deprecated">
  26828. <param name="name" type="java.lang.String"/>
  26829. <param name="description" type="java.lang.String"/>
  26830. <param name="initValue" type="long"/>
  26831. <doc>
  26832. <![CDATA[Create a mutable long integer counter
  26833. @param name of the metric
  26834. @param description of the metric
  26835. @param initValue of the metric
  26836. @return a new counter object]]>
  26837. </doc>
  26838. </method>
  26839. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  26840. abstract="false" native="false" synchronized="false"
  26841. static="false" final="false" visibility="public"
  26842. deprecated="not deprecated">
  26843. <param name="name" type="java.lang.String"/>
  26844. <param name="description" type="java.lang.String"/>
  26845. <param name="initValue" type="int"/>
  26846. <doc>
  26847. <![CDATA[Create a mutable integer gauge
  26848. @param name of the metric
  26849. @param description of the metric
  26850. @param initValue of the metric
  26851. @return a new gauge object]]>
  26852. </doc>
  26853. </method>
  26854. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  26855. abstract="false" native="false" synchronized="false"
  26856. static="false" final="false" visibility="public"
  26857. deprecated="not deprecated">
  26858. <param name="name" type="java.lang.String"/>
  26859. <param name="description" type="java.lang.String"/>
  26860. <param name="initValue" type="long"/>
  26861. <doc>
  26862. <![CDATA[Create a mutable long integer gauge
  26863. @param name of the metric
  26864. @param description of the metric
  26865. @param initValue of the metric
  26866. @return a new gauge object]]>
  26867. </doc>
  26868. </method>
  26869. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26870. abstract="false" native="false" synchronized="false"
  26871. static="false" final="false" visibility="public"
  26872. deprecated="not deprecated">
  26873. <param name="name" type="java.lang.String"/>
  26874. <param name="description" type="java.lang.String"/>
  26875. <param name="sampleName" type="java.lang.String"/>
  26876. <param name="valueName" type="java.lang.String"/>
  26877. <param name="extended" type="boolean"/>
  26878. <doc>
  26879. <![CDATA[Create a mutable metric with stats
  26880. @param name of the metric
  26881. @param description of the metric
  26882. @param sampleName of the metric (e.g., "ops")
  26883. @param valueName of the metric (e.g., "time" or "latency")
  26884. @param extended produce extended stat (stdev, min/max etc.) if true.
  26885. @return a new metric object]]>
  26886. </doc>
  26887. </method>
  26888. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26889. abstract="false" native="false" synchronized="false"
  26890. static="false" final="false" visibility="public"
  26891. deprecated="not deprecated">
  26892. <param name="name" type="java.lang.String"/>
  26893. <param name="description" type="java.lang.String"/>
  26894. <param name="sampleName" type="java.lang.String"/>
  26895. <param name="valueName" type="java.lang.String"/>
  26896. <doc>
  26897. <![CDATA[Create a mutable metric with stats
  26898. @param name of the metric
  26899. @param description of the metric
  26900. @param sampleName of the metric (e.g., "ops")
  26901. @param valueName of the metric (e.g., "time" or "latency")
  26902. @return a new metric object]]>
  26903. </doc>
  26904. </method>
  26905. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  26906. abstract="false" native="false" synchronized="false"
  26907. static="false" final="false" visibility="public"
  26908. deprecated="not deprecated">
  26909. <param name="name" type="java.lang.String"/>
  26910. <doc>
  26911. <![CDATA[Create a mutable metric with stats using the name only
  26912. @param name of the metric
  26913. @return a new metric object]]>
  26914. </doc>
  26915. </method>
  26916. <method name="incr"
  26917. abstract="false" native="false" synchronized="false"
  26918. static="false" final="false" visibility="public"
  26919. deprecated="not deprecated">
  26920. <param name="name" type="java.lang.String"/>
  26921. <doc>
  26922. <![CDATA[Increment a metric by name.
  26923. @param name of the metric]]>
  26924. </doc>
  26925. </method>
  26926. <method name="incr"
  26927. abstract="false" native="false" synchronized="false"
  26928. static="false" final="false" visibility="public"
  26929. deprecated="not deprecated">
  26930. <param name="name" type="java.lang.String"/>
  26931. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  26932. <doc>
  26933. <![CDATA[Increment a metric by name.
  26934. @param name of the metric
  26935. @param factory to lazily create the metric if not null]]>
  26936. </doc>
  26937. </method>
  26938. <method name="decr"
  26939. abstract="false" native="false" synchronized="false"
  26940. static="false" final="false" visibility="public"
  26941. deprecated="not deprecated">
  26942. <param name="name" type="java.lang.String"/>
  26943. <doc>
  26944. <![CDATA[Decrement a metric by name.
  26945. @param name of the metric]]>
  26946. </doc>
  26947. </method>
  26948. <method name="decr"
  26949. abstract="false" native="false" synchronized="false"
  26950. static="false" final="false" visibility="public"
  26951. deprecated="not deprecated">
  26952. <param name="name" type="java.lang.String"/>
  26953. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  26954. <doc>
  26955. <![CDATA[Decrement a metric by name.
  26956. @param name of the metric
  26957. @param factory to lazily create the metric if not null]]>
  26958. </doc>
  26959. </method>
  26960. <method name="add"
  26961. abstract="false" native="false" synchronized="false"
  26962. static="false" final="false" visibility="public"
  26963. deprecated="not deprecated">
  26964. <param name="name" type="java.lang.String"/>
  26965. <param name="value" type="long"/>
  26966. <doc>
  26967. <![CDATA[Add a value to a metric by name.
  26968. @param name of the metric
  26969. @param value of the snapshot to add]]>
  26970. </doc>
  26971. </method>
  26972. <method name="add"
  26973. abstract="false" native="false" synchronized="false"
  26974. static="false" final="false" visibility="public"
  26975. deprecated="not deprecated">
  26976. <param name="name" type="java.lang.String"/>
  26977. <param name="value" type="long"/>
  26978. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  26979. <doc>
  26980. <![CDATA[Decrement a metric by name.
  26981. @param name of the metric
  26982. @param value of the snapshot to add
  26983. @param factory to lazily create the metric if not null]]>
  26984. </doc>
  26985. </method>
  26986. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26987. abstract="false" native="false" synchronized="false"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. <param name="name" type="java.lang.String"/>
  26991. <doc>
  26992. <![CDATA[Set the metrics context tag
  26993. @param name of the context
  26994. @return the registry itself as a convenience]]>
  26995. </doc>
  26996. </method>
  26997. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  26998. abstract="false" native="false" synchronized="false"
  26999. static="false" final="false" visibility="public"
  27000. deprecated="not deprecated">
  27001. <param name="name" type="java.lang.String"/>
  27002. <param name="description" type="java.lang.String"/>
  27003. <param name="value" type="java.lang.String"/>
  27004. <doc>
  27005. <![CDATA[Add a tag to the metrics
  27006. @param name of the tag
  27007. @param description of the tag
  27008. @param value of the tag
  27009. @return the registry (for keep adding tags)]]>
  27010. </doc>
  27011. </method>
  27012. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27013. abstract="false" native="false" synchronized="false"
  27014. static="false" final="false" visibility="public"
  27015. deprecated="not deprecated">
  27016. <param name="name" type="java.lang.String"/>
  27017. <param name="description" type="java.lang.String"/>
  27018. <param name="value" type="java.lang.String"/>
  27019. <param name="override" type="boolean"/>
  27020. <doc>
  27021. <![CDATA[Add a tag to the metrics
  27022. @param name of the tag
  27023. @param description of the tag
  27024. @param value of the tag
  27025. @param override existing tag if true
  27026. @return the registry (for keep adding tags)]]>
  27027. </doc>
  27028. </method>
  27029. <method name="tags" return="java.util.Set"
  27030. abstract="false" native="false" synchronized="false"
  27031. static="false" final="false" visibility="public"
  27032. deprecated="not deprecated">
  27033. <doc>
  27034. <![CDATA[Get the tags
  27035. @return the tags set]]>
  27036. </doc>
  27037. </method>
  27038. <method name="metrics" return="java.util.Set"
  27039. abstract="false" native="false" synchronized="false"
  27040. static="false" final="false" visibility="public"
  27041. deprecated="not deprecated">
  27042. <doc>
  27043. <![CDATA[Get the metrics
  27044. @return the metrics set]]>
  27045. </doc>
  27046. </method>
  27047. <method name="snapshot"
  27048. abstract="false" native="false" synchronized="false"
  27049. static="false" final="false" visibility="public"
  27050. deprecated="not deprecated">
  27051. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27052. <param name="all" type="boolean"/>
  27053. <doc>
  27054. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  27055. @param builder to contain the metrics snapshot
  27056. @param all get all the metrics even if the values are not changed.]]>
  27057. </doc>
  27058. </method>
  27059. <field name="CONTEXT_KEY" type="java.lang.String"
  27060. transient="false" volatile="false"
  27061. static="true" final="true" visibility="public"
  27062. deprecated="not deprecated">
  27063. <doc>
  27064. <![CDATA[key for the context tag]]>
  27065. </doc>
  27066. </field>
  27067. <field name="CONTEXT_DESC" type="java.lang.String"
  27068. transient="false" volatile="false"
  27069. static="true" final="true" visibility="public"
  27070. deprecated="not deprecated">
  27071. <doc>
  27072. <![CDATA[description for the context tag]]>
  27073. </doc>
  27074. </field>
  27075. <doc>
  27076. <![CDATA[An optional metrics registry class for creating and maintaining a
  27077. collection of MetricsMutables, making writing metrics source easier.]]>
  27078. </doc>
  27079. </class>
  27080. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  27081. </package>
  27082. <package name="org.apache.hadoop.metrics2.sink">
  27083. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  27084. <class name="FileSink" extends="java.lang.Object"
  27085. abstract="false"
  27086. static="false" final="false" visibility="public"
  27087. deprecated="not deprecated">
  27088. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27089. <constructor name="FileSink"
  27090. static="false" final="false" visibility="public"
  27091. deprecated="not deprecated">
  27092. </constructor>
  27093. <method name="init"
  27094. abstract="false" native="false" synchronized="false"
  27095. static="false" final="false" visibility="public"
  27096. deprecated="not deprecated">
  27097. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27098. </method>
  27099. <method name="putMetrics"
  27100. abstract="false" native="false" synchronized="false"
  27101. static="false" final="false" visibility="public"
  27102. deprecated="not deprecated">
  27103. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27104. </method>
  27105. <method name="flush"
  27106. abstract="false" native="false" synchronized="false"
  27107. static="false" final="false" visibility="public"
  27108. deprecated="not deprecated">
  27109. </method>
  27110. </class>
  27111. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  27112. </package>
  27113. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  27114. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  27115. <class name="AbstractGangliaSink" extends="java.lang.Object"
  27116. abstract="true"
  27117. static="false" final="false" visibility="public"
  27118. deprecated="not deprecated">
  27119. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  27120. <constructor name="AbstractGangliaSink"
  27121. static="false" final="false" visibility="public"
  27122. deprecated="not deprecated">
  27123. </constructor>
  27124. <method name="init"
  27125. abstract="false" native="false" synchronized="false"
  27126. static="false" final="false" visibility="public"
  27127. deprecated="not deprecated">
  27128. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  27129. </method>
  27130. <method name="flush"
  27131. abstract="false" native="false" synchronized="false"
  27132. static="false" final="false" visibility="public"
  27133. deprecated="not deprecated">
  27134. </method>
  27135. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  27136. abstract="false" native="false" synchronized="false"
  27137. static="false" final="false" visibility="protected"
  27138. deprecated="not deprecated">
  27139. <param name="metricName" type="java.lang.String"/>
  27140. <doc>
  27141. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  27142. @param metricName
  27143. @return looked up GangliaConf]]>
  27144. </doc>
  27145. </method>
  27146. <method name="getHostName" return="java.lang.String"
  27147. abstract="false" native="false" synchronized="false"
  27148. static="false" final="false" visibility="protected"
  27149. deprecated="not deprecated">
  27150. <doc>
  27151. <![CDATA[@return the hostName]]>
  27152. </doc>
  27153. </method>
  27154. <method name="xdr_string"
  27155. abstract="false" native="false" synchronized="false"
  27156. static="false" final="false" visibility="protected"
  27157. deprecated="not deprecated">
  27158. <param name="s" type="java.lang.String"/>
  27159. <doc>
  27160. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  27161. int, followed by the bytes of the string, padded if necessary to a multiple
  27162. of 4.
  27163. @param s the string to be written to buffer at offset location]]>
  27164. </doc>
  27165. </method>
  27166. <method name="xdr_int"
  27167. abstract="false" native="false" synchronized="false"
  27168. static="false" final="false" visibility="protected"
  27169. deprecated="not deprecated">
  27170. <param name="i" type="int"/>
  27171. <doc>
  27172. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  27173. </doc>
  27174. </method>
  27175. <method name="emitToGangliaHosts"
  27176. abstract="false" native="false" synchronized="false"
  27177. static="false" final="false" visibility="protected"
  27178. deprecated="not deprecated">
  27179. <exception name="IOException" type="java.io.IOException"/>
  27180. <doc>
  27181. <![CDATA[Sends Ganglia Metrics to the configured hosts
  27182. @throws IOException]]>
  27183. </doc>
  27184. </method>
  27185. <method name="isSupportSparseMetrics" return="boolean"
  27186. abstract="false" native="false" synchronized="false"
  27187. static="false" final="false" visibility="protected"
  27188. deprecated="not deprecated">
  27189. <doc>
  27190. <![CDATA[@return whether sparse metrics are supported]]>
  27191. </doc>
  27192. </method>
  27193. <field name="LOG" type="org.apache.commons.logging.Log"
  27194. transient="false" volatile="false"
  27195. static="false" final="true" visibility="public"
  27196. deprecated="not deprecated">
  27197. </field>
  27198. <field name="DEFAULT_UNITS" type="java.lang.String"
  27199. transient="false" volatile="false"
  27200. static="true" final="true" visibility="public"
  27201. deprecated="not deprecated">
  27202. </field>
  27203. <field name="DEFAULT_TMAX" type="int"
  27204. transient="false" volatile="false"
  27205. static="true" final="true" visibility="public"
  27206. deprecated="not deprecated">
  27207. </field>
  27208. <field name="DEFAULT_DMAX" type="int"
  27209. transient="false" volatile="false"
  27210. static="true" final="true" visibility="public"
  27211. deprecated="not deprecated">
  27212. </field>
  27213. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27214. transient="false" volatile="false"
  27215. static="true" final="true" visibility="public"
  27216. deprecated="not deprecated">
  27217. </field>
  27218. <field name="DEFAULT_PORT" type="int"
  27219. transient="false" volatile="false"
  27220. static="true" final="true" visibility="public"
  27221. deprecated="not deprecated">
  27222. </field>
  27223. <field name="SERVERS_PROPERTY" type="java.lang.String"
  27224. transient="false" volatile="false"
  27225. static="true" final="true" visibility="public"
  27226. deprecated="not deprecated">
  27227. </field>
  27228. <field name="BUFFER_SIZE" type="int"
  27229. transient="false" volatile="false"
  27230. static="true" final="true" visibility="public"
  27231. deprecated="not deprecated">
  27232. </field>
  27233. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  27234. transient="false" volatile="false"
  27235. static="true" final="true" visibility="public"
  27236. deprecated="not deprecated">
  27237. </field>
  27238. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  27239. transient="false" volatile="false"
  27240. static="true" final="true" visibility="public"
  27241. deprecated="not deprecated">
  27242. </field>
  27243. <field name="EQUAL" type="java.lang.String"
  27244. transient="false" volatile="false"
  27245. static="true" final="true" visibility="public"
  27246. deprecated="not deprecated">
  27247. </field>
  27248. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  27249. transient="false" volatile="false"
  27250. static="false" final="true" visibility="protected"
  27251. deprecated="not deprecated">
  27252. <doc>
  27253. <![CDATA[Used for visiting Metrics]]>
  27254. </doc>
  27255. </field>
  27256. <doc>
  27257. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  27258. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  27259. As per the documentation, sink implementations doesn't have to worry about
  27260. thread safety. Hence the code wasn't written for thread safety and should
  27261. be modified in case the above assumption changes in the future.]]>
  27262. </doc>
  27263. </class>
  27264. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  27265. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  27266. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  27267. abstract="false"
  27268. static="true" final="true" visibility="public"
  27269. deprecated="not deprecated">
  27270. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  27271. abstract="false" native="false" synchronized="false"
  27272. static="true" final="false" visibility="public"
  27273. deprecated="not deprecated">
  27274. </method>
  27275. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27276. abstract="false" native="false" synchronized="false"
  27277. static="true" final="false" visibility="public"
  27278. deprecated="not deprecated">
  27279. <param name="name" type="java.lang.String"/>
  27280. </method>
  27281. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27282. transient="false" volatile="false"
  27283. static="true" final="true" visibility="public"
  27284. deprecated="not deprecated">
  27285. </field>
  27286. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27287. transient="false" volatile="false"
  27288. static="true" final="true" visibility="public"
  27289. deprecated="not deprecated">
  27290. </field>
  27291. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27292. transient="false" volatile="false"
  27293. static="true" final="true" visibility="public"
  27294. deprecated="not deprecated">
  27295. </field>
  27296. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  27297. transient="false" volatile="false"
  27298. static="true" final="true" visibility="public"
  27299. deprecated="not deprecated">
  27300. </field>
  27301. <doc>
  27302. <![CDATA[define enum for various type of conf]]>
  27303. </doc>
  27304. </class>
  27305. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  27306. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  27307. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  27308. abstract="false"
  27309. static="true" final="true" visibility="public"
  27310. deprecated="not deprecated">
  27311. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  27312. abstract="false" native="false" synchronized="false"
  27313. static="true" final="false" visibility="public"
  27314. deprecated="not deprecated">
  27315. </method>
  27316. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27317. abstract="false" native="false" synchronized="false"
  27318. static="true" final="false" visibility="public"
  27319. deprecated="not deprecated">
  27320. <param name="name" type="java.lang.String"/>
  27321. </method>
  27322. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27323. transient="false" volatile="false"
  27324. static="true" final="true" visibility="public"
  27325. deprecated="not deprecated">
  27326. </field>
  27327. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27328. transient="false" volatile="false"
  27329. static="true" final="true" visibility="public"
  27330. deprecated="not deprecated">
  27331. </field>
  27332. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27333. transient="false" volatile="false"
  27334. static="true" final="true" visibility="public"
  27335. deprecated="not deprecated">
  27336. </field>
  27337. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  27338. transient="false" volatile="false"
  27339. static="true" final="true" visibility="public"
  27340. deprecated="not deprecated">
  27341. </field>
  27342. <doc>
  27343. <![CDATA[ganglia slope values which equal the ordinal]]>
  27344. </doc>
  27345. </class>
  27346. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  27347. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  27348. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  27349. abstract="false"
  27350. static="false" final="false" visibility="public"
  27351. deprecated="not deprecated">
  27352. <constructor name="GangliaSink30"
  27353. static="false" final="false" visibility="public"
  27354. deprecated="not deprecated">
  27355. </constructor>
  27356. <method name="putMetrics"
  27357. abstract="false" native="false" synchronized="false"
  27358. static="false" final="false" visibility="public"
  27359. deprecated="not deprecated">
  27360. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27361. </method>
  27362. <method name="emitMetric"
  27363. abstract="false" native="false" synchronized="false"
  27364. static="false" final="false" visibility="protected"
  27365. deprecated="not deprecated">
  27366. <param name="groupName" type="java.lang.String"/>
  27367. <param name="name" type="java.lang.String"/>
  27368. <param name="type" type="java.lang.String"/>
  27369. <param name="value" type="java.lang.String"/>
  27370. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  27371. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  27372. <exception name="IOException" type="java.io.IOException"/>
  27373. <doc>
  27374. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  27375. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  27376. order to keep it in sync.
  27377. @param groupName The group name of the metric
  27378. @param name The metric name
  27379. @param type The type of the metric
  27380. @param value The value of the metric
  27381. @param gConf The GangliaConf for this metric
  27382. @param gSlope The slope for this metric
  27383. @throws IOException]]>
  27384. </doc>
  27385. </method>
  27386. <field name="LOG" type="org.apache.commons.logging.Log"
  27387. transient="false" volatile="false"
  27388. static="false" final="true" visibility="public"
  27389. deprecated="not deprecated">
  27390. </field>
  27391. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  27392. transient="false" volatile="false"
  27393. static="false" final="false" visibility="protected"
  27394. deprecated="not deprecated">
  27395. </field>
  27396. <doc>
  27397. <![CDATA[This code supports Ganglia 3.0]]>
  27398. </doc>
  27399. </class>
  27400. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  27401. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  27402. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  27403. abstract="false"
  27404. static="false" final="false" visibility="public"
  27405. deprecated="not deprecated">
  27406. <constructor name="GangliaSink31"
  27407. static="false" final="false" visibility="public"
  27408. deprecated="not deprecated">
  27409. </constructor>
  27410. <method name="emitMetric"
  27411. abstract="false" native="false" synchronized="false"
  27412. static="false" final="false" visibility="protected"
  27413. deprecated="not deprecated">
  27414. <param name="groupName" type="java.lang.String"/>
  27415. <param name="name" type="java.lang.String"/>
  27416. <param name="type" type="java.lang.String"/>
  27417. <param name="value" type="java.lang.String"/>
  27418. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  27419. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  27420. <exception name="IOException" type="java.io.IOException"/>
  27421. <doc>
  27422. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  27423. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  27424. order to keep it in sync.
  27425. @param groupName The group name of the metric
  27426. @param name The metric name
  27427. @param type The type of the metric
  27428. @param value The value of the metric
  27429. @param gConf The GangliaConf for this metric
  27430. @param gSlope The slope for this metric
  27431. @throws IOException]]>
  27432. </doc>
  27433. </method>
  27434. <field name="LOG" type="org.apache.commons.logging.Log"
  27435. transient="false" volatile="false"
  27436. static="false" final="true" visibility="public"
  27437. deprecated="not deprecated">
  27438. </field>
  27439. <doc>
  27440. <![CDATA[This code supports Ganglia 3.1]]>
  27441. </doc>
  27442. </class>
  27443. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  27444. </package>
  27445. <package name="org.apache.hadoop.metrics2.source">
  27446. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  27447. <class name="JvmMetricsSource" extends="java.lang.Object"
  27448. abstract="false"
  27449. static="false" final="false" visibility="public"
  27450. deprecated="not deprecated">
  27451. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27452. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  27453. abstract="false" native="false" synchronized="false"
  27454. static="true" final="false" visibility="public"
  27455. deprecated="not deprecated">
  27456. <param name="processName" type="java.lang.String"/>
  27457. <param name="sessionId" type="java.lang.String"/>
  27458. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  27459. </method>
  27460. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  27461. abstract="false" native="false" synchronized="false"
  27462. static="true" final="false" visibility="public"
  27463. deprecated="not deprecated">
  27464. <param name="processName" type="java.lang.String"/>
  27465. <param name="sessionId" type="java.lang.String"/>
  27466. </method>
  27467. <method name="getMetrics"
  27468. abstract="false" native="false" synchronized="false"
  27469. static="false" final="false" visibility="public"
  27470. deprecated="not deprecated">
  27471. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27472. <param name="all" type="boolean"/>
  27473. </method>
  27474. </class>
  27475. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  27476. </package>
  27477. <package name="org.apache.hadoop.metrics2.util">
  27478. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  27479. <class name="Contracts" extends="java.lang.Object"
  27480. abstract="false"
  27481. static="false" final="false" visibility="public"
  27482. deprecated="not deprecated">
  27483. <method name="checkNotNull" return="java.lang.Object"
  27484. abstract="false" native="false" synchronized="false"
  27485. static="true" final="false" visibility="public"
  27486. deprecated="not deprecated">
  27487. <param name="ref" type="java.lang.Object"/>
  27488. <param name="msg" type="java.lang.Object"/>
  27489. <doc>
  27490. <![CDATA[Check that a reference is not null.
  27491. @param <T> type of the reference
  27492. @param ref the reference to check
  27493. @param msg the error message
  27494. @throws NullPointerException if {@code ref} is null
  27495. @return the checked reference for convenience]]>
  27496. </doc>
  27497. </method>
  27498. <method name="checkState"
  27499. abstract="false" native="false" synchronized="false"
  27500. static="true" final="false" visibility="public"
  27501. deprecated="not deprecated">
  27502. <param name="expression" type="boolean"/>
  27503. <param name="msg" type="java.lang.Object"/>
  27504. <doc>
  27505. <![CDATA[Check the state expression for false conditions
  27506. @param expression the boolean expression to check
  27507. @param msg the error message if {@code expression} is false
  27508. @throws IllegalStateException if {@code expression} is false]]>
  27509. </doc>
  27510. </method>
  27511. <method name="checkArg" return="java.lang.Object"
  27512. abstract="false" native="false" synchronized="false"
  27513. static="true" final="false" visibility="public"
  27514. deprecated="not deprecated">
  27515. <param name="arg" type="java.lang.Object"/>
  27516. <param name="expression" type="boolean"/>
  27517. <param name="msg" type="java.lang.Object"/>
  27518. <doc>
  27519. <![CDATA[Check an argument for false conditions
  27520. @param <T> type of the argument
  27521. @param arg the argument to check
  27522. @param expression the boolean expression for the condition
  27523. @param msg the error message if {@code expression} is false
  27524. @return the argument for convenience]]>
  27525. </doc>
  27526. </method>
  27527. <method name="checkArg" return="int"
  27528. abstract="false" native="false" synchronized="false"
  27529. static="true" final="false" visibility="public"
  27530. deprecated="not deprecated">
  27531. <param name="arg" type="int"/>
  27532. <param name="expression" type="boolean"/>
  27533. <param name="msg" type="java.lang.Object"/>
  27534. <doc>
  27535. <![CDATA[Check an argument for false conditions
  27536. @param arg the argument to check
  27537. @param expression the boolean expression for the condition
  27538. @param msg the error message if {@code expression} is false
  27539. @return the argument for convenience]]>
  27540. </doc>
  27541. </method>
  27542. <method name="checkArg" return="long"
  27543. abstract="false" native="false" synchronized="false"
  27544. static="true" final="false" visibility="public"
  27545. deprecated="not deprecated">
  27546. <param name="arg" type="long"/>
  27547. <param name="expression" type="boolean"/>
  27548. <param name="msg" type="java.lang.Object"/>
  27549. <doc>
  27550. <![CDATA[Check an argument for false conditions
  27551. @param arg the argument to check
  27552. @param expression the boolean expression for the condition
  27553. @param msg the error message if {@code expression} is false
  27554. @return the argument for convenience]]>
  27555. </doc>
  27556. </method>
  27557. <method name="checkArg" return="float"
  27558. abstract="false" native="false" synchronized="false"
  27559. static="true" final="false" visibility="public"
  27560. deprecated="not deprecated">
  27561. <param name="arg" type="float"/>
  27562. <param name="expression" type="boolean"/>
  27563. <param name="msg" type="java.lang.Object"/>
  27564. <doc>
  27565. <![CDATA[Check an argument for false conditions
  27566. @param arg the argument to check
  27567. @param expression the boolean expression for the condition
  27568. @param msg the error message if {@code expression} is false
  27569. @return the argument for convenience]]>
  27570. </doc>
  27571. </method>
  27572. <method name="checkArg" return="double"
  27573. abstract="false" native="false" synchronized="false"
  27574. static="true" final="false" visibility="public"
  27575. deprecated="not deprecated">
  27576. <param name="arg" type="double"/>
  27577. <param name="expression" type="boolean"/>
  27578. <param name="msg" type="java.lang.Object"/>
  27579. <doc>
  27580. <![CDATA[Check an argument for false conditions
  27581. @param arg the argument to check
  27582. @param expression the boolean expression for the condition
  27583. @param msg the error message if {@code expression} is false
  27584. @return the argument for convenience]]>
  27585. </doc>
  27586. </method>
  27587. <doc>
  27588. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  27589. </doc>
  27590. </class>
  27591. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  27592. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  27593. <class name="MBeans" extends="java.lang.Object"
  27594. abstract="false"
  27595. static="false" final="false" visibility="public"
  27596. deprecated="not deprecated">
  27597. <constructor name="MBeans"
  27598. static="false" final="false" visibility="public"
  27599. deprecated="not deprecated">
  27600. </constructor>
  27601. <method name="register" return="javax.management.ObjectName"
  27602. abstract="false" native="false" synchronized="false"
  27603. static="true" final="false" visibility="public"
  27604. deprecated="not deprecated">
  27605. <param name="serviceName" type="java.lang.String"/>
  27606. <param name="nameName" type="java.lang.String"/>
  27607. <param name="theMbean" type="java.lang.Object"/>
  27608. <doc>
  27609. <![CDATA[Register the MBean using our standard MBeanName format
  27610. "hadoop:service=<serviceName>,name=<nameName>"
  27611. Where the <serviceName> and <nameName> are the supplied parameters
  27612. @param serviceName
  27613. @param nameName
  27614. @param theMbean - the MBean to register
  27615. @return the named used to register the MBean]]>
  27616. </doc>
  27617. </method>
  27618. <method name="unregister"
  27619. abstract="false" native="false" synchronized="false"
  27620. static="true" final="false" visibility="public"
  27621. deprecated="not deprecated">
  27622. <param name="mbeanName" type="javax.management.ObjectName"/>
  27623. </method>
  27624. <doc>
  27625. <![CDATA[This util class provides a method to register an MBean using
  27626. our standard naming convention as described in the doc
  27627. for {link {@link #register(String, String, Object)}]]>
  27628. </doc>
  27629. </class>
  27630. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  27631. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  27632. <class name="MetricsCache" extends="java.lang.Object"
  27633. abstract="false"
  27634. static="false" final="false" visibility="public"
  27635. deprecated="not deprecated">
  27636. <constructor name="MetricsCache"
  27637. static="false" final="false" visibility="public"
  27638. deprecated="not deprecated">
  27639. </constructor>
  27640. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27641. abstract="false" native="false" synchronized="false"
  27642. static="false" final="false" visibility="public"
  27643. deprecated="not deprecated">
  27644. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27645. <param name="includingTags" type="boolean"/>
  27646. <doc>
  27647. <![CDATA[Update the cache and return the cached record
  27648. @param mr the update record
  27649. @param includingTags cache tag values (for later lookup by name) if true
  27650. @return the updated cached record]]>
  27651. </doc>
  27652. </method>
  27653. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27654. abstract="false" native="false" synchronized="false"
  27655. static="false" final="false" visibility="public"
  27656. deprecated="not deprecated">
  27657. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27658. </method>
  27659. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  27660. abstract="false" native="false" synchronized="false"
  27661. static="false" final="false" visibility="public"
  27662. deprecated="not deprecated">
  27663. <param name="name" type="java.lang.String"/>
  27664. <param name="tags" type="java.util.Collection"/>
  27665. <doc>
  27666. <![CDATA[Get the cached record
  27667. @param name of the record
  27668. @param tags of the record
  27669. @return the cached record or null]]>
  27670. </doc>
  27671. </method>
  27672. <doc>
  27673. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  27674. </doc>
  27675. </class>
  27676. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  27677. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  27678. <class name="MetricsCache.Record" extends="java.lang.Object"
  27679. abstract="false"
  27680. static="true" final="false" visibility="public"
  27681. deprecated="not deprecated">
  27682. <constructor name="MetricsCache.Record"
  27683. static="false" final="false" visibility="public"
  27684. deprecated="not deprecated">
  27685. </constructor>
  27686. <method name="getTag" return="java.lang.String"
  27687. abstract="false" native="false" synchronized="false"
  27688. static="false" final="false" visibility="public"
  27689. deprecated="not deprecated">
  27690. <param name="key" type="java.lang.String"/>
  27691. <doc>
  27692. <![CDATA[Get the tag value
  27693. @param key name of the tag
  27694. @return the tag value]]>
  27695. </doc>
  27696. </method>
  27697. <method name="getMetric" return="java.lang.Number"
  27698. abstract="false" native="false" synchronized="false"
  27699. static="false" final="false" visibility="public"
  27700. deprecated="not deprecated">
  27701. <param name="key" type="java.lang.String"/>
  27702. <doc>
  27703. <![CDATA[Get the metric value
  27704. @param key name of the metric
  27705. @return the metric value]]>
  27706. </doc>
  27707. </method>
  27708. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  27709. abstract="false" native="false" synchronized="false"
  27710. static="false" final="false" visibility="public"
  27711. deprecated="not deprecated">
  27712. <param name="key" type="java.lang.String"/>
  27713. <doc>
  27714. <![CDATA[Get the metric value
  27715. @param key name of the metric
  27716. @return the metric value]]>
  27717. </doc>
  27718. </method>
  27719. <method name="metrics" return="java.util.Set"
  27720. abstract="false" native="false" synchronized="false"
  27721. static="false" final="false" visibility="public"
  27722. deprecated="not deprecated">
  27723. <doc>
  27724. <![CDATA[@return entry set of metrics]]>
  27725. </doc>
  27726. </method>
  27727. <method name="metricsEntrySet" return="java.util.Set"
  27728. abstract="false" native="false" synchronized="false"
  27729. static="false" final="false" visibility="public"
  27730. deprecated="not deprecated">
  27731. <doc>
  27732. <![CDATA[@return entry set of metrics]]>
  27733. </doc>
  27734. </method>
  27735. <doc>
  27736. <![CDATA[Cached record]]>
  27737. </doc>
  27738. </class>
  27739. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  27740. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  27741. <class name="SampleStat" extends="java.lang.Object"
  27742. abstract="false"
  27743. static="false" final="false" visibility="public"
  27744. deprecated="not deprecated">
  27745. <constructor name="SampleStat"
  27746. static="false" final="false" visibility="public"
  27747. deprecated="not deprecated">
  27748. <doc>
  27749. <![CDATA[Construct a new running sample stat]]>
  27750. </doc>
  27751. </constructor>
  27752. <method name="reset"
  27753. abstract="false" native="false" synchronized="false"
  27754. static="false" final="false" visibility="public"
  27755. deprecated="not deprecated">
  27756. </method>
  27757. <method name="copyTo"
  27758. abstract="false" native="false" synchronized="false"
  27759. static="false" final="false" visibility="public"
  27760. deprecated="not deprecated">
  27761. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  27762. <doc>
  27763. <![CDATA[Copy the values to other (saves object creation and gc.)
  27764. @param other the destination to hold our values]]>
  27765. </doc>
  27766. </method>
  27767. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  27768. abstract="false" native="false" synchronized="false"
  27769. static="false" final="false" visibility="public"
  27770. deprecated="not deprecated">
  27771. <param name="x" type="double"/>
  27772. <doc>
  27773. <![CDATA[Add a sample the running stat.
  27774. @param x the sample number
  27775. @return self]]>
  27776. </doc>
  27777. </method>
  27778. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  27779. abstract="false" native="false" synchronized="false"
  27780. static="false" final="false" visibility="public"
  27781. deprecated="not deprecated">
  27782. <param name="nSamples" type="long"/>
  27783. <param name="x" type="double"/>
  27784. <doc>
  27785. <![CDATA[Add some sample and a partial sum to the running stat.
  27786. Note, min/max is not evaluated using this method.
  27787. @param nSamples number of samples
  27788. @param x the partial sum
  27789. @return self]]>
  27790. </doc>
  27791. </method>
  27792. <method name="numSamples" return="long"
  27793. abstract="false" native="false" synchronized="false"
  27794. static="false" final="false" visibility="public"
  27795. deprecated="not deprecated">
  27796. <doc>
  27797. <![CDATA[@return the total number of samples]]>
  27798. </doc>
  27799. </method>
  27800. <method name="mean" return="double"
  27801. abstract="false" native="false" synchronized="false"
  27802. static="false" final="false" visibility="public"
  27803. deprecated="not deprecated">
  27804. <doc>
  27805. <![CDATA[@return the arithmetic mean of the samples]]>
  27806. </doc>
  27807. </method>
  27808. <method name="variance" return="double"
  27809. abstract="false" native="false" synchronized="false"
  27810. static="false" final="false" visibility="public"
  27811. deprecated="not deprecated">
  27812. <doc>
  27813. <![CDATA[@return the variance of the samples]]>
  27814. </doc>
  27815. </method>
  27816. <method name="stddev" return="double"
  27817. abstract="false" native="false" synchronized="false"
  27818. static="false" final="false" visibility="public"
  27819. deprecated="not deprecated">
  27820. <doc>
  27821. <![CDATA[@return the standard deviation of the samples]]>
  27822. </doc>
  27823. </method>
  27824. <method name="min" return="double"
  27825. abstract="false" native="false" synchronized="false"
  27826. static="false" final="false" visibility="public"
  27827. deprecated="not deprecated">
  27828. <doc>
  27829. <![CDATA[@return the minimum value of the samples]]>
  27830. </doc>
  27831. </method>
  27832. <method name="max" return="double"
  27833. abstract="false" native="false" synchronized="false"
  27834. static="false" final="false" visibility="public"
  27835. deprecated="not deprecated">
  27836. <doc>
  27837. <![CDATA[@return the maximum value of the samples]]>
  27838. </doc>
  27839. </method>
  27840. <doc>
  27841. <![CDATA[Helper to compute running sample stats]]>
  27842. </doc>
  27843. </class>
  27844. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  27845. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  27846. <class name="SampleStat.MinMax" extends="java.lang.Object"
  27847. abstract="false"
  27848. static="true" final="false" visibility="public"
  27849. deprecated="not deprecated">
  27850. <constructor name="SampleStat.MinMax"
  27851. static="false" final="false" visibility="public"
  27852. deprecated="not deprecated">
  27853. </constructor>
  27854. <method name="add"
  27855. abstract="false" native="false" synchronized="false"
  27856. static="false" final="false" visibility="public"
  27857. deprecated="not deprecated">
  27858. <param name="value" type="double"/>
  27859. </method>
  27860. <method name="min" return="double"
  27861. abstract="false" native="false" synchronized="false"
  27862. static="false" final="false" visibility="public"
  27863. deprecated="not deprecated">
  27864. </method>
  27865. <method name="max" return="double"
  27866. abstract="false" native="false" synchronized="false"
  27867. static="false" final="false" visibility="public"
  27868. deprecated="not deprecated">
  27869. </method>
  27870. <method name="reset"
  27871. abstract="false" native="false" synchronized="false"
  27872. static="false" final="false" visibility="public"
  27873. deprecated="not deprecated">
  27874. </method>
  27875. <method name="reset"
  27876. abstract="false" native="false" synchronized="false"
  27877. static="false" final="false" visibility="public"
  27878. deprecated="not deprecated">
  27879. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  27880. </method>
  27881. <doc>
  27882. <![CDATA[Helper to keep running min/max]]>
  27883. </doc>
  27884. </class>
  27885. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  27886. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  27887. <class name="Servers" extends="java.lang.Object"
  27888. abstract="false"
  27889. static="false" final="false" visibility="public"
  27890. deprecated="not deprecated">
  27891. <method name="parse" return="java.util.List"
  27892. abstract="false" native="false" synchronized="false"
  27893. static="true" final="false" visibility="public"
  27894. deprecated="not deprecated">
  27895. <param name="specs" type="java.lang.String"/>
  27896. <param name="defaultPort" type="int"/>
  27897. <doc>
  27898. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  27899. of the form <i>hostname</i> or <i>hostname:port</i>. If
  27900. the specs string is null, defaults to localhost:defaultPort.
  27901. @param specs server specs (see description)
  27902. @param defaultPort the default port if not specified
  27903. @return a list of InetSocketAddress objects.]]>
  27904. </doc>
  27905. </method>
  27906. <doc>
  27907. <![CDATA[Helpers to handle server addresses]]>
  27908. </doc>
  27909. </class>
  27910. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  27911. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  27912. <class name="TryIterator" extends="java.lang.Object"
  27913. abstract="true"
  27914. static="false" final="false" visibility="public"
  27915. deprecated="not deprecated">
  27916. <implements name="java.util.Iterator"/>
  27917. <constructor name="TryIterator"
  27918. static="false" final="false" visibility="public"
  27919. deprecated="not deprecated">
  27920. </constructor>
  27921. <method name="tryNext" return="java.lang.Object"
  27922. abstract="true" native="false" synchronized="false"
  27923. static="false" final="false" visibility="protected"
  27924. deprecated="not deprecated">
  27925. <doc>
  27926. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  27927. infinite loop could occur. If this method throws an exception, any
  27928. further attempts to use the iterator would result in an
  27929. {@link IllegalStateException}.
  27930. @return the next element if there is one or return {@link #done()}]]>
  27931. </doc>
  27932. </method>
  27933. <method name="done" return="java.lang.Object"
  27934. abstract="false" native="false" synchronized="false"
  27935. static="false" final="true" visibility="protected"
  27936. deprecated="not deprecated">
  27937. <doc>
  27938. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  27939. when there are no more elements left in the iteration.
  27940. @return null as a convenience to implement {@link #tryNext()}]]>
  27941. </doc>
  27942. </method>
  27943. <method name="hasNext" return="boolean"
  27944. abstract="false" native="false" synchronized="false"
  27945. static="false" final="true" visibility="public"
  27946. deprecated="not deprecated">
  27947. <doc>
  27948. <![CDATA[@return true if we have a next element or false otherwise.]]>
  27949. </doc>
  27950. </method>
  27951. <method name="next" return="java.lang.Object"
  27952. abstract="false" native="false" synchronized="false"
  27953. static="false" final="true" visibility="public"
  27954. deprecated="not deprecated">
  27955. <doc>
  27956. <![CDATA[@return the next element if we have one.]]>
  27957. </doc>
  27958. </method>
  27959. <method name="current" return="java.lang.Object"
  27960. abstract="false" native="false" synchronized="false"
  27961. static="false" final="true" visibility="public"
  27962. deprecated="not deprecated">
  27963. <doc>
  27964. <![CDATA[@return the current element without advancing the iterator]]>
  27965. </doc>
  27966. </method>
  27967. <method name="remove"
  27968. abstract="false" native="false" synchronized="false"
  27969. static="false" final="true" visibility="public"
  27970. deprecated="not deprecated">
  27971. <doc>
  27972. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  27973. </doc>
  27974. </method>
  27975. <doc>
  27976. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  27977. This class also makes writing filtering iterators easier, where the only
  27978. way to discover the end of data is by trying to read it. The same applies
  27979. to writing iterator wrappers around stream read calls.
  27980. One only needs to implement the tryNext() method and call done() when done.
  27981. @param <T> the type of the iterator]]>
  27982. </doc>
  27983. </class>
  27984. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  27985. </package>
  27986. <package name="org.apache.hadoop.net">
  27987. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  27988. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  27989. abstract="false"
  27990. static="false" final="false" visibility="public"
  27991. deprecated="not deprecated">
  27992. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  27993. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  27994. static="false" final="false" visibility="public"
  27995. deprecated="not deprecated">
  27996. </constructor>
  27997. <method name="resolve" return="java.util.List"
  27998. abstract="false" native="false" synchronized="false"
  27999. static="false" final="false" visibility="public"
  28000. deprecated="not deprecated">
  28001. <param name="names" type="java.util.List"/>
  28002. </method>
  28003. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  28004. transient="false" volatile="false"
  28005. static="false" final="false" visibility="protected"
  28006. deprecated="not deprecated">
  28007. </field>
  28008. <doc>
  28009. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  28010. raw DNSToSwitchMapping and stores the resolved network location in
  28011. a cache. The following calls to a resolved network location
  28012. will get its location from the cache.]]>
  28013. </doc>
  28014. </class>
  28015. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  28016. <!-- start class org.apache.hadoop.net.DNS -->
  28017. <class name="DNS" extends="java.lang.Object"
  28018. abstract="false"
  28019. static="false" final="false" visibility="public"
  28020. deprecated="not deprecated">
  28021. <constructor name="DNS"
  28022. static="false" final="false" visibility="public"
  28023. deprecated="not deprecated">
  28024. </constructor>
  28025. <method name="reverseDns" return="java.lang.String"
  28026. abstract="false" native="false" synchronized="false"
  28027. static="true" final="false" visibility="public"
  28028. deprecated="not deprecated">
  28029. <param name="hostIp" type="java.net.InetAddress"/>
  28030. <param name="ns" type="java.lang.String"/>
  28031. <exception name="NamingException" type="javax.naming.NamingException"/>
  28032. <doc>
  28033. <![CDATA[Returns the hostname associated with the specified IP address by the
  28034. provided nameserver.
  28035. @param hostIp
  28036. The address to reverse lookup
  28037. @param ns
  28038. The host name of a reachable DNS server
  28039. @return The host name associated with the provided IP
  28040. @throws NamingException
  28041. If a NamingException is encountered]]>
  28042. </doc>
  28043. </method>
  28044. <method name="getIPs" return="java.lang.String[]"
  28045. abstract="false" native="false" synchronized="false"
  28046. static="true" final="false" visibility="public"
  28047. deprecated="not deprecated">
  28048. <param name="strInterface" type="java.lang.String"/>
  28049. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28050. <doc>
  28051. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  28052. textual form.
  28053. @param strInterface
  28054. The name of the network interface to query (e.g. eth0)
  28055. @return A string vector of all the IPs associated with the provided
  28056. interface
  28057. @throws UnknownHostException
  28058. If an UnknownHostException is encountered in querying the
  28059. default interface]]>
  28060. </doc>
  28061. </method>
  28062. <method name="getDefaultIP" return="java.lang.String"
  28063. abstract="false" native="false" synchronized="false"
  28064. static="true" final="false" visibility="public"
  28065. deprecated="not deprecated">
  28066. <param name="strInterface" type="java.lang.String"/>
  28067. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28068. <doc>
  28069. <![CDATA[Returns the first available IP address associated with the provided
  28070. network interface
  28071. @param strInterface
  28072. The name of the network interface to query (e.g. eth0)
  28073. @return The IP address in text form
  28074. @throws UnknownHostException
  28075. If one is encountered in querying the default interface]]>
  28076. </doc>
  28077. </method>
  28078. <method name="getHosts" return="java.lang.String[]"
  28079. abstract="false" native="false" synchronized="false"
  28080. static="true" final="false" visibility="public"
  28081. deprecated="not deprecated">
  28082. <param name="strInterface" type="java.lang.String"/>
  28083. <param name="nameserver" type="java.lang.String"/>
  28084. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28085. <doc>
  28086. <![CDATA[Returns all the host names associated by the provided nameserver with the
  28087. address bound to the specified network interface
  28088. @param strInterface
  28089. The name of the network interface to query (e.g. eth0)
  28090. @param nameserver
  28091. The DNS host name
  28092. @return A string vector of all host names associated with the IPs tied to
  28093. the specified interface
  28094. @throws UnknownHostException]]>
  28095. </doc>
  28096. </method>
  28097. <method name="getHosts" return="java.lang.String[]"
  28098. abstract="false" native="false" synchronized="false"
  28099. static="true" final="false" visibility="public"
  28100. deprecated="not deprecated">
  28101. <param name="strInterface" type="java.lang.String"/>
  28102. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28103. <doc>
  28104. <![CDATA[Returns all the host names associated by the default nameserver with the
  28105. address bound to the specified network interface
  28106. @param strInterface
  28107. The name of the network interface to query (e.g. eth0)
  28108. @return The list of host names associated with IPs bound to the network
  28109. interface
  28110. @throws UnknownHostException
  28111. If one is encountered while querying the deault interface]]>
  28112. </doc>
  28113. </method>
  28114. <method name="getDefaultHost" return="java.lang.String"
  28115. abstract="false" native="false" synchronized="false"
  28116. static="true" final="false" visibility="public"
  28117. deprecated="not deprecated">
  28118. <param name="strInterface" type="java.lang.String"/>
  28119. <param name="nameserver" type="java.lang.String"/>
  28120. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28121. <doc>
  28122. <![CDATA[Returns the default (first) host name associated by the provided
  28123. nameserver with the address bound to the specified network interface
  28124. @param strInterface
  28125. The name of the network interface to query (e.g. eth0)
  28126. @param nameserver
  28127. The DNS host name
  28128. @return The default host names associated with IPs bound to the network
  28129. interface
  28130. @throws UnknownHostException
  28131. If one is encountered while querying the deault interface]]>
  28132. </doc>
  28133. </method>
  28134. <method name="getDefaultHost" return="java.lang.String"
  28135. abstract="false" native="false" synchronized="false"
  28136. static="true" final="false" visibility="public"
  28137. deprecated="not deprecated">
  28138. <param name="strInterface" type="java.lang.String"/>
  28139. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28140. <doc>
  28141. <![CDATA[Returns the default (first) host name associated by the default
  28142. nameserver with the address bound to the specified network interface
  28143. @param strInterface
  28144. The name of the network interface to query (e.g. eth0)
  28145. @return The default host name associated with IPs bound to the network
  28146. interface
  28147. @throws UnknownHostException
  28148. If one is encountered while querying the deault interface]]>
  28149. </doc>
  28150. </method>
  28151. <doc>
  28152. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  28153. the querying of specific network interfaces or nameservers.]]>
  28154. </doc>
  28155. </class>
  28156. <!-- end class org.apache.hadoop.net.DNS -->
  28157. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28158. <interface name="DNSToSwitchMapping" abstract="true"
  28159. static="false" final="false" visibility="public"
  28160. deprecated="not deprecated">
  28161. <method name="resolve" return="java.util.List"
  28162. abstract="false" native="false" synchronized="false"
  28163. static="false" final="false" visibility="public"
  28164. deprecated="not deprecated">
  28165. <param name="names" type="java.util.List"/>
  28166. <doc>
  28167. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  28168. switch information (network paths). One-to-one correspondence must be
  28169. maintained between the elements in the lists.
  28170. Consider an element in the argument list - x.y.com. The switch information
  28171. that is returned must be a network path of the form /foo/rack,
  28172. where / is the root, and 'foo' is the switch where 'rack' is connected.
  28173. Note the hostname/ip-address is not part of the returned path.
  28174. The network topology of the cluster would determine the number of
  28175. components in the network path.
  28176. @param names
  28177. @return list of resolved network paths]]>
  28178. </doc>
  28179. </method>
  28180. <doc>
  28181. <![CDATA[An interface that should be implemented to allow pluggable
  28182. DNS-name/IP-address to RackID resolvers.]]>
  28183. </doc>
  28184. </interface>
  28185. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  28186. <!-- start class org.apache.hadoop.net.NetUtils -->
  28187. <class name="NetUtils" extends="java.lang.Object"
  28188. abstract="false"
  28189. static="false" final="false" visibility="public"
  28190. deprecated="not deprecated">
  28191. <constructor name="NetUtils"
  28192. static="false" final="false" visibility="public"
  28193. deprecated="not deprecated">
  28194. </constructor>
  28195. <method name="setUseQualifiedHostResolver"
  28196. abstract="false" native="false" synchronized="false"
  28197. static="true" final="false" visibility="public"
  28198. deprecated="not deprecated">
  28199. <param name="flag" type="boolean"/>
  28200. <doc>
  28201. <![CDATA[This method is intended for use only by SecurityUtils!
  28202. @param flag where the qualified or standard host resolver is used
  28203. to create socket addresses]]>
  28204. </doc>
  28205. </method>
  28206. <method name="getSocketFactory" return="javax.net.SocketFactory"
  28207. abstract="false" native="false" synchronized="false"
  28208. static="true" final="false" visibility="public"
  28209. deprecated="not deprecated">
  28210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28211. <param name="clazz" type="java.lang.Class"/>
  28212. <doc>
  28213. <![CDATA[Get the socket factory for the given class according to its
  28214. configuration parameter
  28215. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  28216. such parameter exists then fall back on the default socket factory as
  28217. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  28218. this default socket factory is not configured, then fall back on the JVM
  28219. default socket factory.
  28220. @param conf the configuration
  28221. @param clazz the class (usually a {@link VersionedProtocol})
  28222. @return a socket factory]]>
  28223. </doc>
  28224. </method>
  28225. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  28226. abstract="false" native="false" synchronized="false"
  28227. static="true" final="false" visibility="public"
  28228. deprecated="not deprecated">
  28229. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28230. <doc>
  28231. <![CDATA[Get the default socket factory as specified by the configuration
  28232. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  28233. @param conf the configuration
  28234. @return the default socket factory as specified in the configuration or
  28235. the JVM default socket factory if the configuration does not
  28236. contain a default socket factory property.]]>
  28237. </doc>
  28238. </method>
  28239. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  28240. abstract="false" native="false" synchronized="false"
  28241. static="true" final="false" visibility="public"
  28242. deprecated="not deprecated">
  28243. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28244. <param name="propValue" type="java.lang.String"/>
  28245. <doc>
  28246. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  28247. given proxy URI corresponds to an absence of configuration parameter,
  28248. returns null. If the URI is malformed raises an exception.
  28249. @param propValue the property which is the class name of the
  28250. SocketFactory to instantiate; assumed non null and non empty.
  28251. @return a socket factory as defined in the property value.]]>
  28252. </doc>
  28253. </method>
  28254. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  28255. abstract="false" native="false" synchronized="false"
  28256. static="true" final="false" visibility="public"
  28257. deprecated="not deprecated">
  28258. <param name="target" type="java.lang.String"/>
  28259. <doc>
  28260. <![CDATA[Util method to build socket addr from either:
  28261. <host>:<post>
  28262. <fs>://<host>:<port>/<path>]]>
  28263. </doc>
  28264. </method>
  28265. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  28266. abstract="false" native="false" synchronized="false"
  28267. static="true" final="false" visibility="public"
  28268. deprecated="not deprecated">
  28269. <param name="target" type="java.lang.String"/>
  28270. <param name="defaultPort" type="int"/>
  28271. <doc>
  28272. <![CDATA[Util method to build socket addr from either:
  28273. <host>
  28274. <host>:<post>
  28275. <fs>://<host>:<port>/<path>]]>
  28276. </doc>
  28277. </method>
  28278. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  28279. abstract="false" native="false" synchronized="false"
  28280. static="true" final="false" visibility="public"
  28281. deprecated="not deprecated">
  28282. <param name="host" type="java.lang.String"/>
  28283. <param name="port" type="int"/>
  28284. <doc>
  28285. <![CDATA[Create a socket address with the given host and port. The hostname
  28286. might be replaced with another host that was set via
  28287. {@link #addStaticResolution(String, String)}. The value of
  28288. hadoop.security.token.service.use_ip will determine whether the
  28289. standard java host resolver is used, or if the fully qualified resolver
  28290. is used.
  28291. @param host the hostname or IP use to instantiate the object
  28292. @param port the port number
  28293. @return InetSocketAddress]]>
  28294. </doc>
  28295. </method>
  28296. <method name="getCanonicalUri" return="java.net.URI"
  28297. abstract="false" native="false" synchronized="false"
  28298. static="true" final="false" visibility="public"
  28299. deprecated="not deprecated">
  28300. <param name="uri" type="java.net.URI"/>
  28301. <param name="defaultPort" type="int"/>
  28302. <doc>
  28303. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  28304. @param uri to resolve
  28305. @param defaultPort if none is given
  28306. @return URI
  28307. @throws UnknownHostException]]>
  28308. </doc>
  28309. </method>
  28310. <method name="getServerAddress" return="java.lang.String"
  28311. abstract="false" native="false" synchronized="false"
  28312. static="true" final="false" visibility="public"
  28313. deprecated="not deprecated">
  28314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28315. <param name="oldBindAddressName" type="java.lang.String"/>
  28316. <param name="oldPortName" type="java.lang.String"/>
  28317. <param name="newBindAddressName" type="java.lang.String"/>
  28318. <doc>
  28319. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  28320. to a single colon separated one.
  28321. @param conf the configuration to check
  28322. @param oldBindAddressName the old address attribute name
  28323. @param oldPortName the old port attribute name
  28324. @param newBindAddressName the new combined name
  28325. @return the complete address from the configuration]]>
  28326. </doc>
  28327. </method>
  28328. <method name="addStaticResolution"
  28329. abstract="false" native="false" synchronized="false"
  28330. static="true" final="false" visibility="public"
  28331. deprecated="not deprecated">
  28332. <param name="host" type="java.lang.String"/>
  28333. <param name="resolvedName" type="java.lang.String"/>
  28334. <doc>
  28335. <![CDATA[Adds a static resolution for host. This can be used for setting up
  28336. hostnames with names that are fake to point to a well known host. For e.g.
  28337. in some testcases we require to have daemons with different hostnames
  28338. running on the same machine. In order to create connections to these
  28339. daemons, one can set up mappings from those hostnames to "localhost".
  28340. {@link NetUtils#getStaticResolution(String)} can be used to query for
  28341. the actual hostname.
  28342. @param host
  28343. @param resolvedName]]>
  28344. </doc>
  28345. </method>
  28346. <method name="getStaticResolution" return="java.lang.String"
  28347. abstract="false" native="false" synchronized="false"
  28348. static="true" final="false" visibility="public"
  28349. deprecated="not deprecated">
  28350. <param name="host" type="java.lang.String"/>
  28351. <doc>
  28352. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  28353. have been set earlier using
  28354. {@link NetUtils#addStaticResolution(String, String)}
  28355. @param host
  28356. @return the resolution]]>
  28357. </doc>
  28358. </method>
  28359. <method name="getAllStaticResolutions" return="java.util.List"
  28360. abstract="false" native="false" synchronized="false"
  28361. static="true" final="false" visibility="public"
  28362. deprecated="not deprecated">
  28363. <doc>
  28364. <![CDATA[This is used to get all the resolutions that were added using
  28365. {@link NetUtils#addStaticResolution(String, String)}. The return
  28366. value is a List each element of which contains an array of String
  28367. of the form String[0]=hostname, String[1]=resolved-hostname
  28368. @return the list of resolutions]]>
  28369. </doc>
  28370. </method>
  28371. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  28372. abstract="false" native="false" synchronized="false"
  28373. static="true" final="false" visibility="public"
  28374. deprecated="not deprecated">
  28375. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  28376. <doc>
  28377. <![CDATA[Returns InetSocketAddress that a client can use to
  28378. connect to the server. Server.getListenerAddress() is not correct when
  28379. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  28380. the getListenerAddress() returns "0.0.0.0:port".
  28381. @param server
  28382. @return socket address that a client can use to connect to the server.]]>
  28383. </doc>
  28384. </method>
  28385. <method name="getInputStream" return="java.io.InputStream"
  28386. abstract="false" native="false" synchronized="false"
  28387. static="true" final="false" visibility="public"
  28388. deprecated="not deprecated">
  28389. <param name="socket" type="java.net.Socket"/>
  28390. <exception name="IOException" type="java.io.IOException"/>
  28391. <doc>
  28392. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  28393. From documentation for {@link #getInputStream(Socket, long)}:<br>
  28394. Returns InputStream for the socket. If the socket has an associated
  28395. SocketChannel then it returns a
  28396. {@link SocketInputStream} with the given timeout. If the socket does not
  28397. have a channel, {@link Socket#getInputStream()} is returned. In the later
  28398. case, the timeout argument is ignored and the timeout set with
  28399. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  28400. Any socket created using socket factories returned by {@link NetUtils},
  28401. must use this interface instead of {@link Socket#getInputStream()}.
  28402. @see #getInputStream(Socket, long)
  28403. @param socket
  28404. @return InputStream for reading from the socket.
  28405. @throws IOException]]>
  28406. </doc>
  28407. </method>
  28408. <method name="getInputStream" return="java.io.InputStream"
  28409. abstract="false" native="false" synchronized="false"
  28410. static="true" final="false" visibility="public"
  28411. deprecated="not deprecated">
  28412. <param name="socket" type="java.net.Socket"/>
  28413. <param name="timeout" type="long"/>
  28414. <exception name="IOException" type="java.io.IOException"/>
  28415. <doc>
  28416. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  28417. SocketChannel then it returns a
  28418. {@link SocketInputStream} with the given timeout. If the socket does not
  28419. have a channel, {@link Socket#getInputStream()} is returned. In the later
  28420. case, the timeout argument is ignored and the timeout set with
  28421. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  28422. Any socket created using socket factories returned by {@link NetUtils},
  28423. must use this interface instead of {@link Socket#getInputStream()}.
  28424. @see Socket#getChannel()
  28425. @param socket
  28426. @param timeout timeout in milliseconds. This may not always apply. zero
  28427. for waiting as long as necessary.
  28428. @return InputStream for reading from the socket.
  28429. @throws IOException]]>
  28430. </doc>
  28431. </method>
  28432. <method name="getOutputStream" return="java.io.OutputStream"
  28433. abstract="false" native="false" synchronized="false"
  28434. static="true" final="false" visibility="public"
  28435. deprecated="not deprecated">
  28436. <param name="socket" type="java.net.Socket"/>
  28437. <exception name="IOException" type="java.io.IOException"/>
  28438. <doc>
  28439. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  28440. wait until data is available.<br><br>
  28441. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  28442. Returns OutputStream for the socket. If the socket has an associated
  28443. SocketChannel then it returns a
  28444. {@link SocketOutputStream} with the given timeout. If the socket does not
  28445. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  28446. case, the timeout argument is ignored and the write will wait until
  28447. data is available.<br><br>
  28448. Any socket created using socket factories returned by {@link NetUtils},
  28449. must use this interface instead of {@link Socket#getOutputStream()}.
  28450. @see #getOutputStream(Socket, long)
  28451. @param socket
  28452. @return OutputStream for writing to the socket.
  28453. @throws IOException]]>
  28454. </doc>
  28455. </method>
  28456. <method name="getOutputStream" return="java.io.OutputStream"
  28457. abstract="false" native="false" synchronized="false"
  28458. static="true" final="false" visibility="public"
  28459. deprecated="not deprecated">
  28460. <param name="socket" type="java.net.Socket"/>
  28461. <param name="timeout" type="long"/>
  28462. <exception name="IOException" type="java.io.IOException"/>
  28463. <doc>
  28464. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  28465. SocketChannel then it returns a
  28466. {@link SocketOutputStream} with the given timeout. If the socket does not
  28467. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  28468. case, the timeout argument is ignored and the write will wait until
  28469. data is available.<br><br>
  28470. Any socket created using socket factories returned by {@link NetUtils},
  28471. must use this interface instead of {@link Socket#getOutputStream()}.
  28472. @see Socket#getChannel()
  28473. @param socket
  28474. @param timeout timeout in milliseconds. This may not always apply. zero
  28475. for waiting as long as necessary.
  28476. @return OutputStream for writing to the socket.
  28477. @throws IOException]]>
  28478. </doc>
  28479. </method>
  28480. <method name="connect"
  28481. abstract="false" native="false" synchronized="false"
  28482. static="true" final="false" visibility="public"
  28483. deprecated="not deprecated">
  28484. <param name="socket" type="java.net.Socket"/>
  28485. <param name="endpoint" type="java.net.SocketAddress"/>
  28486. <param name="timeout" type="int"/>
  28487. <exception name="IOException" type="java.io.IOException"/>
  28488. <doc>
  28489. <![CDATA[This is a drop-in replacement for
  28490. {@link Socket#connect(SocketAddress, int)}.
  28491. In the case of normal sockets that don't have associated channels, this
  28492. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  28493. <code>socket.getChannel()</code> returns a non-null channel,
  28494. connect is implemented using Hadoop's selectors. This is done mainly
  28495. to avoid Sun's connect implementation from creating thread-local
  28496. selectors, since Hadoop does not have control on when these are closed
  28497. and could end up taking all the available file descriptors.
  28498. @see java.net.Socket#connect(java.net.SocketAddress, int)
  28499. @param socket
  28500. @param endpoint
  28501. @param timeout - timeout in milliseconds]]>
  28502. </doc>
  28503. </method>
  28504. <method name="normalizeHostName" return="java.lang.String"
  28505. abstract="false" native="false" synchronized="false"
  28506. static="true" final="false" visibility="public"
  28507. deprecated="not deprecated">
  28508. <param name="name" type="java.lang.String"/>
  28509. <doc>
  28510. <![CDATA[Given a string representation of a host, return its ip address
  28511. in textual presentation.
  28512. @param name a string representation of a host:
  28513. either a textual representation its IP address or its host name
  28514. @return its IP address in the string format]]>
  28515. </doc>
  28516. </method>
  28517. <method name="normalizeHostNames" return="java.util.List"
  28518. abstract="false" native="false" synchronized="false"
  28519. static="true" final="false" visibility="public"
  28520. deprecated="not deprecated">
  28521. <param name="names" type="java.util.Collection"/>
  28522. <doc>
  28523. <![CDATA[Given a collection of string representation of hosts, return a list of
  28524. corresponding IP addresses in the textual representation.
  28525. @param names a collection of string representations of hosts
  28526. @return a list of corresponding IP addresses in the string format
  28527. @see #normalizeHostName(String)]]>
  28528. </doc>
  28529. </method>
  28530. <method name="verifyHostnames"
  28531. abstract="false" native="false" synchronized="false"
  28532. static="true" final="false" visibility="public"
  28533. deprecated="not deprecated">
  28534. <param name="names" type="java.lang.String[]"/>
  28535. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28536. <doc>
  28537. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  28538. appear to be valid.
  28539. @param names - List of hostnames/IPs
  28540. @throws UnknownHostException]]>
  28541. </doc>
  28542. </method>
  28543. <method name="getLocalInetAddress" return="java.net.InetAddress"
  28544. abstract="false" native="false" synchronized="false"
  28545. static="true" final="false" visibility="public"
  28546. deprecated="not deprecated">
  28547. <param name="host" type="java.lang.String"/>
  28548. <exception name="SocketException" type="java.net.SocketException"/>
  28549. <doc>
  28550. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  28551. corresponding to that address.
  28552. @param host the specified host
  28553. @return a valid local {@link InetAddress} or null
  28554. @throws SocketException if an I/O error occurs]]>
  28555. </doc>
  28556. </method>
  28557. </class>
  28558. <!-- end class org.apache.hadoop.net.NetUtils -->
  28559. <!-- start interface org.apache.hadoop.net.NetUtils.HostResolver -->
  28560. <interface name="NetUtils.HostResolver" abstract="true"
  28561. static="true" final="false" visibility="protected"
  28562. deprecated="not deprecated">
  28563. <method name="getByName" return="java.net.InetAddress"
  28564. abstract="false" native="false" synchronized="false"
  28565. static="false" final="false" visibility="public"
  28566. deprecated="not deprecated">
  28567. <param name="host" type="java.lang.String"/>
  28568. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28569. </method>
  28570. </interface>
  28571. <!-- end interface org.apache.hadoop.net.NetUtils.HostResolver -->
  28572. <!-- start class org.apache.hadoop.net.NetUtils.QualifiedHostResolver -->
  28573. <class name="NetUtils.QualifiedHostResolver" extends="java.lang.Object"
  28574. abstract="false"
  28575. static="true" final="false" visibility="protected"
  28576. deprecated="not deprecated">
  28577. <implements name="org.apache.hadoop.net.NetUtils.HostResolver"/>
  28578. <constructor name="NetUtils.QualifiedHostResolver"
  28579. static="false" final="false" visibility="protected"
  28580. deprecated="not deprecated">
  28581. </constructor>
  28582. <method name="getByName" return="java.net.InetAddress"
  28583. abstract="false" native="false" synchronized="false"
  28584. static="false" final="false" visibility="public"
  28585. deprecated="not deprecated">
  28586. <param name="host" type="java.lang.String"/>
  28587. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28588. <doc>
  28589. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  28590. hostname. InetAddress does not qualify an incomplete hostname that
  28591. is resolved via the domain search list.
  28592. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  28593. hostname, but it always return the A record whereas the given hostname
  28594. may be a CNAME.
  28595. @param host a hostname or ip address
  28596. @return InetAddress with the fully qualified hostname or ip
  28597. @throws UnknownHostException if host does not exist]]>
  28598. </doc>
  28599. </method>
  28600. <doc>
  28601. <![CDATA[This an alternate resolver with important properties that the standard
  28602. java resolver lacks:
  28603. 1) The hostname is fully qualified. This avoids security issues if not
  28604. all hosts in the cluster do not share the same search domains. It
  28605. also prevents other hosts from performing unnecessary dns searches.
  28606. In contrast, InetAddress simply returns the host as given.
  28607. 2) The InetAddress is instantiated with an exact host and IP to prevent
  28608. further unnecessary lookups. InetAddress may perform an unnecessary
  28609. reverse lookup for an IP.
  28610. 3) A call to getHostName() will always return the qualified hostname, or
  28611. more importantly, the IP if instantiated with an IP. This avoids
  28612. unnecessary dns timeouts if the host is not resolvable.
  28613. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  28614. connection re-attempt, that a reverse lookup to host and forward
  28615. lookup to IP is not performed since the reverse/forward mappings may
  28616. not always return the same IP. If the client initiated a connection
  28617. with an IP, then that IP is all that should ever be contacted.
  28618. NOTE: this resolver is only used if:
  28619. hadoop.security.token.service.use_ip=false]]>
  28620. </doc>
  28621. </class>
  28622. <!-- end class org.apache.hadoop.net.NetUtils.QualifiedHostResolver -->
  28623. <!-- start class org.apache.hadoop.net.NetUtils.StandardHostResolver -->
  28624. <class name="NetUtils.StandardHostResolver" extends="java.lang.Object"
  28625. abstract="false"
  28626. static="true" final="false" visibility="protected"
  28627. deprecated="not deprecated">
  28628. <implements name="org.apache.hadoop.net.NetUtils.HostResolver"/>
  28629. <constructor name="NetUtils.StandardHostResolver"
  28630. static="false" final="false" visibility="protected"
  28631. deprecated="not deprecated">
  28632. </constructor>
  28633. <method name="getByName" return="java.net.InetAddress"
  28634. abstract="false" native="false" synchronized="false"
  28635. static="false" final="false" visibility="public"
  28636. deprecated="not deprecated">
  28637. <param name="host" type="java.lang.String"/>
  28638. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  28639. </method>
  28640. <doc>
  28641. <![CDATA[Uses standard java host resolution]]>
  28642. </doc>
  28643. </class>
  28644. <!-- end class org.apache.hadoop.net.NetUtils.StandardHostResolver -->
  28645. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  28646. <class name="NetworkTopology" extends="java.lang.Object"
  28647. abstract="false"
  28648. static="false" final="false" visibility="public"
  28649. deprecated="not deprecated">
  28650. <constructor name="NetworkTopology"
  28651. static="false" final="false" visibility="public"
  28652. deprecated="not deprecated">
  28653. </constructor>
  28654. <method name="add"
  28655. abstract="false" native="false" synchronized="false"
  28656. static="false" final="false" visibility="public"
  28657. deprecated="not deprecated">
  28658. <param name="node" type="org.apache.hadoop.net.Node"/>
  28659. <doc>
  28660. <![CDATA[Add a leaf node
  28661. Update node counter & rack counter if neccessary
  28662. @param node
  28663. node to be added
  28664. @exception IllegalArgumentException if add a node to a leave
  28665. or node to be added is not a leaf]]>
  28666. </doc>
  28667. </method>
  28668. <method name="remove"
  28669. abstract="false" native="false" synchronized="false"
  28670. static="false" final="false" visibility="public"
  28671. deprecated="not deprecated">
  28672. <param name="node" type="org.apache.hadoop.net.Node"/>
  28673. <doc>
  28674. <![CDATA[Remove a node
  28675. Update node counter & rack counter if neccessary
  28676. @param node
  28677. node to be removed]]>
  28678. </doc>
  28679. </method>
  28680. <method name="contains" return="boolean"
  28681. abstract="false" native="false" synchronized="false"
  28682. static="false" final="false" visibility="public"
  28683. deprecated="not deprecated">
  28684. <param name="node" type="org.apache.hadoop.net.Node"/>
  28685. <doc>
  28686. <![CDATA[Check if the tree contains node <i>node</i>
  28687. @param node
  28688. a node
  28689. @return true if <i>node</i> is already in the tree; false otherwise]]>
  28690. </doc>
  28691. </method>
  28692. <method name="getNode" return="org.apache.hadoop.net.Node"
  28693. abstract="false" native="false" synchronized="false"
  28694. static="false" final="false" visibility="public"
  28695. deprecated="not deprecated">
  28696. <param name="loc" type="java.lang.String"/>
  28697. <doc>
  28698. <![CDATA[Given a string representation of a node, return its reference
  28699. @param loc
  28700. a path-like string representation of a node
  28701. @return a reference to the node; null if the node is not in the tree]]>
  28702. </doc>
  28703. </method>
  28704. <method name="getNumOfRacks" return="int"
  28705. abstract="false" native="false" synchronized="false"
  28706. static="false" final="false" visibility="public"
  28707. deprecated="not deprecated">
  28708. <doc>
  28709. <![CDATA[Return the total number of racks]]>
  28710. </doc>
  28711. </method>
  28712. <method name="getNumOfLeaves" return="int"
  28713. abstract="false" native="false" synchronized="false"
  28714. static="false" final="false" visibility="public"
  28715. deprecated="not deprecated">
  28716. <doc>
  28717. <![CDATA[Return the total number of nodes]]>
  28718. </doc>
  28719. </method>
  28720. <method name="getDistance" return="int"
  28721. abstract="false" native="false" synchronized="false"
  28722. static="false" final="false" visibility="public"
  28723. deprecated="not deprecated">
  28724. <param name="node1" type="org.apache.hadoop.net.Node"/>
  28725. <param name="node2" type="org.apache.hadoop.net.Node"/>
  28726. <doc>
  28727. <![CDATA[Return the distance between two nodes
  28728. It is assumed that the distance from one node to its parent is 1
  28729. The distance between two nodes is calculated by summing up their distances
  28730. to their closest common ancestor.
  28731. @param node1 one node
  28732. @param node2 another node
  28733. @return the distance between node1 and node2
  28734. node1 or node2 do not belong to the cluster]]>
  28735. </doc>
  28736. </method>
  28737. <method name="isOnSameRack" return="boolean"
  28738. abstract="false" native="false" synchronized="false"
  28739. static="false" final="false" visibility="public"
  28740. deprecated="not deprecated">
  28741. <param name="node1" type="org.apache.hadoop.net.Node"/>
  28742. <param name="node2" type="org.apache.hadoop.net.Node"/>
  28743. <doc>
  28744. <![CDATA[Check if two nodes are on the same rack
  28745. @param node1 one node
  28746. @param node2 another node
  28747. @return true if node1 and node2 are pm the same rack; false otherwise
  28748. @exception IllegalArgumentException when either node1 or node2 is null, or
  28749. node1 or node2 do not belong to the cluster]]>
  28750. </doc>
  28751. </method>
  28752. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  28753. abstract="false" native="false" synchronized="false"
  28754. static="false" final="false" visibility="public"
  28755. deprecated="not deprecated">
  28756. <param name="scope" type="java.lang.String"/>
  28757. <doc>
  28758. <![CDATA[randomly choose one node from <i>scope</i>
  28759. if scope starts with ~, choose one from the all nodes except for the
  28760. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  28761. @param scope range of nodes from which a node will be choosen
  28762. @return the choosen node]]>
  28763. </doc>
  28764. </method>
  28765. <method name="countNumOfAvailableNodes" return="int"
  28766. abstract="false" native="false" synchronized="false"
  28767. static="false" final="false" visibility="public"
  28768. deprecated="not deprecated">
  28769. <param name="scope" type="java.lang.String"/>
  28770. <param name="excludedNodes" type="java.util.List"/>
  28771. <doc>
  28772. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  28773. if scope starts with ~, return the number of nodes that are not
  28774. in <i>scope</i> and <i>excludedNodes</i>;
  28775. @param scope a path string that may start with ~
  28776. @param excludedNodes a list of nodes
  28777. @return number of available nodes]]>
  28778. </doc>
  28779. </method>
  28780. <method name="toString" return="java.lang.String"
  28781. abstract="false" native="false" synchronized="false"
  28782. static="false" final="false" visibility="public"
  28783. deprecated="not deprecated">
  28784. <doc>
  28785. <![CDATA[convert a network tree to a string]]>
  28786. </doc>
  28787. </method>
  28788. <method name="pseudoSortByDistance"
  28789. abstract="false" native="false" synchronized="false"
  28790. static="false" final="false" visibility="public"
  28791. deprecated="not deprecated">
  28792. <param name="reader" type="org.apache.hadoop.net.Node"/>
  28793. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  28794. <doc>
  28795. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  28796. It linearly scans the array, if a local node is found, swap it with
  28797. the first element of the array.
  28798. If a local rack node is found, swap it with the first element following
  28799. the local node.
  28800. If neither local node or local rack node is found, put a random replica
  28801. location at postion 0.
  28802. It leaves the rest nodes untouched.]]>
  28803. </doc>
  28804. </method>
  28805. <field name="DEFAULT_RACK" type="java.lang.String"
  28806. transient="false" volatile="false"
  28807. static="true" final="true" visibility="public"
  28808. deprecated="not deprecated">
  28809. </field>
  28810. <field name="DEFAULT_HOST_LEVEL" type="int"
  28811. transient="false" volatile="false"
  28812. static="true" final="true" visibility="public"
  28813. deprecated="not deprecated">
  28814. </field>
  28815. <field name="LOG" type="org.apache.commons.logging.Log"
  28816. transient="false" volatile="false"
  28817. static="true" final="true" visibility="public"
  28818. deprecated="not deprecated">
  28819. </field>
  28820. <doc>
  28821. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  28822. network topology.
  28823. For example, a cluster may be consists of many data centers filled
  28824. with racks of computers.
  28825. In a network topology, leaves represent data nodes (computers) and inner
  28826. nodes represent switches/routers that manage traffic in/out of data centers
  28827. or racks.]]>
  28828. </doc>
  28829. </class>
  28830. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  28831. <!-- start interface org.apache.hadoop.net.Node -->
  28832. <interface name="Node" abstract="true"
  28833. static="false" final="false" visibility="public"
  28834. deprecated="not deprecated">
  28835. <method name="getNetworkLocation" return="java.lang.String"
  28836. abstract="false" native="false" synchronized="false"
  28837. static="false" final="false" visibility="public"
  28838. deprecated="not deprecated">
  28839. <doc>
  28840. <![CDATA[Return the string representation of this node's network location]]>
  28841. </doc>
  28842. </method>
  28843. <method name="setNetworkLocation"
  28844. abstract="false" native="false" synchronized="false"
  28845. static="false" final="false" visibility="public"
  28846. deprecated="not deprecated">
  28847. <param name="location" type="java.lang.String"/>
  28848. <doc>
  28849. <![CDATA[Set the node's network location]]>
  28850. </doc>
  28851. </method>
  28852. <method name="getName" return="java.lang.String"
  28853. abstract="false" native="false" synchronized="false"
  28854. static="false" final="false" visibility="public"
  28855. deprecated="not deprecated">
  28856. <doc>
  28857. <![CDATA[Return this node's name]]>
  28858. </doc>
  28859. </method>
  28860. <method name="getParent" return="org.apache.hadoop.net.Node"
  28861. abstract="false" native="false" synchronized="false"
  28862. static="false" final="false" visibility="public"
  28863. deprecated="not deprecated">
  28864. <doc>
  28865. <![CDATA[Return this node's parent]]>
  28866. </doc>
  28867. </method>
  28868. <method name="setParent"
  28869. abstract="false" native="false" synchronized="false"
  28870. static="false" final="false" visibility="public"
  28871. deprecated="not deprecated">
  28872. <param name="parent" type="org.apache.hadoop.net.Node"/>
  28873. <doc>
  28874. <![CDATA[Set this node's parent]]>
  28875. </doc>
  28876. </method>
  28877. <method name="getLevel" return="int"
  28878. abstract="false" native="false" synchronized="false"
  28879. static="false" final="false" visibility="public"
  28880. deprecated="not deprecated">
  28881. <doc>
  28882. <![CDATA[Return this node's level in the tree.
  28883. E.g. the root of a tree returns 0 and its children return 1]]>
  28884. </doc>
  28885. </method>
  28886. <method name="setLevel"
  28887. abstract="false" native="false" synchronized="false"
  28888. static="false" final="false" visibility="public"
  28889. deprecated="not deprecated">
  28890. <param name="i" type="int"/>
  28891. <doc>
  28892. <![CDATA[Set this node's level in the tree.]]>
  28893. </doc>
  28894. </method>
  28895. <doc>
  28896. <![CDATA[The interface defines a node in a network topology.
  28897. A node may be a leave representing a data node or an inner
  28898. node representing a datacenter or rack.
  28899. Each data has a name and its location in the network is
  28900. decided by a string with syntax similar to a file name.
  28901. For example, a data node's name is hostname:port# and if it's located at
  28902. rack "orange" in datacenter "dog", the string representation of its
  28903. network location is /dog/orange]]>
  28904. </doc>
  28905. </interface>
  28906. <!-- end interface org.apache.hadoop.net.Node -->
  28907. <!-- start class org.apache.hadoop.net.NodeBase -->
  28908. <class name="NodeBase" extends="java.lang.Object"
  28909. abstract="false"
  28910. static="false" final="false" visibility="public"
  28911. deprecated="not deprecated">
  28912. <implements name="org.apache.hadoop.net.Node"/>
  28913. <constructor name="NodeBase"
  28914. static="false" final="false" visibility="public"
  28915. deprecated="not deprecated">
  28916. <doc>
  28917. <![CDATA[Default constructor]]>
  28918. </doc>
  28919. </constructor>
  28920. <constructor name="NodeBase" type="java.lang.String"
  28921. static="false" final="false" visibility="public"
  28922. deprecated="not deprecated">
  28923. <doc>
  28924. <![CDATA[Construct a node from its path
  28925. @param path
  28926. a concatenation of this node's location, the path seperator, and its name]]>
  28927. </doc>
  28928. </constructor>
  28929. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  28930. static="false" final="false" visibility="public"
  28931. deprecated="not deprecated">
  28932. <doc>
  28933. <![CDATA[Construct a node from its name and its location
  28934. @param name this node's name
  28935. @param location this node's location]]>
  28936. </doc>
  28937. </constructor>
  28938. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  28939. static="false" final="false" visibility="public"
  28940. deprecated="not deprecated">
  28941. <doc>
  28942. <![CDATA[Construct a node from its name and its location
  28943. @param name this node's name
  28944. @param location this node's location
  28945. @param parent this node's parent node
  28946. @param level this node's level in the tree]]>
  28947. </doc>
  28948. </constructor>
  28949. <method name="getName" return="java.lang.String"
  28950. abstract="false" native="false" synchronized="false"
  28951. static="false" final="false" visibility="public"
  28952. deprecated="not deprecated">
  28953. <doc>
  28954. <![CDATA[Return this node's name]]>
  28955. </doc>
  28956. </method>
  28957. <method name="getNetworkLocation" return="java.lang.String"
  28958. abstract="false" native="false" synchronized="false"
  28959. static="false" final="false" visibility="public"
  28960. deprecated="not deprecated">
  28961. <doc>
  28962. <![CDATA[Return this node's network location]]>
  28963. </doc>
  28964. </method>
  28965. <method name="setNetworkLocation"
  28966. abstract="false" native="false" synchronized="false"
  28967. static="false" final="false" visibility="public"
  28968. deprecated="not deprecated">
  28969. <param name="location" type="java.lang.String"/>
  28970. <doc>
  28971. <![CDATA[Set this node's network location]]>
  28972. </doc>
  28973. </method>
  28974. <method name="getPath" return="java.lang.String"
  28975. abstract="false" native="false" synchronized="false"
  28976. static="true" final="false" visibility="public"
  28977. deprecated="not deprecated">
  28978. <param name="node" type="org.apache.hadoop.net.Node"/>
  28979. <doc>
  28980. <![CDATA[Return this node's path]]>
  28981. </doc>
  28982. </method>
  28983. <method name="toString" return="java.lang.String"
  28984. abstract="false" native="false" synchronized="false"
  28985. static="false" final="false" visibility="public"
  28986. deprecated="not deprecated">
  28987. <doc>
  28988. <![CDATA[Return this node's string representation]]>
  28989. </doc>
  28990. </method>
  28991. <method name="normalize" return="java.lang.String"
  28992. abstract="false" native="false" synchronized="false"
  28993. static="true" final="false" visibility="public"
  28994. deprecated="not deprecated">
  28995. <param name="path" type="java.lang.String"/>
  28996. <doc>
  28997. <![CDATA[Normalize a path]]>
  28998. </doc>
  28999. </method>
  29000. <method name="getParent" return="org.apache.hadoop.net.Node"
  29001. abstract="false" native="false" synchronized="false"
  29002. static="false" final="false" visibility="public"
  29003. deprecated="not deprecated">
  29004. <doc>
  29005. <![CDATA[Return this node's parent]]>
  29006. </doc>
  29007. </method>
  29008. <method name="setParent"
  29009. abstract="false" native="false" synchronized="false"
  29010. static="false" final="false" visibility="public"
  29011. deprecated="not deprecated">
  29012. <param name="parent" type="org.apache.hadoop.net.Node"/>
  29013. <doc>
  29014. <![CDATA[Set this node's parent]]>
  29015. </doc>
  29016. </method>
  29017. <method name="getLevel" return="int"
  29018. abstract="false" native="false" synchronized="false"
  29019. static="false" final="false" visibility="public"
  29020. deprecated="not deprecated">
  29021. <doc>
  29022. <![CDATA[Return this node's level in the tree.
  29023. E.g. the root of a tree returns 0 and its children return 1]]>
  29024. </doc>
  29025. </method>
  29026. <method name="setLevel"
  29027. abstract="false" native="false" synchronized="false"
  29028. static="false" final="false" visibility="public"
  29029. deprecated="not deprecated">
  29030. <param name="level" type="int"/>
  29031. <doc>
  29032. <![CDATA[Set this node's level in the tree]]>
  29033. </doc>
  29034. </method>
  29035. <field name="PATH_SEPARATOR" type="char"
  29036. transient="false" volatile="false"
  29037. static="true" final="true" visibility="public"
  29038. deprecated="not deprecated">
  29039. </field>
  29040. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  29041. transient="false" volatile="false"
  29042. static="true" final="true" visibility="public"
  29043. deprecated="not deprecated">
  29044. </field>
  29045. <field name="ROOT" type="java.lang.String"
  29046. transient="false" volatile="false"
  29047. static="true" final="true" visibility="public"
  29048. deprecated="not deprecated">
  29049. </field>
  29050. <field name="name" type="java.lang.String"
  29051. transient="false" volatile="false"
  29052. static="false" final="false" visibility="protected"
  29053. deprecated="not deprecated">
  29054. </field>
  29055. <field name="location" type="java.lang.String"
  29056. transient="false" volatile="false"
  29057. static="false" final="false" visibility="protected"
  29058. deprecated="not deprecated">
  29059. </field>
  29060. <field name="level" type="int"
  29061. transient="false" volatile="false"
  29062. static="false" final="false" visibility="protected"
  29063. deprecated="not deprecated">
  29064. </field>
  29065. <field name="parent" type="org.apache.hadoop.net.Node"
  29066. transient="false" volatile="false"
  29067. static="false" final="false" visibility="protected"
  29068. deprecated="not deprecated">
  29069. </field>
  29070. <doc>
  29071. <![CDATA[A base class that implements interface Node]]>
  29072. </doc>
  29073. </class>
  29074. <!-- end class org.apache.hadoop.net.NodeBase -->
  29075. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  29076. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  29077. abstract="false"
  29078. static="false" final="true" visibility="public"
  29079. deprecated="not deprecated">
  29080. <implements name="org.apache.hadoop.conf.Configurable"/>
  29081. <constructor name="ScriptBasedMapping"
  29082. static="false" final="false" visibility="public"
  29083. deprecated="not deprecated">
  29084. </constructor>
  29085. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  29086. static="false" final="false" visibility="public"
  29087. deprecated="not deprecated">
  29088. </constructor>
  29089. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29090. abstract="false" native="false" synchronized="false"
  29091. static="false" final="false" visibility="public"
  29092. deprecated="not deprecated">
  29093. </method>
  29094. <method name="setConf"
  29095. abstract="false" native="false" synchronized="false"
  29096. static="false" final="false" visibility="public"
  29097. deprecated="not deprecated">
  29098. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29099. </method>
  29100. <doc>
  29101. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  29102. script configured via topology.script.file.name .]]>
  29103. </doc>
  29104. </class>
  29105. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  29106. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  29107. <class name="SocketInputStream" extends="java.io.InputStream"
  29108. abstract="false"
  29109. static="false" final="false" visibility="public"
  29110. deprecated="not deprecated">
  29111. <implements name="java.nio.channels.ReadableByteChannel"/>
  29112. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  29113. static="false" final="false" visibility="public"
  29114. deprecated="not deprecated">
  29115. <exception name="IOException" type="java.io.IOException"/>
  29116. <doc>
  29117. <![CDATA[Create a new input stream with the given timeout. If the timeout
  29118. is zero, it will be treated as infinite timeout. The socket's
  29119. channel will be configured to be non-blocking.
  29120. @param channel
  29121. Channel for reading, should also be a {@link SelectableChannel}.
  29122. The channel will be configured to be non-blocking.
  29123. @param timeout timeout in milliseconds. must not be negative.
  29124. @throws IOException]]>
  29125. </doc>
  29126. </constructor>
  29127. <constructor name="SocketInputStream" type="java.net.Socket, long"
  29128. static="false" final="false" visibility="public"
  29129. deprecated="not deprecated">
  29130. <exception name="IOException" type="java.io.IOException"/>
  29131. <doc>
  29132. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  29133. Create a new input stream with the given timeout. If the timeout
  29134. is zero, it will be treated as infinite timeout. The socket's
  29135. channel will be configured to be non-blocking.
  29136. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  29137. @param socket should have a channel associated with it.
  29138. @param timeout timeout timeout in milliseconds. must not be negative.
  29139. @throws IOException]]>
  29140. </doc>
  29141. </constructor>
  29142. <constructor name="SocketInputStream" type="java.net.Socket"
  29143. static="false" final="false" visibility="public"
  29144. deprecated="not deprecated">
  29145. <exception name="IOException" type="java.io.IOException"/>
  29146. <doc>
  29147. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  29148. :<br><br>
  29149. Create a new input stream with the given timeout. If the timeout
  29150. is zero, it will be treated as infinite timeout. The socket's
  29151. channel will be configured to be non-blocking.
  29152. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  29153. @param socket should have a channel associated with it.
  29154. @throws IOException]]>
  29155. </doc>
  29156. </constructor>
  29157. <method name="read" return="int"
  29158. abstract="false" native="false" synchronized="false"
  29159. static="false" final="false" visibility="public"
  29160. deprecated="not deprecated">
  29161. <exception name="IOException" type="java.io.IOException"/>
  29162. </method>
  29163. <method name="read" return="int"
  29164. abstract="false" native="false" synchronized="false"
  29165. static="false" final="false" visibility="public"
  29166. deprecated="not deprecated">
  29167. <param name="b" type="byte[]"/>
  29168. <param name="off" type="int"/>
  29169. <param name="len" type="int"/>
  29170. <exception name="IOException" type="java.io.IOException"/>
  29171. </method>
  29172. <method name="close"
  29173. abstract="false" native="false" synchronized="true"
  29174. static="false" final="false" visibility="public"
  29175. deprecated="not deprecated">
  29176. <exception name="IOException" type="java.io.IOException"/>
  29177. </method>
  29178. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  29179. abstract="false" native="false" synchronized="false"
  29180. static="false" final="false" visibility="public"
  29181. deprecated="not deprecated">
  29182. <doc>
  29183. <![CDATA[Returns underlying channel used by inputstream.
  29184. This is useful in certain cases like channel for
  29185. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  29186. </doc>
  29187. </method>
  29188. <method name="isOpen" return="boolean"
  29189. abstract="false" native="false" synchronized="false"
  29190. static="false" final="false" visibility="public"
  29191. deprecated="not deprecated">
  29192. </method>
  29193. <method name="read" return="int"
  29194. abstract="false" native="false" synchronized="false"
  29195. static="false" final="false" visibility="public"
  29196. deprecated="not deprecated">
  29197. <param name="dst" type="java.nio.ByteBuffer"/>
  29198. <exception name="IOException" type="java.io.IOException"/>
  29199. </method>
  29200. <method name="waitForReadable"
  29201. abstract="false" native="false" synchronized="false"
  29202. static="false" final="false" visibility="public"
  29203. deprecated="not deprecated">
  29204. <exception name="IOException" type="java.io.IOException"/>
  29205. <doc>
  29206. <![CDATA[waits for the underlying channel to be ready for reading.
  29207. The timeout specified for this stream applies to this wait.
  29208. @throws SocketTimeoutException
  29209. if select on the channel times out.
  29210. @throws IOException
  29211. if any other I/O error occurs.]]>
  29212. </doc>
  29213. </method>
  29214. <doc>
  29215. <![CDATA[This implements an input stream that can have a timeout while reading.
  29216. This sets non-blocking flag on the socket channel.
  29217. So after create this object, read() on
  29218. {@link Socket#getInputStream()} and write() on
  29219. {@link Socket#getOutputStream()} for the associated socket will throw
  29220. IllegalBlockingModeException.
  29221. Please use {@link SocketOutputStream} for writing.]]>
  29222. </doc>
  29223. </class>
  29224. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  29225. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  29226. <class name="SocketOutputStream" extends="java.io.OutputStream"
  29227. abstract="false"
  29228. static="false" final="false" visibility="public"
  29229. deprecated="not deprecated">
  29230. <implements name="java.nio.channels.WritableByteChannel"/>
  29231. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  29232. static="false" final="false" visibility="public"
  29233. deprecated="not deprecated">
  29234. <exception name="IOException" type="java.io.IOException"/>
  29235. <doc>
  29236. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  29237. is zero, it will be treated as infinite timeout. The socket's
  29238. channel will be configured to be non-blocking.
  29239. @param channel
  29240. Channel for writing, should also be a {@link SelectableChannel}.
  29241. The channel will be configured to be non-blocking.
  29242. @param timeout timeout in milliseconds. must not be negative.
  29243. @throws IOException]]>
  29244. </doc>
  29245. </constructor>
  29246. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  29247. static="false" final="false" visibility="public"
  29248. deprecated="not deprecated">
  29249. <exception name="IOException" type="java.io.IOException"/>
  29250. <doc>
  29251. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  29252. Create a new ouput stream with the given timeout. If the timeout
  29253. is zero, it will be treated as infinite timeout. The socket's
  29254. channel will be configured to be non-blocking.
  29255. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  29256. @param socket should have a channel associated with it.
  29257. @param timeout timeout timeout in milliseconds. must not be negative.
  29258. @throws IOException]]>
  29259. </doc>
  29260. </constructor>
  29261. <method name="write"
  29262. abstract="false" native="false" synchronized="false"
  29263. static="false" final="false" visibility="public"
  29264. deprecated="not deprecated">
  29265. <param name="b" type="int"/>
  29266. <exception name="IOException" type="java.io.IOException"/>
  29267. </method>
  29268. <method name="write"
  29269. abstract="false" native="false" synchronized="false"
  29270. static="false" final="false" visibility="public"
  29271. deprecated="not deprecated">
  29272. <param name="b" type="byte[]"/>
  29273. <param name="off" type="int"/>
  29274. <param name="len" type="int"/>
  29275. <exception name="IOException" type="java.io.IOException"/>
  29276. </method>
  29277. <method name="close"
  29278. abstract="false" native="false" synchronized="true"
  29279. static="false" final="false" visibility="public"
  29280. deprecated="not deprecated">
  29281. <exception name="IOException" type="java.io.IOException"/>
  29282. </method>
  29283. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  29284. abstract="false" native="false" synchronized="false"
  29285. static="false" final="false" visibility="public"
  29286. deprecated="not deprecated">
  29287. <doc>
  29288. <![CDATA[Returns underlying channel used by this stream.
  29289. This is useful in certain cases like channel for
  29290. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  29291. </doc>
  29292. </method>
  29293. <method name="isOpen" return="boolean"
  29294. abstract="false" native="false" synchronized="false"
  29295. static="false" final="false" visibility="public"
  29296. deprecated="not deprecated">
  29297. </method>
  29298. <method name="write" return="int"
  29299. abstract="false" native="false" synchronized="false"
  29300. static="false" final="false" visibility="public"
  29301. deprecated="not deprecated">
  29302. <param name="src" type="java.nio.ByteBuffer"/>
  29303. <exception name="IOException" type="java.io.IOException"/>
  29304. </method>
  29305. <method name="waitForWritable"
  29306. abstract="false" native="false" synchronized="false"
  29307. static="false" final="false" visibility="public"
  29308. deprecated="not deprecated">
  29309. <exception name="IOException" type="java.io.IOException"/>
  29310. <doc>
  29311. <![CDATA[waits for the underlying channel to be ready for writing.
  29312. The timeout specified for this stream applies to this wait.
  29313. @throws SocketTimeoutException
  29314. if select on the channel times out.
  29315. @throws IOException
  29316. if any other I/O error occurs.]]>
  29317. </doc>
  29318. </method>
  29319. <method name="transferToFully"
  29320. abstract="false" native="false" synchronized="false"
  29321. static="false" final="false" visibility="public"
  29322. deprecated="not deprecated">
  29323. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  29324. <param name="position" type="long"/>
  29325. <param name="count" type="int"/>
  29326. <exception name="IOException" type="java.io.IOException"/>
  29327. <doc>
  29328. <![CDATA[Transfers data from FileChannel using
  29329. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  29330. Similar to readFully(), this waits till requested amount of
  29331. data is transfered.
  29332. @param fileCh FileChannel to transfer data from.
  29333. @param position position within the channel where the transfer begins
  29334. @param count number of bytes to transfer.
  29335. @throws EOFException
  29336. If end of input file is reached before requested number of
  29337. bytes are transfered.
  29338. @throws SocketTimeoutException
  29339. If this channel blocks transfer longer than timeout for
  29340. this stream.
  29341. @throws IOException Includes any exception thrown by
  29342. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  29343. </doc>
  29344. </method>
  29345. <doc>
  29346. <![CDATA[This implements an output stream that can have a timeout while writing.
  29347. This sets non-blocking flag on the socket channel.
  29348. So after creating this object , read() on
  29349. {@link Socket#getInputStream()} and write() on
  29350. {@link Socket#getOutputStream()} on the associated socket will throw
  29351. llegalBlockingModeException.
  29352. Please use {@link SocketInputStream} for reading.]]>
  29353. </doc>
  29354. </class>
  29355. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  29356. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  29357. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  29358. abstract="false"
  29359. static="false" final="false" visibility="public"
  29360. deprecated="not deprecated">
  29361. <implements name="org.apache.hadoop.conf.Configurable"/>
  29362. <constructor name="SocksSocketFactory"
  29363. static="false" final="false" visibility="public"
  29364. deprecated="not deprecated">
  29365. <doc>
  29366. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  29367. </doc>
  29368. </constructor>
  29369. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  29370. static="false" final="false" visibility="public"
  29371. deprecated="not deprecated">
  29372. <doc>
  29373. <![CDATA[Constructor with a supplied Proxy
  29374. @param proxy the proxy to use to create sockets]]>
  29375. </doc>
  29376. </constructor>
  29377. <method name="createSocket" return="java.net.Socket"
  29378. abstract="false" native="false" synchronized="false"
  29379. static="false" final="false" visibility="public"
  29380. deprecated="not deprecated">
  29381. <exception name="IOException" type="java.io.IOException"/>
  29382. </method>
  29383. <method name="createSocket" return="java.net.Socket"
  29384. abstract="false" native="false" synchronized="false"
  29385. static="false" final="false" visibility="public"
  29386. deprecated="not deprecated">
  29387. <param name="addr" type="java.net.InetAddress"/>
  29388. <param name="port" type="int"/>
  29389. <exception name="IOException" type="java.io.IOException"/>
  29390. </method>
  29391. <method name="createSocket" return="java.net.Socket"
  29392. abstract="false" native="false" synchronized="false"
  29393. static="false" final="false" visibility="public"
  29394. deprecated="not deprecated">
  29395. <param name="addr" type="java.net.InetAddress"/>
  29396. <param name="port" type="int"/>
  29397. <param name="localHostAddr" type="java.net.InetAddress"/>
  29398. <param name="localPort" type="int"/>
  29399. <exception name="IOException" type="java.io.IOException"/>
  29400. </method>
  29401. <method name="createSocket" return="java.net.Socket"
  29402. abstract="false" native="false" synchronized="false"
  29403. static="false" final="false" visibility="public"
  29404. deprecated="not deprecated">
  29405. <param name="host" type="java.lang.String"/>
  29406. <param name="port" type="int"/>
  29407. <exception name="IOException" type="java.io.IOException"/>
  29408. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29409. </method>
  29410. <method name="createSocket" return="java.net.Socket"
  29411. abstract="false" native="false" synchronized="false"
  29412. static="false" final="false" visibility="public"
  29413. deprecated="not deprecated">
  29414. <param name="host" type="java.lang.String"/>
  29415. <param name="port" type="int"/>
  29416. <param name="localHostAddr" type="java.net.InetAddress"/>
  29417. <param name="localPort" type="int"/>
  29418. <exception name="IOException" type="java.io.IOException"/>
  29419. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29420. </method>
  29421. <method name="hashCode" return="int"
  29422. abstract="false" native="false" synchronized="false"
  29423. static="false" final="false" visibility="public"
  29424. deprecated="not deprecated">
  29425. </method>
  29426. <method name="equals" return="boolean"
  29427. abstract="false" native="false" synchronized="false"
  29428. static="false" final="false" visibility="public"
  29429. deprecated="not deprecated">
  29430. <param name="obj" type="java.lang.Object"/>
  29431. </method>
  29432. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29433. abstract="false" native="false" synchronized="false"
  29434. static="false" final="false" visibility="public"
  29435. deprecated="not deprecated">
  29436. </method>
  29437. <method name="setConf"
  29438. abstract="false" native="false" synchronized="false"
  29439. static="false" final="false" visibility="public"
  29440. deprecated="not deprecated">
  29441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29442. </method>
  29443. <doc>
  29444. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  29445. </doc>
  29446. </class>
  29447. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  29448. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  29449. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  29450. abstract="false"
  29451. static="false" final="false" visibility="public"
  29452. deprecated="not deprecated">
  29453. <constructor name="StandardSocketFactory"
  29454. static="false" final="false" visibility="public"
  29455. deprecated="not deprecated">
  29456. <doc>
  29457. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  29458. </doc>
  29459. </constructor>
  29460. <method name="createSocket" return="java.net.Socket"
  29461. abstract="false" native="false" synchronized="false"
  29462. static="false" final="false" visibility="public"
  29463. deprecated="not deprecated">
  29464. <exception name="IOException" type="java.io.IOException"/>
  29465. </method>
  29466. <method name="createSocket" return="java.net.Socket"
  29467. abstract="false" native="false" synchronized="false"
  29468. static="false" final="false" visibility="public"
  29469. deprecated="not deprecated">
  29470. <param name="addr" type="java.net.InetAddress"/>
  29471. <param name="port" type="int"/>
  29472. <exception name="IOException" type="java.io.IOException"/>
  29473. </method>
  29474. <method name="createSocket" return="java.net.Socket"
  29475. abstract="false" native="false" synchronized="false"
  29476. static="false" final="false" visibility="public"
  29477. deprecated="not deprecated">
  29478. <param name="addr" type="java.net.InetAddress"/>
  29479. <param name="port" type="int"/>
  29480. <param name="localHostAddr" type="java.net.InetAddress"/>
  29481. <param name="localPort" type="int"/>
  29482. <exception name="IOException" type="java.io.IOException"/>
  29483. </method>
  29484. <method name="createSocket" return="java.net.Socket"
  29485. abstract="false" native="false" synchronized="false"
  29486. static="false" final="false" visibility="public"
  29487. deprecated="not deprecated">
  29488. <param name="host" type="java.lang.String"/>
  29489. <param name="port" type="int"/>
  29490. <exception name="IOException" type="java.io.IOException"/>
  29491. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29492. </method>
  29493. <method name="createSocket" return="java.net.Socket"
  29494. abstract="false" native="false" synchronized="false"
  29495. static="false" final="false" visibility="public"
  29496. deprecated="not deprecated">
  29497. <param name="host" type="java.lang.String"/>
  29498. <param name="port" type="int"/>
  29499. <param name="localHostAddr" type="java.net.InetAddress"/>
  29500. <param name="localPort" type="int"/>
  29501. <exception name="IOException" type="java.io.IOException"/>
  29502. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29503. </method>
  29504. <method name="equals" return="boolean"
  29505. abstract="false" native="false" synchronized="false"
  29506. static="false" final="false" visibility="public"
  29507. deprecated="not deprecated">
  29508. <param name="obj" type="java.lang.Object"/>
  29509. </method>
  29510. <method name="hashCode" return="int"
  29511. abstract="false" native="false" synchronized="false"
  29512. static="false" final="false" visibility="public"
  29513. deprecated="not deprecated">
  29514. </method>
  29515. <doc>
  29516. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  29517. </doc>
  29518. </class>
  29519. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  29520. </package>
  29521. <package name="org.apache.hadoop.record">
  29522. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  29523. <class name="BinaryRecordInput" extends="java.lang.Object"
  29524. abstract="false"
  29525. static="false" final="false" visibility="public"
  29526. deprecated="not deprecated">
  29527. <implements name="org.apache.hadoop.record.RecordInput"/>
  29528. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  29529. static="false" final="false" visibility="public"
  29530. deprecated="not deprecated">
  29531. <doc>
  29532. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  29533. </doc>
  29534. </constructor>
  29535. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  29536. static="false" final="false" visibility="public"
  29537. deprecated="not deprecated">
  29538. <doc>
  29539. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  29540. </doc>
  29541. </constructor>
  29542. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  29543. abstract="false" native="false" synchronized="false"
  29544. static="true" final="false" visibility="public"
  29545. deprecated="not deprecated">
  29546. <param name="inp" type="java.io.DataInput"/>
  29547. <doc>
  29548. <![CDATA[Get a thread-local record input for the supplied DataInput.
  29549. @param inp data input stream
  29550. @return binary record input corresponding to the supplied DataInput.]]>
  29551. </doc>
  29552. </method>
  29553. <method name="readByte" return="byte"
  29554. abstract="false" native="false" synchronized="false"
  29555. static="false" final="false" visibility="public"
  29556. deprecated="not deprecated">
  29557. <param name="tag" type="java.lang.String"/>
  29558. <exception name="IOException" type="java.io.IOException"/>
  29559. </method>
  29560. <method name="readBool" return="boolean"
  29561. abstract="false" native="false" synchronized="false"
  29562. static="false" final="false" visibility="public"
  29563. deprecated="not deprecated">
  29564. <param name="tag" type="java.lang.String"/>
  29565. <exception name="IOException" type="java.io.IOException"/>
  29566. </method>
  29567. <method name="readInt" return="int"
  29568. abstract="false" native="false" synchronized="false"
  29569. static="false" final="false" visibility="public"
  29570. deprecated="not deprecated">
  29571. <param name="tag" type="java.lang.String"/>
  29572. <exception name="IOException" type="java.io.IOException"/>
  29573. </method>
  29574. <method name="readLong" return="long"
  29575. abstract="false" native="false" synchronized="false"
  29576. static="false" final="false" visibility="public"
  29577. deprecated="not deprecated">
  29578. <param name="tag" type="java.lang.String"/>
  29579. <exception name="IOException" type="java.io.IOException"/>
  29580. </method>
  29581. <method name="readFloat" return="float"
  29582. abstract="false" native="false" synchronized="false"
  29583. static="false" final="false" visibility="public"
  29584. deprecated="not deprecated">
  29585. <param name="tag" type="java.lang.String"/>
  29586. <exception name="IOException" type="java.io.IOException"/>
  29587. </method>
  29588. <method name="readDouble" return="double"
  29589. abstract="false" native="false" synchronized="false"
  29590. static="false" final="false" visibility="public"
  29591. deprecated="not deprecated">
  29592. <param name="tag" type="java.lang.String"/>
  29593. <exception name="IOException" type="java.io.IOException"/>
  29594. </method>
  29595. <method name="readString" return="java.lang.String"
  29596. abstract="false" native="false" synchronized="false"
  29597. static="false" final="false" visibility="public"
  29598. deprecated="not deprecated">
  29599. <param name="tag" type="java.lang.String"/>
  29600. <exception name="IOException" type="java.io.IOException"/>
  29601. </method>
  29602. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  29603. abstract="false" native="false" synchronized="false"
  29604. static="false" final="false" visibility="public"
  29605. deprecated="not deprecated">
  29606. <param name="tag" type="java.lang.String"/>
  29607. <exception name="IOException" type="java.io.IOException"/>
  29608. </method>
  29609. <method name="startRecord"
  29610. abstract="false" native="false" synchronized="false"
  29611. static="false" final="false" visibility="public"
  29612. deprecated="not deprecated">
  29613. <param name="tag" type="java.lang.String"/>
  29614. <exception name="IOException" type="java.io.IOException"/>
  29615. </method>
  29616. <method name="endRecord"
  29617. abstract="false" native="false" synchronized="false"
  29618. static="false" final="false" visibility="public"
  29619. deprecated="not deprecated">
  29620. <param name="tag" type="java.lang.String"/>
  29621. <exception name="IOException" type="java.io.IOException"/>
  29622. </method>
  29623. <method name="startVector" return="org.apache.hadoop.record.Index"
  29624. abstract="false" native="false" synchronized="false"
  29625. static="false" final="false" visibility="public"
  29626. deprecated="not deprecated">
  29627. <param name="tag" type="java.lang.String"/>
  29628. <exception name="IOException" type="java.io.IOException"/>
  29629. </method>
  29630. <method name="endVector"
  29631. abstract="false" native="false" synchronized="false"
  29632. static="false" final="false" visibility="public"
  29633. deprecated="not deprecated">
  29634. <param name="tag" type="java.lang.String"/>
  29635. <exception name="IOException" type="java.io.IOException"/>
  29636. </method>
  29637. <method name="startMap" return="org.apache.hadoop.record.Index"
  29638. abstract="false" native="false" synchronized="false"
  29639. static="false" final="false" visibility="public"
  29640. deprecated="not deprecated">
  29641. <param name="tag" type="java.lang.String"/>
  29642. <exception name="IOException" type="java.io.IOException"/>
  29643. </method>
  29644. <method name="endMap"
  29645. abstract="false" native="false" synchronized="false"
  29646. static="false" final="false" visibility="public"
  29647. deprecated="not deprecated">
  29648. <param name="tag" type="java.lang.String"/>
  29649. <exception name="IOException" type="java.io.IOException"/>
  29650. </method>
  29651. </class>
  29652. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  29653. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  29654. <class name="BinaryRecordOutput" extends="java.lang.Object"
  29655. abstract="false"
  29656. static="false" final="false" visibility="public"
  29657. deprecated="not deprecated">
  29658. <implements name="org.apache.hadoop.record.RecordOutput"/>
  29659. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  29660. static="false" final="false" visibility="public"
  29661. deprecated="not deprecated">
  29662. <doc>
  29663. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  29664. </doc>
  29665. </constructor>
  29666. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  29667. static="false" final="false" visibility="public"
  29668. deprecated="not deprecated">
  29669. <doc>
  29670. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  29671. </doc>
  29672. </constructor>
  29673. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  29674. abstract="false" native="false" synchronized="false"
  29675. static="true" final="false" visibility="public"
  29676. deprecated="not deprecated">
  29677. <param name="out" type="java.io.DataOutput"/>
  29678. <doc>
  29679. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  29680. @param out data output stream
  29681. @return binary record output corresponding to the supplied DataOutput.]]>
  29682. </doc>
  29683. </method>
  29684. <method name="writeByte"
  29685. abstract="false" native="false" synchronized="false"
  29686. static="false" final="false" visibility="public"
  29687. deprecated="not deprecated">
  29688. <param name="b" type="byte"/>
  29689. <param name="tag" type="java.lang.String"/>
  29690. <exception name="IOException" type="java.io.IOException"/>
  29691. </method>
  29692. <method name="writeBool"
  29693. abstract="false" native="false" synchronized="false"
  29694. static="false" final="false" visibility="public"
  29695. deprecated="not deprecated">
  29696. <param name="b" type="boolean"/>
  29697. <param name="tag" type="java.lang.String"/>
  29698. <exception name="IOException" type="java.io.IOException"/>
  29699. </method>
  29700. <method name="writeInt"
  29701. abstract="false" native="false" synchronized="false"
  29702. static="false" final="false" visibility="public"
  29703. deprecated="not deprecated">
  29704. <param name="i" type="int"/>
  29705. <param name="tag" type="java.lang.String"/>
  29706. <exception name="IOException" type="java.io.IOException"/>
  29707. </method>
  29708. <method name="writeLong"
  29709. abstract="false" native="false" synchronized="false"
  29710. static="false" final="false" visibility="public"
  29711. deprecated="not deprecated">
  29712. <param name="l" type="long"/>
  29713. <param name="tag" type="java.lang.String"/>
  29714. <exception name="IOException" type="java.io.IOException"/>
  29715. </method>
  29716. <method name="writeFloat"
  29717. abstract="false" native="false" synchronized="false"
  29718. static="false" final="false" visibility="public"
  29719. deprecated="not deprecated">
  29720. <param name="f" type="float"/>
  29721. <param name="tag" type="java.lang.String"/>
  29722. <exception name="IOException" type="java.io.IOException"/>
  29723. </method>
  29724. <method name="writeDouble"
  29725. abstract="false" native="false" synchronized="false"
  29726. static="false" final="false" visibility="public"
  29727. deprecated="not deprecated">
  29728. <param name="d" type="double"/>
  29729. <param name="tag" type="java.lang.String"/>
  29730. <exception name="IOException" type="java.io.IOException"/>
  29731. </method>
  29732. <method name="writeString"
  29733. abstract="false" native="false" synchronized="false"
  29734. static="false" final="false" visibility="public"
  29735. deprecated="not deprecated">
  29736. <param name="s" type="java.lang.String"/>
  29737. <param name="tag" type="java.lang.String"/>
  29738. <exception name="IOException" type="java.io.IOException"/>
  29739. </method>
  29740. <method name="writeBuffer"
  29741. abstract="false" native="false" synchronized="false"
  29742. static="false" final="false" visibility="public"
  29743. deprecated="not deprecated">
  29744. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  29745. <param name="tag" type="java.lang.String"/>
  29746. <exception name="IOException" type="java.io.IOException"/>
  29747. </method>
  29748. <method name="startRecord"
  29749. abstract="false" native="false" synchronized="false"
  29750. static="false" final="false" visibility="public"
  29751. deprecated="not deprecated">
  29752. <param name="r" type="org.apache.hadoop.record.Record"/>
  29753. <param name="tag" type="java.lang.String"/>
  29754. <exception name="IOException" type="java.io.IOException"/>
  29755. </method>
  29756. <method name="endRecord"
  29757. abstract="false" native="false" synchronized="false"
  29758. static="false" final="false" visibility="public"
  29759. deprecated="not deprecated">
  29760. <param name="r" type="org.apache.hadoop.record.Record"/>
  29761. <param name="tag" type="java.lang.String"/>
  29762. <exception name="IOException" type="java.io.IOException"/>
  29763. </method>
  29764. <method name="startVector"
  29765. abstract="false" native="false" synchronized="false"
  29766. static="false" final="false" visibility="public"
  29767. deprecated="not deprecated">
  29768. <param name="v" type="java.util.ArrayList"/>
  29769. <param name="tag" type="java.lang.String"/>
  29770. <exception name="IOException" type="java.io.IOException"/>
  29771. </method>
  29772. <method name="endVector"
  29773. abstract="false" native="false" synchronized="false"
  29774. static="false" final="false" visibility="public"
  29775. deprecated="not deprecated">
  29776. <param name="v" type="java.util.ArrayList"/>
  29777. <param name="tag" type="java.lang.String"/>
  29778. <exception name="IOException" type="java.io.IOException"/>
  29779. </method>
  29780. <method name="startMap"
  29781. abstract="false" native="false" synchronized="false"
  29782. static="false" final="false" visibility="public"
  29783. deprecated="not deprecated">
  29784. <param name="v" type="java.util.TreeMap"/>
  29785. <param name="tag" type="java.lang.String"/>
  29786. <exception name="IOException" type="java.io.IOException"/>
  29787. </method>
  29788. <method name="endMap"
  29789. abstract="false" native="false" synchronized="false"
  29790. static="false" final="false" visibility="public"
  29791. deprecated="not deprecated">
  29792. <param name="v" type="java.util.TreeMap"/>
  29793. <param name="tag" type="java.lang.String"/>
  29794. <exception name="IOException" type="java.io.IOException"/>
  29795. </method>
  29796. </class>
  29797. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  29798. <!-- start class org.apache.hadoop.record.Buffer -->
  29799. <class name="Buffer" extends="java.lang.Object"
  29800. abstract="false"
  29801. static="false" final="false" visibility="public"
  29802. deprecated="not deprecated">
  29803. <implements name="java.lang.Comparable"/>
  29804. <implements name="java.lang.Cloneable"/>
  29805. <constructor name="Buffer"
  29806. static="false" final="false" visibility="public"
  29807. deprecated="not deprecated">
  29808. <doc>
  29809. <![CDATA[Create a zero-count sequence.]]>
  29810. </doc>
  29811. </constructor>
  29812. <constructor name="Buffer" type="byte[]"
  29813. static="false" final="false" visibility="public"
  29814. deprecated="not deprecated">
  29815. <doc>
  29816. <![CDATA[Create a Buffer using the byte array as the initial value.
  29817. @param bytes This array becomes the backing storage for the object.]]>
  29818. </doc>
  29819. </constructor>
  29820. <constructor name="Buffer" type="byte[], int, int"
  29821. static="false" final="false" visibility="public"
  29822. deprecated="not deprecated">
  29823. <doc>
  29824. <![CDATA[Create a Buffer using the byte range as the initial value.
  29825. @param bytes Copy of this array becomes the backing storage for the object.
  29826. @param offset offset into byte array
  29827. @param length length of data]]>
  29828. </doc>
  29829. </constructor>
  29830. <method name="set"
  29831. abstract="false" native="false" synchronized="false"
  29832. static="false" final="false" visibility="public"
  29833. deprecated="not deprecated">
  29834. <param name="bytes" type="byte[]"/>
  29835. <doc>
  29836. <![CDATA[Use the specified bytes array as underlying sequence.
  29837. @param bytes byte sequence]]>
  29838. </doc>
  29839. </method>
  29840. <method name="copy"
  29841. abstract="false" native="false" synchronized="false"
  29842. static="false" final="true" visibility="public"
  29843. deprecated="not deprecated">
  29844. <param name="bytes" type="byte[]"/>
  29845. <param name="offset" type="int"/>
  29846. <param name="length" type="int"/>
  29847. <doc>
  29848. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  29849. @param bytes byte array to be assigned
  29850. @param offset offset into byte array
  29851. @param length length of data]]>
  29852. </doc>
  29853. </method>
  29854. <method name="get" return="byte[]"
  29855. abstract="false" native="false" synchronized="false"
  29856. static="false" final="false" visibility="public"
  29857. deprecated="not deprecated">
  29858. <doc>
  29859. <![CDATA[Get the data from the Buffer.
  29860. @return The data is only valid between 0 and getCount() - 1.]]>
  29861. </doc>
  29862. </method>
  29863. <method name="getCount" return="int"
  29864. abstract="false" native="false" synchronized="false"
  29865. static="false" final="false" visibility="public"
  29866. deprecated="not deprecated">
  29867. <doc>
  29868. <![CDATA[Get the current count of the buffer.]]>
  29869. </doc>
  29870. </method>
  29871. <method name="getCapacity" return="int"
  29872. abstract="false" native="false" synchronized="false"
  29873. static="false" final="false" visibility="public"
  29874. deprecated="not deprecated">
  29875. <doc>
  29876. <![CDATA[Get the capacity, which is the maximum count that could handled without
  29877. resizing the backing storage.
  29878. @return The number of bytes]]>
  29879. </doc>
  29880. </method>
  29881. <method name="setCapacity"
  29882. abstract="false" native="false" synchronized="false"
  29883. static="false" final="false" visibility="public"
  29884. deprecated="not deprecated">
  29885. <param name="newCapacity" type="int"/>
  29886. <doc>
  29887. <![CDATA[Change the capacity of the backing storage.
  29888. The data is preserved if newCapacity >= getCount().
  29889. @param newCapacity The new capacity in bytes.]]>
  29890. </doc>
  29891. </method>
  29892. <method name="reset"
  29893. abstract="false" native="false" synchronized="false"
  29894. static="false" final="false" visibility="public"
  29895. deprecated="not deprecated">
  29896. <doc>
  29897. <![CDATA[Reset the buffer to 0 size]]>
  29898. </doc>
  29899. </method>
  29900. <method name="truncate"
  29901. abstract="false" native="false" synchronized="false"
  29902. static="false" final="false" visibility="public"
  29903. deprecated="not deprecated">
  29904. <doc>
  29905. <![CDATA[Change the capacity of the backing store to be the same as the current
  29906. count of buffer.]]>
  29907. </doc>
  29908. </method>
  29909. <method name="append"
  29910. abstract="false" native="false" synchronized="false"
  29911. static="false" final="false" visibility="public"
  29912. deprecated="not deprecated">
  29913. <param name="bytes" type="byte[]"/>
  29914. <param name="offset" type="int"/>
  29915. <param name="length" type="int"/>
  29916. <doc>
  29917. <![CDATA[Append specified bytes to the buffer.
  29918. @param bytes byte array to be appended
  29919. @param offset offset into byte array
  29920. @param length length of data]]>
  29921. </doc>
  29922. </method>
  29923. <method name="append"
  29924. abstract="false" native="false" synchronized="false"
  29925. static="false" final="false" visibility="public"
  29926. deprecated="not deprecated">
  29927. <param name="bytes" type="byte[]"/>
  29928. <doc>
  29929. <![CDATA[Append specified bytes to the buffer
  29930. @param bytes byte array to be appended]]>
  29931. </doc>
  29932. </method>
  29933. <method name="hashCode" return="int"
  29934. abstract="false" native="false" synchronized="false"
  29935. static="false" final="false" visibility="public"
  29936. deprecated="not deprecated">
  29937. </method>
  29938. <method name="compareTo" return="int"
  29939. abstract="false" native="false" synchronized="false"
  29940. static="false" final="false" visibility="public"
  29941. deprecated="not deprecated">
  29942. <param name="other" type="java.lang.Object"/>
  29943. <doc>
  29944. <![CDATA[Define the sort order of the Buffer.
  29945. @param other The other buffer
  29946. @return Positive if this is bigger than other, 0 if they are equal, and
  29947. negative if this is smaller than other.]]>
  29948. </doc>
  29949. </method>
  29950. <method name="equals" return="boolean"
  29951. abstract="false" native="false" synchronized="false"
  29952. static="false" final="false" visibility="public"
  29953. deprecated="not deprecated">
  29954. <param name="other" type="java.lang.Object"/>
  29955. </method>
  29956. <method name="toString" return="java.lang.String"
  29957. abstract="false" native="false" synchronized="false"
  29958. static="false" final="false" visibility="public"
  29959. deprecated="not deprecated">
  29960. </method>
  29961. <method name="toString" return="java.lang.String"
  29962. abstract="false" native="false" synchronized="false"
  29963. static="false" final="false" visibility="public"
  29964. deprecated="not deprecated">
  29965. <param name="charsetName" type="java.lang.String"/>
  29966. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  29967. <doc>
  29968. <![CDATA[Convert the byte buffer to a string an specific character encoding
  29969. @param charsetName Valid Java Character Set Name]]>
  29970. </doc>
  29971. </method>
  29972. <method name="clone" return="java.lang.Object"
  29973. abstract="false" native="false" synchronized="false"
  29974. static="false" final="false" visibility="public"
  29975. deprecated="not deprecated">
  29976. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  29977. </method>
  29978. <doc>
  29979. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  29980. It is resizable and distinguishes between the count of the seqeunce and
  29981. the current capacity.]]>
  29982. </doc>
  29983. </class>
  29984. <!-- end class org.apache.hadoop.record.Buffer -->
  29985. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  29986. <class name="CsvRecordInput" extends="java.lang.Object"
  29987. abstract="false"
  29988. static="false" final="false" visibility="public"
  29989. deprecated="not deprecated">
  29990. <implements name="org.apache.hadoop.record.RecordInput"/>
  29991. <constructor name="CsvRecordInput" type="java.io.InputStream"
  29992. static="false" final="false" visibility="public"
  29993. deprecated="not deprecated">
  29994. <doc>
  29995. <![CDATA[Creates a new instance of CsvRecordInput]]>
  29996. </doc>
  29997. </constructor>
  29998. <method name="readByte" return="byte"
  29999. abstract="false" native="false" synchronized="false"
  30000. static="false" final="false" visibility="public"
  30001. deprecated="not deprecated">
  30002. <param name="tag" type="java.lang.String"/>
  30003. <exception name="IOException" type="java.io.IOException"/>
  30004. </method>
  30005. <method name="readBool" return="boolean"
  30006. abstract="false" native="false" synchronized="false"
  30007. static="false" final="false" visibility="public"
  30008. deprecated="not deprecated">
  30009. <param name="tag" type="java.lang.String"/>
  30010. <exception name="IOException" type="java.io.IOException"/>
  30011. </method>
  30012. <method name="readInt" return="int"
  30013. abstract="false" native="false" synchronized="false"
  30014. static="false" final="false" visibility="public"
  30015. deprecated="not deprecated">
  30016. <param name="tag" type="java.lang.String"/>
  30017. <exception name="IOException" type="java.io.IOException"/>
  30018. </method>
  30019. <method name="readLong" return="long"
  30020. abstract="false" native="false" synchronized="false"
  30021. static="false" final="false" visibility="public"
  30022. deprecated="not deprecated">
  30023. <param name="tag" type="java.lang.String"/>
  30024. <exception name="IOException" type="java.io.IOException"/>
  30025. </method>
  30026. <method name="readFloat" return="float"
  30027. abstract="false" native="false" synchronized="false"
  30028. static="false" final="false" visibility="public"
  30029. deprecated="not deprecated">
  30030. <param name="tag" type="java.lang.String"/>
  30031. <exception name="IOException" type="java.io.IOException"/>
  30032. </method>
  30033. <method name="readDouble" return="double"
  30034. abstract="false" native="false" synchronized="false"
  30035. static="false" final="false" visibility="public"
  30036. deprecated="not deprecated">
  30037. <param name="tag" type="java.lang.String"/>
  30038. <exception name="IOException" type="java.io.IOException"/>
  30039. </method>
  30040. <method name="readString" return="java.lang.String"
  30041. abstract="false" native="false" synchronized="false"
  30042. static="false" final="false" visibility="public"
  30043. deprecated="not deprecated">
  30044. <param name="tag" type="java.lang.String"/>
  30045. <exception name="IOException" type="java.io.IOException"/>
  30046. </method>
  30047. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30048. abstract="false" native="false" synchronized="false"
  30049. static="false" final="false" visibility="public"
  30050. deprecated="not deprecated">
  30051. <param name="tag" type="java.lang.String"/>
  30052. <exception name="IOException" type="java.io.IOException"/>
  30053. </method>
  30054. <method name="startRecord"
  30055. abstract="false" native="false" synchronized="false"
  30056. static="false" final="false" visibility="public"
  30057. deprecated="not deprecated">
  30058. <param name="tag" type="java.lang.String"/>
  30059. <exception name="IOException" type="java.io.IOException"/>
  30060. </method>
  30061. <method name="endRecord"
  30062. abstract="false" native="false" synchronized="false"
  30063. static="false" final="false" visibility="public"
  30064. deprecated="not deprecated">
  30065. <param name="tag" type="java.lang.String"/>
  30066. <exception name="IOException" type="java.io.IOException"/>
  30067. </method>
  30068. <method name="startVector" return="org.apache.hadoop.record.Index"
  30069. abstract="false" native="false" synchronized="false"
  30070. static="false" final="false" visibility="public"
  30071. deprecated="not deprecated">
  30072. <param name="tag" type="java.lang.String"/>
  30073. <exception name="IOException" type="java.io.IOException"/>
  30074. </method>
  30075. <method name="endVector"
  30076. abstract="false" native="false" synchronized="false"
  30077. static="false" final="false" visibility="public"
  30078. deprecated="not deprecated">
  30079. <param name="tag" type="java.lang.String"/>
  30080. <exception name="IOException" type="java.io.IOException"/>
  30081. </method>
  30082. <method name="startMap" return="org.apache.hadoop.record.Index"
  30083. abstract="false" native="false" synchronized="false"
  30084. static="false" final="false" visibility="public"
  30085. deprecated="not deprecated">
  30086. <param name="tag" type="java.lang.String"/>
  30087. <exception name="IOException" type="java.io.IOException"/>
  30088. </method>
  30089. <method name="endMap"
  30090. abstract="false" native="false" synchronized="false"
  30091. static="false" final="false" visibility="public"
  30092. deprecated="not deprecated">
  30093. <param name="tag" type="java.lang.String"/>
  30094. <exception name="IOException" type="java.io.IOException"/>
  30095. </method>
  30096. </class>
  30097. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  30098. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  30099. <class name="CsvRecordOutput" extends="java.lang.Object"
  30100. abstract="false"
  30101. static="false" final="false" visibility="public"
  30102. deprecated="not deprecated">
  30103. <implements name="org.apache.hadoop.record.RecordOutput"/>
  30104. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  30105. static="false" final="false" visibility="public"
  30106. deprecated="not deprecated">
  30107. <doc>
  30108. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  30109. </doc>
  30110. </constructor>
  30111. <method name="writeByte"
  30112. abstract="false" native="false" synchronized="false"
  30113. static="false" final="false" visibility="public"
  30114. deprecated="not deprecated">
  30115. <param name="b" type="byte"/>
  30116. <param name="tag" type="java.lang.String"/>
  30117. <exception name="IOException" type="java.io.IOException"/>
  30118. </method>
  30119. <method name="writeBool"
  30120. abstract="false" native="false" synchronized="false"
  30121. static="false" final="false" visibility="public"
  30122. deprecated="not deprecated">
  30123. <param name="b" type="boolean"/>
  30124. <param name="tag" type="java.lang.String"/>
  30125. <exception name="IOException" type="java.io.IOException"/>
  30126. </method>
  30127. <method name="writeInt"
  30128. abstract="false" native="false" synchronized="false"
  30129. static="false" final="false" visibility="public"
  30130. deprecated="not deprecated">
  30131. <param name="i" type="int"/>
  30132. <param name="tag" type="java.lang.String"/>
  30133. <exception name="IOException" type="java.io.IOException"/>
  30134. </method>
  30135. <method name="writeLong"
  30136. abstract="false" native="false" synchronized="false"
  30137. static="false" final="false" visibility="public"
  30138. deprecated="not deprecated">
  30139. <param name="l" type="long"/>
  30140. <param name="tag" type="java.lang.String"/>
  30141. <exception name="IOException" type="java.io.IOException"/>
  30142. </method>
  30143. <method name="writeFloat"
  30144. abstract="false" native="false" synchronized="false"
  30145. static="false" final="false" visibility="public"
  30146. deprecated="not deprecated">
  30147. <param name="f" type="float"/>
  30148. <param name="tag" type="java.lang.String"/>
  30149. <exception name="IOException" type="java.io.IOException"/>
  30150. </method>
  30151. <method name="writeDouble"
  30152. abstract="false" native="false" synchronized="false"
  30153. static="false" final="false" visibility="public"
  30154. deprecated="not deprecated">
  30155. <param name="d" type="double"/>
  30156. <param name="tag" type="java.lang.String"/>
  30157. <exception name="IOException" type="java.io.IOException"/>
  30158. </method>
  30159. <method name="writeString"
  30160. abstract="false" native="false" synchronized="false"
  30161. static="false" final="false" visibility="public"
  30162. deprecated="not deprecated">
  30163. <param name="s" type="java.lang.String"/>
  30164. <param name="tag" type="java.lang.String"/>
  30165. <exception name="IOException" type="java.io.IOException"/>
  30166. </method>
  30167. <method name="writeBuffer"
  30168. abstract="false" native="false" synchronized="false"
  30169. static="false" final="false" visibility="public"
  30170. deprecated="not deprecated">
  30171. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30172. <param name="tag" type="java.lang.String"/>
  30173. <exception name="IOException" type="java.io.IOException"/>
  30174. </method>
  30175. <method name="startRecord"
  30176. abstract="false" native="false" synchronized="false"
  30177. static="false" final="false" visibility="public"
  30178. deprecated="not deprecated">
  30179. <param name="r" type="org.apache.hadoop.record.Record"/>
  30180. <param name="tag" type="java.lang.String"/>
  30181. <exception name="IOException" type="java.io.IOException"/>
  30182. </method>
  30183. <method name="endRecord"
  30184. abstract="false" native="false" synchronized="false"
  30185. static="false" final="false" visibility="public"
  30186. deprecated="not deprecated">
  30187. <param name="r" type="org.apache.hadoop.record.Record"/>
  30188. <param name="tag" type="java.lang.String"/>
  30189. <exception name="IOException" type="java.io.IOException"/>
  30190. </method>
  30191. <method name="startVector"
  30192. abstract="false" native="false" synchronized="false"
  30193. static="false" final="false" visibility="public"
  30194. deprecated="not deprecated">
  30195. <param name="v" type="java.util.ArrayList"/>
  30196. <param name="tag" type="java.lang.String"/>
  30197. <exception name="IOException" type="java.io.IOException"/>
  30198. </method>
  30199. <method name="endVector"
  30200. abstract="false" native="false" synchronized="false"
  30201. static="false" final="false" visibility="public"
  30202. deprecated="not deprecated">
  30203. <param name="v" type="java.util.ArrayList"/>
  30204. <param name="tag" type="java.lang.String"/>
  30205. <exception name="IOException" type="java.io.IOException"/>
  30206. </method>
  30207. <method name="startMap"
  30208. abstract="false" native="false" synchronized="false"
  30209. static="false" final="false" visibility="public"
  30210. deprecated="not deprecated">
  30211. <param name="v" type="java.util.TreeMap"/>
  30212. <param name="tag" type="java.lang.String"/>
  30213. <exception name="IOException" type="java.io.IOException"/>
  30214. </method>
  30215. <method name="endMap"
  30216. abstract="false" native="false" synchronized="false"
  30217. static="false" final="false" visibility="public"
  30218. deprecated="not deprecated">
  30219. <param name="v" type="java.util.TreeMap"/>
  30220. <param name="tag" type="java.lang.String"/>
  30221. <exception name="IOException" type="java.io.IOException"/>
  30222. </method>
  30223. </class>
  30224. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  30225. <!-- start interface org.apache.hadoop.record.Index -->
  30226. <interface name="Index" abstract="true"
  30227. static="false" final="false" visibility="public"
  30228. deprecated="not deprecated">
  30229. <method name="done" return="boolean"
  30230. abstract="false" native="false" synchronized="false"
  30231. static="false" final="false" visibility="public"
  30232. deprecated="not deprecated">
  30233. </method>
  30234. <method name="incr"
  30235. abstract="false" native="false" synchronized="false"
  30236. static="false" final="false" visibility="public"
  30237. deprecated="not deprecated">
  30238. </method>
  30239. <doc>
  30240. <![CDATA[Interface that acts as an iterator for deserializing maps.
  30241. The deserializer returns an instance that the record uses to
  30242. read vectors and maps. An example of usage is as follows:
  30243. <code>
  30244. Index idx = startVector(...);
  30245. while (!idx.done()) {
  30246. .... // read element of a vector
  30247. idx.incr();
  30248. }
  30249. </code>]]>
  30250. </doc>
  30251. </interface>
  30252. <!-- end interface org.apache.hadoop.record.Index -->
  30253. <!-- start class org.apache.hadoop.record.Record -->
  30254. <class name="Record" extends="java.lang.Object"
  30255. abstract="true"
  30256. static="false" final="false" visibility="public"
  30257. deprecated="not deprecated">
  30258. <implements name="org.apache.hadoop.io.WritableComparable"/>
  30259. <implements name="java.lang.Cloneable"/>
  30260. <constructor name="Record"
  30261. static="false" final="false" visibility="public"
  30262. deprecated="not deprecated">
  30263. </constructor>
  30264. <method name="serialize"
  30265. abstract="true" native="false" synchronized="false"
  30266. static="false" final="false" visibility="public"
  30267. deprecated="not deprecated">
  30268. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30269. <param name="tag" type="java.lang.String"/>
  30270. <exception name="IOException" type="java.io.IOException"/>
  30271. <doc>
  30272. <![CDATA[Serialize a record with tag (ususally field name)
  30273. @param rout Record output destination
  30274. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  30275. </doc>
  30276. </method>
  30277. <method name="deserialize"
  30278. abstract="true" native="false" synchronized="false"
  30279. static="false" final="false" visibility="public"
  30280. deprecated="not deprecated">
  30281. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30282. <param name="tag" type="java.lang.String"/>
  30283. <exception name="IOException" type="java.io.IOException"/>
  30284. <doc>
  30285. <![CDATA[Deserialize a record with a tag (usually field name)
  30286. @param rin Record input source
  30287. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  30288. </doc>
  30289. </method>
  30290. <method name="compareTo" return="int"
  30291. abstract="true" native="false" synchronized="false"
  30292. static="false" final="false" visibility="public"
  30293. deprecated="not deprecated">
  30294. <param name="peer" type="java.lang.Object"/>
  30295. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  30296. </method>
  30297. <method name="serialize"
  30298. abstract="false" native="false" synchronized="false"
  30299. static="false" final="false" visibility="public"
  30300. deprecated="not deprecated">
  30301. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  30302. <exception name="IOException" type="java.io.IOException"/>
  30303. <doc>
  30304. <![CDATA[Serialize a record without a tag
  30305. @param rout Record output destination]]>
  30306. </doc>
  30307. </method>
  30308. <method name="deserialize"
  30309. abstract="false" native="false" synchronized="false"
  30310. static="false" final="false" visibility="public"
  30311. deprecated="not deprecated">
  30312. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  30313. <exception name="IOException" type="java.io.IOException"/>
  30314. <doc>
  30315. <![CDATA[Deserialize a record without a tag
  30316. @param rin Record input source]]>
  30317. </doc>
  30318. </method>
  30319. <method name="write"
  30320. abstract="false" native="false" synchronized="false"
  30321. static="false" final="false" visibility="public"
  30322. deprecated="not deprecated">
  30323. <param name="out" type="java.io.DataOutput"/>
  30324. <exception name="IOException" type="java.io.IOException"/>
  30325. </method>
  30326. <method name="readFields"
  30327. abstract="false" native="false" synchronized="false"
  30328. static="false" final="false" visibility="public"
  30329. deprecated="not deprecated">
  30330. <param name="din" type="java.io.DataInput"/>
  30331. <exception name="IOException" type="java.io.IOException"/>
  30332. </method>
  30333. <method name="toString" return="java.lang.String"
  30334. abstract="false" native="false" synchronized="false"
  30335. static="false" final="false" visibility="public"
  30336. deprecated="not deprecated">
  30337. </method>
  30338. <doc>
  30339. <![CDATA[Abstract class that is extended by generated classes.]]>
  30340. </doc>
  30341. </class>
  30342. <!-- end class org.apache.hadoop.record.Record -->
  30343. <!-- start class org.apache.hadoop.record.RecordComparator -->
  30344. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  30345. abstract="true"
  30346. static="false" final="false" visibility="public"
  30347. deprecated="not deprecated">
  30348. <constructor name="RecordComparator" type="java.lang.Class"
  30349. static="false" final="false" visibility="protected"
  30350. deprecated="not deprecated">
  30351. <doc>
  30352. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  30353. </doc>
  30354. </constructor>
  30355. <method name="compare" return="int"
  30356. abstract="true" native="false" synchronized="false"
  30357. static="false" final="false" visibility="public"
  30358. deprecated="not deprecated">
  30359. <param name="b1" type="byte[]"/>
  30360. <param name="s1" type="int"/>
  30361. <param name="l1" type="int"/>
  30362. <param name="b2" type="byte[]"/>
  30363. <param name="s2" type="int"/>
  30364. <param name="l2" type="int"/>
  30365. </method>
  30366. <method name="define"
  30367. abstract="false" native="false" synchronized="true"
  30368. static="true" final="false" visibility="public"
  30369. deprecated="not deprecated">
  30370. <param name="c" type="java.lang.Class"/>
  30371. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  30372. <doc>
  30373. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  30374. @param c record classs for which a raw comparator is provided
  30375. @param comparator Raw comparator instance for class c]]>
  30376. </doc>
  30377. </method>
  30378. <doc>
  30379. <![CDATA[A raw record comparator base class]]>
  30380. </doc>
  30381. </class>
  30382. <!-- end class org.apache.hadoop.record.RecordComparator -->
  30383. <!-- start interface org.apache.hadoop.record.RecordInput -->
  30384. <interface name="RecordInput" abstract="true"
  30385. static="false" final="false" visibility="public"
  30386. deprecated="not deprecated">
  30387. <method name="readByte" return="byte"
  30388. abstract="false" native="false" synchronized="false"
  30389. static="false" final="false" visibility="public"
  30390. deprecated="not deprecated">
  30391. <param name="tag" type="java.lang.String"/>
  30392. <exception name="IOException" type="java.io.IOException"/>
  30393. <doc>
  30394. <![CDATA[Read a byte from serialized record.
  30395. @param tag Used by tagged serialization formats (such as XML)
  30396. @return value read from serialized record.]]>
  30397. </doc>
  30398. </method>
  30399. <method name="readBool" return="boolean"
  30400. abstract="false" native="false" synchronized="false"
  30401. static="false" final="false" visibility="public"
  30402. deprecated="not deprecated">
  30403. <param name="tag" type="java.lang.String"/>
  30404. <exception name="IOException" type="java.io.IOException"/>
  30405. <doc>
  30406. <![CDATA[Read a boolean from serialized record.
  30407. @param tag Used by tagged serialization formats (such as XML)
  30408. @return value read from serialized record.]]>
  30409. </doc>
  30410. </method>
  30411. <method name="readInt" return="int"
  30412. abstract="false" native="false" synchronized="false"
  30413. static="false" final="false" visibility="public"
  30414. deprecated="not deprecated">
  30415. <param name="tag" type="java.lang.String"/>
  30416. <exception name="IOException" type="java.io.IOException"/>
  30417. <doc>
  30418. <![CDATA[Read an integer from serialized record.
  30419. @param tag Used by tagged serialization formats (such as XML)
  30420. @return value read from serialized record.]]>
  30421. </doc>
  30422. </method>
  30423. <method name="readLong" return="long"
  30424. abstract="false" native="false" synchronized="false"
  30425. static="false" final="false" visibility="public"
  30426. deprecated="not deprecated">
  30427. <param name="tag" type="java.lang.String"/>
  30428. <exception name="IOException" type="java.io.IOException"/>
  30429. <doc>
  30430. <![CDATA[Read a long integer from serialized record.
  30431. @param tag Used by tagged serialization formats (such as XML)
  30432. @return value read from serialized record.]]>
  30433. </doc>
  30434. </method>
  30435. <method name="readFloat" return="float"
  30436. abstract="false" native="false" synchronized="false"
  30437. static="false" final="false" visibility="public"
  30438. deprecated="not deprecated">
  30439. <param name="tag" type="java.lang.String"/>
  30440. <exception name="IOException" type="java.io.IOException"/>
  30441. <doc>
  30442. <![CDATA[Read a single-precision float from serialized record.
  30443. @param tag Used by tagged serialization formats (such as XML)
  30444. @return value read from serialized record.]]>
  30445. </doc>
  30446. </method>
  30447. <method name="readDouble" return="double"
  30448. abstract="false" native="false" synchronized="false"
  30449. static="false" final="false" visibility="public"
  30450. deprecated="not deprecated">
  30451. <param name="tag" type="java.lang.String"/>
  30452. <exception name="IOException" type="java.io.IOException"/>
  30453. <doc>
  30454. <![CDATA[Read a double-precision number from serialized record.
  30455. @param tag Used by tagged serialization formats (such as XML)
  30456. @return value read from serialized record.]]>
  30457. </doc>
  30458. </method>
  30459. <method name="readString" return="java.lang.String"
  30460. abstract="false" native="false" synchronized="false"
  30461. static="false" final="false" visibility="public"
  30462. deprecated="not deprecated">
  30463. <param name="tag" type="java.lang.String"/>
  30464. <exception name="IOException" type="java.io.IOException"/>
  30465. <doc>
  30466. <![CDATA[Read a UTF-8 encoded string from serialized record.
  30467. @param tag Used by tagged serialization formats (such as XML)
  30468. @return value read from serialized record.]]>
  30469. </doc>
  30470. </method>
  30471. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30472. abstract="false" native="false" synchronized="false"
  30473. static="false" final="false" visibility="public"
  30474. deprecated="not deprecated">
  30475. <param name="tag" type="java.lang.String"/>
  30476. <exception name="IOException" type="java.io.IOException"/>
  30477. <doc>
  30478. <![CDATA[Read byte array from serialized record.
  30479. @param tag Used by tagged serialization formats (such as XML)
  30480. @return value read from serialized record.]]>
  30481. </doc>
  30482. </method>
  30483. <method name="startRecord"
  30484. abstract="false" native="false" synchronized="false"
  30485. static="false" final="false" visibility="public"
  30486. deprecated="not deprecated">
  30487. <param name="tag" type="java.lang.String"/>
  30488. <exception name="IOException" type="java.io.IOException"/>
  30489. <doc>
  30490. <![CDATA[Check the mark for start of the serialized record.
  30491. @param tag Used by tagged serialization formats (such as XML)]]>
  30492. </doc>
  30493. </method>
  30494. <method name="endRecord"
  30495. abstract="false" native="false" synchronized="false"
  30496. static="false" final="false" visibility="public"
  30497. deprecated="not deprecated">
  30498. <param name="tag" type="java.lang.String"/>
  30499. <exception name="IOException" type="java.io.IOException"/>
  30500. <doc>
  30501. <![CDATA[Check the mark for end of the serialized record.
  30502. @param tag Used by tagged serialization formats (such as XML)]]>
  30503. </doc>
  30504. </method>
  30505. <method name="startVector" return="org.apache.hadoop.record.Index"
  30506. abstract="false" native="false" synchronized="false"
  30507. static="false" final="false" visibility="public"
  30508. deprecated="not deprecated">
  30509. <param name="tag" type="java.lang.String"/>
  30510. <exception name="IOException" type="java.io.IOException"/>
  30511. <doc>
  30512. <![CDATA[Check the mark for start of the serialized vector.
  30513. @param tag Used by tagged serialization formats (such as XML)
  30514. @return Index that is used to count the number of elements.]]>
  30515. </doc>
  30516. </method>
  30517. <method name="endVector"
  30518. abstract="false" native="false" synchronized="false"
  30519. static="false" final="false" visibility="public"
  30520. deprecated="not deprecated">
  30521. <param name="tag" type="java.lang.String"/>
  30522. <exception name="IOException" type="java.io.IOException"/>
  30523. <doc>
  30524. <![CDATA[Check the mark for end of the serialized vector.
  30525. @param tag Used by tagged serialization formats (such as XML)]]>
  30526. </doc>
  30527. </method>
  30528. <method name="startMap" return="org.apache.hadoop.record.Index"
  30529. abstract="false" native="false" synchronized="false"
  30530. static="false" final="false" visibility="public"
  30531. deprecated="not deprecated">
  30532. <param name="tag" type="java.lang.String"/>
  30533. <exception name="IOException" type="java.io.IOException"/>
  30534. <doc>
  30535. <![CDATA[Check the mark for start of the serialized map.
  30536. @param tag Used by tagged serialization formats (such as XML)
  30537. @return Index that is used to count the number of map entries.]]>
  30538. </doc>
  30539. </method>
  30540. <method name="endMap"
  30541. abstract="false" native="false" synchronized="false"
  30542. static="false" final="false" visibility="public"
  30543. deprecated="not deprecated">
  30544. <param name="tag" type="java.lang.String"/>
  30545. <exception name="IOException" type="java.io.IOException"/>
  30546. <doc>
  30547. <![CDATA[Check the mark for end of the serialized map.
  30548. @param tag Used by tagged serialization formats (such as XML)]]>
  30549. </doc>
  30550. </method>
  30551. <doc>
  30552. <![CDATA[Interface that all the Deserializers have to implement.]]>
  30553. </doc>
  30554. </interface>
  30555. <!-- end interface org.apache.hadoop.record.RecordInput -->
  30556. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  30557. <interface name="RecordOutput" abstract="true"
  30558. static="false" final="false" visibility="public"
  30559. deprecated="not deprecated">
  30560. <method name="writeByte"
  30561. abstract="false" native="false" synchronized="false"
  30562. static="false" final="false" visibility="public"
  30563. deprecated="not deprecated">
  30564. <param name="b" type="byte"/>
  30565. <param name="tag" type="java.lang.String"/>
  30566. <exception name="IOException" type="java.io.IOException"/>
  30567. <doc>
  30568. <![CDATA[Write a byte to serialized record.
  30569. @param b Byte to be serialized
  30570. @param tag Used by tagged serialization formats (such as XML)
  30571. @throws IOException Indicates error in serialization]]>
  30572. </doc>
  30573. </method>
  30574. <method name="writeBool"
  30575. abstract="false" native="false" synchronized="false"
  30576. static="false" final="false" visibility="public"
  30577. deprecated="not deprecated">
  30578. <param name="b" type="boolean"/>
  30579. <param name="tag" type="java.lang.String"/>
  30580. <exception name="IOException" type="java.io.IOException"/>
  30581. <doc>
  30582. <![CDATA[Write a boolean to serialized record.
  30583. @param b Boolean to be serialized
  30584. @param tag Used by tagged serialization formats (such as XML)
  30585. @throws IOException Indicates error in serialization]]>
  30586. </doc>
  30587. </method>
  30588. <method name="writeInt"
  30589. abstract="false" native="false" synchronized="false"
  30590. static="false" final="false" visibility="public"
  30591. deprecated="not deprecated">
  30592. <param name="i" type="int"/>
  30593. <param name="tag" type="java.lang.String"/>
  30594. <exception name="IOException" type="java.io.IOException"/>
  30595. <doc>
  30596. <![CDATA[Write an integer to serialized record.
  30597. @param i Integer to be serialized
  30598. @param tag Used by tagged serialization formats (such as XML)
  30599. @throws IOException Indicates error in serialization]]>
  30600. </doc>
  30601. </method>
  30602. <method name="writeLong"
  30603. abstract="false" native="false" synchronized="false"
  30604. static="false" final="false" visibility="public"
  30605. deprecated="not deprecated">
  30606. <param name="l" type="long"/>
  30607. <param name="tag" type="java.lang.String"/>
  30608. <exception name="IOException" type="java.io.IOException"/>
  30609. <doc>
  30610. <![CDATA[Write a long integer to serialized record.
  30611. @param l Long to be serialized
  30612. @param tag Used by tagged serialization formats (such as XML)
  30613. @throws IOException Indicates error in serialization]]>
  30614. </doc>
  30615. </method>
  30616. <method name="writeFloat"
  30617. abstract="false" native="false" synchronized="false"
  30618. static="false" final="false" visibility="public"
  30619. deprecated="not deprecated">
  30620. <param name="f" type="float"/>
  30621. <param name="tag" type="java.lang.String"/>
  30622. <exception name="IOException" type="java.io.IOException"/>
  30623. <doc>
  30624. <![CDATA[Write a single-precision float to serialized record.
  30625. @param f Float to be serialized
  30626. @param tag Used by tagged serialization formats (such as XML)
  30627. @throws IOException Indicates error in serialization]]>
  30628. </doc>
  30629. </method>
  30630. <method name="writeDouble"
  30631. abstract="false" native="false" synchronized="false"
  30632. static="false" final="false" visibility="public"
  30633. deprecated="not deprecated">
  30634. <param name="d" type="double"/>
  30635. <param name="tag" type="java.lang.String"/>
  30636. <exception name="IOException" type="java.io.IOException"/>
  30637. <doc>
  30638. <![CDATA[Write a double precision floating point number to serialized record.
  30639. @param d Double to be serialized
  30640. @param tag Used by tagged serialization formats (such as XML)
  30641. @throws IOException Indicates error in serialization]]>
  30642. </doc>
  30643. </method>
  30644. <method name="writeString"
  30645. abstract="false" native="false" synchronized="false"
  30646. static="false" final="false" visibility="public"
  30647. deprecated="not deprecated">
  30648. <param name="s" type="java.lang.String"/>
  30649. <param name="tag" type="java.lang.String"/>
  30650. <exception name="IOException" type="java.io.IOException"/>
  30651. <doc>
  30652. <![CDATA[Write a unicode string to serialized record.
  30653. @param s String to be serialized
  30654. @param tag Used by tagged serialization formats (such as XML)
  30655. @throws IOException Indicates error in serialization]]>
  30656. </doc>
  30657. </method>
  30658. <method name="writeBuffer"
  30659. abstract="false" native="false" synchronized="false"
  30660. static="false" final="false" visibility="public"
  30661. deprecated="not deprecated">
  30662. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  30663. <param name="tag" type="java.lang.String"/>
  30664. <exception name="IOException" type="java.io.IOException"/>
  30665. <doc>
  30666. <![CDATA[Write a buffer to serialized record.
  30667. @param buf Buffer to be serialized
  30668. @param tag Used by tagged serialization formats (such as XML)
  30669. @throws IOException Indicates error in serialization]]>
  30670. </doc>
  30671. </method>
  30672. <method name="startRecord"
  30673. abstract="false" native="false" synchronized="false"
  30674. static="false" final="false" visibility="public"
  30675. deprecated="not deprecated">
  30676. <param name="r" type="org.apache.hadoop.record.Record"/>
  30677. <param name="tag" type="java.lang.String"/>
  30678. <exception name="IOException" type="java.io.IOException"/>
  30679. <doc>
  30680. <![CDATA[Mark the start of a record to be serialized.
  30681. @param r Record to be serialized
  30682. @param tag Used by tagged serialization formats (such as XML)
  30683. @throws IOException Indicates error in serialization]]>
  30684. </doc>
  30685. </method>
  30686. <method name="endRecord"
  30687. abstract="false" native="false" synchronized="false"
  30688. static="false" final="false" visibility="public"
  30689. deprecated="not deprecated">
  30690. <param name="r" type="org.apache.hadoop.record.Record"/>
  30691. <param name="tag" type="java.lang.String"/>
  30692. <exception name="IOException" type="java.io.IOException"/>
  30693. <doc>
  30694. <![CDATA[Mark the end of a serialized record.
  30695. @param r Record to be serialized
  30696. @param tag Used by tagged serialization formats (such as XML)
  30697. @throws IOException Indicates error in serialization]]>
  30698. </doc>
  30699. </method>
  30700. <method name="startVector"
  30701. abstract="false" native="false" synchronized="false"
  30702. static="false" final="false" visibility="public"
  30703. deprecated="not deprecated">
  30704. <param name="v" type="java.util.ArrayList"/>
  30705. <param name="tag" type="java.lang.String"/>
  30706. <exception name="IOException" type="java.io.IOException"/>
  30707. <doc>
  30708. <![CDATA[Mark the start of a vector to be serialized.
  30709. @param v Vector to be serialized
  30710. @param tag Used by tagged serialization formats (such as XML)
  30711. @throws IOException Indicates error in serialization]]>
  30712. </doc>
  30713. </method>
  30714. <method name="endVector"
  30715. abstract="false" native="false" synchronized="false"
  30716. static="false" final="false" visibility="public"
  30717. deprecated="not deprecated">
  30718. <param name="v" type="java.util.ArrayList"/>
  30719. <param name="tag" type="java.lang.String"/>
  30720. <exception name="IOException" type="java.io.IOException"/>
  30721. <doc>
  30722. <![CDATA[Mark the end of a serialized vector.
  30723. @param v Vector to be serialized
  30724. @param tag Used by tagged serialization formats (such as XML)
  30725. @throws IOException Indicates error in serialization]]>
  30726. </doc>
  30727. </method>
  30728. <method name="startMap"
  30729. abstract="false" native="false" synchronized="false"
  30730. static="false" final="false" visibility="public"
  30731. deprecated="not deprecated">
  30732. <param name="m" type="java.util.TreeMap"/>
  30733. <param name="tag" type="java.lang.String"/>
  30734. <exception name="IOException" type="java.io.IOException"/>
  30735. <doc>
  30736. <![CDATA[Mark the start of a map to be serialized.
  30737. @param m Map to be serialized
  30738. @param tag Used by tagged serialization formats (such as XML)
  30739. @throws IOException Indicates error in serialization]]>
  30740. </doc>
  30741. </method>
  30742. <method name="endMap"
  30743. abstract="false" native="false" synchronized="false"
  30744. static="false" final="false" visibility="public"
  30745. deprecated="not deprecated">
  30746. <param name="m" type="java.util.TreeMap"/>
  30747. <param name="tag" type="java.lang.String"/>
  30748. <exception name="IOException" type="java.io.IOException"/>
  30749. <doc>
  30750. <![CDATA[Mark the end of a serialized map.
  30751. @param m Map to be serialized
  30752. @param tag Used by tagged serialization formats (such as XML)
  30753. @throws IOException Indicates error in serialization]]>
  30754. </doc>
  30755. </method>
  30756. <doc>
  30757. <![CDATA[Interface that alll the serializers have to implement.]]>
  30758. </doc>
  30759. </interface>
  30760. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  30761. <!-- start class org.apache.hadoop.record.Utils -->
  30762. <class name="Utils" extends="java.lang.Object"
  30763. abstract="false"
  30764. static="false" final="false" visibility="public"
  30765. deprecated="not deprecated">
  30766. <method name="readFloat" return="float"
  30767. abstract="false" native="false" synchronized="false"
  30768. static="true" final="false" visibility="public"
  30769. deprecated="not deprecated">
  30770. <param name="bytes" type="byte[]"/>
  30771. <param name="start" type="int"/>
  30772. <doc>
  30773. <![CDATA[Parse a float from a byte array.]]>
  30774. </doc>
  30775. </method>
  30776. <method name="readDouble" return="double"
  30777. abstract="false" native="false" synchronized="false"
  30778. static="true" final="false" visibility="public"
  30779. deprecated="not deprecated">
  30780. <param name="bytes" type="byte[]"/>
  30781. <param name="start" type="int"/>
  30782. <doc>
  30783. <![CDATA[Parse a double from a byte array.]]>
  30784. </doc>
  30785. </method>
  30786. <method name="readVLong" return="long"
  30787. abstract="false" native="false" synchronized="false"
  30788. static="true" final="false" visibility="public"
  30789. deprecated="not deprecated">
  30790. <param name="bytes" type="byte[]"/>
  30791. <param name="start" type="int"/>
  30792. <exception name="IOException" type="java.io.IOException"/>
  30793. <doc>
  30794. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  30795. @param bytes byte array with decode long
  30796. @param start starting index
  30797. @throws java.io.IOException
  30798. @return deserialized long]]>
  30799. </doc>
  30800. </method>
  30801. <method name="readVInt" return="int"
  30802. abstract="false" native="false" synchronized="false"
  30803. static="true" final="false" visibility="public"
  30804. deprecated="not deprecated">
  30805. <param name="bytes" type="byte[]"/>
  30806. <param name="start" type="int"/>
  30807. <exception name="IOException" type="java.io.IOException"/>
  30808. <doc>
  30809. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  30810. @param bytes byte array with the encoded integer
  30811. @param start start index
  30812. @throws java.io.IOException
  30813. @return deserialized integer]]>
  30814. </doc>
  30815. </method>
  30816. <method name="readVLong" return="long"
  30817. abstract="false" native="false" synchronized="false"
  30818. static="true" final="false" visibility="public"
  30819. deprecated="not deprecated">
  30820. <param name="in" type="java.io.DataInput"/>
  30821. <exception name="IOException" type="java.io.IOException"/>
  30822. <doc>
  30823. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  30824. @param in input stream
  30825. @throws java.io.IOException
  30826. @return deserialized long]]>
  30827. </doc>
  30828. </method>
  30829. <method name="readVInt" return="int"
  30830. abstract="false" native="false" synchronized="false"
  30831. static="true" final="false" visibility="public"
  30832. deprecated="not deprecated">
  30833. <param name="in" type="java.io.DataInput"/>
  30834. <exception name="IOException" type="java.io.IOException"/>
  30835. <doc>
  30836. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  30837. @param in input stream
  30838. @throws java.io.IOException
  30839. @return deserialized integer]]>
  30840. </doc>
  30841. </method>
  30842. <method name="getVIntSize" return="int"
  30843. abstract="false" native="false" synchronized="false"
  30844. static="true" final="false" visibility="public"
  30845. deprecated="not deprecated">
  30846. <param name="i" type="long"/>
  30847. <doc>
  30848. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  30849. @return the encoded length]]>
  30850. </doc>
  30851. </method>
  30852. <method name="writeVLong"
  30853. abstract="false" native="false" synchronized="false"
  30854. static="true" final="false" visibility="public"
  30855. deprecated="not deprecated">
  30856. <param name="stream" type="java.io.DataOutput"/>
  30857. <param name="i" type="long"/>
  30858. <exception name="IOException" type="java.io.IOException"/>
  30859. <doc>
  30860. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  30861. For -112 <= i <= 127, only one byte is used with the actual value.
  30862. For other values of i, the first byte value indicates whether the
  30863. long is positive or negative, and the number of bytes that follow.
  30864. If the first byte value v is between -113 and -120, the following long
  30865. is positive, with number of bytes that follow are -(v+112).
  30866. If the first byte value v is between -121 and -128, the following long
  30867. is negative, with number of bytes that follow are -(v+120). Bytes are
  30868. stored in the high-non-zero-byte-first order.
  30869. @param stream Binary output stream
  30870. @param i Long to be serialized
  30871. @throws java.io.IOException]]>
  30872. </doc>
  30873. </method>
  30874. <method name="writeVInt"
  30875. abstract="false" native="false" synchronized="false"
  30876. static="true" final="false" visibility="public"
  30877. deprecated="not deprecated">
  30878. <param name="stream" type="java.io.DataOutput"/>
  30879. <param name="i" type="int"/>
  30880. <exception name="IOException" type="java.io.IOException"/>
  30881. <doc>
  30882. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  30883. @param stream Binary output stream
  30884. @param i int to be serialized
  30885. @throws java.io.IOException]]>
  30886. </doc>
  30887. </method>
  30888. <method name="compareBytes" return="int"
  30889. abstract="false" native="false" synchronized="false"
  30890. static="true" final="false" visibility="public"
  30891. deprecated="not deprecated">
  30892. <param name="b1" type="byte[]"/>
  30893. <param name="s1" type="int"/>
  30894. <param name="l1" type="int"/>
  30895. <param name="b2" type="byte[]"/>
  30896. <param name="s2" type="int"/>
  30897. <param name="l2" type="int"/>
  30898. <doc>
  30899. <![CDATA[Lexicographic order of binary data.]]>
  30900. </doc>
  30901. </method>
  30902. <field name="hexchars" type="char[]"
  30903. transient="false" volatile="false"
  30904. static="true" final="true" visibility="public"
  30905. deprecated="not deprecated">
  30906. </field>
  30907. <doc>
  30908. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  30909. </doc>
  30910. </class>
  30911. <!-- end class org.apache.hadoop.record.Utils -->
  30912. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  30913. <class name="XmlRecordInput" extends="java.lang.Object"
  30914. abstract="false"
  30915. static="false" final="false" visibility="public"
  30916. deprecated="not deprecated">
  30917. <implements name="org.apache.hadoop.record.RecordInput"/>
  30918. <constructor name="XmlRecordInput" type="java.io.InputStream"
  30919. static="false" final="false" visibility="public"
  30920. deprecated="not deprecated">
  30921. <doc>
  30922. <![CDATA[Creates a new instance of XmlRecordInput]]>
  30923. </doc>
  30924. </constructor>
  30925. <method name="readByte" return="byte"
  30926. abstract="false" native="false" synchronized="false"
  30927. static="false" final="false" visibility="public"
  30928. deprecated="not deprecated">
  30929. <param name="tag" type="java.lang.String"/>
  30930. <exception name="IOException" type="java.io.IOException"/>
  30931. </method>
  30932. <method name="readBool" return="boolean"
  30933. abstract="false" native="false" synchronized="false"
  30934. static="false" final="false" visibility="public"
  30935. deprecated="not deprecated">
  30936. <param name="tag" type="java.lang.String"/>
  30937. <exception name="IOException" type="java.io.IOException"/>
  30938. </method>
  30939. <method name="readInt" return="int"
  30940. abstract="false" native="false" synchronized="false"
  30941. static="false" final="false" visibility="public"
  30942. deprecated="not deprecated">
  30943. <param name="tag" type="java.lang.String"/>
  30944. <exception name="IOException" type="java.io.IOException"/>
  30945. </method>
  30946. <method name="readLong" return="long"
  30947. abstract="false" native="false" synchronized="false"
  30948. static="false" final="false" visibility="public"
  30949. deprecated="not deprecated">
  30950. <param name="tag" type="java.lang.String"/>
  30951. <exception name="IOException" type="java.io.IOException"/>
  30952. </method>
  30953. <method name="readFloat" return="float"
  30954. abstract="false" native="false" synchronized="false"
  30955. static="false" final="false" visibility="public"
  30956. deprecated="not deprecated">
  30957. <param name="tag" type="java.lang.String"/>
  30958. <exception name="IOException" type="java.io.IOException"/>
  30959. </method>
  30960. <method name="readDouble" return="double"
  30961. abstract="false" native="false" synchronized="false"
  30962. static="false" final="false" visibility="public"
  30963. deprecated="not deprecated">
  30964. <param name="tag" type="java.lang.String"/>
  30965. <exception name="IOException" type="java.io.IOException"/>
  30966. </method>
  30967. <method name="readString" return="java.lang.String"
  30968. abstract="false" native="false" synchronized="false"
  30969. static="false" final="false" visibility="public"
  30970. deprecated="not deprecated">
  30971. <param name="tag" type="java.lang.String"/>
  30972. <exception name="IOException" type="java.io.IOException"/>
  30973. </method>
  30974. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  30975. abstract="false" native="false" synchronized="false"
  30976. static="false" final="false" visibility="public"
  30977. deprecated="not deprecated">
  30978. <param name="tag" type="java.lang.String"/>
  30979. <exception name="IOException" type="java.io.IOException"/>
  30980. </method>
  30981. <method name="startRecord"
  30982. abstract="false" native="false" synchronized="false"
  30983. static="false" final="false" visibility="public"
  30984. deprecated="not deprecated">
  30985. <param name="tag" type="java.lang.String"/>
  30986. <exception name="IOException" type="java.io.IOException"/>
  30987. </method>
  30988. <method name="endRecord"
  30989. abstract="false" native="false" synchronized="false"
  30990. static="false" final="false" visibility="public"
  30991. deprecated="not deprecated">
  30992. <param name="tag" type="java.lang.String"/>
  30993. <exception name="IOException" type="java.io.IOException"/>
  30994. </method>
  30995. <method name="startVector" return="org.apache.hadoop.record.Index"
  30996. abstract="false" native="false" synchronized="false"
  30997. static="false" final="false" visibility="public"
  30998. deprecated="not deprecated">
  30999. <param name="tag" type="java.lang.String"/>
  31000. <exception name="IOException" type="java.io.IOException"/>
  31001. </method>
  31002. <method name="endVector"
  31003. abstract="false" native="false" synchronized="false"
  31004. static="false" final="false" visibility="public"
  31005. deprecated="not deprecated">
  31006. <param name="tag" type="java.lang.String"/>
  31007. <exception name="IOException" type="java.io.IOException"/>
  31008. </method>
  31009. <method name="startMap" return="org.apache.hadoop.record.Index"
  31010. abstract="false" native="false" synchronized="false"
  31011. static="false" final="false" visibility="public"
  31012. deprecated="not deprecated">
  31013. <param name="tag" type="java.lang.String"/>
  31014. <exception name="IOException" type="java.io.IOException"/>
  31015. </method>
  31016. <method name="endMap"
  31017. abstract="false" native="false" synchronized="false"
  31018. static="false" final="false" visibility="public"
  31019. deprecated="not deprecated">
  31020. <param name="tag" type="java.lang.String"/>
  31021. <exception name="IOException" type="java.io.IOException"/>
  31022. </method>
  31023. <doc>
  31024. <![CDATA[XML Deserializer.]]>
  31025. </doc>
  31026. </class>
  31027. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  31028. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  31029. <class name="XmlRecordOutput" extends="java.lang.Object"
  31030. abstract="false"
  31031. static="false" final="false" visibility="public"
  31032. deprecated="not deprecated">
  31033. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31034. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  31035. static="false" final="false" visibility="public"
  31036. deprecated="not deprecated">
  31037. <doc>
  31038. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  31039. </doc>
  31040. </constructor>
  31041. <method name="writeByte"
  31042. abstract="false" native="false" synchronized="false"
  31043. static="false" final="false" visibility="public"
  31044. deprecated="not deprecated">
  31045. <param name="b" type="byte"/>
  31046. <param name="tag" type="java.lang.String"/>
  31047. <exception name="IOException" type="java.io.IOException"/>
  31048. </method>
  31049. <method name="writeBool"
  31050. abstract="false" native="false" synchronized="false"
  31051. static="false" final="false" visibility="public"
  31052. deprecated="not deprecated">
  31053. <param name="b" type="boolean"/>
  31054. <param name="tag" type="java.lang.String"/>
  31055. <exception name="IOException" type="java.io.IOException"/>
  31056. </method>
  31057. <method name="writeInt"
  31058. abstract="false" native="false" synchronized="false"
  31059. static="false" final="false" visibility="public"
  31060. deprecated="not deprecated">
  31061. <param name="i" type="int"/>
  31062. <param name="tag" type="java.lang.String"/>
  31063. <exception name="IOException" type="java.io.IOException"/>
  31064. </method>
  31065. <method name="writeLong"
  31066. abstract="false" native="false" synchronized="false"
  31067. static="false" final="false" visibility="public"
  31068. deprecated="not deprecated">
  31069. <param name="l" type="long"/>
  31070. <param name="tag" type="java.lang.String"/>
  31071. <exception name="IOException" type="java.io.IOException"/>
  31072. </method>
  31073. <method name="writeFloat"
  31074. abstract="false" native="false" synchronized="false"
  31075. static="false" final="false" visibility="public"
  31076. deprecated="not deprecated">
  31077. <param name="f" type="float"/>
  31078. <param name="tag" type="java.lang.String"/>
  31079. <exception name="IOException" type="java.io.IOException"/>
  31080. </method>
  31081. <method name="writeDouble"
  31082. abstract="false" native="false" synchronized="false"
  31083. static="false" final="false" visibility="public"
  31084. deprecated="not deprecated">
  31085. <param name="d" type="double"/>
  31086. <param name="tag" type="java.lang.String"/>
  31087. <exception name="IOException" type="java.io.IOException"/>
  31088. </method>
  31089. <method name="writeString"
  31090. abstract="false" native="false" synchronized="false"
  31091. static="false" final="false" visibility="public"
  31092. deprecated="not deprecated">
  31093. <param name="s" type="java.lang.String"/>
  31094. <param name="tag" type="java.lang.String"/>
  31095. <exception name="IOException" type="java.io.IOException"/>
  31096. </method>
  31097. <method name="writeBuffer"
  31098. abstract="false" native="false" synchronized="false"
  31099. static="false" final="false" visibility="public"
  31100. deprecated="not deprecated">
  31101. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31102. <param name="tag" type="java.lang.String"/>
  31103. <exception name="IOException" type="java.io.IOException"/>
  31104. </method>
  31105. <method name="startRecord"
  31106. abstract="false" native="false" synchronized="false"
  31107. static="false" final="false" visibility="public"
  31108. deprecated="not deprecated">
  31109. <param name="r" type="org.apache.hadoop.record.Record"/>
  31110. <param name="tag" type="java.lang.String"/>
  31111. <exception name="IOException" type="java.io.IOException"/>
  31112. </method>
  31113. <method name="endRecord"
  31114. abstract="false" native="false" synchronized="false"
  31115. static="false" final="false" visibility="public"
  31116. deprecated="not deprecated">
  31117. <param name="r" type="org.apache.hadoop.record.Record"/>
  31118. <param name="tag" type="java.lang.String"/>
  31119. <exception name="IOException" type="java.io.IOException"/>
  31120. </method>
  31121. <method name="startVector"
  31122. abstract="false" native="false" synchronized="false"
  31123. static="false" final="false" visibility="public"
  31124. deprecated="not deprecated">
  31125. <param name="v" type="java.util.ArrayList"/>
  31126. <param name="tag" type="java.lang.String"/>
  31127. <exception name="IOException" type="java.io.IOException"/>
  31128. </method>
  31129. <method name="endVector"
  31130. abstract="false" native="false" synchronized="false"
  31131. static="false" final="false" visibility="public"
  31132. deprecated="not deprecated">
  31133. <param name="v" type="java.util.ArrayList"/>
  31134. <param name="tag" type="java.lang.String"/>
  31135. <exception name="IOException" type="java.io.IOException"/>
  31136. </method>
  31137. <method name="startMap"
  31138. abstract="false" native="false" synchronized="false"
  31139. static="false" final="false" visibility="public"
  31140. deprecated="not deprecated">
  31141. <param name="v" type="java.util.TreeMap"/>
  31142. <param name="tag" type="java.lang.String"/>
  31143. <exception name="IOException" type="java.io.IOException"/>
  31144. </method>
  31145. <method name="endMap"
  31146. abstract="false" native="false" synchronized="false"
  31147. static="false" final="false" visibility="public"
  31148. deprecated="not deprecated">
  31149. <param name="v" type="java.util.TreeMap"/>
  31150. <param name="tag" type="java.lang.String"/>
  31151. <exception name="IOException" type="java.io.IOException"/>
  31152. </method>
  31153. <doc>
  31154. <![CDATA[XML Serializer.]]>
  31155. </doc>
  31156. </class>
  31157. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  31158. </package>
  31159. <package name="org.apache.hadoop.record.compiler">
  31160. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  31161. <class name="CodeBuffer" extends="java.lang.Object"
  31162. abstract="false"
  31163. static="false" final="false" visibility="public"
  31164. deprecated="not deprecated">
  31165. <method name="toString" return="java.lang.String"
  31166. abstract="false" native="false" synchronized="false"
  31167. static="false" final="false" visibility="public"
  31168. deprecated="not deprecated">
  31169. </method>
  31170. <doc>
  31171. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  31172. </doc>
  31173. </class>
  31174. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  31175. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  31176. <class name="Consts" extends="java.lang.Object"
  31177. abstract="false"
  31178. static="false" final="false" visibility="public"
  31179. deprecated="not deprecated">
  31180. <field name="RIO_PREFIX" type="java.lang.String"
  31181. transient="false" volatile="false"
  31182. static="true" final="true" visibility="public"
  31183. deprecated="not deprecated">
  31184. </field>
  31185. <field name="RTI_VAR" type="java.lang.String"
  31186. transient="false" volatile="false"
  31187. static="true" final="true" visibility="public"
  31188. deprecated="not deprecated">
  31189. </field>
  31190. <field name="RTI_FILTER" type="java.lang.String"
  31191. transient="false" volatile="false"
  31192. static="true" final="true" visibility="public"
  31193. deprecated="not deprecated">
  31194. </field>
  31195. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  31196. transient="false" volatile="false"
  31197. static="true" final="true" visibility="public"
  31198. deprecated="not deprecated">
  31199. </field>
  31200. <field name="RECORD_OUTPUT" type="java.lang.String"
  31201. transient="false" volatile="false"
  31202. static="true" final="true" visibility="public"
  31203. deprecated="not deprecated">
  31204. </field>
  31205. <field name="RECORD_INPUT" type="java.lang.String"
  31206. transient="false" volatile="false"
  31207. static="true" final="true" visibility="public"
  31208. deprecated="not deprecated">
  31209. </field>
  31210. <field name="TAG" type="java.lang.String"
  31211. transient="false" volatile="false"
  31212. static="true" final="true" visibility="public"
  31213. deprecated="not deprecated">
  31214. </field>
  31215. <doc>
  31216. <![CDATA[const definitions for Record I/O compiler]]>
  31217. </doc>
  31218. </class>
  31219. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  31220. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  31221. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  31222. abstract="false"
  31223. static="false" final="false" visibility="public"
  31224. deprecated="not deprecated">
  31225. <constructor name="JBoolean"
  31226. static="false" final="false" visibility="public"
  31227. deprecated="not deprecated">
  31228. <doc>
  31229. <![CDATA[Creates a new instance of JBoolean]]>
  31230. </doc>
  31231. </constructor>
  31232. </class>
  31233. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  31234. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  31235. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  31236. abstract="false"
  31237. static="false" final="false" visibility="public"
  31238. deprecated="not deprecated">
  31239. <constructor name="JBuffer"
  31240. static="false" final="false" visibility="public"
  31241. deprecated="not deprecated">
  31242. <doc>
  31243. <![CDATA[Creates a new instance of JBuffer]]>
  31244. </doc>
  31245. </constructor>
  31246. <doc>
  31247. <![CDATA[Code generator for "buffer" type.]]>
  31248. </doc>
  31249. </class>
  31250. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  31251. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  31252. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  31253. abstract="false"
  31254. static="false" final="false" visibility="public"
  31255. deprecated="not deprecated">
  31256. <constructor name="JByte"
  31257. static="false" final="false" visibility="public"
  31258. deprecated="not deprecated">
  31259. </constructor>
  31260. <doc>
  31261. <![CDATA[Code generator for "byte" type.]]>
  31262. </doc>
  31263. </class>
  31264. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  31265. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  31266. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  31267. abstract="false"
  31268. static="false" final="false" visibility="public"
  31269. deprecated="not deprecated">
  31270. <constructor name="JDouble"
  31271. static="false" final="false" visibility="public"
  31272. deprecated="not deprecated">
  31273. <doc>
  31274. <![CDATA[Creates a new instance of JDouble]]>
  31275. </doc>
  31276. </constructor>
  31277. </class>
  31278. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  31279. <!-- start class org.apache.hadoop.record.compiler.JField -->
  31280. <class name="JField" extends="java.lang.Object"
  31281. abstract="false"
  31282. static="false" final="false" visibility="public"
  31283. deprecated="not deprecated">
  31284. <constructor name="JField" type="java.lang.String, java.lang.Object"
  31285. static="false" final="false" visibility="public"
  31286. deprecated="not deprecated">
  31287. <doc>
  31288. <![CDATA[Creates a new instance of JField]]>
  31289. </doc>
  31290. </constructor>
  31291. <doc>
  31292. <![CDATA[A thin wrappper around record field.]]>
  31293. </doc>
  31294. </class>
  31295. <!-- end class org.apache.hadoop.record.compiler.JField -->
  31296. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  31297. <class name="JFile" extends="java.lang.Object"
  31298. abstract="false"
  31299. static="false" final="false" visibility="public"
  31300. deprecated="not deprecated">
  31301. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  31302. static="false" final="false" visibility="public"
  31303. deprecated="not deprecated">
  31304. <doc>
  31305. <![CDATA[Creates a new instance of JFile
  31306. @param name possibly full pathname to the file
  31307. @param inclFiles included files (as JFile)
  31308. @param recList List of records defined within this file]]>
  31309. </doc>
  31310. </constructor>
  31311. <method name="genCode" return="int"
  31312. abstract="false" native="false" synchronized="false"
  31313. static="false" final="false" visibility="public"
  31314. deprecated="not deprecated">
  31315. <param name="language" type="java.lang.String"/>
  31316. <param name="destDir" type="java.lang.String"/>
  31317. <param name="options" type="java.util.ArrayList"/>
  31318. <exception name="IOException" type="java.io.IOException"/>
  31319. <doc>
  31320. <![CDATA[Generate record code in given language. Language should be all
  31321. lowercase.]]>
  31322. </doc>
  31323. </method>
  31324. <doc>
  31325. <![CDATA[Container for the Hadoop Record DDL.
  31326. The main components of the file are filename, list of included files,
  31327. and records defined in that file.]]>
  31328. </doc>
  31329. </class>
  31330. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  31331. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  31332. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  31333. abstract="false"
  31334. static="false" final="false" visibility="public"
  31335. deprecated="not deprecated">
  31336. <constructor name="JFloat"
  31337. static="false" final="false" visibility="public"
  31338. deprecated="not deprecated">
  31339. <doc>
  31340. <![CDATA[Creates a new instance of JFloat]]>
  31341. </doc>
  31342. </constructor>
  31343. </class>
  31344. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  31345. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  31346. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  31347. abstract="false"
  31348. static="false" final="false" visibility="public"
  31349. deprecated="not deprecated">
  31350. <constructor name="JInt"
  31351. static="false" final="false" visibility="public"
  31352. deprecated="not deprecated">
  31353. <doc>
  31354. <![CDATA[Creates a new instance of JInt]]>
  31355. </doc>
  31356. </constructor>
  31357. <doc>
  31358. <![CDATA[Code generator for "int" type]]>
  31359. </doc>
  31360. </class>
  31361. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  31362. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  31363. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  31364. abstract="false"
  31365. static="false" final="false" visibility="public"
  31366. deprecated="not deprecated">
  31367. <constructor name="JLong"
  31368. static="false" final="false" visibility="public"
  31369. deprecated="not deprecated">
  31370. <doc>
  31371. <![CDATA[Creates a new instance of JLong]]>
  31372. </doc>
  31373. </constructor>
  31374. <doc>
  31375. <![CDATA[Code generator for "long" type]]>
  31376. </doc>
  31377. </class>
  31378. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  31379. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  31380. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  31381. abstract="false"
  31382. static="false" final="false" visibility="public"
  31383. deprecated="not deprecated">
  31384. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  31385. static="false" final="false" visibility="public"
  31386. deprecated="not deprecated">
  31387. <doc>
  31388. <![CDATA[Creates a new instance of JMap]]>
  31389. </doc>
  31390. </constructor>
  31391. </class>
  31392. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  31393. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  31394. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  31395. abstract="false"
  31396. static="false" final="false" visibility="public"
  31397. deprecated="not deprecated">
  31398. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  31399. static="false" final="false" visibility="public"
  31400. deprecated="not deprecated">
  31401. <doc>
  31402. <![CDATA[Creates a new instance of JRecord]]>
  31403. </doc>
  31404. </constructor>
  31405. </class>
  31406. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  31407. <!-- start class org.apache.hadoop.record.compiler.JString -->
  31408. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  31409. abstract="false"
  31410. static="false" final="false" visibility="public"
  31411. deprecated="not deprecated">
  31412. <constructor name="JString"
  31413. static="false" final="false" visibility="public"
  31414. deprecated="not deprecated">
  31415. <doc>
  31416. <![CDATA[Creates a new instance of JString]]>
  31417. </doc>
  31418. </constructor>
  31419. </class>
  31420. <!-- end class org.apache.hadoop.record.compiler.JString -->
  31421. <!-- start class org.apache.hadoop.record.compiler.JType -->
  31422. <class name="JType" extends="java.lang.Object"
  31423. abstract="true"
  31424. static="false" final="false" visibility="public"
  31425. deprecated="not deprecated">
  31426. <constructor name="JType"
  31427. static="false" final="false" visibility="public"
  31428. deprecated="not deprecated">
  31429. </constructor>
  31430. <doc>
  31431. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  31432. </doc>
  31433. </class>
  31434. <!-- end class org.apache.hadoop.record.compiler.JType -->
  31435. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  31436. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  31437. abstract="false"
  31438. static="false" final="false" visibility="public"
  31439. deprecated="not deprecated">
  31440. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  31441. static="false" final="false" visibility="public"
  31442. deprecated="not deprecated">
  31443. <doc>
  31444. <![CDATA[Creates a new instance of JVector]]>
  31445. </doc>
  31446. </constructor>
  31447. </class>
  31448. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  31449. </package>
  31450. <package name="org.apache.hadoop.record.compiler.ant">
  31451. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  31452. <class name="RccTask" extends="org.apache.tools.ant.Task"
  31453. abstract="false"
  31454. static="false" final="false" visibility="public"
  31455. deprecated="not deprecated">
  31456. <constructor name="RccTask"
  31457. static="false" final="false" visibility="public"
  31458. deprecated="not deprecated">
  31459. <doc>
  31460. <![CDATA[Creates a new instance of RccTask]]>
  31461. </doc>
  31462. </constructor>
  31463. <method name="setLanguage"
  31464. abstract="false" native="false" synchronized="false"
  31465. static="false" final="false" visibility="public"
  31466. deprecated="not deprecated">
  31467. <param name="language" type="java.lang.String"/>
  31468. <doc>
  31469. <![CDATA[Sets the output language option
  31470. @param language "java"/"c++"]]>
  31471. </doc>
  31472. </method>
  31473. <method name="setFile"
  31474. abstract="false" native="false" synchronized="false"
  31475. static="false" final="false" visibility="public"
  31476. deprecated="not deprecated">
  31477. <param name="file" type="java.io.File"/>
  31478. <doc>
  31479. <![CDATA[Sets the record definition file attribute
  31480. @param file record definition file]]>
  31481. </doc>
  31482. </method>
  31483. <method name="setFailonerror"
  31484. abstract="false" native="false" synchronized="false"
  31485. static="false" final="false" visibility="public"
  31486. deprecated="not deprecated">
  31487. <param name="flag" type="boolean"/>
  31488. <doc>
  31489. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  31490. @param flag true will throw build exception in case of failure (default)]]>
  31491. </doc>
  31492. </method>
  31493. <method name="setDestdir"
  31494. abstract="false" native="false" synchronized="false"
  31495. static="false" final="false" visibility="public"
  31496. deprecated="not deprecated">
  31497. <param name="dir" type="java.io.File"/>
  31498. <doc>
  31499. <![CDATA[Sets directory where output files will be generated
  31500. @param dir output directory]]>
  31501. </doc>
  31502. </method>
  31503. <method name="addFileset"
  31504. abstract="false" native="false" synchronized="false"
  31505. static="false" final="false" visibility="public"
  31506. deprecated="not deprecated">
  31507. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  31508. <doc>
  31509. <![CDATA[Adds a fileset that can consist of one or more files
  31510. @param set Set of record definition files]]>
  31511. </doc>
  31512. </method>
  31513. <method name="execute"
  31514. abstract="false" native="false" synchronized="false"
  31515. static="false" final="false" visibility="public"
  31516. deprecated="not deprecated">
  31517. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  31518. <doc>
  31519. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  31520. </doc>
  31521. </method>
  31522. <doc>
  31523. <![CDATA[Hadoop record compiler ant Task
  31524. <p> This task takes the given record definition files and compiles them into
  31525. java or c++
  31526. files. It is then up to the user to compile the generated files.
  31527. <p> The task requires the <code>file</code> or the nested fileset element to be
  31528. specified. Optional attributes are <code>language</code> (set the output
  31529. language, default is "java"),
  31530. <code>destdir</code> (name of the destination directory for generated java/c++
  31531. code, default is ".") and <code>failonerror</code> (specifies error handling
  31532. behavior. default is true).
  31533. <p><h4>Usage</h4>
  31534. <pre>
  31535. &lt;recordcc
  31536. destdir="${basedir}/gensrc"
  31537. language="java"&gt;
  31538. &lt;fileset include="**\/*.jr" /&gt;
  31539. &lt;/recordcc&gt;
  31540. </pre>]]>
  31541. </doc>
  31542. </class>
  31543. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  31544. </package>
  31545. <package name="org.apache.hadoop.record.compiler.generated">
  31546. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  31547. <class name="ParseException" extends="java.lang.Exception"
  31548. abstract="false"
  31549. static="false" final="false" visibility="public"
  31550. deprecated="not deprecated">
  31551. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  31552. static="false" final="false" visibility="public"
  31553. deprecated="not deprecated">
  31554. <doc>
  31555. <![CDATA[This constructor is used by the method "generateParseException"
  31556. in the generated parser. Calling this constructor generates
  31557. a new object of this type with the fields "currentToken",
  31558. "expectedTokenSequences", and "tokenImage" set. The boolean
  31559. flag "specialConstructor" is also set to true to indicate that
  31560. this constructor was used to create this object.
  31561. This constructor calls its super class with the empty string
  31562. to force the "toString" method of parent class "Throwable" to
  31563. print the error message in the form:
  31564. ParseException: <result of getMessage>]]>
  31565. </doc>
  31566. </constructor>
  31567. <constructor name="ParseException"
  31568. static="false" final="false" visibility="public"
  31569. deprecated="not deprecated">
  31570. <doc>
  31571. <![CDATA[The following constructors are for use by you for whatever
  31572. purpose you can think of. Constructing the exception in this
  31573. manner makes the exception behave in the normal way - i.e., as
  31574. documented in the class "Throwable". The fields "errorToken",
  31575. "expectedTokenSequences", and "tokenImage" do not contain
  31576. relevant information. The JavaCC generated code does not use
  31577. these constructors.]]>
  31578. </doc>
  31579. </constructor>
  31580. <constructor name="ParseException" type="java.lang.String"
  31581. static="false" final="false" visibility="public"
  31582. deprecated="not deprecated">
  31583. </constructor>
  31584. <method name="getMessage" return="java.lang.String"
  31585. abstract="false" native="false" synchronized="false"
  31586. static="false" final="false" visibility="public"
  31587. deprecated="not deprecated">
  31588. <doc>
  31589. <![CDATA[This method has the standard behavior when this object has been
  31590. created using the standard constructors. Otherwise, it uses
  31591. "currentToken" and "expectedTokenSequences" to generate a parse
  31592. error message and returns it. If this object has been created
  31593. due to a parse error, and you do not catch it (it gets thrown
  31594. from the parser), then this method is called during the printing
  31595. of the final stack trace, and hence the correct error message
  31596. gets displayed.]]>
  31597. </doc>
  31598. </method>
  31599. <method name="add_escapes" return="java.lang.String"
  31600. abstract="false" native="false" synchronized="false"
  31601. static="false" final="false" visibility="protected"
  31602. deprecated="not deprecated">
  31603. <param name="str" type="java.lang.String"/>
  31604. <doc>
  31605. <![CDATA[Used to convert raw characters to their escaped version
  31606. when these raw version cannot be used as part of an ASCII
  31607. string literal.]]>
  31608. </doc>
  31609. </method>
  31610. <field name="specialConstructor" type="boolean"
  31611. transient="false" volatile="false"
  31612. static="false" final="false" visibility="protected"
  31613. deprecated="not deprecated">
  31614. <doc>
  31615. <![CDATA[This variable determines which constructor was used to create
  31616. this object and thereby affects the semantics of the
  31617. "getMessage" method (see below).]]>
  31618. </doc>
  31619. </field>
  31620. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  31621. transient="false" volatile="false"
  31622. static="false" final="false" visibility="public"
  31623. deprecated="not deprecated">
  31624. <doc>
  31625. <![CDATA[This is the last token that has been consumed successfully. If
  31626. this object has been created due to a parse error, the token
  31627. followng this token will (therefore) be the first error token.]]>
  31628. </doc>
  31629. </field>
  31630. <field name="expectedTokenSequences" type="int[][]"
  31631. transient="false" volatile="false"
  31632. static="false" final="false" visibility="public"
  31633. deprecated="not deprecated">
  31634. <doc>
  31635. <![CDATA[Each entry in this array is an array of integers. Each array
  31636. of integers represents a sequence of tokens (by their ordinal
  31637. values) that is expected at this point of the parse.]]>
  31638. </doc>
  31639. </field>
  31640. <field name="tokenImage" type="java.lang.String[]"
  31641. transient="false" volatile="false"
  31642. static="false" final="false" visibility="public"
  31643. deprecated="not deprecated">
  31644. <doc>
  31645. <![CDATA[This is a reference to the "tokenImage" array of the generated
  31646. parser within which the parse error occurred. This array is
  31647. defined in the generated ...Constants interface.]]>
  31648. </doc>
  31649. </field>
  31650. <field name="eol" type="java.lang.String"
  31651. transient="false" volatile="false"
  31652. static="false" final="false" visibility="protected"
  31653. deprecated="not deprecated">
  31654. <doc>
  31655. <![CDATA[The end of line string for this machine.]]>
  31656. </doc>
  31657. </field>
  31658. <doc>
  31659. <![CDATA[This exception is thrown when parse errors are encountered.
  31660. You can explicitly create objects of this exception type by
  31661. calling the method generateParseException in the generated
  31662. parser.
  31663. You can modify this class to customize your error reporting
  31664. mechanisms so long as you retain the public fields.]]>
  31665. </doc>
  31666. </class>
  31667. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  31668. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  31669. <class name="Rcc" extends="java.lang.Object"
  31670. abstract="false"
  31671. static="false" final="false" visibility="public"
  31672. deprecated="not deprecated">
  31673. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31674. <constructor name="Rcc" type="java.io.InputStream"
  31675. static="false" final="false" visibility="public"
  31676. deprecated="not deprecated">
  31677. </constructor>
  31678. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  31679. static="false" final="false" visibility="public"
  31680. deprecated="not deprecated">
  31681. </constructor>
  31682. <constructor name="Rcc" type="java.io.Reader"
  31683. static="false" final="false" visibility="public"
  31684. deprecated="not deprecated">
  31685. </constructor>
  31686. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31687. static="false" final="false" visibility="public"
  31688. deprecated="not deprecated">
  31689. </constructor>
  31690. <method name="main"
  31691. abstract="false" native="false" synchronized="false"
  31692. static="true" final="false" visibility="public"
  31693. deprecated="not deprecated">
  31694. <param name="args" type="java.lang.String[]"/>
  31695. </method>
  31696. <method name="usage"
  31697. abstract="false" native="false" synchronized="false"
  31698. static="true" final="false" visibility="public"
  31699. deprecated="not deprecated">
  31700. </method>
  31701. <method name="driver" return="int"
  31702. abstract="false" native="false" synchronized="false"
  31703. static="true" final="false" visibility="public"
  31704. deprecated="not deprecated">
  31705. <param name="args" type="java.lang.String[]"/>
  31706. </method>
  31707. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  31708. abstract="false" native="false" synchronized="false"
  31709. static="false" final="true" visibility="public"
  31710. deprecated="not deprecated">
  31711. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31712. </method>
  31713. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  31714. abstract="false" native="false" synchronized="false"
  31715. static="false" final="true" visibility="public"
  31716. deprecated="not deprecated">
  31717. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31718. </method>
  31719. <method name="Module" return="java.util.ArrayList"
  31720. abstract="false" native="false" synchronized="false"
  31721. static="false" final="true" visibility="public"
  31722. deprecated="not deprecated">
  31723. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31724. </method>
  31725. <method name="ModuleName" return="java.lang.String"
  31726. abstract="false" native="false" synchronized="false"
  31727. static="false" final="true" visibility="public"
  31728. deprecated="not deprecated">
  31729. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31730. </method>
  31731. <method name="RecordList" return="java.util.ArrayList"
  31732. abstract="false" native="false" synchronized="false"
  31733. static="false" final="true" visibility="public"
  31734. deprecated="not deprecated">
  31735. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31736. </method>
  31737. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  31738. abstract="false" native="false" synchronized="false"
  31739. static="false" final="true" visibility="public"
  31740. deprecated="not deprecated">
  31741. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31742. </method>
  31743. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  31744. abstract="false" native="false" synchronized="false"
  31745. static="false" final="true" visibility="public"
  31746. deprecated="not deprecated">
  31747. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31748. </method>
  31749. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  31750. abstract="false" native="false" synchronized="false"
  31751. static="false" final="true" visibility="public"
  31752. deprecated="not deprecated">
  31753. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31754. </method>
  31755. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  31756. abstract="false" native="false" synchronized="false"
  31757. static="false" final="true" visibility="public"
  31758. deprecated="not deprecated">
  31759. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31760. </method>
  31761. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  31762. abstract="false" native="false" synchronized="false"
  31763. static="false" final="true" visibility="public"
  31764. deprecated="not deprecated">
  31765. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  31766. </method>
  31767. <method name="ReInit"
  31768. abstract="false" native="false" synchronized="false"
  31769. static="false" final="false" visibility="public"
  31770. deprecated="not deprecated">
  31771. <param name="stream" type="java.io.InputStream"/>
  31772. </method>
  31773. <method name="ReInit"
  31774. abstract="false" native="false" synchronized="false"
  31775. static="false" final="false" visibility="public"
  31776. deprecated="not deprecated">
  31777. <param name="stream" type="java.io.InputStream"/>
  31778. <param name="encoding" type="java.lang.String"/>
  31779. </method>
  31780. <method name="ReInit"
  31781. abstract="false" native="false" synchronized="false"
  31782. static="false" final="false" visibility="public"
  31783. deprecated="not deprecated">
  31784. <param name="stream" type="java.io.Reader"/>
  31785. </method>
  31786. <method name="ReInit"
  31787. abstract="false" native="false" synchronized="false"
  31788. static="false" final="false" visibility="public"
  31789. deprecated="not deprecated">
  31790. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  31791. </method>
  31792. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31793. abstract="false" native="false" synchronized="false"
  31794. static="false" final="true" visibility="public"
  31795. deprecated="not deprecated">
  31796. </method>
  31797. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  31798. abstract="false" native="false" synchronized="false"
  31799. static="false" final="true" visibility="public"
  31800. deprecated="not deprecated">
  31801. <param name="index" type="int"/>
  31802. </method>
  31803. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  31804. abstract="false" native="false" synchronized="false"
  31805. static="false" final="false" visibility="public"
  31806. deprecated="not deprecated">
  31807. </method>
  31808. <method name="enable_tracing"
  31809. abstract="false" native="false" synchronized="false"
  31810. static="false" final="true" visibility="public"
  31811. deprecated="not deprecated">
  31812. </method>
  31813. <method name="disable_tracing"
  31814. abstract="false" native="false" synchronized="false"
  31815. static="false" final="true" visibility="public"
  31816. deprecated="not deprecated">
  31817. </method>
  31818. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  31819. transient="false" volatile="false"
  31820. static="false" final="false" visibility="public"
  31821. deprecated="not deprecated">
  31822. </field>
  31823. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  31824. transient="false" volatile="false"
  31825. static="false" final="false" visibility="public"
  31826. deprecated="not deprecated">
  31827. </field>
  31828. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  31829. transient="false" volatile="false"
  31830. static="false" final="false" visibility="public"
  31831. deprecated="not deprecated">
  31832. </field>
  31833. </class>
  31834. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  31835. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31836. <interface name="RccConstants" abstract="true"
  31837. static="false" final="false" visibility="public"
  31838. deprecated="not deprecated">
  31839. <field name="EOF" type="int"
  31840. transient="false" volatile="false"
  31841. static="true" final="true" visibility="public"
  31842. deprecated="not deprecated">
  31843. </field>
  31844. <field name="MODULE_TKN" type="int"
  31845. transient="false" volatile="false"
  31846. static="true" final="true" visibility="public"
  31847. deprecated="not deprecated">
  31848. </field>
  31849. <field name="RECORD_TKN" type="int"
  31850. transient="false" volatile="false"
  31851. static="true" final="true" visibility="public"
  31852. deprecated="not deprecated">
  31853. </field>
  31854. <field name="INCLUDE_TKN" type="int"
  31855. transient="false" volatile="false"
  31856. static="true" final="true" visibility="public"
  31857. deprecated="not deprecated">
  31858. </field>
  31859. <field name="BYTE_TKN" type="int"
  31860. transient="false" volatile="false"
  31861. static="true" final="true" visibility="public"
  31862. deprecated="not deprecated">
  31863. </field>
  31864. <field name="BOOLEAN_TKN" type="int"
  31865. transient="false" volatile="false"
  31866. static="true" final="true" visibility="public"
  31867. deprecated="not deprecated">
  31868. </field>
  31869. <field name="INT_TKN" type="int"
  31870. transient="false" volatile="false"
  31871. static="true" final="true" visibility="public"
  31872. deprecated="not deprecated">
  31873. </field>
  31874. <field name="LONG_TKN" type="int"
  31875. transient="false" volatile="false"
  31876. static="true" final="true" visibility="public"
  31877. deprecated="not deprecated">
  31878. </field>
  31879. <field name="FLOAT_TKN" type="int"
  31880. transient="false" volatile="false"
  31881. static="true" final="true" visibility="public"
  31882. deprecated="not deprecated">
  31883. </field>
  31884. <field name="DOUBLE_TKN" type="int"
  31885. transient="false" volatile="false"
  31886. static="true" final="true" visibility="public"
  31887. deprecated="not deprecated">
  31888. </field>
  31889. <field name="USTRING_TKN" type="int"
  31890. transient="false" volatile="false"
  31891. static="true" final="true" visibility="public"
  31892. deprecated="not deprecated">
  31893. </field>
  31894. <field name="BUFFER_TKN" type="int"
  31895. transient="false" volatile="false"
  31896. static="true" final="true" visibility="public"
  31897. deprecated="not deprecated">
  31898. </field>
  31899. <field name="VECTOR_TKN" type="int"
  31900. transient="false" volatile="false"
  31901. static="true" final="true" visibility="public"
  31902. deprecated="not deprecated">
  31903. </field>
  31904. <field name="MAP_TKN" type="int"
  31905. transient="false" volatile="false"
  31906. static="true" final="true" visibility="public"
  31907. deprecated="not deprecated">
  31908. </field>
  31909. <field name="LBRACE_TKN" type="int"
  31910. transient="false" volatile="false"
  31911. static="true" final="true" visibility="public"
  31912. deprecated="not deprecated">
  31913. </field>
  31914. <field name="RBRACE_TKN" type="int"
  31915. transient="false" volatile="false"
  31916. static="true" final="true" visibility="public"
  31917. deprecated="not deprecated">
  31918. </field>
  31919. <field name="LT_TKN" type="int"
  31920. transient="false" volatile="false"
  31921. static="true" final="true" visibility="public"
  31922. deprecated="not deprecated">
  31923. </field>
  31924. <field name="GT_TKN" type="int"
  31925. transient="false" volatile="false"
  31926. static="true" final="true" visibility="public"
  31927. deprecated="not deprecated">
  31928. </field>
  31929. <field name="SEMICOLON_TKN" type="int"
  31930. transient="false" volatile="false"
  31931. static="true" final="true" visibility="public"
  31932. deprecated="not deprecated">
  31933. </field>
  31934. <field name="COMMA_TKN" type="int"
  31935. transient="false" volatile="false"
  31936. static="true" final="true" visibility="public"
  31937. deprecated="not deprecated">
  31938. </field>
  31939. <field name="DOT_TKN" type="int"
  31940. transient="false" volatile="false"
  31941. static="true" final="true" visibility="public"
  31942. deprecated="not deprecated">
  31943. </field>
  31944. <field name="CSTRING_TKN" type="int"
  31945. transient="false" volatile="false"
  31946. static="true" final="true" visibility="public"
  31947. deprecated="not deprecated">
  31948. </field>
  31949. <field name="IDENT_TKN" type="int"
  31950. transient="false" volatile="false"
  31951. static="true" final="true" visibility="public"
  31952. deprecated="not deprecated">
  31953. </field>
  31954. <field name="DEFAULT" type="int"
  31955. transient="false" volatile="false"
  31956. static="true" final="true" visibility="public"
  31957. deprecated="not deprecated">
  31958. </field>
  31959. <field name="WithinOneLineComment" type="int"
  31960. transient="false" volatile="false"
  31961. static="true" final="true" visibility="public"
  31962. deprecated="not deprecated">
  31963. </field>
  31964. <field name="WithinMultiLineComment" type="int"
  31965. transient="false" volatile="false"
  31966. static="true" final="true" visibility="public"
  31967. deprecated="not deprecated">
  31968. </field>
  31969. <field name="tokenImage" type="java.lang.String[]"
  31970. transient="false" volatile="false"
  31971. static="true" final="true" visibility="public"
  31972. deprecated="not deprecated">
  31973. </field>
  31974. </interface>
  31975. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  31976. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  31977. <class name="RccTokenManager" extends="java.lang.Object"
  31978. abstract="false"
  31979. static="false" final="false" visibility="public"
  31980. deprecated="not deprecated">
  31981. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  31982. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  31983. static="false" final="false" visibility="public"
  31984. deprecated="not deprecated">
  31985. </constructor>
  31986. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  31987. static="false" final="false" visibility="public"
  31988. deprecated="not deprecated">
  31989. </constructor>
  31990. <method name="setDebugStream"
  31991. abstract="false" native="false" synchronized="false"
  31992. static="false" final="false" visibility="public"
  31993. deprecated="not deprecated">
  31994. <param name="ds" type="java.io.PrintStream"/>
  31995. </method>
  31996. <method name="ReInit"
  31997. abstract="false" native="false" synchronized="false"
  31998. static="false" final="false" visibility="public"
  31999. deprecated="not deprecated">
  32000. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  32001. </method>
  32002. <method name="ReInit"
  32003. abstract="false" native="false" synchronized="false"
  32004. static="false" final="false" visibility="public"
  32005. deprecated="not deprecated">
  32006. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  32007. <param name="lexState" type="int"/>
  32008. </method>
  32009. <method name="SwitchTo"
  32010. abstract="false" native="false" synchronized="false"
  32011. static="false" final="false" visibility="public"
  32012. deprecated="not deprecated">
  32013. <param name="lexState" type="int"/>
  32014. </method>
  32015. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32016. abstract="false" native="false" synchronized="false"
  32017. static="false" final="false" visibility="protected"
  32018. deprecated="not deprecated">
  32019. </method>
  32020. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32021. abstract="false" native="false" synchronized="false"
  32022. static="false" final="false" visibility="public"
  32023. deprecated="not deprecated">
  32024. </method>
  32025. <field name="debugStream" type="java.io.PrintStream"
  32026. transient="false" volatile="false"
  32027. static="false" final="false" visibility="public"
  32028. deprecated="not deprecated">
  32029. </field>
  32030. <field name="jjstrLiteralImages" type="java.lang.String[]"
  32031. transient="false" volatile="false"
  32032. static="true" final="true" visibility="public"
  32033. deprecated="not deprecated">
  32034. </field>
  32035. <field name="lexStateNames" type="java.lang.String[]"
  32036. transient="false" volatile="false"
  32037. static="true" final="true" visibility="public"
  32038. deprecated="not deprecated">
  32039. </field>
  32040. <field name="jjnewLexState" type="int[]"
  32041. transient="false" volatile="false"
  32042. static="true" final="true" visibility="public"
  32043. deprecated="not deprecated">
  32044. </field>
  32045. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  32046. transient="false" volatile="false"
  32047. static="false" final="false" visibility="protected"
  32048. deprecated="not deprecated">
  32049. </field>
  32050. <field name="curChar" type="char"
  32051. transient="false" volatile="false"
  32052. static="false" final="false" visibility="protected"
  32053. deprecated="not deprecated">
  32054. </field>
  32055. </class>
  32056. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  32057. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32058. <class name="SimpleCharStream" extends="java.lang.Object"
  32059. abstract="false"
  32060. static="false" final="false" visibility="public"
  32061. deprecated="not deprecated">
  32062. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  32063. static="false" final="false" visibility="public"
  32064. deprecated="not deprecated">
  32065. </constructor>
  32066. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  32067. static="false" final="false" visibility="public"
  32068. deprecated="not deprecated">
  32069. </constructor>
  32070. <constructor name="SimpleCharStream" type="java.io.Reader"
  32071. static="false" final="false" visibility="public"
  32072. deprecated="not deprecated">
  32073. </constructor>
  32074. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  32075. static="false" final="false" visibility="public"
  32076. deprecated="not deprecated">
  32077. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32078. </constructor>
  32079. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  32080. static="false" final="false" visibility="public"
  32081. deprecated="not deprecated">
  32082. </constructor>
  32083. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  32084. static="false" final="false" visibility="public"
  32085. deprecated="not deprecated">
  32086. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32087. </constructor>
  32088. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  32089. static="false" final="false" visibility="public"
  32090. deprecated="not deprecated">
  32091. </constructor>
  32092. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  32093. static="false" final="false" visibility="public"
  32094. deprecated="not deprecated">
  32095. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32096. </constructor>
  32097. <constructor name="SimpleCharStream" type="java.io.InputStream"
  32098. static="false" final="false" visibility="public"
  32099. deprecated="not deprecated">
  32100. </constructor>
  32101. <method name="setTabSize"
  32102. abstract="false" native="false" synchronized="false"
  32103. static="false" final="false" visibility="protected"
  32104. deprecated="not deprecated">
  32105. <param name="i" type="int"/>
  32106. </method>
  32107. <method name="getTabSize" return="int"
  32108. abstract="false" native="false" synchronized="false"
  32109. static="false" final="false" visibility="protected"
  32110. deprecated="not deprecated">
  32111. <param name="i" type="int"/>
  32112. </method>
  32113. <method name="ExpandBuff"
  32114. abstract="false" native="false" synchronized="false"
  32115. static="false" final="false" visibility="protected"
  32116. deprecated="not deprecated">
  32117. <param name="wrapAround" type="boolean"/>
  32118. </method>
  32119. <method name="FillBuff"
  32120. abstract="false" native="false" synchronized="false"
  32121. static="false" final="false" visibility="protected"
  32122. deprecated="not deprecated">
  32123. <exception name="IOException" type="java.io.IOException"/>
  32124. </method>
  32125. <method name="BeginToken" return="char"
  32126. abstract="false" native="false" synchronized="false"
  32127. static="false" final="false" visibility="public"
  32128. deprecated="not deprecated">
  32129. <exception name="IOException" type="java.io.IOException"/>
  32130. </method>
  32131. <method name="UpdateLineColumn"
  32132. abstract="false" native="false" synchronized="false"
  32133. static="false" final="false" visibility="protected"
  32134. deprecated="not deprecated">
  32135. <param name="c" type="char"/>
  32136. </method>
  32137. <method name="readChar" return="char"
  32138. abstract="false" native="false" synchronized="false"
  32139. static="false" final="false" visibility="public"
  32140. deprecated="not deprecated">
  32141. <exception name="IOException" type="java.io.IOException"/>
  32142. </method>
  32143. <method name="getEndColumn" return="int"
  32144. abstract="false" native="false" synchronized="false"
  32145. static="false" final="false" visibility="public"
  32146. deprecated="not deprecated">
  32147. </method>
  32148. <method name="getEndLine" return="int"
  32149. abstract="false" native="false" synchronized="false"
  32150. static="false" final="false" visibility="public"
  32151. deprecated="not deprecated">
  32152. </method>
  32153. <method name="getBeginColumn" return="int"
  32154. abstract="false" native="false" synchronized="false"
  32155. static="false" final="false" visibility="public"
  32156. deprecated="not deprecated">
  32157. </method>
  32158. <method name="getBeginLine" return="int"
  32159. abstract="false" native="false" synchronized="false"
  32160. static="false" final="false" visibility="public"
  32161. deprecated="not deprecated">
  32162. </method>
  32163. <method name="backup"
  32164. abstract="false" native="false" synchronized="false"
  32165. static="false" final="false" visibility="public"
  32166. deprecated="not deprecated">
  32167. <param name="amount" type="int"/>
  32168. </method>
  32169. <method name="ReInit"
  32170. abstract="false" native="false" synchronized="false"
  32171. static="false" final="false" visibility="public"
  32172. deprecated="not deprecated">
  32173. <param name="dstream" type="java.io.Reader"/>
  32174. <param name="startline" type="int"/>
  32175. <param name="startcolumn" type="int"/>
  32176. <param name="buffersize" type="int"/>
  32177. </method>
  32178. <method name="ReInit"
  32179. abstract="false" native="false" synchronized="false"
  32180. static="false" final="false" visibility="public"
  32181. deprecated="not deprecated">
  32182. <param name="dstream" type="java.io.Reader"/>
  32183. <param name="startline" type="int"/>
  32184. <param name="startcolumn" type="int"/>
  32185. </method>
  32186. <method name="ReInit"
  32187. abstract="false" native="false" synchronized="false"
  32188. static="false" final="false" visibility="public"
  32189. deprecated="not deprecated">
  32190. <param name="dstream" type="java.io.Reader"/>
  32191. </method>
  32192. <method name="ReInit"
  32193. abstract="false" native="false" synchronized="false"
  32194. static="false" final="false" visibility="public"
  32195. deprecated="not deprecated">
  32196. <param name="dstream" type="java.io.InputStream"/>
  32197. <param name="encoding" type="java.lang.String"/>
  32198. <param name="startline" type="int"/>
  32199. <param name="startcolumn" type="int"/>
  32200. <param name="buffersize" type="int"/>
  32201. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32202. </method>
  32203. <method name="ReInit"
  32204. abstract="false" native="false" synchronized="false"
  32205. static="false" final="false" visibility="public"
  32206. deprecated="not deprecated">
  32207. <param name="dstream" type="java.io.InputStream"/>
  32208. <param name="startline" type="int"/>
  32209. <param name="startcolumn" type="int"/>
  32210. <param name="buffersize" type="int"/>
  32211. </method>
  32212. <method name="ReInit"
  32213. abstract="false" native="false" synchronized="false"
  32214. static="false" final="false" visibility="public"
  32215. deprecated="not deprecated">
  32216. <param name="dstream" type="java.io.InputStream"/>
  32217. <param name="encoding" type="java.lang.String"/>
  32218. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32219. </method>
  32220. <method name="ReInit"
  32221. abstract="false" native="false" synchronized="false"
  32222. static="false" final="false" visibility="public"
  32223. deprecated="not deprecated">
  32224. <param name="dstream" type="java.io.InputStream"/>
  32225. </method>
  32226. <method name="ReInit"
  32227. abstract="false" native="false" synchronized="false"
  32228. static="false" final="false" visibility="public"
  32229. deprecated="not deprecated">
  32230. <param name="dstream" type="java.io.InputStream"/>
  32231. <param name="encoding" type="java.lang.String"/>
  32232. <param name="startline" type="int"/>
  32233. <param name="startcolumn" type="int"/>
  32234. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32235. </method>
  32236. <method name="ReInit"
  32237. abstract="false" native="false" synchronized="false"
  32238. static="false" final="false" visibility="public"
  32239. deprecated="not deprecated">
  32240. <param name="dstream" type="java.io.InputStream"/>
  32241. <param name="startline" type="int"/>
  32242. <param name="startcolumn" type="int"/>
  32243. </method>
  32244. <method name="GetImage" return="java.lang.String"
  32245. abstract="false" native="false" synchronized="false"
  32246. static="false" final="false" visibility="public"
  32247. deprecated="not deprecated">
  32248. </method>
  32249. <method name="GetSuffix" return="char[]"
  32250. abstract="false" native="false" synchronized="false"
  32251. static="false" final="false" visibility="public"
  32252. deprecated="not deprecated">
  32253. <param name="len" type="int"/>
  32254. </method>
  32255. <method name="Done"
  32256. abstract="false" native="false" synchronized="false"
  32257. static="false" final="false" visibility="public"
  32258. deprecated="not deprecated">
  32259. </method>
  32260. <method name="adjustBeginLineColumn"
  32261. abstract="false" native="false" synchronized="false"
  32262. static="false" final="false" visibility="public"
  32263. deprecated="not deprecated">
  32264. <param name="newLine" type="int"/>
  32265. <param name="newCol" type="int"/>
  32266. <doc>
  32267. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  32268. </doc>
  32269. </method>
  32270. <field name="staticFlag" type="boolean"
  32271. transient="false" volatile="false"
  32272. static="true" final="true" visibility="public"
  32273. deprecated="not deprecated">
  32274. </field>
  32275. <field name="bufpos" type="int"
  32276. transient="false" volatile="false"
  32277. static="false" final="false" visibility="public"
  32278. deprecated="not deprecated">
  32279. </field>
  32280. <field name="bufline" type="int[]"
  32281. transient="false" volatile="false"
  32282. static="false" final="false" visibility="protected"
  32283. deprecated="not deprecated">
  32284. </field>
  32285. <field name="bufcolumn" type="int[]"
  32286. transient="false" volatile="false"
  32287. static="false" final="false" visibility="protected"
  32288. deprecated="not deprecated">
  32289. </field>
  32290. <field name="column" type="int"
  32291. transient="false" volatile="false"
  32292. static="false" final="false" visibility="protected"
  32293. deprecated="not deprecated">
  32294. </field>
  32295. <field name="line" type="int"
  32296. transient="false" volatile="false"
  32297. static="false" final="false" visibility="protected"
  32298. deprecated="not deprecated">
  32299. </field>
  32300. <field name="prevCharIsCR" type="boolean"
  32301. transient="false" volatile="false"
  32302. static="false" final="false" visibility="protected"
  32303. deprecated="not deprecated">
  32304. </field>
  32305. <field name="prevCharIsLF" type="boolean"
  32306. transient="false" volatile="false"
  32307. static="false" final="false" visibility="protected"
  32308. deprecated="not deprecated">
  32309. </field>
  32310. <field name="inputStream" type="java.io.Reader"
  32311. transient="false" volatile="false"
  32312. static="false" final="false" visibility="protected"
  32313. deprecated="not deprecated">
  32314. </field>
  32315. <field name="buffer" type="char[]"
  32316. transient="false" volatile="false"
  32317. static="false" final="false" visibility="protected"
  32318. deprecated="not deprecated">
  32319. </field>
  32320. <field name="maxNextCharInd" type="int"
  32321. transient="false" volatile="false"
  32322. static="false" final="false" visibility="protected"
  32323. deprecated="not deprecated">
  32324. </field>
  32325. <field name="inBuf" type="int"
  32326. transient="false" volatile="false"
  32327. static="false" final="false" visibility="protected"
  32328. deprecated="not deprecated">
  32329. </field>
  32330. <field name="tabSize" type="int"
  32331. transient="false" volatile="false"
  32332. static="false" final="false" visibility="protected"
  32333. deprecated="not deprecated">
  32334. </field>
  32335. <doc>
  32336. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  32337. contain only ASCII characters (without unicode processing).]]>
  32338. </doc>
  32339. </class>
  32340. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  32341. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  32342. <class name="Token" extends="java.lang.Object"
  32343. abstract="false"
  32344. static="false" final="false" visibility="public"
  32345. deprecated="not deprecated">
  32346. <constructor name="Token"
  32347. static="false" final="false" visibility="public"
  32348. deprecated="not deprecated">
  32349. </constructor>
  32350. <method name="toString" return="java.lang.String"
  32351. abstract="false" native="false" synchronized="false"
  32352. static="false" final="false" visibility="public"
  32353. deprecated="not deprecated">
  32354. <doc>
  32355. <![CDATA[Returns the image.]]>
  32356. </doc>
  32357. </method>
  32358. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  32359. abstract="false" native="false" synchronized="false"
  32360. static="true" final="true" visibility="public"
  32361. deprecated="not deprecated">
  32362. <param name="ofKind" type="int"/>
  32363. <doc>
  32364. <![CDATA[Returns a new Token object, by default. However, if you want, you
  32365. can create and return subclass objects based on the value of ofKind.
  32366. Simply add the cases to the switch for all those special cases.
  32367. For example, if you have a subclass of Token called IDToken that
  32368. you want to create if ofKind is ID, simlpy add something like :
  32369. case MyParserConstants.ID : return new IDToken();
  32370. to the following switch statement. Then you can cast matchedToken
  32371. variable to the appropriate type and use it in your lexical actions.]]>
  32372. </doc>
  32373. </method>
  32374. <field name="kind" type="int"
  32375. transient="false" volatile="false"
  32376. static="false" final="false" visibility="public"
  32377. deprecated="not deprecated">
  32378. <doc>
  32379. <![CDATA[An integer that describes the kind of this token. This numbering
  32380. system is determined by JavaCCParser, and a table of these numbers is
  32381. stored in the file ...Constants.java.]]>
  32382. </doc>
  32383. </field>
  32384. <field name="beginLine" type="int"
  32385. transient="false" volatile="false"
  32386. static="false" final="false" visibility="public"
  32387. deprecated="not deprecated">
  32388. <doc>
  32389. <![CDATA[beginLine and beginColumn describe the position of the first character
  32390. of this token; endLine and endColumn describe the position of the
  32391. last character of this token.]]>
  32392. </doc>
  32393. </field>
  32394. <field name="beginColumn" type="int"
  32395. transient="false" volatile="false"
  32396. static="false" final="false" visibility="public"
  32397. deprecated="not deprecated">
  32398. <doc>
  32399. <![CDATA[beginLine and beginColumn describe the position of the first character
  32400. of this token; endLine and endColumn describe the position of the
  32401. last character of this token.]]>
  32402. </doc>
  32403. </field>
  32404. <field name="endLine" type="int"
  32405. transient="false" volatile="false"
  32406. static="false" final="false" visibility="public"
  32407. deprecated="not deprecated">
  32408. <doc>
  32409. <![CDATA[beginLine and beginColumn describe the position of the first character
  32410. of this token; endLine and endColumn describe the position of the
  32411. last character of this token.]]>
  32412. </doc>
  32413. </field>
  32414. <field name="endColumn" type="int"
  32415. transient="false" volatile="false"
  32416. static="false" final="false" visibility="public"
  32417. deprecated="not deprecated">
  32418. <doc>
  32419. <![CDATA[beginLine and beginColumn describe the position of the first character
  32420. of this token; endLine and endColumn describe the position of the
  32421. last character of this token.]]>
  32422. </doc>
  32423. </field>
  32424. <field name="image" type="java.lang.String"
  32425. transient="false" volatile="false"
  32426. static="false" final="false" visibility="public"
  32427. deprecated="not deprecated">
  32428. <doc>
  32429. <![CDATA[The string image of the token.]]>
  32430. </doc>
  32431. </field>
  32432. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  32433. transient="false" volatile="false"
  32434. static="false" final="false" visibility="public"
  32435. deprecated="not deprecated">
  32436. <doc>
  32437. <![CDATA[A reference to the next regular (non-special) token from the input
  32438. stream. If this is the last token from the input stream, or if the
  32439. token manager has not read tokens beyond this one, this field is
  32440. set to null. This is true only if this token is also a regular
  32441. token. Otherwise, see below for a description of the contents of
  32442. this field.]]>
  32443. </doc>
  32444. </field>
  32445. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  32446. transient="false" volatile="false"
  32447. static="false" final="false" visibility="public"
  32448. deprecated="not deprecated">
  32449. <doc>
  32450. <![CDATA[This field is used to access special tokens that occur prior to this
  32451. token, but after the immediately preceding regular (non-special) token.
  32452. If there are no such special tokens, this field is set to null.
  32453. When there are more than one such special token, this field refers
  32454. to the last of these special tokens, which in turn refers to the next
  32455. previous special token through its specialToken field, and so on
  32456. until the first special token (whose specialToken field is null).
  32457. The next fields of special tokens refer to other special tokens that
  32458. immediately follow it (without an intervening regular token). If there
  32459. is no such token, this field is null.]]>
  32460. </doc>
  32461. </field>
  32462. <doc>
  32463. <![CDATA[Describes the input token stream.]]>
  32464. </doc>
  32465. </class>
  32466. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  32467. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32468. <class name="TokenMgrError" extends="java.lang.Error"
  32469. abstract="false"
  32470. static="false" final="false" visibility="public"
  32471. deprecated="not deprecated">
  32472. <constructor name="TokenMgrError"
  32473. static="false" final="false" visibility="public"
  32474. deprecated="not deprecated">
  32475. </constructor>
  32476. <constructor name="TokenMgrError" type="java.lang.String, int"
  32477. static="false" final="false" visibility="public"
  32478. deprecated="not deprecated">
  32479. </constructor>
  32480. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  32481. static="false" final="false" visibility="public"
  32482. deprecated="not deprecated">
  32483. </constructor>
  32484. <method name="addEscapes" return="java.lang.String"
  32485. abstract="false" native="false" synchronized="false"
  32486. static="true" final="true" visibility="protected"
  32487. deprecated="not deprecated">
  32488. <param name="str" type="java.lang.String"/>
  32489. <doc>
  32490. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  32491. equivalents in the given string]]>
  32492. </doc>
  32493. </method>
  32494. <method name="LexicalError" return="java.lang.String"
  32495. abstract="false" native="false" synchronized="false"
  32496. static="true" final="false" visibility="protected"
  32497. deprecated="not deprecated">
  32498. <param name="EOFSeen" type="boolean"/>
  32499. <param name="lexState" type="int"/>
  32500. <param name="errorLine" type="int"/>
  32501. <param name="errorColumn" type="int"/>
  32502. <param name="errorAfter" type="java.lang.String"/>
  32503. <param name="curChar" type="char"/>
  32504. <doc>
  32505. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  32506. token manager to indicate a lexical error.
  32507. Parameters :
  32508. EOFSeen : indicates if EOF caused the lexicl error
  32509. curLexState : lexical state in which this error occured
  32510. errorLine : line number when the error occured
  32511. errorColumn : column number when the error occured
  32512. errorAfter : prefix that was seen before this error occured
  32513. curchar : the offending character
  32514. Note: You can customize the lexical error message by modifying this method.]]>
  32515. </doc>
  32516. </method>
  32517. <method name="getMessage" return="java.lang.String"
  32518. abstract="false" native="false" synchronized="false"
  32519. static="false" final="false" visibility="public"
  32520. deprecated="not deprecated">
  32521. <doc>
  32522. <![CDATA[You can also modify the body of this method to customize your error messages.
  32523. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  32524. of end-users concern, so you can return something like :
  32525. "Internal Error : Please file a bug report .... "
  32526. from this method for such cases in the release version of your parser.]]>
  32527. </doc>
  32528. </method>
  32529. </class>
  32530. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  32531. </package>
  32532. <package name="org.apache.hadoop.record.meta">
  32533. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32534. <class name="FieldTypeInfo" extends="java.lang.Object"
  32535. abstract="false"
  32536. static="false" final="false" visibility="public"
  32537. deprecated="not deprecated">
  32538. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32539. abstract="false" native="false" synchronized="false"
  32540. static="false" final="false" visibility="public"
  32541. deprecated="not deprecated">
  32542. <doc>
  32543. <![CDATA[get the field's TypeID object]]>
  32544. </doc>
  32545. </method>
  32546. <method name="getFieldID" return="java.lang.String"
  32547. abstract="false" native="false" synchronized="false"
  32548. static="false" final="false" visibility="public"
  32549. deprecated="not deprecated">
  32550. <doc>
  32551. <![CDATA[get the field's id (name)]]>
  32552. </doc>
  32553. </method>
  32554. <method name="equals" return="boolean"
  32555. abstract="false" native="false" synchronized="false"
  32556. static="false" final="false" visibility="public"
  32557. deprecated="not deprecated">
  32558. <param name="o" type="java.lang.Object"/>
  32559. <doc>
  32560. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  32561. </doc>
  32562. </method>
  32563. <method name="hashCode" return="int"
  32564. abstract="false" native="false" synchronized="false"
  32565. static="false" final="false" visibility="public"
  32566. deprecated="not deprecated">
  32567. <doc>
  32568. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32569. be used as a hashmap key]]>
  32570. </doc>
  32571. </method>
  32572. <method name="equals" return="boolean"
  32573. abstract="false" native="false" synchronized="false"
  32574. static="false" final="false" visibility="public"
  32575. deprecated="not deprecated">
  32576. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  32577. </method>
  32578. <doc>
  32579. <![CDATA[Represents a type information for a field, which is made up of its
  32580. ID (name) and its type (a TypeID object).]]>
  32581. </doc>
  32582. </class>
  32583. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  32584. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  32585. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32586. abstract="false"
  32587. static="false" final="false" visibility="public"
  32588. deprecated="not deprecated">
  32589. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  32590. static="false" final="false" visibility="public"
  32591. deprecated="not deprecated">
  32592. </constructor>
  32593. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32594. abstract="false" native="false" synchronized="false"
  32595. static="false" final="false" visibility="public"
  32596. deprecated="not deprecated">
  32597. <doc>
  32598. <![CDATA[get the TypeID of the map's key element]]>
  32599. </doc>
  32600. </method>
  32601. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32602. abstract="false" native="false" synchronized="false"
  32603. static="false" final="false" visibility="public"
  32604. deprecated="not deprecated">
  32605. <doc>
  32606. <![CDATA[get the TypeID of the map's value element]]>
  32607. </doc>
  32608. </method>
  32609. <method name="equals" return="boolean"
  32610. abstract="false" native="false" synchronized="false"
  32611. static="false" final="false" visibility="public"
  32612. deprecated="not deprecated">
  32613. <param name="o" type="java.lang.Object"/>
  32614. <doc>
  32615. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  32616. same type]]>
  32617. </doc>
  32618. </method>
  32619. <method name="hashCode" return="int"
  32620. abstract="false" native="false" synchronized="false"
  32621. static="false" final="false" visibility="public"
  32622. deprecated="not deprecated">
  32623. <doc>
  32624. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32625. be used as a hashmap key]]>
  32626. </doc>
  32627. </method>
  32628. <doc>
  32629. <![CDATA[Represents typeID for a Map]]>
  32630. </doc>
  32631. </class>
  32632. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  32633. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32634. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  32635. abstract="false"
  32636. static="false" final="false" visibility="public"
  32637. deprecated="not deprecated">
  32638. <constructor name="RecordTypeInfo"
  32639. static="false" final="false" visibility="public"
  32640. deprecated="not deprecated">
  32641. <doc>
  32642. <![CDATA[Create an empty RecordTypeInfo object.]]>
  32643. </doc>
  32644. </constructor>
  32645. <constructor name="RecordTypeInfo" type="java.lang.String"
  32646. static="false" final="false" visibility="public"
  32647. deprecated="not deprecated">
  32648. <doc>
  32649. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  32650. @param name Name of the record]]>
  32651. </doc>
  32652. </constructor>
  32653. <method name="getName" return="java.lang.String"
  32654. abstract="false" native="false" synchronized="false"
  32655. static="false" final="false" visibility="public"
  32656. deprecated="not deprecated">
  32657. <doc>
  32658. <![CDATA[return the name of the record]]>
  32659. </doc>
  32660. </method>
  32661. <method name="setName"
  32662. abstract="false" native="false" synchronized="false"
  32663. static="false" final="false" visibility="public"
  32664. deprecated="not deprecated">
  32665. <param name="name" type="java.lang.String"/>
  32666. <doc>
  32667. <![CDATA[set the name of the record]]>
  32668. </doc>
  32669. </method>
  32670. <method name="addField"
  32671. abstract="false" native="false" synchronized="false"
  32672. static="false" final="false" visibility="public"
  32673. deprecated="not deprecated">
  32674. <param name="fieldName" type="java.lang.String"/>
  32675. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  32676. <doc>
  32677. <![CDATA[Add a field.
  32678. @param fieldName Name of the field
  32679. @param tid Type ID of the field]]>
  32680. </doc>
  32681. </method>
  32682. <method name="getFieldTypeInfos" return="java.util.Collection"
  32683. abstract="false" native="false" synchronized="false"
  32684. static="false" final="false" visibility="public"
  32685. deprecated="not deprecated">
  32686. <doc>
  32687. <![CDATA[Return a collection of field type infos]]>
  32688. </doc>
  32689. </method>
  32690. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  32691. abstract="false" native="false" synchronized="false"
  32692. static="false" final="false" visibility="public"
  32693. deprecated="not deprecated">
  32694. <param name="name" type="java.lang.String"/>
  32695. <doc>
  32696. <![CDATA[Return the type info of a nested record. We only consider nesting
  32697. to one level.
  32698. @param name Name of the nested record]]>
  32699. </doc>
  32700. </method>
  32701. <method name="serialize"
  32702. abstract="false" native="false" synchronized="false"
  32703. static="false" final="false" visibility="public"
  32704. deprecated="not deprecated">
  32705. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32706. <param name="tag" type="java.lang.String"/>
  32707. <exception name="IOException" type="java.io.IOException"/>
  32708. <doc>
  32709. <![CDATA[Serialize the type information for a record]]>
  32710. </doc>
  32711. </method>
  32712. <method name="deserialize"
  32713. abstract="false" native="false" synchronized="false"
  32714. static="false" final="false" visibility="public"
  32715. deprecated="not deprecated">
  32716. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32717. <param name="tag" type="java.lang.String"/>
  32718. <exception name="IOException" type="java.io.IOException"/>
  32719. <doc>
  32720. <![CDATA[Deserialize the type information for a record]]>
  32721. </doc>
  32722. </method>
  32723. <method name="compareTo" return="int"
  32724. abstract="false" native="false" synchronized="false"
  32725. static="false" final="false" visibility="public"
  32726. deprecated="not deprecated">
  32727. <param name="peer_" type="java.lang.Object"/>
  32728. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  32729. <doc>
  32730. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  32731. for anything besides de/serializing.
  32732. So we always throw an exception.
  32733. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  32734. </doc>
  32735. </method>
  32736. <doc>
  32737. <![CDATA[A record's Type Information object which can read/write itself.
  32738. Type information for a record comprises metadata about the record,
  32739. as well as a collection of type information for each field in the record.]]>
  32740. </doc>
  32741. </class>
  32742. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  32743. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  32744. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32745. abstract="false"
  32746. static="false" final="false" visibility="public"
  32747. deprecated="not deprecated">
  32748. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  32749. static="false" final="false" visibility="public"
  32750. deprecated="not deprecated">
  32751. <doc>
  32752. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  32753. </doc>
  32754. </constructor>
  32755. <method name="getFieldTypeInfos" return="java.util.Collection"
  32756. abstract="false" native="false" synchronized="false"
  32757. static="false" final="false" visibility="public"
  32758. deprecated="not deprecated">
  32759. </method>
  32760. <doc>
  32761. <![CDATA[Represents typeID for a struct]]>
  32762. </doc>
  32763. </class>
  32764. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  32765. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  32766. <class name="TypeID" extends="java.lang.Object"
  32767. abstract="false"
  32768. static="false" final="false" visibility="public"
  32769. deprecated="not deprecated">
  32770. <method name="getTypeVal" return="byte"
  32771. abstract="false" native="false" synchronized="false"
  32772. static="false" final="false" visibility="public"
  32773. deprecated="not deprecated">
  32774. <doc>
  32775. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  32776. </doc>
  32777. </method>
  32778. <method name="equals" return="boolean"
  32779. abstract="false" native="false" synchronized="false"
  32780. static="false" final="false" visibility="public"
  32781. deprecated="not deprecated">
  32782. <param name="o" type="java.lang.Object"/>
  32783. <doc>
  32784. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  32785. </doc>
  32786. </method>
  32787. <method name="hashCode" return="int"
  32788. abstract="false" native="false" synchronized="false"
  32789. static="false" final="false" visibility="public"
  32790. deprecated="not deprecated">
  32791. <doc>
  32792. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32793. be used as a hashmap key]]>
  32794. </doc>
  32795. </method>
  32796. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32797. transient="false" volatile="false"
  32798. static="true" final="true" visibility="public"
  32799. deprecated="not deprecated">
  32800. <doc>
  32801. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  32802. </doc>
  32803. </field>
  32804. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32805. transient="false" volatile="false"
  32806. static="true" final="true" visibility="public"
  32807. deprecated="not deprecated">
  32808. </field>
  32809. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32810. transient="false" volatile="false"
  32811. static="true" final="true" visibility="public"
  32812. deprecated="not deprecated">
  32813. </field>
  32814. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32815. transient="false" volatile="false"
  32816. static="true" final="true" visibility="public"
  32817. deprecated="not deprecated">
  32818. </field>
  32819. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32820. transient="false" volatile="false"
  32821. static="true" final="true" visibility="public"
  32822. deprecated="not deprecated">
  32823. </field>
  32824. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32825. transient="false" volatile="false"
  32826. static="true" final="true" visibility="public"
  32827. deprecated="not deprecated">
  32828. </field>
  32829. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32830. transient="false" volatile="false"
  32831. static="true" final="true" visibility="public"
  32832. deprecated="not deprecated">
  32833. </field>
  32834. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32835. transient="false" volatile="false"
  32836. static="true" final="true" visibility="public"
  32837. deprecated="not deprecated">
  32838. </field>
  32839. <field name="typeVal" type="byte"
  32840. transient="false" volatile="false"
  32841. static="false" final="false" visibility="protected"
  32842. deprecated="not deprecated">
  32843. </field>
  32844. <doc>
  32845. <![CDATA[Represents typeID for basic types.]]>
  32846. </doc>
  32847. </class>
  32848. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  32849. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  32850. <class name="TypeID.RIOType" extends="java.lang.Object"
  32851. abstract="false"
  32852. static="true" final="true" visibility="public"
  32853. deprecated="not deprecated">
  32854. <constructor name="TypeID.RIOType"
  32855. static="false" final="false" visibility="public"
  32856. deprecated="not deprecated">
  32857. </constructor>
  32858. <field name="BOOL" type="byte"
  32859. transient="false" volatile="false"
  32860. static="true" final="true" visibility="public"
  32861. deprecated="not deprecated">
  32862. </field>
  32863. <field name="BUFFER" type="byte"
  32864. transient="false" volatile="false"
  32865. static="true" final="true" visibility="public"
  32866. deprecated="not deprecated">
  32867. </field>
  32868. <field name="BYTE" type="byte"
  32869. transient="false" volatile="false"
  32870. static="true" final="true" visibility="public"
  32871. deprecated="not deprecated">
  32872. </field>
  32873. <field name="DOUBLE" type="byte"
  32874. transient="false" volatile="false"
  32875. static="true" final="true" visibility="public"
  32876. deprecated="not deprecated">
  32877. </field>
  32878. <field name="FLOAT" type="byte"
  32879. transient="false" volatile="false"
  32880. static="true" final="true" visibility="public"
  32881. deprecated="not deprecated">
  32882. </field>
  32883. <field name="INT" type="byte"
  32884. transient="false" volatile="false"
  32885. static="true" final="true" visibility="public"
  32886. deprecated="not deprecated">
  32887. </field>
  32888. <field name="LONG" type="byte"
  32889. transient="false" volatile="false"
  32890. static="true" final="true" visibility="public"
  32891. deprecated="not deprecated">
  32892. </field>
  32893. <field name="MAP" type="byte"
  32894. transient="false" volatile="false"
  32895. static="true" final="true" visibility="public"
  32896. deprecated="not deprecated">
  32897. </field>
  32898. <field name="STRING" type="byte"
  32899. transient="false" volatile="false"
  32900. static="true" final="true" visibility="public"
  32901. deprecated="not deprecated">
  32902. </field>
  32903. <field name="STRUCT" type="byte"
  32904. transient="false" volatile="false"
  32905. static="true" final="true" visibility="public"
  32906. deprecated="not deprecated">
  32907. </field>
  32908. <field name="VECTOR" type="byte"
  32909. transient="false" volatile="false"
  32910. static="true" final="true" visibility="public"
  32911. deprecated="not deprecated">
  32912. </field>
  32913. <doc>
  32914. <![CDATA[constants representing the IDL types we support]]>
  32915. </doc>
  32916. </class>
  32917. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  32918. <!-- start class org.apache.hadoop.record.meta.Utils -->
  32919. <class name="Utils" extends="java.lang.Object"
  32920. abstract="false"
  32921. static="false" final="false" visibility="public"
  32922. deprecated="not deprecated">
  32923. <method name="skip"
  32924. abstract="false" native="false" synchronized="false"
  32925. static="true" final="false" visibility="public"
  32926. deprecated="not deprecated">
  32927. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32928. <param name="tag" type="java.lang.String"/>
  32929. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  32930. <exception name="IOException" type="java.io.IOException"/>
  32931. <doc>
  32932. <![CDATA[read/skip bytes from stream based on a type]]>
  32933. </doc>
  32934. </method>
  32935. <doc>
  32936. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  32937. </doc>
  32938. </class>
  32939. <!-- end class org.apache.hadoop.record.meta.Utils -->
  32940. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  32941. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  32942. abstract="false"
  32943. static="false" final="false" visibility="public"
  32944. deprecated="not deprecated">
  32945. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  32946. static="false" final="false" visibility="public"
  32947. deprecated="not deprecated">
  32948. </constructor>
  32949. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  32950. abstract="false" native="false" synchronized="false"
  32951. static="false" final="false" visibility="public"
  32952. deprecated="not deprecated">
  32953. </method>
  32954. <method name="equals" return="boolean"
  32955. abstract="false" native="false" synchronized="false"
  32956. static="false" final="false" visibility="public"
  32957. deprecated="not deprecated">
  32958. <param name="o" type="java.lang.Object"/>
  32959. <doc>
  32960. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  32961. same type]]>
  32962. </doc>
  32963. </method>
  32964. <method name="hashCode" return="int"
  32965. abstract="false" native="false" synchronized="false"
  32966. static="false" final="false" visibility="public"
  32967. deprecated="not deprecated">
  32968. <doc>
  32969. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  32970. be used as a hashmap key]]>
  32971. </doc>
  32972. </method>
  32973. <doc>
  32974. <![CDATA[Represents typeID for vector.]]>
  32975. </doc>
  32976. </class>
  32977. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  32978. </package>
  32979. <package name="org.apache.hadoop.security">
  32980. <!-- start class org.apache.hadoop.security.AccessControlException -->
  32981. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  32982. abstract="false"
  32983. static="false" final="false" visibility="public"
  32984. deprecated="not deprecated">
  32985. <constructor name="AccessControlException"
  32986. static="false" final="false" visibility="public"
  32987. deprecated="not deprecated">
  32988. <doc>
  32989. <![CDATA[Default constructor is needed for unwrapping from
  32990. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  32991. </doc>
  32992. </constructor>
  32993. <constructor name="AccessControlException" type="java.lang.String"
  32994. static="false" final="false" visibility="public"
  32995. deprecated="not deprecated">
  32996. <doc>
  32997. <![CDATA[Constructs an {@link AccessControlException}
  32998. with the specified detail message.
  32999. @param s the detail message.]]>
  33000. </doc>
  33001. </constructor>
  33002. <constructor name="AccessControlException" type="java.lang.Throwable"
  33003. static="false" final="false" visibility="public"
  33004. deprecated="not deprecated">
  33005. <doc>
  33006. <![CDATA[Constructs a new exception with the specified cause and a detail
  33007. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  33008. typically contains the class and detail message of <tt>cause</tt>).
  33009. @param cause the cause (which is saved for later retrieval by the
  33010. {@link #getCause()} method). (A <tt>null</tt> value is
  33011. permitted, and indicates that the cause is nonexistent or
  33012. unknown.)]]>
  33013. </doc>
  33014. </constructor>
  33015. <doc>
  33016. <![CDATA[An exception class for access control related issues.]]>
  33017. </doc>
  33018. </class>
  33019. <!-- end class org.apache.hadoop.security.AccessControlException -->
  33020. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  33021. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  33022. abstract="false"
  33023. static="false" final="false" visibility="public"
  33024. deprecated="not deprecated">
  33025. <constructor name="AuthenticationFilterInitializer"
  33026. static="false" final="false" visibility="public"
  33027. deprecated="not deprecated">
  33028. </constructor>
  33029. <method name="initFilter"
  33030. abstract="false" native="false" synchronized="false"
  33031. static="false" final="false" visibility="public"
  33032. deprecated="not deprecated">
  33033. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  33034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33035. <doc>
  33036. <![CDATA[Initializes Alfredo AuthenticationFilter.
  33037. <p/>
  33038. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  33039. configuration properties prefixed with "hadoop.http.authentication."
  33040. @param container The filter container
  33041. @param conf Configuration for run-time parameters]]>
  33042. </doc>
  33043. </method>
  33044. <doc>
  33045. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  33046. Kerberos HTTP SPENGO authentication.
  33047. <p/>
  33048. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  33049. authentication for Hadoop JobTracker, NameNode, DataNodes and
  33050. TaskTrackers.
  33051. <p/>
  33052. Refer to the <code>core-default.xml</code> file, after the comment
  33053. 'HTTP Authentication' for details on the configuration options.
  33054. All related configuration properties have 'hadoop.http.authentication.'
  33055. as prefix.]]>
  33056. </doc>
  33057. </class>
  33058. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  33059. <!-- start class org.apache.hadoop.security.Credentials -->
  33060. <class name="Credentials" extends="java.lang.Object"
  33061. abstract="false"
  33062. static="false" final="false" visibility="public"
  33063. deprecated="not deprecated">
  33064. <implements name="org.apache.hadoop.io.Writable"/>
  33065. <constructor name="Credentials"
  33066. static="false" final="false" visibility="public"
  33067. deprecated="not deprecated">
  33068. </constructor>
  33069. <method name="getSecretKey" return="byte[]"
  33070. abstract="false" native="false" synchronized="false"
  33071. static="false" final="false" visibility="public"
  33072. deprecated="not deprecated">
  33073. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33074. <doc>
  33075. <![CDATA[Returns the key bytes for the alias
  33076. @param alias the alias for the key
  33077. @return key for this alias]]>
  33078. </doc>
  33079. </method>
  33080. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  33081. abstract="false" native="false" synchronized="false"
  33082. static="false" final="false" visibility="public"
  33083. deprecated="not deprecated">
  33084. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33085. <doc>
  33086. <![CDATA[Returns the Token object for the alias
  33087. @param alias the alias for the Token
  33088. @return token for this alias]]>
  33089. </doc>
  33090. </method>
  33091. <method name="addToken"
  33092. abstract="false" native="false" synchronized="false"
  33093. static="false" final="false" visibility="public"
  33094. deprecated="not deprecated">
  33095. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33096. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  33097. <doc>
  33098. <![CDATA[Add a token in the storage (in memory)
  33099. @param alias the alias for the key
  33100. @param t the token object]]>
  33101. </doc>
  33102. </method>
  33103. <method name="getAllTokens" return="java.util.Collection"
  33104. abstract="false" native="false" synchronized="false"
  33105. static="false" final="false" visibility="public"
  33106. deprecated="not deprecated">
  33107. <doc>
  33108. <![CDATA[Return all the tokens in the in-memory map]]>
  33109. </doc>
  33110. </method>
  33111. <method name="numberOfTokens" return="int"
  33112. abstract="false" native="false" synchronized="false"
  33113. static="false" final="false" visibility="public"
  33114. deprecated="not deprecated">
  33115. <doc>
  33116. <![CDATA[@return number of Tokens in the in-memory map]]>
  33117. </doc>
  33118. </method>
  33119. <method name="numberOfSecretKeys" return="int"
  33120. abstract="false" native="false" synchronized="false"
  33121. static="false" final="false" visibility="public"
  33122. deprecated="not deprecated">
  33123. <doc>
  33124. <![CDATA[@return number of keys in the in-memory map]]>
  33125. </doc>
  33126. </method>
  33127. <method name="addSecretKey"
  33128. abstract="false" native="false" synchronized="false"
  33129. static="false" final="false" visibility="public"
  33130. deprecated="not deprecated">
  33131. <param name="alias" type="org.apache.hadoop.io.Text"/>
  33132. <param name="key" type="byte[]"/>
  33133. <doc>
  33134. <![CDATA[Set the key for an alias
  33135. @param alias the alias for the key
  33136. @param key the key bytes]]>
  33137. </doc>
  33138. </method>
  33139. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  33140. abstract="false" native="false" synchronized="false"
  33141. static="true" final="false" visibility="public"
  33142. deprecated="not deprecated">
  33143. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33144. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33145. <exception name="IOException" type="java.io.IOException"/>
  33146. <doc>
  33147. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  33148. therein in the passed UGI
  33149. @param filename
  33150. @param conf
  33151. @throws IOException]]>
  33152. </doc>
  33153. </method>
  33154. <method name="readTokenStorageStream"
  33155. abstract="false" native="false" synchronized="false"
  33156. static="false" final="false" visibility="public"
  33157. deprecated="not deprecated">
  33158. <param name="in" type="java.io.DataInputStream"/>
  33159. <exception name="IOException" type="java.io.IOException"/>
  33160. <doc>
  33161. <![CDATA[Convenience method for reading a token storage file directly from a
  33162. datainputstream]]>
  33163. </doc>
  33164. </method>
  33165. <method name="writeTokenStorageToStream"
  33166. abstract="false" native="false" synchronized="false"
  33167. static="false" final="false" visibility="public"
  33168. deprecated="not deprecated">
  33169. <param name="os" type="java.io.DataOutputStream"/>
  33170. <exception name="IOException" type="java.io.IOException"/>
  33171. </method>
  33172. <method name="writeTokenStorageFile"
  33173. abstract="false" native="false" synchronized="false"
  33174. static="false" final="false" visibility="public"
  33175. deprecated="not deprecated">
  33176. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  33177. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33178. <exception name="IOException" type="java.io.IOException"/>
  33179. </method>
  33180. <method name="write"
  33181. abstract="false" native="false" synchronized="false"
  33182. static="false" final="false" visibility="public"
  33183. deprecated="not deprecated">
  33184. <param name="out" type="java.io.DataOutput"/>
  33185. <exception name="IOException" type="java.io.IOException"/>
  33186. <doc>
  33187. <![CDATA[Stores all the keys to DataOutput
  33188. @param out
  33189. @throws IOException]]>
  33190. </doc>
  33191. </method>
  33192. <method name="readFields"
  33193. abstract="false" native="false" synchronized="false"
  33194. static="false" final="false" visibility="public"
  33195. deprecated="not deprecated">
  33196. <param name="in" type="java.io.DataInput"/>
  33197. <exception name="IOException" type="java.io.IOException"/>
  33198. <doc>
  33199. <![CDATA[Loads all the keys
  33200. @param in
  33201. @throws IOException]]>
  33202. </doc>
  33203. </method>
  33204. <method name="addAll"
  33205. abstract="false" native="false" synchronized="false"
  33206. static="false" final="false" visibility="public"
  33207. deprecated="not deprecated">
  33208. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  33209. <doc>
  33210. <![CDATA[Copy all of the credentials from one credential object into another.
  33211. @param other the credentials to copy]]>
  33212. </doc>
  33213. </method>
  33214. <doc>
  33215. <![CDATA[A class that provides the facilities of reading and writing
  33216. secret keys and Tokens.]]>
  33217. </doc>
  33218. </class>
  33219. <!-- end class org.apache.hadoop.security.Credentials -->
  33220. <!-- start class org.apache.hadoop.security.Groups -->
  33221. <class name="Groups" extends="java.lang.Object"
  33222. abstract="false"
  33223. static="false" final="false" visibility="public"
  33224. deprecated="not deprecated">
  33225. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  33226. static="false" final="false" visibility="public"
  33227. deprecated="not deprecated">
  33228. </constructor>
  33229. <method name="getGroups" return="java.util.List"
  33230. abstract="false" native="false" synchronized="false"
  33231. static="false" final="false" visibility="public"
  33232. deprecated="not deprecated">
  33233. <param name="user" type="java.lang.String"/>
  33234. <exception name="IOException" type="java.io.IOException"/>
  33235. <doc>
  33236. <![CDATA[Get the group memberships of a given user.
  33237. @param user User's name
  33238. @return the group memberships of the user
  33239. @throws IOException]]>
  33240. </doc>
  33241. </method>
  33242. <method name="refresh"
  33243. abstract="false" native="false" synchronized="false"
  33244. static="false" final="false" visibility="public"
  33245. deprecated="not deprecated">
  33246. <doc>
  33247. <![CDATA[Refresh all user-to-groups mappings.]]>
  33248. </doc>
  33249. </method>
  33250. <method name="cacheGroupsAdd"
  33251. abstract="false" native="false" synchronized="false"
  33252. static="false" final="false" visibility="public"
  33253. deprecated="not deprecated">
  33254. <param name="groups" type="java.util.List"/>
  33255. </method>
  33256. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  33257. abstract="false" native="false" synchronized="false"
  33258. static="true" final="false" visibility="public"
  33259. deprecated="not deprecated">
  33260. <doc>
  33261. <![CDATA[Get the groups being used to map user-to-groups.
  33262. @return the groups being used to map user-to-groups.]]>
  33263. </doc>
  33264. </method>
  33265. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  33266. abstract="false" native="false" synchronized="false"
  33267. static="true" final="false" visibility="public"
  33268. deprecated="not deprecated">
  33269. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33270. </method>
  33271. <doc>
  33272. <![CDATA[A user-to-groups mapping service.
  33273. {@link Groups} allows for server to get the various group memberships
  33274. of a given user via the {@link #getGroups(String)} call, thus ensuring
  33275. a consistent user-to-groups mapping and protects against vagaries of
  33276. different mappings on servers and clients in a Hadoop cluster.]]>
  33277. </doc>
  33278. </class>
  33279. <!-- end class org.apache.hadoop.security.Groups -->
  33280. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  33281. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  33282. abstract="false"
  33283. static="false" final="false" visibility="public"
  33284. deprecated="not deprecated">
  33285. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  33286. <constructor name="JniBasedUnixGroupsMapping"
  33287. static="false" final="false" visibility="public"
  33288. deprecated="not deprecated">
  33289. </constructor>
  33290. <method name="getGroups" return="java.util.List"
  33291. abstract="false" native="false" synchronized="false"
  33292. static="false" final="false" visibility="public"
  33293. deprecated="not deprecated">
  33294. <param name="user" type="java.lang.String"/>
  33295. <exception name="IOException" type="java.io.IOException"/>
  33296. </method>
  33297. <method name="cacheGroupsRefresh"
  33298. abstract="false" native="false" synchronized="false"
  33299. static="false" final="false" visibility="public"
  33300. deprecated="not deprecated">
  33301. <exception name="IOException" type="java.io.IOException"/>
  33302. </method>
  33303. <method name="cacheGroupsAdd"
  33304. abstract="false" native="false" synchronized="false"
  33305. static="false" final="false" visibility="public"
  33306. deprecated="not deprecated">
  33307. <param name="groups" type="java.util.List"/>
  33308. <exception name="IOException" type="java.io.IOException"/>
  33309. </method>
  33310. <doc>
  33311. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  33312. that invokes libC calls to get the group
  33313. memberships of a given user.]]>
  33314. </doc>
  33315. </class>
  33316. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  33317. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  33318. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  33319. abstract="false"
  33320. static="false" final="false" visibility="public"
  33321. deprecated="not deprecated">
  33322. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  33323. static="false" final="false" visibility="public"
  33324. deprecated="not deprecated">
  33325. </constructor>
  33326. <method name="getGroups" return="java.util.List"
  33327. abstract="false" native="false" synchronized="false"
  33328. static="false" final="false" visibility="public"
  33329. deprecated="not deprecated">
  33330. <param name="user" type="java.lang.String"/>
  33331. <exception name="IOException" type="java.io.IOException"/>
  33332. <doc>
  33333. <![CDATA[Gets unix groups and netgroups for the user.
  33334. It gets all unix groups as returned by id -Gn but it
  33335. only returns netgroups that are used in ACLs (there is
  33336. no way to get all netgroups for a given user, see
  33337. documentation for getent netgroup)]]>
  33338. </doc>
  33339. </method>
  33340. <method name="cacheGroupsRefresh"
  33341. abstract="false" native="false" synchronized="false"
  33342. static="false" final="false" visibility="public"
  33343. deprecated="not deprecated">
  33344. <exception name="IOException" type="java.io.IOException"/>
  33345. </method>
  33346. <method name="cacheGroupsAdd"
  33347. abstract="false" native="false" synchronized="false"
  33348. static="false" final="false" visibility="public"
  33349. deprecated="not deprecated">
  33350. <param name="groups" type="java.util.List"/>
  33351. <exception name="IOException" type="java.io.IOException"/>
  33352. </method>
  33353. <method name="getUsersForNetgroup" return="java.util.List"
  33354. abstract="false" native="false" synchronized="true"
  33355. static="false" final="false" visibility="protected"
  33356. deprecated="not deprecated">
  33357. <param name="netgroup" type="java.lang.String"/>
  33358. <doc>
  33359. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  33360. are not reentrant we need to make this synchronized (see
  33361. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  33362. </doc>
  33363. </method>
  33364. <doc>
  33365. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  33366. that invokes libC calls to get the group
  33367. memberships of a given user.]]>
  33368. </doc>
  33369. </class>
  33370. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  33371. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  33372. <interface name="KerberosInfo" abstract="true"
  33373. static="false" final="false" visibility="public"
  33374. deprecated="not deprecated">
  33375. <implements name="java.lang.annotation.Annotation"/>
  33376. <method name="serverPrincipal" return="java.lang.String"
  33377. abstract="false" native="false" synchronized="false"
  33378. static="false" final="false" visibility="public"
  33379. deprecated="not deprecated">
  33380. <doc>
  33381. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  33382. </doc>
  33383. </method>
  33384. <method name="clientPrincipal" return="java.lang.String"
  33385. abstract="false" native="false" synchronized="false"
  33386. static="false" final="false" visibility="public"
  33387. deprecated="not deprecated">
  33388. </method>
  33389. <doc>
  33390. <![CDATA[Indicates Kerberos related information to be used]]>
  33391. </doc>
  33392. </interface>
  33393. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  33394. <!-- start class org.apache.hadoop.security.KerberosName -->
  33395. <class name="KerberosName" extends="java.lang.Object"
  33396. abstract="false"
  33397. static="false" final="false" visibility="public"
  33398. deprecated="not deprecated">
  33399. <constructor name="KerberosName" type="java.lang.String"
  33400. static="false" final="false" visibility="public"
  33401. deprecated="not deprecated">
  33402. <doc>
  33403. <![CDATA[Create a name from the full Kerberos principal name.
  33404. @param name]]>
  33405. </doc>
  33406. </constructor>
  33407. <method name="getDefaultRealm" return="java.lang.String"
  33408. abstract="false" native="false" synchronized="false"
  33409. static="false" final="false" visibility="public"
  33410. deprecated="not deprecated">
  33411. <doc>
  33412. <![CDATA[Get the configured default realm.
  33413. @return the default realm from the krb5.conf]]>
  33414. </doc>
  33415. </method>
  33416. <method name="toString" return="java.lang.String"
  33417. abstract="false" native="false" synchronized="false"
  33418. static="false" final="false" visibility="public"
  33419. deprecated="not deprecated">
  33420. <doc>
  33421. <![CDATA[Put the name back together from the parts.]]>
  33422. </doc>
  33423. </method>
  33424. <method name="getServiceName" return="java.lang.String"
  33425. abstract="false" native="false" synchronized="false"
  33426. static="false" final="false" visibility="public"
  33427. deprecated="not deprecated">
  33428. <doc>
  33429. <![CDATA[Get the first component of the name.
  33430. @return the first section of the Kerberos principal name]]>
  33431. </doc>
  33432. </method>
  33433. <method name="getHostName" return="java.lang.String"
  33434. abstract="false" native="false" synchronized="false"
  33435. static="false" final="false" visibility="public"
  33436. deprecated="not deprecated">
  33437. <doc>
  33438. <![CDATA[Get the second component of the name.
  33439. @return the second section of the Kerberos principal name, and may be null]]>
  33440. </doc>
  33441. </method>
  33442. <method name="getRealm" return="java.lang.String"
  33443. abstract="false" native="false" synchronized="false"
  33444. static="false" final="false" visibility="public"
  33445. deprecated="not deprecated">
  33446. <doc>
  33447. <![CDATA[Get the realm of the name.
  33448. @return the realm of the name, may be null]]>
  33449. </doc>
  33450. </method>
  33451. <method name="setConfiguration"
  33452. abstract="false" native="false" synchronized="false"
  33453. static="true" final="false" visibility="public"
  33454. deprecated="not deprecated">
  33455. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33456. <exception name="IOException" type="java.io.IOException"/>
  33457. <doc>
  33458. <![CDATA[Set the static configuration to get the rules.
  33459. @param conf the new configuration
  33460. @throws IOException]]>
  33461. </doc>
  33462. </method>
  33463. <method name="setRules"
  33464. abstract="false" native="false" synchronized="false"
  33465. static="true" final="false" visibility="public"
  33466. deprecated="not deprecated">
  33467. <param name="ruleString" type="java.lang.String"/>
  33468. <doc>
  33469. <![CDATA[Set the rules.
  33470. @param ruleString the rules string.]]>
  33471. </doc>
  33472. </method>
  33473. <method name="getShortName" return="java.lang.String"
  33474. abstract="false" native="false" synchronized="false"
  33475. static="false" final="false" visibility="public"
  33476. deprecated="not deprecated">
  33477. <exception name="IOException" type="java.io.IOException"/>
  33478. <doc>
  33479. <![CDATA[Get the translation of the principal name into an operating system
  33480. user name.
  33481. @return the short name
  33482. @throws IOException]]>
  33483. </doc>
  33484. </method>
  33485. <method name="printRules"
  33486. abstract="false" native="false" synchronized="false"
  33487. static="true" final="false" visibility="public"
  33488. deprecated="not deprecated">
  33489. <exception name="IOException" type="java.io.IOException"/>
  33490. </method>
  33491. <method name="main"
  33492. abstract="false" native="false" synchronized="false"
  33493. static="true" final="false" visibility="public"
  33494. deprecated="not deprecated">
  33495. <param name="args" type="java.lang.String[]"/>
  33496. <exception name="Exception" type="java.lang.Exception"/>
  33497. </method>
  33498. <doc>
  33499. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  33500. particular, it splits them apart and translates them down into local
  33501. operating system names.]]>
  33502. </doc>
  33503. </class>
  33504. <!-- end class org.apache.hadoop.security.KerberosName -->
  33505. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  33506. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  33507. abstract="false"
  33508. static="true" final="false" visibility="public"
  33509. deprecated="not deprecated">
  33510. </class>
  33511. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  33512. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  33513. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  33514. abstract="false"
  33515. static="true" final="false" visibility="public"
  33516. deprecated="not deprecated">
  33517. </class>
  33518. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  33519. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  33520. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  33521. abstract="false"
  33522. static="false" final="false" visibility="public"
  33523. deprecated="not deprecated">
  33524. <constructor name="Krb5AndCertsSslSocketConnector"
  33525. static="false" final="false" visibility="public"
  33526. deprecated="not deprecated">
  33527. </constructor>
  33528. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33529. static="false" final="false" visibility="public"
  33530. deprecated="not deprecated">
  33531. </constructor>
  33532. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  33533. abstract="false" native="false" synchronized="false"
  33534. static="false" final="false" visibility="protected"
  33535. deprecated="not deprecated">
  33536. <exception name="Exception" type="java.lang.Exception"/>
  33537. </method>
  33538. <method name="newServerSocket" return="java.net.ServerSocket"
  33539. abstract="false" native="false" synchronized="false"
  33540. static="false" final="false" visibility="protected"
  33541. deprecated="not deprecated">
  33542. <param name="host" type="java.lang.String"/>
  33543. <param name="port" type="int"/>
  33544. <param name="backlog" type="int"/>
  33545. <exception name="IOException" type="java.io.IOException"/>
  33546. </method>
  33547. <method name="customize"
  33548. abstract="false" native="false" synchronized="false"
  33549. static="false" final="false" visibility="public"
  33550. deprecated="not deprecated">
  33551. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  33552. <param name="request" type="org.mortbay.jetty.Request"/>
  33553. <exception name="IOException" type="java.io.IOException"/>
  33554. </method>
  33555. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  33556. transient="false" volatile="false"
  33557. static="true" final="true" visibility="public"
  33558. deprecated="not deprecated">
  33559. </field>
  33560. <doc>
  33561. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  33562. Kerberos5ized SSL sockets. The only change in behavior from superclass
  33563. is that we no longer honor requests to turn off NeedAuthentication when
  33564. running with Kerberos support.]]>
  33565. </doc>
  33566. </class>
  33567. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  33568. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  33569. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  33570. abstract="false"
  33571. static="true" final="false" visibility="public"
  33572. deprecated="not deprecated">
  33573. <implements name="javax.servlet.Filter"/>
  33574. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  33575. static="false" final="false" visibility="public"
  33576. deprecated="not deprecated">
  33577. </constructor>
  33578. <method name="doFilter"
  33579. abstract="false" native="false" synchronized="false"
  33580. static="false" final="false" visibility="public"
  33581. deprecated="not deprecated">
  33582. <param name="req" type="javax.servlet.ServletRequest"/>
  33583. <param name="resp" type="javax.servlet.ServletResponse"/>
  33584. <param name="chain" type="javax.servlet.FilterChain"/>
  33585. <exception name="IOException" type="java.io.IOException"/>
  33586. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33587. </method>
  33588. <method name="init"
  33589. abstract="false" native="false" synchronized="false"
  33590. static="false" final="false" visibility="public"
  33591. deprecated="not deprecated">
  33592. <param name="arg0" type="javax.servlet.FilterConfig"/>
  33593. <exception name="ServletException" type="javax.servlet.ServletException"/>
  33594. </method>
  33595. <method name="destroy"
  33596. abstract="false" native="false" synchronized="false"
  33597. static="false" final="false" visibility="public"
  33598. deprecated="not deprecated">
  33599. </method>
  33600. <doc>
  33601. <![CDATA[Filter that takes the Kerberos principal identified in the
  33602. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  33603. at runtime, setting the principal and short name.]]>
  33604. </doc>
  33605. </class>
  33606. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  33607. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  33608. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  33609. abstract="false"
  33610. static="true" final="true" visibility="public"
  33611. deprecated="not deprecated">
  33612. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  33613. abstract="false" native="false" synchronized="false"
  33614. static="true" final="false" visibility="public"
  33615. deprecated="not deprecated">
  33616. </method>
  33617. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33618. abstract="false" native="false" synchronized="false"
  33619. static="true" final="false" visibility="public"
  33620. deprecated="not deprecated">
  33621. <param name="name" type="java.lang.String"/>
  33622. </method>
  33623. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33624. transient="false" volatile="false"
  33625. static="true" final="true" visibility="public"
  33626. deprecated="not deprecated">
  33627. </field>
  33628. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33629. transient="false" volatile="false"
  33630. static="true" final="true" visibility="public"
  33631. deprecated="not deprecated">
  33632. </field>
  33633. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  33634. transient="false" volatile="false"
  33635. static="true" final="true" visibility="public"
  33636. deprecated="not deprecated">
  33637. </field>
  33638. </class>
  33639. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  33640. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  33641. <class name="NetgroupCache" extends="java.lang.Object"
  33642. abstract="false"
  33643. static="false" final="false" visibility="public"
  33644. deprecated="not deprecated">
  33645. <constructor name="NetgroupCache"
  33646. static="false" final="false" visibility="public"
  33647. deprecated="not deprecated">
  33648. </constructor>
  33649. <method name="getNetgroups"
  33650. abstract="false" native="false" synchronized="false"
  33651. static="false" final="false" visibility="public"
  33652. deprecated="not deprecated">
  33653. <param name="user" type="java.lang.String"/>
  33654. <param name="groups" type="java.util.List"/>
  33655. </method>
  33656. <method name="getNetgroupNames" return="java.util.List"
  33657. abstract="false" native="false" synchronized="false"
  33658. static="false" final="false" visibility="public"
  33659. deprecated="not deprecated">
  33660. </method>
  33661. <method name="isCached" return="boolean"
  33662. abstract="false" native="false" synchronized="false"
  33663. static="false" final="false" visibility="public"
  33664. deprecated="not deprecated">
  33665. <param name="group" type="java.lang.String"/>
  33666. </method>
  33667. <method name="clear"
  33668. abstract="false" native="false" synchronized="false"
  33669. static="false" final="false" visibility="public"
  33670. deprecated="not deprecated">
  33671. </method>
  33672. <method name="add"
  33673. abstract="false" native="false" synchronized="false"
  33674. static="false" final="false" visibility="public"
  33675. deprecated="not deprecated">
  33676. <param name="group" type="java.lang.String"/>
  33677. <param name="users" type="java.util.List"/>
  33678. </method>
  33679. <doc>
  33680. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  33681. to user-to-group map]]>
  33682. </doc>
  33683. </class>
  33684. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  33685. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  33686. <interface name="RefreshUserMappingsProtocol" abstract="true"
  33687. static="false" final="false" visibility="public"
  33688. deprecated="not deprecated">
  33689. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  33690. <method name="refreshUserToGroupsMappings"
  33691. abstract="false" native="false" synchronized="false"
  33692. static="false" final="false" visibility="public"
  33693. deprecated="not deprecated">
  33694. <exception name="IOException" type="java.io.IOException"/>
  33695. <doc>
  33696. <![CDATA[Refresh user to group mappings.
  33697. @throws IOException]]>
  33698. </doc>
  33699. </method>
  33700. <method name="refreshSuperUserGroupsConfiguration"
  33701. abstract="false" native="false" synchronized="false"
  33702. static="false" final="false" visibility="public"
  33703. deprecated="not deprecated">
  33704. <exception name="IOException" type="java.io.IOException"/>
  33705. <doc>
  33706. <![CDATA[Refresh superuser proxy group list
  33707. @throws IOException]]>
  33708. </doc>
  33709. </method>
  33710. <field name="versionID" type="long"
  33711. transient="false" volatile="false"
  33712. static="true" final="true" visibility="public"
  33713. deprecated="not deprecated">
  33714. <doc>
  33715. <![CDATA[Version 1: Initial version.]]>
  33716. </doc>
  33717. </field>
  33718. <doc>
  33719. <![CDATA[Protocol use]]>
  33720. </doc>
  33721. </interface>
  33722. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  33723. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  33724. <class name="SaslInputStream" extends="java.io.InputStream"
  33725. abstract="false"
  33726. static="false" final="false" visibility="public"
  33727. deprecated="not deprecated">
  33728. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  33729. static="false" final="false" visibility="public"
  33730. deprecated="not deprecated">
  33731. <doc>
  33732. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  33733. Note: if the specified InputStream or SaslServer is null, a
  33734. NullPointerException may be thrown later when they are used.
  33735. @param inStream
  33736. the InputStream to be processed
  33737. @param saslServer
  33738. an initialized SaslServer object]]>
  33739. </doc>
  33740. </constructor>
  33741. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  33742. static="false" final="false" visibility="public"
  33743. deprecated="not deprecated">
  33744. <doc>
  33745. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  33746. Note: if the specified InputStream or SaslClient is null, a
  33747. NullPointerException may be thrown later when they are used.
  33748. @param inStream
  33749. the InputStream to be processed
  33750. @param saslClient
  33751. an initialized SaslClient object]]>
  33752. </doc>
  33753. </constructor>
  33754. <method name="read" return="int"
  33755. abstract="false" native="false" synchronized="false"
  33756. static="false" final="false" visibility="public"
  33757. deprecated="not deprecated">
  33758. <exception name="IOException" type="java.io.IOException"/>
  33759. <doc>
  33760. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  33761. returned as an <code>int</code> in the range <code>0</code> to
  33762. <code>255</code>. If no byte is available because the end of the stream has
  33763. been reached, the value <code>-1</code> is returned. This method blocks
  33764. until input data is available, the end of the stream is detected, or an
  33765. exception is thrown.
  33766. <p>
  33767. @return the next byte of data, or <code>-1</code> if the end of the stream
  33768. is reached.
  33769. @exception IOException
  33770. if an I/O error occurs.]]>
  33771. </doc>
  33772. </method>
  33773. <method name="read" return="int"
  33774. abstract="false" native="false" synchronized="false"
  33775. static="false" final="false" visibility="public"
  33776. deprecated="not deprecated">
  33777. <param name="b" type="byte[]"/>
  33778. <exception name="IOException" type="java.io.IOException"/>
  33779. <doc>
  33780. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  33781. an array of bytes.
  33782. <p>
  33783. The <code>read</code> method of <code>InputStream</code> calls the
  33784. <code>read</code> method of three arguments with the arguments
  33785. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  33786. @param b
  33787. the buffer into which the data is read.
  33788. @return the total number of bytes read into the buffer, or <code>-1</code>
  33789. is there is no more data because the end of the stream has been
  33790. reached.
  33791. @exception IOException
  33792. if an I/O error occurs.]]>
  33793. </doc>
  33794. </method>
  33795. <method name="read" return="int"
  33796. abstract="false" native="false" synchronized="false"
  33797. static="false" final="false" visibility="public"
  33798. deprecated="not deprecated">
  33799. <param name="b" type="byte[]"/>
  33800. <param name="off" type="int"/>
  33801. <param name="len" type="int"/>
  33802. <exception name="IOException" type="java.io.IOException"/>
  33803. <doc>
  33804. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  33805. array of bytes. This method blocks until some input is available. If the
  33806. first argument is <code>null,</code> up to <code>len</code> bytes are read
  33807. and discarded.
  33808. @param b
  33809. the buffer into which the data is read.
  33810. @param off
  33811. the start offset of the data.
  33812. @param len
  33813. the maximum number of bytes read.
  33814. @return the total number of bytes read into the buffer, or <code>-1</code>
  33815. if there is no more data because the end of the stream has been
  33816. reached.
  33817. @exception IOException
  33818. if an I/O error occurs.]]>
  33819. </doc>
  33820. </method>
  33821. <method name="skip" return="long"
  33822. abstract="false" native="false" synchronized="false"
  33823. static="false" final="false" visibility="public"
  33824. deprecated="not deprecated">
  33825. <param name="n" type="long"/>
  33826. <exception name="IOException" type="java.io.IOException"/>
  33827. <doc>
  33828. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  33829. this input stream without blocking.
  33830. <p>
  33831. Fewer bytes than requested might be skipped. The actual number of bytes
  33832. skipped is equal to <code>n</code> or the result of a call to
  33833. {@link #available() <code>available</code>}, whichever is smaller. If
  33834. <code>n</code> is less than zero, no bytes are skipped.
  33835. <p>
  33836. The actual number of bytes skipped is returned.
  33837. @param n
  33838. the number of bytes to be skipped.
  33839. @return the actual number of bytes skipped.
  33840. @exception IOException
  33841. if an I/O error occurs.]]>
  33842. </doc>
  33843. </method>
  33844. <method name="available" return="int"
  33845. abstract="false" native="false" synchronized="false"
  33846. static="false" final="false" visibility="public"
  33847. deprecated="not deprecated">
  33848. <exception name="IOException" type="java.io.IOException"/>
  33849. <doc>
  33850. <![CDATA[Returns the number of bytes that can be read from this input stream without
  33851. blocking. The <code>available</code> method of <code>InputStream</code>
  33852. returns <code>0</code>. This method <B>should</B> be overridden by
  33853. subclasses.
  33854. @return the number of bytes that can be read from this input stream without
  33855. blocking.
  33856. @exception IOException
  33857. if an I/O error occurs.]]>
  33858. </doc>
  33859. </method>
  33860. <method name="close"
  33861. abstract="false" native="false" synchronized="false"
  33862. static="false" final="false" visibility="public"
  33863. deprecated="not deprecated">
  33864. <exception name="IOException" type="java.io.IOException"/>
  33865. <doc>
  33866. <![CDATA[Closes this input stream and releases any system resources associated with
  33867. the stream.
  33868. <p>
  33869. The <code>close</code> method of <code>SASLInputStream</code> calls the
  33870. <code>close</code> method of its underlying input stream.
  33871. @exception IOException
  33872. if an I/O error occurs.]]>
  33873. </doc>
  33874. </method>
  33875. <method name="markSupported" return="boolean"
  33876. abstract="false" native="false" synchronized="false"
  33877. static="false" final="false" visibility="public"
  33878. deprecated="not deprecated">
  33879. <doc>
  33880. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  33881. <code>reset</code> methods, which it does not.
  33882. @return <code>false</code>, since this class does not support the
  33883. <code>mark</code> and <code>reset</code> methods.]]>
  33884. </doc>
  33885. </method>
  33886. <field name="LOG" type="org.apache.commons.logging.Log"
  33887. transient="false" volatile="false"
  33888. static="true" final="true" visibility="public"
  33889. deprecated="not deprecated">
  33890. </field>
  33891. <doc>
  33892. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  33893. SaslClient) so that read() methods return data that are read in from the
  33894. underlying InputStream but have been additionally processed by the SaslServer
  33895. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  33896. initialized before being used by a SaslInputStream.]]>
  33897. </doc>
  33898. </class>
  33899. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  33900. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  33901. <class name="SaslOutputStream" extends="java.io.OutputStream"
  33902. abstract="false"
  33903. static="false" final="false" visibility="public"
  33904. deprecated="not deprecated">
  33905. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  33906. static="false" final="false" visibility="public"
  33907. deprecated="not deprecated">
  33908. <doc>
  33909. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  33910. Note: if the specified OutputStream or SaslServer is null, a
  33911. NullPointerException may be thrown later when they are used.
  33912. @param outStream
  33913. the OutputStream to be processed
  33914. @param saslServer
  33915. an initialized SaslServer object]]>
  33916. </doc>
  33917. </constructor>
  33918. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  33919. static="false" final="false" visibility="public"
  33920. deprecated="not deprecated">
  33921. <doc>
  33922. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  33923. Note: if the specified OutputStream or SaslClient is null, a
  33924. NullPointerException may be thrown later when they are used.
  33925. @param outStream
  33926. the OutputStream to be processed
  33927. @param saslClient
  33928. an initialized SaslClient object]]>
  33929. </doc>
  33930. </constructor>
  33931. <method name="write"
  33932. abstract="false" native="false" synchronized="false"
  33933. static="false" final="false" visibility="public"
  33934. deprecated="not deprecated">
  33935. <param name="b" type="int"/>
  33936. <exception name="IOException" type="java.io.IOException"/>
  33937. <doc>
  33938. <![CDATA[Writes the specified byte to this output stream.
  33939. @param b
  33940. the <code>byte</code>.
  33941. @exception IOException
  33942. if an I/O error occurs.]]>
  33943. </doc>
  33944. </method>
  33945. <method name="write"
  33946. abstract="false" native="false" synchronized="false"
  33947. static="false" final="false" visibility="public"
  33948. deprecated="not deprecated">
  33949. <param name="b" type="byte[]"/>
  33950. <exception name="IOException" type="java.io.IOException"/>
  33951. <doc>
  33952. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  33953. output stream.
  33954. <p>
  33955. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  33956. <code>write</code> method of three arguments with the three arguments
  33957. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  33958. @param b
  33959. the data.
  33960. @exception NullPointerException
  33961. if <code>b</code> is null.
  33962. @exception IOException
  33963. if an I/O error occurs.]]>
  33964. </doc>
  33965. </method>
  33966. <method name="write"
  33967. abstract="false" native="false" synchronized="false"
  33968. static="false" final="false" visibility="public"
  33969. deprecated="not deprecated">
  33970. <param name="inBuf" type="byte[]"/>
  33971. <param name="off" type="int"/>
  33972. <param name="len" type="int"/>
  33973. <exception name="IOException" type="java.io.IOException"/>
  33974. <doc>
  33975. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  33976. offset <code>off</code> to this output stream.
  33977. @param inBuf
  33978. the data.
  33979. @param off
  33980. the start offset in the data.
  33981. @param len
  33982. the number of bytes to write.
  33983. @exception IOException
  33984. if an I/O error occurs.]]>
  33985. </doc>
  33986. </method>
  33987. <method name="flush"
  33988. abstract="false" native="false" synchronized="false"
  33989. static="false" final="false" visibility="public"
  33990. deprecated="not deprecated">
  33991. <exception name="IOException" type="java.io.IOException"/>
  33992. <doc>
  33993. <![CDATA[Flushes this output stream
  33994. @exception IOException
  33995. if an I/O error occurs.]]>
  33996. </doc>
  33997. </method>
  33998. <method name="close"
  33999. abstract="false" native="false" synchronized="false"
  34000. static="false" final="false" visibility="public"
  34001. deprecated="not deprecated">
  34002. <exception name="IOException" type="java.io.IOException"/>
  34003. <doc>
  34004. <![CDATA[Closes this output stream and releases any system resources associated with
  34005. this stream.
  34006. @exception IOException
  34007. if an I/O error occurs.]]>
  34008. </doc>
  34009. </method>
  34010. <doc>
  34011. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  34012. SaslClient) so that write() methods first process the data before writing
  34013. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  34014. object must be fully initialized before being used by a SaslOutputStream.]]>
  34015. </doc>
  34016. </class>
  34017. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  34018. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  34019. <class name="SaslRpcClient" extends="java.lang.Object"
  34020. abstract="false"
  34021. static="false" final="false" visibility="public"
  34022. deprecated="not deprecated">
  34023. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String"
  34024. static="false" final="false" visibility="public"
  34025. deprecated="not deprecated">
  34026. <exception name="IOException" type="java.io.IOException"/>
  34027. <doc>
  34028. <![CDATA[Create a SaslRpcClient for an authentication method
  34029. @param method
  34030. the requested authentication method
  34031. @param token
  34032. token to use if needed by the authentication method]]>
  34033. </doc>
  34034. </constructor>
  34035. <method name="saslConnect" return="boolean"
  34036. abstract="false" native="false" synchronized="false"
  34037. static="false" final="false" visibility="public"
  34038. deprecated="not deprecated">
  34039. <param name="inS" type="java.io.InputStream"/>
  34040. <param name="outS" type="java.io.OutputStream"/>
  34041. <exception name="IOException" type="java.io.IOException"/>
  34042. <doc>
  34043. <![CDATA[Do client side SASL authentication with server via the given InputStream
  34044. and OutputStream
  34045. @param inS
  34046. InputStream to use
  34047. @param outS
  34048. OutputStream to use
  34049. @return true if connection is set up, or false if needs to switch
  34050. to simple Auth.
  34051. @throws IOException]]>
  34052. </doc>
  34053. </method>
  34054. <method name="getInputStream" return="java.io.InputStream"
  34055. abstract="false" native="false" synchronized="false"
  34056. static="false" final="false" visibility="public"
  34057. deprecated="not deprecated">
  34058. <param name="in" type="java.io.InputStream"/>
  34059. <exception name="IOException" type="java.io.IOException"/>
  34060. <doc>
  34061. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  34062. been called.
  34063. @param in
  34064. the InputStream to wrap
  34065. @return a SASL wrapped InputStream
  34066. @throws IOException]]>
  34067. </doc>
  34068. </method>
  34069. <method name="getOutputStream" return="java.io.OutputStream"
  34070. abstract="false" native="false" synchronized="false"
  34071. static="false" final="false" visibility="public"
  34072. deprecated="not deprecated">
  34073. <param name="out" type="java.io.OutputStream"/>
  34074. <exception name="IOException" type="java.io.IOException"/>
  34075. <doc>
  34076. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  34077. been called.
  34078. @param out
  34079. the OutputStream to wrap
  34080. @return a SASL wrapped OutputStream
  34081. @throws IOException]]>
  34082. </doc>
  34083. </method>
  34084. <method name="dispose"
  34085. abstract="false" native="false" synchronized="false"
  34086. static="false" final="false" visibility="public"
  34087. deprecated="not deprecated">
  34088. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  34089. <doc>
  34090. <![CDATA[Release resources used by wrapped saslClient]]>
  34091. </doc>
  34092. </method>
  34093. <field name="LOG" type="org.apache.commons.logging.Log"
  34094. transient="false" volatile="false"
  34095. static="true" final="true" visibility="public"
  34096. deprecated="not deprecated">
  34097. </field>
  34098. <doc>
  34099. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  34100. </doc>
  34101. </class>
  34102. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  34103. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  34104. <class name="SaslRpcServer" extends="java.lang.Object"
  34105. abstract="false"
  34106. static="false" final="false" visibility="public"
  34107. deprecated="not deprecated">
  34108. <constructor name="SaslRpcServer"
  34109. static="false" final="false" visibility="public"
  34110. deprecated="not deprecated">
  34111. </constructor>
  34112. <method name="init"
  34113. abstract="false" native="false" synchronized="false"
  34114. static="true" final="false" visibility="public"
  34115. deprecated="not deprecated">
  34116. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34117. </method>
  34118. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  34119. abstract="false" native="false" synchronized="false"
  34120. static="true" final="false" visibility="public"
  34121. deprecated="not deprecated">
  34122. <param name="id" type="java.lang.String"/>
  34123. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  34124. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34125. </method>
  34126. <method name="splitKerberosName" return="java.lang.String[]"
  34127. abstract="false" native="false" synchronized="false"
  34128. static="true" final="false" visibility="public"
  34129. deprecated="not deprecated">
  34130. <param name="fullName" type="java.lang.String"/>
  34131. <doc>
  34132. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  34133. </doc>
  34134. </method>
  34135. <field name="LOG" type="org.apache.commons.logging.Log"
  34136. transient="false" volatile="false"
  34137. static="true" final="true" visibility="public"
  34138. deprecated="not deprecated">
  34139. </field>
  34140. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  34141. transient="false" volatile="false"
  34142. static="true" final="true" visibility="public"
  34143. deprecated="not deprecated">
  34144. </field>
  34145. <field name="SASL_PROPS" type="java.util.Map"
  34146. transient="false" volatile="false"
  34147. static="true" final="true" visibility="public"
  34148. deprecated="not deprecated">
  34149. </field>
  34150. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  34151. transient="false" volatile="false"
  34152. static="true" final="true" visibility="public"
  34153. deprecated="not deprecated">
  34154. </field>
  34155. <doc>
  34156. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  34157. </doc>
  34158. </class>
  34159. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  34160. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  34161. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  34162. abstract="false"
  34163. static="true" final="true" visibility="public"
  34164. deprecated="not deprecated">
  34165. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  34166. abstract="false" native="false" synchronized="false"
  34167. static="true" final="false" visibility="public"
  34168. deprecated="not deprecated">
  34169. </method>
  34170. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34171. abstract="false" native="false" synchronized="false"
  34172. static="true" final="false" visibility="public"
  34173. deprecated="not deprecated">
  34174. <param name="name" type="java.lang.String"/>
  34175. </method>
  34176. <method name="getMechanismName" return="java.lang.String"
  34177. abstract="false" native="false" synchronized="false"
  34178. static="false" final="false" visibility="public"
  34179. deprecated="not deprecated">
  34180. <doc>
  34181. <![CDATA[Return the SASL mechanism name]]>
  34182. </doc>
  34183. </method>
  34184. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34185. abstract="false" native="false" synchronized="false"
  34186. static="true" final="false" visibility="public"
  34187. deprecated="not deprecated">
  34188. <param name="in" type="java.io.DataInput"/>
  34189. <exception name="IOException" type="java.io.IOException"/>
  34190. <doc>
  34191. <![CDATA[Read from in]]>
  34192. </doc>
  34193. </method>
  34194. <method name="write"
  34195. abstract="false" native="false" synchronized="false"
  34196. static="false" final="false" visibility="public"
  34197. deprecated="not deprecated">
  34198. <param name="out" type="java.io.DataOutput"/>
  34199. <exception name="IOException" type="java.io.IOException"/>
  34200. <doc>
  34201. <![CDATA[Write to out]]>
  34202. </doc>
  34203. </method>
  34204. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34205. transient="false" volatile="false"
  34206. static="true" final="true" visibility="public"
  34207. deprecated="not deprecated">
  34208. </field>
  34209. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34210. transient="false" volatile="false"
  34211. static="true" final="true" visibility="public"
  34212. deprecated="not deprecated">
  34213. </field>
  34214. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  34215. transient="false" volatile="false"
  34216. static="true" final="true" visibility="public"
  34217. deprecated="not deprecated">
  34218. </field>
  34219. <field name="code" type="byte"
  34220. transient="false" volatile="false"
  34221. static="false" final="true" visibility="public"
  34222. deprecated="not deprecated">
  34223. <doc>
  34224. <![CDATA[The code for this method.]]>
  34225. </doc>
  34226. </field>
  34227. <field name="mechanismName" type="java.lang.String"
  34228. transient="false" volatile="false"
  34229. static="false" final="true" visibility="public"
  34230. deprecated="not deprecated">
  34231. </field>
  34232. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  34233. transient="false" volatile="false"
  34234. static="false" final="true" visibility="public"
  34235. deprecated="not deprecated">
  34236. </field>
  34237. <doc>
  34238. <![CDATA[Authentication method]]>
  34239. </doc>
  34240. </class>
  34241. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  34242. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  34243. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  34244. abstract="false"
  34245. static="true" final="true" visibility="public"
  34246. deprecated="not deprecated">
  34247. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  34248. abstract="false" native="false" synchronized="false"
  34249. static="true" final="false" visibility="public"
  34250. deprecated="not deprecated">
  34251. </method>
  34252. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34253. abstract="false" native="false" synchronized="false"
  34254. static="true" final="false" visibility="public"
  34255. deprecated="not deprecated">
  34256. <param name="name" type="java.lang.String"/>
  34257. </method>
  34258. <method name="getSaslQop" return="java.lang.String"
  34259. abstract="false" native="false" synchronized="false"
  34260. static="false" final="false" visibility="public"
  34261. deprecated="not deprecated">
  34262. </method>
  34263. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34264. transient="false" volatile="false"
  34265. static="true" final="true" visibility="public"
  34266. deprecated="not deprecated">
  34267. </field>
  34268. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34269. transient="false" volatile="false"
  34270. static="true" final="true" visibility="public"
  34271. deprecated="not deprecated">
  34272. </field>
  34273. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  34274. transient="false" volatile="false"
  34275. static="true" final="true" visibility="public"
  34276. deprecated="not deprecated">
  34277. </field>
  34278. <field name="saslQop" type="java.lang.String"
  34279. transient="false" volatile="false"
  34280. static="false" final="true" visibility="public"
  34281. deprecated="not deprecated">
  34282. </field>
  34283. </class>
  34284. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  34285. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  34286. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  34287. abstract="false"
  34288. static="true" final="false" visibility="public"
  34289. deprecated="not deprecated">
  34290. <implements name="javax.security.auth.callback.CallbackHandler"/>
  34291. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  34292. static="false" final="false" visibility="public"
  34293. deprecated="not deprecated">
  34294. </constructor>
  34295. <method name="handle"
  34296. abstract="false" native="false" synchronized="false"
  34297. static="false" final="false" visibility="public"
  34298. deprecated="not deprecated">
  34299. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  34300. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  34301. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  34302. <doc>
  34303. <![CDATA[{@inheritDoc}]]>
  34304. </doc>
  34305. </method>
  34306. <doc>
  34307. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  34308. </doc>
  34309. </class>
  34310. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  34311. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  34312. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  34313. abstract="false"
  34314. static="true" final="false" visibility="public"
  34315. deprecated="not deprecated">
  34316. <implements name="javax.security.auth.callback.CallbackHandler"/>
  34317. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  34318. static="false" final="false" visibility="public"
  34319. deprecated="not deprecated">
  34320. </constructor>
  34321. <method name="handle"
  34322. abstract="false" native="false" synchronized="false"
  34323. static="false" final="false" visibility="public"
  34324. deprecated="not deprecated">
  34325. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  34326. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  34327. <doc>
  34328. <![CDATA[{@inheritDoc}]]>
  34329. </doc>
  34330. </method>
  34331. <doc>
  34332. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  34333. </doc>
  34334. </class>
  34335. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  34336. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  34337. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  34338. abstract="false"
  34339. static="true" final="true" visibility="public"
  34340. deprecated="not deprecated">
  34341. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  34342. abstract="false" native="false" synchronized="false"
  34343. static="true" final="false" visibility="public"
  34344. deprecated="not deprecated">
  34345. </method>
  34346. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34347. abstract="false" native="false" synchronized="false"
  34348. static="true" final="false" visibility="public"
  34349. deprecated="not deprecated">
  34350. <param name="name" type="java.lang.String"/>
  34351. </method>
  34352. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34353. transient="false" volatile="false"
  34354. static="true" final="true" visibility="public"
  34355. deprecated="not deprecated">
  34356. </field>
  34357. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  34358. transient="false" volatile="false"
  34359. static="true" final="true" visibility="public"
  34360. deprecated="not deprecated">
  34361. </field>
  34362. <field name="state" type="int"
  34363. transient="false" volatile="false"
  34364. static="false" final="true" visibility="public"
  34365. deprecated="not deprecated">
  34366. </field>
  34367. </class>
  34368. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  34369. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  34370. <class name="SecurityUtil" extends="java.lang.Object"
  34371. abstract="false"
  34372. static="false" final="false" visibility="public"
  34373. deprecated="not deprecated">
  34374. <constructor name="SecurityUtil"
  34375. static="false" final="false" visibility="public"
  34376. deprecated="not deprecated">
  34377. </constructor>
  34378. <method name="getTokenServiceUseIp" return="boolean"
  34379. abstract="false" native="false" synchronized="false"
  34380. static="true" final="false" visibility="public"
  34381. deprecated="not deprecated">
  34382. <doc>
  34383. <![CDATA[Intended only for temporary use by NetUtils. Do not use.
  34384. @return whether tokens use an IP address]]>
  34385. </doc>
  34386. </method>
  34387. <method name="isOriginalTGT" return="boolean"
  34388. abstract="false" native="false" synchronized="false"
  34389. static="true" final="false" visibility="protected"
  34390. deprecated="not deprecated">
  34391. <param name="name" type="java.lang.String"/>
  34392. </method>
  34393. <method name="fetchServiceTicket"
  34394. abstract="false" native="false" synchronized="false"
  34395. static="true" final="false" visibility="public"
  34396. deprecated="not deprecated">
  34397. <param name="remoteHost" type="java.net.URL"/>
  34398. <exception name="IOException" type="java.io.IOException"/>
  34399. <doc>
  34400. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  34401. problem with Java's Kerberos SSL problem where the client cannot
  34402. authenticate against a cross-realm service. It is necessary for clients
  34403. making kerberized https requests to call this method on the target URL
  34404. to ensure that in a cross-realm environment the remote host will be
  34405. successfully authenticated.
  34406. This method is internal to Hadoop and should not be used by other
  34407. applications. This method should not be considered stable or open:
  34408. it will be removed when the Java behavior is changed.
  34409. @param remoteHost Target URL the krb-https client will access]]>
  34410. </doc>
  34411. </method>
  34412. <method name="getServerPrincipal" return="java.lang.String"
  34413. abstract="false" native="false" synchronized="false"
  34414. static="true" final="false" visibility="public"
  34415. deprecated="not deprecated">
  34416. <param name="principalConfig" type="java.lang.String"/>
  34417. <param name="hostname" type="java.lang.String"/>
  34418. <exception name="IOException" type="java.io.IOException"/>
  34419. <doc>
  34420. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  34421. names. It replaces hostname pattern with hostname, which should be
  34422. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  34423. dynamically looked-up fqdn of the current host instead.
  34424. @param principalConfig
  34425. the Kerberos principal name conf value to convert
  34426. @param hostname
  34427. the fully-qualified domain name used for substitution
  34428. @return converted Kerberos principal name
  34429. @throws IOException]]>
  34430. </doc>
  34431. </method>
  34432. <method name="getServerPrincipal" return="java.lang.String"
  34433. abstract="false" native="false" synchronized="false"
  34434. static="true" final="false" visibility="public"
  34435. deprecated="not deprecated">
  34436. <param name="principalConfig" type="java.lang.String"/>
  34437. <param name="addr" type="java.net.InetAddress"/>
  34438. <exception name="IOException" type="java.io.IOException"/>
  34439. <doc>
  34440. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  34441. This method is similar to {@link #getServerPrincipal(String, String)},
  34442. except 1) the reverse DNS lookup from addr to hostname is done only when
  34443. necessary, 2) param addr can't be null (no default behavior of using local
  34444. hostname when addr is null).
  34445. @param principalConfig
  34446. Kerberos principal name pattern to convert
  34447. @param addr
  34448. InetAddress of the host used for substitution
  34449. @return converted Kerberos principal name
  34450. @throws IOException]]>
  34451. </doc>
  34452. </method>
  34453. <method name="login"
  34454. abstract="false" native="false" synchronized="false"
  34455. static="true" final="false" visibility="public"
  34456. deprecated="not deprecated">
  34457. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34458. <param name="keytabFileKey" type="java.lang.String"/>
  34459. <param name="userNameKey" type="java.lang.String"/>
  34460. <exception name="IOException" type="java.io.IOException"/>
  34461. <doc>
  34462. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  34463. user's Kerberos principal name with a dynamically looked-up fully-qualified
  34464. domain name of the current host.
  34465. @param conf
  34466. conf to use
  34467. @param keytabFileKey
  34468. the key to look for keytab file in conf
  34469. @param userNameKey
  34470. the key to look for user's Kerberos principal name in conf
  34471. @throws IOException]]>
  34472. </doc>
  34473. </method>
  34474. <method name="login"
  34475. abstract="false" native="false" synchronized="false"
  34476. static="true" final="false" visibility="public"
  34477. deprecated="not deprecated">
  34478. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34479. <param name="keytabFileKey" type="java.lang.String"/>
  34480. <param name="userNameKey" type="java.lang.String"/>
  34481. <param name="hostname" type="java.lang.String"/>
  34482. <exception name="IOException" type="java.io.IOException"/>
  34483. <doc>
  34484. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  34485. user's Kerberos principal name with hostname.
  34486. @param conf
  34487. conf to use
  34488. @param keytabFileKey
  34489. the key to look for keytab file in conf
  34490. @param userNameKey
  34491. the key to look for user's Kerberos principal name in conf
  34492. @param hostname
  34493. hostname to use for substitution
  34494. @throws IOException]]>
  34495. </doc>
  34496. </method>
  34497. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  34498. abstract="false" native="false" synchronized="false"
  34499. static="true" final="false" visibility="public"
  34500. deprecated="not deprecated">
  34501. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34502. <doc>
  34503. <![CDATA[Decode the given token's service field into an InetAddress
  34504. @param token from which to obtain the service
  34505. @return InetAddress for the service]]>
  34506. </doc>
  34507. </method>
  34508. <method name="setTokenService"
  34509. abstract="false" native="false" synchronized="false"
  34510. static="true" final="false" visibility="public"
  34511. deprecated="not deprecated">
  34512. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34513. <param name="addr" type="java.net.InetSocketAddress"/>
  34514. <doc>
  34515. <![CDATA[Set the given token's service to the format expected by the RPC client
  34516. @param token a delegation token
  34517. @param addr the socket for the rpc connection]]>
  34518. </doc>
  34519. </method>
  34520. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  34521. abstract="false" native="false" synchronized="false"
  34522. static="true" final="false" visibility="public"
  34523. deprecated="not deprecated">
  34524. <param name="addr" type="java.net.InetSocketAddress"/>
  34525. <doc>
  34526. <![CDATA[Construct the service key for a token
  34527. @param addr InetSocketAddress of remote connection with a token
  34528. @return "ip:port" or "host:port" depending on the value of
  34529. hadoop.security.token.service.use_ip]]>
  34530. </doc>
  34531. </method>
  34532. <method name="buildDTServiceName" return="java.lang.String"
  34533. abstract="false" native="false" synchronized="false"
  34534. static="true" final="false" visibility="public"
  34535. deprecated="not deprecated">
  34536. <param name="uri" type="java.net.URI"/>
  34537. <param name="defPort" type="int"/>
  34538. <doc>
  34539. <![CDATA[create the service name for a Delegation token
  34540. @param uri of the service
  34541. @param defPort is used if the uri lacks a port
  34542. @return the token service, or null if no authority
  34543. @see #buildTokenService(InetSocketAddress)]]>
  34544. </doc>
  34545. </method>
  34546. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  34547. abstract="false" native="false" synchronized="false"
  34548. static="true" final="false" visibility="public"
  34549. deprecated="not deprecated">
  34550. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34551. <param name="configKey" type="java.lang.String"/>
  34552. <doc>
  34553. <![CDATA[Get the ACL object representing the cluster administrators
  34554. The user who starts the daemon is automatically added as an admin
  34555. @param conf
  34556. @param configKey the key that holds the ACL string in its value
  34557. @return AccessControlList instance]]>
  34558. </doc>
  34559. </method>
  34560. <method name="getHostFromPrincipal" return="java.lang.String"
  34561. abstract="false" native="false" synchronized="false"
  34562. static="true" final="false" visibility="public"
  34563. deprecated="not deprecated">
  34564. <param name="principalName" type="java.lang.String"/>
  34565. <doc>
  34566. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  34567. @param principalName principal name of format as described above
  34568. @return host name if the the string conforms to the above format, else null]]>
  34569. </doc>
  34570. </method>
  34571. <field name="LOG" type="org.apache.commons.logging.Log"
  34572. transient="false" volatile="false"
  34573. static="true" final="true" visibility="public"
  34574. deprecated="not deprecated">
  34575. </field>
  34576. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  34577. transient="false" volatile="false"
  34578. static="true" final="true" visibility="public"
  34579. deprecated="not deprecated">
  34580. </field>
  34581. </class>
  34582. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  34583. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  34584. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  34585. abstract="false"
  34586. static="false" final="false" visibility="public"
  34587. deprecated="not deprecated">
  34588. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  34589. <constructor name="ShellBasedUnixGroupsMapping"
  34590. static="false" final="false" visibility="public"
  34591. deprecated="not deprecated">
  34592. </constructor>
  34593. <method name="getGroups" return="java.util.List"
  34594. abstract="false" native="false" synchronized="false"
  34595. static="false" final="false" visibility="public"
  34596. deprecated="not deprecated">
  34597. <param name="user" type="java.lang.String"/>
  34598. <exception name="IOException" type="java.io.IOException"/>
  34599. </method>
  34600. <method name="cacheGroupsRefresh"
  34601. abstract="false" native="false" synchronized="false"
  34602. static="false" final="false" visibility="public"
  34603. deprecated="not deprecated">
  34604. <exception name="IOException" type="java.io.IOException"/>
  34605. </method>
  34606. <method name="cacheGroupsAdd"
  34607. abstract="false" native="false" synchronized="false"
  34608. static="false" final="false" visibility="public"
  34609. deprecated="not deprecated">
  34610. <param name="groups" type="java.util.List"/>
  34611. <exception name="IOException" type="java.io.IOException"/>
  34612. </method>
  34613. <doc>
  34614. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  34615. that exec's the <code>groups</code> shell command to fetch the group
  34616. memberships of a given user.]]>
  34617. </doc>
  34618. </class>
  34619. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  34620. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  34621. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  34622. abstract="false"
  34623. static="false" final="false" visibility="public"
  34624. deprecated="not deprecated">
  34625. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  34626. static="false" final="false" visibility="public"
  34627. deprecated="not deprecated">
  34628. </constructor>
  34629. <method name="getGroups" return="java.util.List"
  34630. abstract="false" native="false" synchronized="false"
  34631. static="false" final="false" visibility="public"
  34632. deprecated="not deprecated">
  34633. <param name="user" type="java.lang.String"/>
  34634. <exception name="IOException" type="java.io.IOException"/>
  34635. </method>
  34636. <method name="cacheGroupsRefresh"
  34637. abstract="false" native="false" synchronized="false"
  34638. static="false" final="false" visibility="public"
  34639. deprecated="not deprecated">
  34640. <exception name="IOException" type="java.io.IOException"/>
  34641. </method>
  34642. <method name="cacheGroupsAdd"
  34643. abstract="false" native="false" synchronized="false"
  34644. static="false" final="false" visibility="public"
  34645. deprecated="not deprecated">
  34646. <param name="groups" type="java.util.List"/>
  34647. <exception name="IOException" type="java.io.IOException"/>
  34648. </method>
  34649. <method name="cacheNetgroup"
  34650. abstract="false" native="false" synchronized="false"
  34651. static="false" final="false" visibility="protected"
  34652. deprecated="not deprecated">
  34653. <param name="group" type="java.lang.String"/>
  34654. <exception name="IOException" type="java.io.IOException"/>
  34655. </method>
  34656. <method name="getNetgroups"
  34657. abstract="false" native="false" synchronized="false"
  34658. static="false" final="false" visibility="protected"
  34659. deprecated="not deprecated">
  34660. <param name="user" type="java.lang.String"/>
  34661. <param name="groups" type="java.util.List"/>
  34662. <exception name="IOException" type="java.io.IOException"/>
  34663. </method>
  34664. <method name="execShellGetUnixGroups" return="java.lang.String"
  34665. abstract="false" native="false" synchronized="false"
  34666. static="false" final="false" visibility="protected"
  34667. deprecated="not deprecated">
  34668. <param name="user" type="java.lang.String"/>
  34669. <exception name="IOException" type="java.io.IOException"/>
  34670. </method>
  34671. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  34672. abstract="false" native="false" synchronized="false"
  34673. static="false" final="false" visibility="protected"
  34674. deprecated="not deprecated">
  34675. <param name="netgroup" type="java.lang.String"/>
  34676. <exception name="IOException" type="java.io.IOException"/>
  34677. </method>
  34678. <field name="netgroupToUsersMapUpdated" type="boolean"
  34679. transient="false" volatile="false"
  34680. static="true" final="false" visibility="protected"
  34681. deprecated="not deprecated">
  34682. </field>
  34683. <field name="netgroupToUsersMap" type="java.util.Map"
  34684. transient="false" volatile="false"
  34685. static="true" final="false" visibility="protected"
  34686. deprecated="not deprecated">
  34687. </field>
  34688. <field name="userToNetgroupsMap" type="java.util.Map"
  34689. transient="false" volatile="false"
  34690. static="true" final="false" visibility="protected"
  34691. deprecated="not deprecated">
  34692. </field>
  34693. <doc>
  34694. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  34695. that exec's the <code>groups</code> shell command to fetch the group
  34696. memberships of a given user.]]>
  34697. </doc>
  34698. </class>
  34699. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  34700. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  34701. <class name="UserGroupInformation" extends="java.lang.Object"
  34702. abstract="false"
  34703. static="false" final="false" visibility="public"
  34704. deprecated="not deprecated">
  34705. <method name="setConfiguration"
  34706. abstract="false" native="false" synchronized="false"
  34707. static="true" final="false" visibility="public"
  34708. deprecated="not deprecated">
  34709. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34710. <doc>
  34711. <![CDATA[Set the static configuration for UGI.
  34712. In particular, set the security authentication mechanism and the
  34713. group look up service.
  34714. @param conf the configuration to use]]>
  34715. </doc>
  34716. </method>
  34717. <method name="isSecurityEnabled" return="boolean"
  34718. abstract="false" native="false" synchronized="false"
  34719. static="true" final="false" visibility="public"
  34720. deprecated="not deprecated">
  34721. <doc>
  34722. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  34723. user identities or is relying on simple authentication
  34724. @return true if UGI is working in a secure environment]]>
  34725. </doc>
  34726. </method>
  34727. <method name="hasKerberosCredentials" return="boolean"
  34728. abstract="false" native="false" synchronized="false"
  34729. static="false" final="false" visibility="public"
  34730. deprecated="not deprecated">
  34731. <doc>
  34732. <![CDATA[checks if logged in using kerberos
  34733. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  34734. </doc>
  34735. </method>
  34736. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  34737. abstract="false" native="false" synchronized="true"
  34738. static="true" final="false" visibility="public"
  34739. deprecated="not deprecated">
  34740. <exception name="IOException" type="java.io.IOException"/>
  34741. <doc>
  34742. <![CDATA[Return the current user, including any doAs in the current stack.
  34743. @return the current user
  34744. @throws IOException if login fails]]>
  34745. </doc>
  34746. </method>
  34747. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  34748. abstract="false" native="false" synchronized="true"
  34749. static="true" final="false" visibility="public"
  34750. deprecated="not deprecated">
  34751. <exception name="IOException" type="java.io.IOException"/>
  34752. <doc>
  34753. <![CDATA[Get the currently logged in user.
  34754. @return the logged in user
  34755. @throws IOException if login fails]]>
  34756. </doc>
  34757. </method>
  34758. <method name="isFromKeytab" return="boolean"
  34759. abstract="false" native="false" synchronized="false"
  34760. static="false" final="false" visibility="public"
  34761. deprecated="not deprecated">
  34762. <doc>
  34763. <![CDATA[Is this user logged in from a keytab file?
  34764. @return true if the credentials are from a keytab file.]]>
  34765. </doc>
  34766. </method>
  34767. <method name="loginUserFromKeytab"
  34768. abstract="false" native="false" synchronized="true"
  34769. static="true" final="false" visibility="public"
  34770. deprecated="not deprecated">
  34771. <param name="user" type="java.lang.String"/>
  34772. <param name="path" type="java.lang.String"/>
  34773. <exception name="IOException" type="java.io.IOException"/>
  34774. <doc>
  34775. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  34776. file and logs them in. They become the currently logged-in user.
  34777. @param user the principal name to load from the keytab
  34778. @param path the path to the keytab file
  34779. @throws IOException if the keytab file can't be read]]>
  34780. </doc>
  34781. </method>
  34782. <method name="reloginFromTicketCache"
  34783. abstract="false" native="false" synchronized="true"
  34784. static="false" final="false" visibility="public"
  34785. deprecated="not deprecated">
  34786. <exception name="IOException" type="java.io.IOException"/>
  34787. <doc>
  34788. <![CDATA[Re-Login a user in from the ticket cache. This
  34789. method assumes that login had happened already.
  34790. The Subject field of this UserGroupInformation object is updated to have
  34791. the new credentials.
  34792. @throws IOException on a failure]]>
  34793. </doc>
  34794. </method>
  34795. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  34796. abstract="false" native="false" synchronized="true"
  34797. static="true" final="false" visibility="public"
  34798. deprecated="not deprecated">
  34799. <param name="user" type="java.lang.String"/>
  34800. <param name="path" type="java.lang.String"/>
  34801. <exception name="IOException" type="java.io.IOException"/>
  34802. <doc>
  34803. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  34804. file and login them in. This new user does not affect the currently
  34805. logged-in user.
  34806. @param user the principal name to load from the keytab
  34807. @param path the path to the keytab file
  34808. @throws IOException if the keytab file can't be read]]>
  34809. </doc>
  34810. </method>
  34811. <method name="checkTGTAndReloginFromKeytab"
  34812. abstract="false" native="false" synchronized="true"
  34813. static="false" final="false" visibility="public"
  34814. deprecated="not deprecated">
  34815. <exception name="IOException" type="java.io.IOException"/>
  34816. <doc>
  34817. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  34818. @throws IOException]]>
  34819. </doc>
  34820. </method>
  34821. <method name="reloginFromKeytab"
  34822. abstract="false" native="false" synchronized="true"
  34823. static="false" final="false" visibility="public"
  34824. deprecated="not deprecated">
  34825. <exception name="IOException" type="java.io.IOException"/>
  34826. <doc>
  34827. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  34828. file and logs them in. They become the currently logged-in user. This
  34829. method assumes that {@link #loginUserFromKeytab(String, String)} had
  34830. happened already.
  34831. The Subject field of this UserGroupInformation object is updated to have
  34832. the new credentials.
  34833. @throws IOException on a failure]]>
  34834. </doc>
  34835. </method>
  34836. <method name="isLoginKeytabBased" return="boolean"
  34837. abstract="false" native="false" synchronized="true"
  34838. static="true" final="false" visibility="public"
  34839. deprecated="not deprecated">
  34840. <exception name="IOException" type="java.io.IOException"/>
  34841. <doc>
  34842. <![CDATA[Did the login happen via keytab
  34843. @return true or false]]>
  34844. </doc>
  34845. </method>
  34846. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  34847. abstract="false" native="false" synchronized="false"
  34848. static="true" final="false" visibility="public"
  34849. deprecated="not deprecated">
  34850. <param name="user" type="java.lang.String"/>
  34851. <doc>
  34852. <![CDATA[Create a user from a login name. It is intended to be used for remote
  34853. users in RPC, since it won't have any credentials.
  34854. @param user the full user principal name, must not be empty or null
  34855. @return the UserGroupInformation for the remote user.]]>
  34856. </doc>
  34857. </method>
  34858. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  34859. abstract="false" native="false" synchronized="false"
  34860. static="true" final="false" visibility="public"
  34861. deprecated="not deprecated">
  34862. <param name="user" type="java.lang.String"/>
  34863. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  34864. <doc>
  34865. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  34866. real user.
  34867. @param user
  34868. @param realUser
  34869. @return proxyUser ugi]]>
  34870. </doc>
  34871. </method>
  34872. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  34873. abstract="false" native="false" synchronized="false"
  34874. static="false" final="false" visibility="public"
  34875. deprecated="not deprecated">
  34876. <doc>
  34877. <![CDATA[get RealUser (vs. EffectiveUser)
  34878. @return realUser running over proxy user]]>
  34879. </doc>
  34880. </method>
  34881. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  34882. abstract="false" native="false" synchronized="false"
  34883. static="true" final="false" visibility="public"
  34884. deprecated="not deprecated">
  34885. <param name="user" type="java.lang.String"/>
  34886. <param name="userGroups" type="java.lang.String[]"/>
  34887. <doc>
  34888. <![CDATA[Create a UGI for testing HDFS and MapReduce
  34889. @param user the full user principal name
  34890. @param userGroups the names of the groups that the user belongs to
  34891. @return a fake user for running unit tests]]>
  34892. </doc>
  34893. </method>
  34894. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  34895. abstract="false" native="false" synchronized="false"
  34896. static="true" final="false" visibility="public"
  34897. deprecated="not deprecated">
  34898. <param name="user" type="java.lang.String"/>
  34899. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  34900. <param name="userGroups" type="java.lang.String[]"/>
  34901. <doc>
  34902. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  34903. @param user
  34904. the full user principal name for effective user
  34905. @param realUser
  34906. UGI of the real user
  34907. @param userGroups
  34908. the names of the groups that the user belongs to
  34909. @return a fake user for running unit tests]]>
  34910. </doc>
  34911. </method>
  34912. <method name="getShortUserName" return="java.lang.String"
  34913. abstract="false" native="false" synchronized="false"
  34914. static="false" final="false" visibility="public"
  34915. deprecated="not deprecated">
  34916. <doc>
  34917. <![CDATA[Get the user's login name.
  34918. @return the user's name up to the first '/' or '@'.]]>
  34919. </doc>
  34920. </method>
  34921. <method name="getUserName" return="java.lang.String"
  34922. abstract="false" native="false" synchronized="false"
  34923. static="false" final="false" visibility="public"
  34924. deprecated="not deprecated">
  34925. <doc>
  34926. <![CDATA[Get the user's full principal name.
  34927. @return the user's full principal name.]]>
  34928. </doc>
  34929. </method>
  34930. <method name="addTokenIdentifier" return="boolean"
  34931. abstract="false" native="false" synchronized="true"
  34932. static="false" final="false" visibility="public"
  34933. deprecated="not deprecated">
  34934. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  34935. <doc>
  34936. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  34937. authenticated by the RPC layer as belonging to the user represented by this
  34938. UGI.
  34939. @param tokenId
  34940. tokenIdentifier to be added
  34941. @return true on successful add of new tokenIdentifier]]>
  34942. </doc>
  34943. </method>
  34944. <method name="getTokenIdentifiers" return="java.util.Set"
  34945. abstract="false" native="false" synchronized="true"
  34946. static="false" final="false" visibility="public"
  34947. deprecated="not deprecated">
  34948. <doc>
  34949. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  34950. @return the set of TokenIdentifiers belonging to this UGI]]>
  34951. </doc>
  34952. </method>
  34953. <method name="addToken" return="boolean"
  34954. abstract="false" native="false" synchronized="true"
  34955. static="false" final="false" visibility="public"
  34956. deprecated="not deprecated">
  34957. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  34958. <doc>
  34959. <![CDATA[Add a token to this UGI
  34960. @param token Token to be added
  34961. @return true on successful add of new token]]>
  34962. </doc>
  34963. </method>
  34964. <method name="getTokens" return="java.util.Collection"
  34965. abstract="false" native="false" synchronized="true"
  34966. static="false" final="false" visibility="public"
  34967. deprecated="not deprecated">
  34968. <doc>
  34969. <![CDATA[Obtain the collection of tokens associated with this user.
  34970. @return an unmodifiable collection of tokens associated with user]]>
  34971. </doc>
  34972. </method>
  34973. <method name="getGroupNames" return="java.lang.String[]"
  34974. abstract="false" native="false" synchronized="true"
  34975. static="false" final="false" visibility="public"
  34976. deprecated="not deprecated">
  34977. <doc>
  34978. <![CDATA[Get the group names for this user.
  34979. @return the list of users with the primary group first. If the command
  34980. fails, it returns an empty list.]]>
  34981. </doc>
  34982. </method>
  34983. <method name="toString" return="java.lang.String"
  34984. abstract="false" native="false" synchronized="false"
  34985. static="false" final="false" visibility="public"
  34986. deprecated="not deprecated">
  34987. <doc>
  34988. <![CDATA[Return the username.]]>
  34989. </doc>
  34990. </method>
  34991. <method name="setAuthenticationMethod"
  34992. abstract="false" native="false" synchronized="true"
  34993. static="false" final="false" visibility="public"
  34994. deprecated="not deprecated">
  34995. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  34996. <doc>
  34997. <![CDATA[Sets the authentication method in the subject
  34998. @param authMethod]]>
  34999. </doc>
  35000. </method>
  35001. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35002. abstract="false" native="false" synchronized="true"
  35003. static="false" final="false" visibility="public"
  35004. deprecated="not deprecated">
  35005. <doc>
  35006. <![CDATA[Get the authentication method from the subject
  35007. @return AuthenticationMethod in the subject, null if not present.]]>
  35008. </doc>
  35009. </method>
  35010. <method name="equals" return="boolean"
  35011. abstract="false" native="false" synchronized="false"
  35012. static="false" final="false" visibility="public"
  35013. deprecated="not deprecated">
  35014. <param name="o" type="java.lang.Object"/>
  35015. <doc>
  35016. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  35017. </doc>
  35018. </method>
  35019. <method name="hashCode" return="int"
  35020. abstract="false" native="false" synchronized="false"
  35021. static="false" final="false" visibility="public"
  35022. deprecated="not deprecated">
  35023. <doc>
  35024. <![CDATA[Return the hash of the subject.]]>
  35025. </doc>
  35026. </method>
  35027. <method name="getSubject" return="javax.security.auth.Subject"
  35028. abstract="false" native="false" synchronized="false"
  35029. static="false" final="false" visibility="protected"
  35030. deprecated="not deprecated">
  35031. <doc>
  35032. <![CDATA[Get the underlying subject from this ugi.
  35033. @return the subject that represents this user.]]>
  35034. </doc>
  35035. </method>
  35036. <method name="doAs" return="java.lang.Object"
  35037. abstract="false" native="false" synchronized="false"
  35038. static="false" final="false" visibility="public"
  35039. deprecated="not deprecated">
  35040. <param name="action" type="java.security.PrivilegedAction"/>
  35041. <doc>
  35042. <![CDATA[Run the given action as the user.
  35043. @param <T> the return type of the run method
  35044. @param action the method to execute
  35045. @return the value from the run method]]>
  35046. </doc>
  35047. </method>
  35048. <method name="doAs" return="java.lang.Object"
  35049. abstract="false" native="false" synchronized="false"
  35050. static="false" final="false" visibility="public"
  35051. deprecated="not deprecated">
  35052. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  35053. <exception name="IOException" type="java.io.IOException"/>
  35054. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  35055. <doc>
  35056. <![CDATA[Run the given action as the user, potentially throwing an exception.
  35057. @param <T> the return type of the run method
  35058. @param action the method to execute
  35059. @return the value from the run method
  35060. @throws IOException if the action throws an IOException
  35061. @throws Error if the action throws an Error
  35062. @throws RuntimeException if the action throws a RuntimeException
  35063. @throws InterruptedException if the action throws an InterruptedException
  35064. @throws UndeclaredThrowableException if the action throws something else]]>
  35065. </doc>
  35066. </method>
  35067. <method name="main"
  35068. abstract="false" native="false" synchronized="false"
  35069. static="true" final="false" visibility="public"
  35070. deprecated="not deprecated">
  35071. <param name="args" type="java.lang.String[]"/>
  35072. <exception name="Exception" type="java.lang.Exception"/>
  35073. <doc>
  35074. <![CDATA[A test method to print out the current user's UGI.
  35075. @param args if there are two arguments, read the user from the keytab
  35076. and print it out.
  35077. @throws Exception]]>
  35078. </doc>
  35079. </method>
  35080. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  35081. transient="false" volatile="false"
  35082. static="true" final="true" visibility="public"
  35083. deprecated="not deprecated">
  35084. <doc>
  35085. <![CDATA[Environment variable pointing to the token cache file]]>
  35086. </doc>
  35087. </field>
  35088. <doc>
  35089. <![CDATA[User and group information for Hadoop.
  35090. This class wraps around a JAAS Subject and provides methods to determine the
  35091. user's username and groups. It supports both the Windows, Unix and Kerberos
  35092. login modules.]]>
  35093. </doc>
  35094. </class>
  35095. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  35096. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  35097. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  35098. abstract="false"
  35099. static="true" final="true" visibility="public"
  35100. deprecated="not deprecated">
  35101. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  35102. abstract="false" native="false" synchronized="false"
  35103. static="true" final="false" visibility="public"
  35104. deprecated="not deprecated">
  35105. </method>
  35106. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35107. abstract="false" native="false" synchronized="false"
  35108. static="true" final="false" visibility="public"
  35109. deprecated="not deprecated">
  35110. <param name="name" type="java.lang.String"/>
  35111. </method>
  35112. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35113. transient="false" volatile="false"
  35114. static="true" final="true" visibility="public"
  35115. deprecated="not deprecated">
  35116. </field>
  35117. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35118. transient="false" volatile="false"
  35119. static="true" final="true" visibility="public"
  35120. deprecated="not deprecated">
  35121. </field>
  35122. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35123. transient="false" volatile="false"
  35124. static="true" final="true" visibility="public"
  35125. deprecated="not deprecated">
  35126. </field>
  35127. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35128. transient="false" volatile="false"
  35129. static="true" final="true" visibility="public"
  35130. deprecated="not deprecated">
  35131. </field>
  35132. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35133. transient="false" volatile="false"
  35134. static="true" final="true" visibility="public"
  35135. deprecated="not deprecated">
  35136. </field>
  35137. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  35138. transient="false" volatile="false"
  35139. static="true" final="true" visibility="public"
  35140. deprecated="not deprecated">
  35141. </field>
  35142. <doc>
  35143. <![CDATA[existing types of authentications' methods]]>
  35144. </doc>
  35145. </class>
  35146. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  35147. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  35148. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  35149. abstract="false"
  35150. static="true" final="false" visibility="public"
  35151. deprecated="not deprecated">
  35152. <implements name="javax.security.auth.spi.LoginModule"/>
  35153. <constructor name="UserGroupInformation.HadoopLoginModule"
  35154. static="false" final="false" visibility="public"
  35155. deprecated="not deprecated">
  35156. </constructor>
  35157. <method name="abort" return="boolean"
  35158. abstract="false" native="false" synchronized="false"
  35159. static="false" final="false" visibility="public"
  35160. deprecated="not deprecated">
  35161. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35162. </method>
  35163. <method name="commit" return="boolean"
  35164. abstract="false" native="false" synchronized="false"
  35165. static="false" final="false" visibility="public"
  35166. deprecated="not deprecated">
  35167. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35168. </method>
  35169. <method name="initialize"
  35170. abstract="false" native="false" synchronized="false"
  35171. static="false" final="false" visibility="public"
  35172. deprecated="not deprecated">
  35173. <param name="subject" type="javax.security.auth.Subject"/>
  35174. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  35175. <param name="sharedState" type="java.util.Map"/>
  35176. <param name="options" type="java.util.Map"/>
  35177. </method>
  35178. <method name="login" return="boolean"
  35179. abstract="false" native="false" synchronized="false"
  35180. static="false" final="false" visibility="public"
  35181. deprecated="not deprecated">
  35182. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35183. </method>
  35184. <method name="logout" return="boolean"
  35185. abstract="false" native="false" synchronized="false"
  35186. static="false" final="false" visibility="public"
  35187. deprecated="not deprecated">
  35188. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35189. </method>
  35190. <doc>
  35191. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  35192. adds the corresponding UserName.]]>
  35193. </doc>
  35194. </class>
  35195. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  35196. </package>
  35197. <package name="org.apache.hadoop.security.authentication.client">
  35198. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  35199. <class name="AuthenticatedURL" extends="java.lang.Object"
  35200. abstract="false"
  35201. static="false" final="false" visibility="public"
  35202. deprecated="not deprecated">
  35203. <constructor name="AuthenticatedURL"
  35204. static="false" final="false" visibility="public"
  35205. deprecated="not deprecated">
  35206. <doc>
  35207. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  35208. </doc>
  35209. </constructor>
  35210. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  35211. static="false" final="false" visibility="public"
  35212. deprecated="not deprecated">
  35213. <doc>
  35214. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  35215. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  35216. KerberosAuthenticator} is used.]]>
  35217. </doc>
  35218. </constructor>
  35219. <method name="setDefaultAuthenticator"
  35220. abstract="false" native="false" synchronized="false"
  35221. static="true" final="false" visibility="public"
  35222. deprecated="not deprecated">
  35223. <param name="authenticator" type="java.lang.Class"/>
  35224. <doc>
  35225. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  35226. is created without specifying an authenticator.
  35227. @param authenticator the authenticator class to use as default.]]>
  35228. </doc>
  35229. </method>
  35230. <method name="getDefaultAuthenticator" return="java.lang.Class"
  35231. abstract="false" native="false" synchronized="false"
  35232. static="true" final="false" visibility="public"
  35233. deprecated="not deprecated">
  35234. <doc>
  35235. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  35236. is created without specifying an authenticator.
  35237. @return the authenticator class to use as default.]]>
  35238. </doc>
  35239. </method>
  35240. <method name="openConnection" return="java.net.HttpURLConnection"
  35241. abstract="false" native="false" synchronized="false"
  35242. static="false" final="false" visibility="public"
  35243. deprecated="not deprecated">
  35244. <param name="url" type="java.net.URL"/>
  35245. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35246. <exception name="IOException" type="java.io.IOException"/>
  35247. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35248. <doc>
  35249. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  35250. @param url the URL to connect to. Only HTTP/S URLs are supported.
  35251. @param token the authentication token being used for the user.
  35252. @return an authenticated {@link HttpURLConnection}.
  35253. @throws IOException if an IO error occurred.
  35254. @throws AuthenticationException if an authentication exception occurred.]]>
  35255. </doc>
  35256. </method>
  35257. <method name="injectToken"
  35258. abstract="false" native="false" synchronized="false"
  35259. static="true" final="false" visibility="public"
  35260. deprecated="not deprecated">
  35261. <param name="conn" type="java.net.HttpURLConnection"/>
  35262. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35263. <doc>
  35264. <![CDATA[Helper method that injects an authentication token to send with a connection.
  35265. @param conn connection to inject the authentication token into.
  35266. @param token authentication token to inject.]]>
  35267. </doc>
  35268. </method>
  35269. <method name="extractToken"
  35270. abstract="false" native="false" synchronized="false"
  35271. static="true" final="false" visibility="public"
  35272. deprecated="not deprecated">
  35273. <param name="conn" type="java.net.HttpURLConnection"/>
  35274. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35275. <exception name="IOException" type="java.io.IOException"/>
  35276. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35277. <doc>
  35278. <![CDATA[Helper method that extracts an authentication token received from a connection.
  35279. <p/>
  35280. This method is used by {@link Authenticator} implementations.
  35281. @param conn connection to extract the authentication token from.
  35282. @param token the authentication token.
  35283. @throws IOException if an IO error occurred.
  35284. @throws AuthenticationException if an authentication exception occurred.]]>
  35285. </doc>
  35286. </method>
  35287. <field name="AUTH_COOKIE" type="java.lang.String"
  35288. transient="false" volatile="false"
  35289. static="true" final="true" visibility="public"
  35290. deprecated="not deprecated">
  35291. <doc>
  35292. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  35293. </doc>
  35294. </field>
  35295. <doc>
  35296. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  35297. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  35298. <p/>
  35299. The authentication mechanisms supported by default are Hadoop Simple authentication
  35300. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  35301. <p/>
  35302. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  35303. <p/>
  35304. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  35305. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  35306. <p/>
  35307. <code>AuthenticatedURL</code> instances are not thread-safe.
  35308. <p/>
  35309. The usage pattern of the {@link AuthenticatedURL} is:
  35310. <p/>
  35311. <pre>
  35312. // establishing an initial connection
  35313. URL url = new URL("http://foo:8080/bar");
  35314. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  35315. AuthenticatedURL aUrl = new AuthenticatedURL();
  35316. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  35317. ....
  35318. // use the 'conn' instance
  35319. ....
  35320. // establishing a follow up connection using a token from the previous connection
  35321. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  35322. ....
  35323. // use the 'conn' instance
  35324. ....
  35325. </pre>]]>
  35326. </doc>
  35327. </class>
  35328. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  35329. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  35330. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  35331. abstract="false"
  35332. static="true" final="false" visibility="public"
  35333. deprecated="not deprecated">
  35334. <constructor name="AuthenticatedURL.Token"
  35335. static="false" final="false" visibility="public"
  35336. deprecated="not deprecated">
  35337. <doc>
  35338. <![CDATA[Creates a token.]]>
  35339. </doc>
  35340. </constructor>
  35341. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  35342. static="false" final="false" visibility="public"
  35343. deprecated="not deprecated">
  35344. <doc>
  35345. <![CDATA[Creates a token using an existing string representation of the token.
  35346. @param tokenStr string representation of the tokenStr.]]>
  35347. </doc>
  35348. </constructor>
  35349. <method name="isSet" return="boolean"
  35350. abstract="false" native="false" synchronized="false"
  35351. static="false" final="false" visibility="public"
  35352. deprecated="not deprecated">
  35353. <doc>
  35354. <![CDATA[Returns if a token from the server has been set.
  35355. @return if a token from the server has been set.]]>
  35356. </doc>
  35357. </method>
  35358. <method name="toString" return="java.lang.String"
  35359. abstract="false" native="false" synchronized="false"
  35360. static="false" final="false" visibility="public"
  35361. deprecated="not deprecated">
  35362. <doc>
  35363. <![CDATA[Returns the string representation of the token.
  35364. @return the string representation of the token.]]>
  35365. </doc>
  35366. </method>
  35367. <method name="hashCode" return="int"
  35368. abstract="false" native="false" synchronized="false"
  35369. static="false" final="false" visibility="public"
  35370. deprecated="not deprecated">
  35371. <doc>
  35372. <![CDATA[Return the hashcode for the token.
  35373. @return the hashcode for the token.]]>
  35374. </doc>
  35375. </method>
  35376. <method name="equals" return="boolean"
  35377. abstract="false" native="false" synchronized="false"
  35378. static="false" final="false" visibility="public"
  35379. deprecated="not deprecated">
  35380. <param name="o" type="java.lang.Object"/>
  35381. <doc>
  35382. <![CDATA[Return if two token instances are equal.
  35383. @param o the other token instance.
  35384. @return if this instance and the other instance are equal.]]>
  35385. </doc>
  35386. </method>
  35387. <doc>
  35388. <![CDATA[Client side authentication token.]]>
  35389. </doc>
  35390. </class>
  35391. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  35392. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  35393. <class name="AuthenticationException" extends="java.lang.Exception"
  35394. abstract="false"
  35395. static="false" final="false" visibility="public"
  35396. deprecated="not deprecated">
  35397. <constructor name="AuthenticationException" type="java.lang.Throwable"
  35398. static="false" final="false" visibility="public"
  35399. deprecated="not deprecated">
  35400. <doc>
  35401. <![CDATA[Creates an {@link AuthenticationException}.
  35402. @param cause original exception.]]>
  35403. </doc>
  35404. </constructor>
  35405. <constructor name="AuthenticationException" type="java.lang.String"
  35406. static="false" final="false" visibility="public"
  35407. deprecated="not deprecated">
  35408. <doc>
  35409. <![CDATA[Creates an {@link AuthenticationException}.
  35410. @param msg exception message.]]>
  35411. </doc>
  35412. </constructor>
  35413. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  35414. static="false" final="false" visibility="public"
  35415. deprecated="not deprecated">
  35416. <doc>
  35417. <![CDATA[Creates an {@link AuthenticationException}.
  35418. @param msg exception message.
  35419. @param cause original exception.]]>
  35420. </doc>
  35421. </constructor>
  35422. <doc>
  35423. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  35424. </doc>
  35425. </class>
  35426. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  35427. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  35428. <interface name="Authenticator" abstract="true"
  35429. static="false" final="false" visibility="public"
  35430. deprecated="not deprecated">
  35431. <method name="authenticate"
  35432. abstract="false" native="false" synchronized="false"
  35433. static="false" final="false" visibility="public"
  35434. deprecated="not deprecated">
  35435. <param name="url" type="java.net.URL"/>
  35436. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35437. <exception name="IOException" type="java.io.IOException"/>
  35438. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35439. <doc>
  35440. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  35441. used by subsequent requests.
  35442. @param url the URl to authenticate against.
  35443. @param token the authentication token being used for the user.
  35444. @throws IOException if an IO error occurred.
  35445. @throws AuthenticationException if an authentication error occurred.]]>
  35446. </doc>
  35447. </method>
  35448. <doc>
  35449. <![CDATA[Interface for client authentication mechanisms.
  35450. <p/>
  35451. Implementations are use-once instances, they don't need to be thread safe.]]>
  35452. </doc>
  35453. </interface>
  35454. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  35455. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  35456. <class name="KerberosAuthenticator" extends="java.lang.Object"
  35457. abstract="false"
  35458. static="false" final="false" visibility="public"
  35459. deprecated="not deprecated">
  35460. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35461. <constructor name="KerberosAuthenticator"
  35462. static="false" final="false" visibility="public"
  35463. deprecated="not deprecated">
  35464. </constructor>
  35465. <method name="authenticate"
  35466. abstract="false" native="false" synchronized="false"
  35467. static="false" final="false" visibility="public"
  35468. deprecated="not deprecated">
  35469. <param name="url" type="java.net.URL"/>
  35470. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35471. <exception name="IOException" type="java.io.IOException"/>
  35472. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35473. <doc>
  35474. <![CDATA[Performs SPNEGO authentication against the specified URL.
  35475. <p/>
  35476. If a token is given it does a NOP and returns the given token.
  35477. <p/>
  35478. If no token is given, it will perform the SPNEGO authentication sequence using an
  35479. HTTP <code>OPTIONS</code> request.
  35480. @param url the URl to authenticate against.
  35481. @param token the authentication token being used for the user.
  35482. @throws IOException if an IO error occurred.
  35483. @throws AuthenticationException if an authentication error occurred.]]>
  35484. </doc>
  35485. </method>
  35486. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  35487. abstract="false" native="false" synchronized="false"
  35488. static="false" final="false" visibility="protected"
  35489. deprecated="not deprecated">
  35490. <doc>
  35491. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  35492. <p/>
  35493. This implementation returns a {@link PseudoAuthenticator}.
  35494. @return the fallback {@link Authenticator}.]]>
  35495. </doc>
  35496. </method>
  35497. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  35498. transient="false" volatile="false"
  35499. static="true" final="true" visibility="public"
  35500. deprecated="not deprecated">
  35501. <doc>
  35502. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  35503. </doc>
  35504. </field>
  35505. <field name="AUTHORIZATION" type="java.lang.String"
  35506. transient="false" volatile="false"
  35507. static="true" final="true" visibility="public"
  35508. deprecated="not deprecated">
  35509. <doc>
  35510. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  35511. </doc>
  35512. </field>
  35513. <field name="NEGOTIATE" type="java.lang.String"
  35514. transient="false" volatile="false"
  35515. static="true" final="true" visibility="public"
  35516. deprecated="not deprecated">
  35517. <doc>
  35518. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  35519. </doc>
  35520. </field>
  35521. <doc>
  35522. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  35523. <p/>
  35524. It uses the default principal for the Kerberos cache (normally set via kinit).
  35525. <p/>
  35526. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  35527. sequence.]]>
  35528. </doc>
  35529. </class>
  35530. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  35531. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  35532. <class name="PseudoAuthenticator" extends="java.lang.Object"
  35533. abstract="false"
  35534. static="false" final="false" visibility="public"
  35535. deprecated="not deprecated">
  35536. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  35537. <constructor name="PseudoAuthenticator"
  35538. static="false" final="false" visibility="public"
  35539. deprecated="not deprecated">
  35540. </constructor>
  35541. <method name="authenticate"
  35542. abstract="false" native="false" synchronized="false"
  35543. static="false" final="false" visibility="public"
  35544. deprecated="not deprecated">
  35545. <param name="url" type="java.net.URL"/>
  35546. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  35547. <exception name="IOException" type="java.io.IOException"/>
  35548. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35549. <doc>
  35550. <![CDATA[Performs simple authentication against the specified URL.
  35551. <p/>
  35552. If a token is given it does a NOP and returns the given token.
  35553. <p/>
  35554. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  35555. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  35556. method.
  35557. <p/>
  35558. If the response is successful it will update the authentication token.
  35559. @param url the URl to authenticate against.
  35560. @param token the authencation token being used for the user.
  35561. @throws IOException if an IO error occurred.
  35562. @throws AuthenticationException if an authentication error occurred.]]>
  35563. </doc>
  35564. </method>
  35565. <method name="getUserName" return="java.lang.String"
  35566. abstract="false" native="false" synchronized="false"
  35567. static="false" final="false" visibility="protected"
  35568. deprecated="not deprecated">
  35569. <doc>
  35570. <![CDATA[Returns the current user name.
  35571. <p/>
  35572. This implementation returns the value of the Java system property 'user.name'
  35573. @return the current user name.]]>
  35574. </doc>
  35575. </method>
  35576. <field name="USER_NAME" type="java.lang.String"
  35577. transient="false" volatile="false"
  35578. static="true" final="true" visibility="public"
  35579. deprecated="not deprecated">
  35580. <doc>
  35581. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  35582. </doc>
  35583. </field>
  35584. <doc>
  35585. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  35586. Simple authentication, it trusts the value of the 'user.name' Java System property.
  35587. <p/>
  35588. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  35589. </doc>
  35590. </class>
  35591. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  35592. </package>
  35593. <package name="org.apache.hadoop.security.authentication.server">
  35594. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  35595. <class name="AuthenticationFilter" extends="java.lang.Object"
  35596. abstract="false"
  35597. static="false" final="false" visibility="public"
  35598. deprecated="not deprecated">
  35599. <implements name="javax.servlet.Filter"/>
  35600. <constructor name="AuthenticationFilter"
  35601. static="false" final="false" visibility="public"
  35602. deprecated="not deprecated">
  35603. </constructor>
  35604. <method name="init"
  35605. abstract="false" native="false" synchronized="false"
  35606. static="false" final="false" visibility="public"
  35607. deprecated="not deprecated">
  35608. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  35609. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35610. <doc>
  35611. <![CDATA[Initializes the authentication filter.
  35612. <p/>
  35613. It instantiates and initializes the specified {@link AuthenticationHandler}.
  35614. <p/>
  35615. @param filterConfig filter configuration.
  35616. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  35617. </doc>
  35618. </method>
  35619. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  35620. abstract="false" native="false" synchronized="false"
  35621. static="false" final="false" visibility="protected"
  35622. deprecated="not deprecated">
  35623. <doc>
  35624. <![CDATA[Returns the authentication handler being used.
  35625. @return the authentication handler being used.]]>
  35626. </doc>
  35627. </method>
  35628. <method name="isRandomSecret" return="boolean"
  35629. abstract="false" native="false" synchronized="false"
  35630. static="false" final="false" visibility="protected"
  35631. deprecated="not deprecated">
  35632. <doc>
  35633. <![CDATA[Returns if a random secret is being used.
  35634. @return if a random secret is being used.]]>
  35635. </doc>
  35636. </method>
  35637. <method name="getValidity" return="long"
  35638. abstract="false" native="false" synchronized="false"
  35639. static="false" final="false" visibility="protected"
  35640. deprecated="not deprecated">
  35641. <doc>
  35642. <![CDATA[Returns the validity time of the generated tokens.
  35643. @return the validity time of the generated tokens, in seconds.]]>
  35644. </doc>
  35645. </method>
  35646. <method name="getCookieDomain" return="java.lang.String"
  35647. abstract="false" native="false" synchronized="false"
  35648. static="false" final="false" visibility="protected"
  35649. deprecated="not deprecated">
  35650. <doc>
  35651. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  35652. @return the cookie domain to use for the HTTP cookie.]]>
  35653. </doc>
  35654. </method>
  35655. <method name="getCookiePath" return="java.lang.String"
  35656. abstract="false" native="false" synchronized="false"
  35657. static="false" final="false" visibility="protected"
  35658. deprecated="not deprecated">
  35659. <doc>
  35660. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  35661. @return the cookie path to use for the HTTP cookie.]]>
  35662. </doc>
  35663. </method>
  35664. <method name="destroy"
  35665. abstract="false" native="false" synchronized="false"
  35666. static="false" final="false" visibility="public"
  35667. deprecated="not deprecated">
  35668. <doc>
  35669. <![CDATA[Destroys the filter.
  35670. <p/>
  35671. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  35672. </doc>
  35673. </method>
  35674. <method name="getConfiguration" return="java.util.Properties"
  35675. abstract="false" native="false" synchronized="false"
  35676. static="false" final="false" visibility="protected"
  35677. deprecated="not deprecated">
  35678. <param name="configPrefix" type="java.lang.String"/>
  35679. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  35680. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35681. <doc>
  35682. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  35683. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  35684. {@link AuthenticationHandler}.
  35685. <p/>
  35686. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  35687. the web.xml file.
  35688. @param configPrefix configuration prefix to use for extracting configuration properties.
  35689. @param filterConfig filter configuration object
  35690. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  35691. @throws ServletException thrown if the configuration could not be created.]]>
  35692. </doc>
  35693. </method>
  35694. <method name="getRequestURL" return="java.lang.String"
  35695. abstract="false" native="false" synchronized="false"
  35696. static="false" final="false" visibility="protected"
  35697. deprecated="not deprecated">
  35698. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35699. <doc>
  35700. <![CDATA[Returns the full URL of the request including the query string.
  35701. <p/>
  35702. Used as a convenience method for logging purposes.
  35703. @param request the request object.
  35704. @return the full URL of the request including the query string.]]>
  35705. </doc>
  35706. </method>
  35707. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35708. abstract="false" native="false" synchronized="false"
  35709. static="false" final="false" visibility="protected"
  35710. deprecated="not deprecated">
  35711. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35712. <exception name="IOException" type="java.io.IOException"/>
  35713. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35714. <doc>
  35715. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  35716. <p/>
  35717. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  35718. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  35719. it.
  35720. <p/>
  35721. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  35722. to perform user authentication.
  35723. @param request request object.
  35724. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  35725. @throws IOException thrown if an IO error occurred.
  35726. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  35727. </doc>
  35728. </method>
  35729. <method name="doFilter"
  35730. abstract="false" native="false" synchronized="false"
  35731. static="false" final="false" visibility="public"
  35732. deprecated="not deprecated">
  35733. <param name="request" type="javax.servlet.ServletRequest"/>
  35734. <param name="response" type="javax.servlet.ServletResponse"/>
  35735. <param name="filterChain" type="javax.servlet.FilterChain"/>
  35736. <exception name="IOException" type="java.io.IOException"/>
  35737. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35738. <doc>
  35739. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  35740. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  35741. @param request the request object.
  35742. @param response the response object.
  35743. @param filterChain the filter chain object.
  35744. @throws IOException thrown if an IO error occurred.
  35745. @throws ServletException thrown if a processing error occurred.]]>
  35746. </doc>
  35747. </method>
  35748. <method name="createCookie" return="javax.servlet.http.Cookie"
  35749. abstract="false" native="false" synchronized="false"
  35750. static="false" final="false" visibility="protected"
  35751. deprecated="not deprecated">
  35752. <param name="token" type="java.lang.String"/>
  35753. <doc>
  35754. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  35755. <p/>
  35756. It sets the domain and path specified in the configuration.
  35757. @param token authentication token for the cookie.
  35758. @return the HTTP cookie.]]>
  35759. </doc>
  35760. </method>
  35761. <field name="CONFIG_PREFIX" type="java.lang.String"
  35762. transient="false" volatile="false"
  35763. static="true" final="true" visibility="public"
  35764. deprecated="not deprecated">
  35765. <doc>
  35766. <![CDATA[Constant for the property that specifies the configuration prefix.]]>
  35767. </doc>
  35768. </field>
  35769. <field name="AUTH_TYPE" type="java.lang.String"
  35770. transient="false" volatile="false"
  35771. static="true" final="true" visibility="public"
  35772. deprecated="not deprecated">
  35773. <doc>
  35774. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  35775. </doc>
  35776. </field>
  35777. <field name="SIGNATURE_SECRET" type="java.lang.String"
  35778. transient="false" volatile="false"
  35779. static="true" final="true" visibility="public"
  35780. deprecated="not deprecated">
  35781. <doc>
  35782. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  35783. </doc>
  35784. </field>
  35785. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  35786. transient="false" volatile="false"
  35787. static="true" final="true" visibility="public"
  35788. deprecated="not deprecated">
  35789. <doc>
  35790. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  35791. </doc>
  35792. </field>
  35793. <field name="COOKIE_DOMAIN" type="java.lang.String"
  35794. transient="false" volatile="false"
  35795. static="true" final="true" visibility="public"
  35796. deprecated="not deprecated">
  35797. <doc>
  35798. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  35799. </doc>
  35800. </field>
  35801. <field name="COOKIE_PATH" type="java.lang.String"
  35802. transient="false" volatile="false"
  35803. static="true" final="true" visibility="public"
  35804. deprecated="not deprecated">
  35805. <doc>
  35806. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  35807. </doc>
  35808. </field>
  35809. <doc>
  35810. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  35811. authentication mechanisms.
  35812. <p/>
  35813. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  35814. <p/>
  35815. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  35816. <p/>
  35817. This filter delegates to the configured authentication handler for authentication and once it obtains an
  35818. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  35819. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  35820. and lets the request proceed to the target resource.
  35821. <p/>
  35822. The supported configuration properties are:
  35823. <ul>
  35824. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  35825. is no prefix. See below for details on how/why this prefix is used.</li>
  35826. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  35827. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  35828. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  35829. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  35830. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  35831. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  35832. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  35833. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  35834. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  35835. </ul>
  35836. <p/>
  35837. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  35838. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  35839. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  35840. not start with the prefix will not be passed to the authentication handler initialization.]]>
  35841. </doc>
  35842. </class>
  35843. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  35844. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  35845. <interface name="AuthenticationHandler" abstract="true"
  35846. static="false" final="false" visibility="public"
  35847. deprecated="not deprecated">
  35848. <method name="getType" return="java.lang.String"
  35849. abstract="false" native="false" synchronized="false"
  35850. static="false" final="false" visibility="public"
  35851. deprecated="not deprecated">
  35852. <doc>
  35853. <![CDATA[Returns the authentication type of the authentication handler.
  35854. <p/>
  35855. This should be a name that uniquely identifies the authentication type.
  35856. For example 'simple' or 'kerberos'.
  35857. @return the authentication type of the authentication handler.]]>
  35858. </doc>
  35859. </method>
  35860. <method name="init"
  35861. abstract="false" native="false" synchronized="false"
  35862. static="false" final="false" visibility="public"
  35863. deprecated="not deprecated">
  35864. <param name="config" type="java.util.Properties"/>
  35865. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35866. <doc>
  35867. <![CDATA[Initializes the authentication handler instance.
  35868. <p/>
  35869. This method is invoked by the {@link AuthenticationFilter#init} method.
  35870. @param config configuration properties to initialize the handler.
  35871. @throws ServletException thrown if the handler could not be initialized.]]>
  35872. </doc>
  35873. </method>
  35874. <method name="destroy"
  35875. abstract="false" native="false" synchronized="false"
  35876. static="false" final="false" visibility="public"
  35877. deprecated="not deprecated">
  35878. <doc>
  35879. <![CDATA[Destroys the authentication handler instance.
  35880. <p/>
  35881. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  35882. </doc>
  35883. </method>
  35884. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  35885. abstract="false" native="false" synchronized="false"
  35886. static="false" final="false" visibility="public"
  35887. deprecated="not deprecated">
  35888. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  35889. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  35890. <exception name="IOException" type="java.io.IOException"/>
  35891. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  35892. <doc>
  35893. <![CDATA[Performs an authentication step for the given HTTP client request.
  35894. <p/>
  35895. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  35896. not yet authenticated.
  35897. <p/>
  35898. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  35899. end up making a sequence of invocations before authentication is successfully established (this is
  35900. the case of Kerberos SPNEGO).
  35901. <p/>
  35902. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  35903. been successfully and fully authenticated.
  35904. <p/>
  35905. If the HTTP client request has not been completely authenticated, this method must take over
  35906. the corresponding HTTP response and it must return <code>null</code>.
  35907. @param request the HTTP client request.
  35908. @param response the HTTP client response.
  35909. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  35910. <code>null</code> otherwise (in this case it must take care of the response).
  35911. @throws IOException thrown if an IO error occurred.
  35912. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  35913. </doc>
  35914. </method>
  35915. <doc>
  35916. <![CDATA[Interface for server authentication mechanisms.
  35917. <p/>
  35918. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  35919. <p/>
  35920. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  35921. </doc>
  35922. </interface>
  35923. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  35924. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  35925. <class name="AuthenticationToken" extends="java.lang.Object"
  35926. abstract="false"
  35927. static="false" final="false" visibility="public"
  35928. deprecated="not deprecated">
  35929. <implements name="java.security.Principal"/>
  35930. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  35931. static="false" final="false" visibility="public"
  35932. deprecated="not deprecated">
  35933. <doc>
  35934. <![CDATA[Creates an authentication token.
  35935. @param userName user name.
  35936. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  35937. name while the userName is the short name).
  35938. @param type the authentication mechanism name.
  35939. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  35940. </doc>
  35941. </constructor>
  35942. <method name="setExpires"
  35943. abstract="false" native="false" synchronized="false"
  35944. static="false" final="false" visibility="public"
  35945. deprecated="not deprecated">
  35946. <param name="expires" type="long"/>
  35947. <doc>
  35948. <![CDATA[Sets the expiration of the token.
  35949. @param expires expiration time of the token in milliseconds since the epoch.]]>
  35950. </doc>
  35951. </method>
  35952. <method name="getUserName" return="java.lang.String"
  35953. abstract="false" native="false" synchronized="false"
  35954. static="false" final="false" visibility="public"
  35955. deprecated="not deprecated">
  35956. <doc>
  35957. <![CDATA[Returns the user name.
  35958. @return the user name.]]>
  35959. </doc>
  35960. </method>
  35961. <method name="getName" return="java.lang.String"
  35962. abstract="false" native="false" synchronized="false"
  35963. static="false" final="false" visibility="public"
  35964. deprecated="not deprecated">
  35965. <doc>
  35966. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  35967. @return the principal name.]]>
  35968. </doc>
  35969. </method>
  35970. <method name="getType" return="java.lang.String"
  35971. abstract="false" native="false" synchronized="false"
  35972. static="false" final="false" visibility="public"
  35973. deprecated="not deprecated">
  35974. <doc>
  35975. <![CDATA[Returns the authentication mechanism of the token.
  35976. @return the authentication mechanism of the token.]]>
  35977. </doc>
  35978. </method>
  35979. <method name="getExpires" return="long"
  35980. abstract="false" native="false" synchronized="false"
  35981. static="false" final="false" visibility="public"
  35982. deprecated="not deprecated">
  35983. <doc>
  35984. <![CDATA[Returns the expiration time of the token.
  35985. @return the expiration time of the token, in milliseconds since Epoc.]]>
  35986. </doc>
  35987. </method>
  35988. <method name="isExpired" return="boolean"
  35989. abstract="false" native="false" synchronized="false"
  35990. static="false" final="false" visibility="public"
  35991. deprecated="not deprecated">
  35992. <doc>
  35993. <![CDATA[Returns if the token has expired.
  35994. @return if the token has expired.]]>
  35995. </doc>
  35996. </method>
  35997. <method name="toString" return="java.lang.String"
  35998. abstract="false" native="false" synchronized="false"
  35999. static="false" final="false" visibility="public"
  36000. deprecated="not deprecated">
  36001. <doc>
  36002. <![CDATA[Returns the string representation of the token.
  36003. <p/>
  36004. This string representation is parseable by the {@link #parse} method.
  36005. @return the string representation of the token.]]>
  36006. </doc>
  36007. </method>
  36008. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36009. abstract="false" native="false" synchronized="false"
  36010. static="true" final="false" visibility="public"
  36011. deprecated="not deprecated">
  36012. <param name="tokenStr" type="java.lang.String"/>
  36013. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36014. <doc>
  36015. <![CDATA[Parses a string into an authentication token.
  36016. @param tokenStr string representation of a token.
  36017. @return the parsed authentication token.
  36018. @throws AuthenticationException thrown if the string representation could not be parsed into
  36019. an authentication token.]]>
  36020. </doc>
  36021. </method>
  36022. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36023. transient="false" volatile="false"
  36024. static="true" final="true" visibility="public"
  36025. deprecated="not deprecated">
  36026. <doc>
  36027. <![CDATA[Constant that identifies an anonymous request.]]>
  36028. </doc>
  36029. </field>
  36030. <doc>
  36031. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated HTTP client and doubles
  36032. as the {@link Principal} to be returned by authenticated {@link HttpServletRequest}s
  36033. <p/>
  36034. The token can be serialized/deserialized to and from a string as it is sent and received in HTTP client
  36035. responses and requests as a HTTP cookie (this is done by the {@link AuthenticationFilter}).]]>
  36036. </doc>
  36037. </class>
  36038. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  36039. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  36040. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  36041. abstract="false"
  36042. static="false" final="false" visibility="public"
  36043. deprecated="not deprecated">
  36044. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  36045. <constructor name="KerberosAuthenticationHandler"
  36046. static="false" final="false" visibility="public"
  36047. deprecated="not deprecated">
  36048. </constructor>
  36049. <method name="init"
  36050. abstract="false" native="false" synchronized="false"
  36051. static="false" final="false" visibility="public"
  36052. deprecated="not deprecated">
  36053. <param name="config" type="java.util.Properties"/>
  36054. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36055. <doc>
  36056. <![CDATA[Initializes the authentication handler instance.
  36057. <p/>
  36058. It creates a Kerberos context using the principal and keytab specified in the configuration.
  36059. <p/>
  36060. This method is invoked by the {@link AuthenticationFilter#init} method.
  36061. @param config configuration properties to initialize the handler.
  36062. @throws ServletException thrown if the handler could not be initialized.]]>
  36063. </doc>
  36064. </method>
  36065. <method name="destroy"
  36066. abstract="false" native="false" synchronized="false"
  36067. static="false" final="false" visibility="public"
  36068. deprecated="not deprecated">
  36069. <doc>
  36070. <![CDATA[Releases any resources initialized by the authentication handler.
  36071. <p/>
  36072. It destroys the Kerberos context.]]>
  36073. </doc>
  36074. </method>
  36075. <method name="getType" return="java.lang.String"
  36076. abstract="false" native="false" synchronized="false"
  36077. static="false" final="false" visibility="public"
  36078. deprecated="not deprecated">
  36079. <doc>
  36080. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  36081. <p/>
  36082. @return the authentication type of the authentication handler, 'kerberos'.]]>
  36083. </doc>
  36084. </method>
  36085. <method name="getPrincipal" return="java.lang.String"
  36086. abstract="false" native="false" synchronized="false"
  36087. static="false" final="false" visibility="protected"
  36088. deprecated="not deprecated">
  36089. <doc>
  36090. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  36091. @return the Kerberos principal used by the authentication handler.]]>
  36092. </doc>
  36093. </method>
  36094. <method name="getKeytab" return="java.lang.String"
  36095. abstract="false" native="false" synchronized="false"
  36096. static="false" final="false" visibility="protected"
  36097. deprecated="not deprecated">
  36098. <doc>
  36099. <![CDATA[Returns the keytab used by the authentication handler.
  36100. @return the keytab used by the authentication handler.]]>
  36101. </doc>
  36102. </method>
  36103. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36104. abstract="false" native="false" synchronized="false"
  36105. static="false" final="false" visibility="public"
  36106. deprecated="not deprecated">
  36107. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36108. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  36109. <exception name="IOException" type="java.io.IOException"/>
  36110. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36111. <doc>
  36112. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  36113. after the Kerberos SPNEGO sequence has completed successfully.
  36114. <p/>
  36115. @param request the HTTP client request.
  36116. @param response the HTTP client response.
  36117. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  36118. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  36119. @throws IOException thrown if an IO error occurred.
  36120. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  36121. </doc>
  36122. </method>
  36123. <field name="TYPE" type="java.lang.String"
  36124. transient="false" volatile="false"
  36125. static="true" final="true" visibility="public"
  36126. deprecated="not deprecated">
  36127. <doc>
  36128. <![CDATA[Constant that identifies the authentication mechanism.]]>
  36129. </doc>
  36130. </field>
  36131. <field name="PRINCIPAL" type="java.lang.String"
  36132. transient="false" volatile="false"
  36133. static="true" final="true" visibility="public"
  36134. deprecated="not deprecated">
  36135. <doc>
  36136. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  36137. </doc>
  36138. </field>
  36139. <field name="KEYTAB" type="java.lang.String"
  36140. transient="false" volatile="false"
  36141. static="true" final="true" visibility="public"
  36142. deprecated="not deprecated">
  36143. <doc>
  36144. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  36145. </doc>
  36146. </field>
  36147. <field name="NAME_RULES" type="java.lang.String"
  36148. transient="false" volatile="false"
  36149. static="true" final="true" visibility="public"
  36150. deprecated="not deprecated">
  36151. <doc>
  36152. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  36153. rules for the Kerberos principals.]]>
  36154. </doc>
  36155. </field>
  36156. <doc>
  36157. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  36158. <p/>
  36159. The supported configuration properties are:
  36160. <ul>
  36161. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  36162. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  36163. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  36164. It does not have a default value.</li>
  36165. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  36166. It does not have a default value.</li>
  36167. </ul>]]>
  36168. </doc>
  36169. </class>
  36170. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  36171. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  36172. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  36173. abstract="false"
  36174. static="false" final="false" visibility="public"
  36175. deprecated="not deprecated">
  36176. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  36177. <constructor name="PseudoAuthenticationHandler"
  36178. static="false" final="false" visibility="public"
  36179. deprecated="not deprecated">
  36180. </constructor>
  36181. <method name="init"
  36182. abstract="false" native="false" synchronized="false"
  36183. static="false" final="false" visibility="public"
  36184. deprecated="not deprecated">
  36185. <param name="config" type="java.util.Properties"/>
  36186. <exception name="ServletException" type="javax.servlet.ServletException"/>
  36187. <doc>
  36188. <![CDATA[Initializes the authentication handler instance.
  36189. <p/>
  36190. This method is invoked by the {@link AuthenticationFilter#init} method.
  36191. @param config configuration properties to initialize the handler.
  36192. @throws ServletException thrown if the handler could not be initialized.]]>
  36193. </doc>
  36194. </method>
  36195. <method name="getAcceptAnonymous" return="boolean"
  36196. abstract="false" native="false" synchronized="false"
  36197. static="false" final="false" visibility="protected"
  36198. deprecated="not deprecated">
  36199. <doc>
  36200. <![CDATA[Returns if the handler is configured to support anonymous users.
  36201. @return if the handler is configured to support anonymous users.]]>
  36202. </doc>
  36203. </method>
  36204. <method name="destroy"
  36205. abstract="false" native="false" synchronized="false"
  36206. static="false" final="false" visibility="public"
  36207. deprecated="not deprecated">
  36208. <doc>
  36209. <![CDATA[Releases any resources initialized by the authentication handler.
  36210. <p/>
  36211. This implementation does a NOP.]]>
  36212. </doc>
  36213. </method>
  36214. <method name="getType" return="java.lang.String"
  36215. abstract="false" native="false" synchronized="false"
  36216. static="false" final="false" visibility="public"
  36217. deprecated="not deprecated">
  36218. <doc>
  36219. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  36220. <p/>
  36221. @return the authentication type of the authentication handler, 'simple'.]]>
  36222. </doc>
  36223. </method>
  36224. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  36225. abstract="false" native="false" synchronized="false"
  36226. static="false" final="false" visibility="public"
  36227. deprecated="not deprecated">
  36228. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  36229. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  36230. <exception name="IOException" type="java.io.IOException"/>
  36231. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  36232. <doc>
  36233. <![CDATA[Authenticates an HTTP client request.
  36234. <p/>
  36235. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  36236. an {@link AuthenticationToken} with it.
  36237. <p/>
  36238. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  36239. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  36240. token.
  36241. <p/>
  36242. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  36243. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  36244. @param request the HTTP client request.
  36245. @param response the HTTP client response.
  36246. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  36247. @throws IOException thrown if an IO error occurred.
  36248. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  36249. </doc>
  36250. </method>
  36251. <field name="TYPE" type="java.lang.String"
  36252. transient="false" volatile="false"
  36253. static="true" final="true" visibility="public"
  36254. deprecated="not deprecated">
  36255. <doc>
  36256. <![CDATA[Constant that identifies the authentication mechanism.]]>
  36257. </doc>
  36258. </field>
  36259. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  36260. transient="false" volatile="false"
  36261. static="true" final="true" visibility="public"
  36262. deprecated="not deprecated">
  36263. <doc>
  36264. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  36265. </doc>
  36266. </field>
  36267. <doc>
  36268. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  36269. the user name specified as a query string parameter.
  36270. <p/>
  36271. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  36272. the configuration object.
  36273. <p/>
  36274. This handler can be configured to support anonymous users.
  36275. <p/>
  36276. The only supported configuration property is:
  36277. <ul>
  36278. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  36279. </ul>]]>
  36280. </doc>
  36281. </class>
  36282. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  36283. </package>
  36284. <package name="org.apache.hadoop.security.authentication.util">
  36285. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  36286. <class name="Signer" extends="java.lang.Object"
  36287. abstract="false"
  36288. static="false" final="false" visibility="public"
  36289. deprecated="not deprecated">
  36290. <constructor name="Signer" type="byte[]"
  36291. static="false" final="false" visibility="public"
  36292. deprecated="not deprecated">
  36293. <doc>
  36294. <![CDATA[Creates a Signer instance using the specified secret.
  36295. @param secret secret to use for creating the digest.]]>
  36296. </doc>
  36297. </constructor>
  36298. <method name="sign" return="java.lang.String"
  36299. abstract="false" native="false" synchronized="false"
  36300. static="false" final="false" visibility="public"
  36301. deprecated="not deprecated">
  36302. <param name="str" type="java.lang.String"/>
  36303. <doc>
  36304. <![CDATA[Returns a signed string.
  36305. <p/>
  36306. The signature '&s=SIGNATURE' is appended at the end of the string.
  36307. @param str string to sign.
  36308. @return the signed string.]]>
  36309. </doc>
  36310. </method>
  36311. <method name="verifyAndExtract" return="java.lang.String"
  36312. abstract="false" native="false" synchronized="false"
  36313. static="false" final="false" visibility="public"
  36314. deprecated="not deprecated">
  36315. <param name="signedStr" type="java.lang.String"/>
  36316. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  36317. <doc>
  36318. <![CDATA[Verifies a signed string and extracts the original string.
  36319. @param signedStr the signed string to verify and extract.
  36320. @return the extracted original string.
  36321. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  36322. </doc>
  36323. </method>
  36324. <method name="computeSignature" return="java.lang.String"
  36325. abstract="false" native="false" synchronized="false"
  36326. static="false" final="false" visibility="protected"
  36327. deprecated="not deprecated">
  36328. <param name="str" type="java.lang.String"/>
  36329. <doc>
  36330. <![CDATA[Returns then signature of a string.
  36331. @param str string to sign.
  36332. @return the signature for the string.]]>
  36333. </doc>
  36334. </method>
  36335. <doc>
  36336. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  36337. </doc>
  36338. </class>
  36339. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  36340. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  36341. <class name="SignerException" extends="java.lang.Exception"
  36342. abstract="false"
  36343. static="false" final="false" visibility="public"
  36344. deprecated="not deprecated">
  36345. <constructor name="SignerException" type="java.lang.String"
  36346. static="false" final="false" visibility="public"
  36347. deprecated="not deprecated">
  36348. <doc>
  36349. <![CDATA[Creates an exception instance.
  36350. @param msg message for the exception.]]>
  36351. </doc>
  36352. </constructor>
  36353. <doc>
  36354. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  36355. </doc>
  36356. </class>
  36357. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  36358. </package>
  36359. <package name="org.apache.hadoop.security.authorize">
  36360. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  36361. <class name="AccessControlList" extends="java.lang.Object"
  36362. abstract="false"
  36363. static="false" final="false" visibility="public"
  36364. deprecated="not deprecated">
  36365. <implements name="org.apache.hadoop.io.Writable"/>
  36366. <constructor name="AccessControlList"
  36367. static="false" final="false" visibility="public"
  36368. deprecated="not deprecated">
  36369. <doc>
  36370. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  36371. </doc>
  36372. </constructor>
  36373. <constructor name="AccessControlList" type="java.lang.String"
  36374. static="false" final="false" visibility="public"
  36375. deprecated="not deprecated">
  36376. <doc>
  36377. <![CDATA[Construct a new ACL from a String representation of the same.
  36378. The String is a a comma separated list of users and groups.
  36379. The user list comes first and is separated by a space followed
  36380. by the group list. For e.g. "user1,user2 group1,group2"
  36381. @param aclString String representation of the ACL]]>
  36382. </doc>
  36383. </constructor>
  36384. <method name="isAllAllowed" return="boolean"
  36385. abstract="false" native="false" synchronized="false"
  36386. static="false" final="false" visibility="public"
  36387. deprecated="not deprecated">
  36388. </method>
  36389. <method name="addUser"
  36390. abstract="false" native="false" synchronized="false"
  36391. static="false" final="false" visibility="public"
  36392. deprecated="not deprecated">
  36393. <param name="user" type="java.lang.String"/>
  36394. </method>
  36395. <method name="isUserAllowed" return="boolean"
  36396. abstract="false" native="false" synchronized="false"
  36397. static="false" final="false" visibility="public"
  36398. deprecated="not deprecated">
  36399. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  36400. </method>
  36401. <method name="toString" return="java.lang.String"
  36402. abstract="false" native="false" synchronized="false"
  36403. static="false" final="false" visibility="public"
  36404. deprecated="not deprecated">
  36405. </method>
  36406. <method name="write"
  36407. abstract="false" native="false" synchronized="false"
  36408. static="false" final="false" visibility="public"
  36409. deprecated="not deprecated">
  36410. <param name="out" type="java.io.DataOutput"/>
  36411. <exception name="IOException" type="java.io.IOException"/>
  36412. </method>
  36413. <method name="readFields"
  36414. abstract="false" native="false" synchronized="false"
  36415. static="false" final="false" visibility="public"
  36416. deprecated="not deprecated">
  36417. <param name="in" type="java.io.DataInput"/>
  36418. <exception name="IOException" type="java.io.IOException"/>
  36419. </method>
  36420. <method name="getACLString" return="java.lang.String"
  36421. abstract="false" native="false" synchronized="false"
  36422. static="false" final="false" visibility="public"
  36423. deprecated="not deprecated">
  36424. <doc>
  36425. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  36426. return value, this String can be directly given to the constructor of
  36427. AccessControlList to build AccessControlList object.
  36428. This is the method used by the serialization method write().]]>
  36429. </doc>
  36430. </method>
  36431. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  36432. transient="false" volatile="false"
  36433. static="true" final="true" visibility="public"
  36434. deprecated="not deprecated">
  36435. </field>
  36436. <doc>
  36437. <![CDATA[Class representing a configured access control list.]]>
  36438. </doc>
  36439. </class>
  36440. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  36441. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  36442. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  36443. abstract="false"
  36444. static="false" final="false" visibility="public"
  36445. deprecated="not deprecated">
  36446. <constructor name="AuthorizationException"
  36447. static="false" final="false" visibility="public"
  36448. deprecated="not deprecated">
  36449. </constructor>
  36450. <constructor name="AuthorizationException" type="java.lang.String"
  36451. static="false" final="false" visibility="public"
  36452. deprecated="not deprecated">
  36453. </constructor>
  36454. <constructor name="AuthorizationException" type="java.lang.Throwable"
  36455. static="false" final="false" visibility="public"
  36456. deprecated="not deprecated">
  36457. <doc>
  36458. <![CDATA[Constructs a new exception with the specified cause and a detail
  36459. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  36460. typically contains the class and detail message of <tt>cause</tt>).
  36461. @param cause the cause (which is saved for later retrieval by the
  36462. {@link #getCause()} method). (A <tt>null</tt> value is
  36463. permitted, and indicates that the cause is nonexistent or
  36464. unknown.)]]>
  36465. </doc>
  36466. </constructor>
  36467. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  36468. abstract="false" native="false" synchronized="false"
  36469. static="false" final="false" visibility="public"
  36470. deprecated="not deprecated">
  36471. </method>
  36472. <method name="printStackTrace"
  36473. abstract="false" native="false" synchronized="false"
  36474. static="false" final="false" visibility="public"
  36475. deprecated="not deprecated">
  36476. </method>
  36477. <method name="printStackTrace"
  36478. abstract="false" native="false" synchronized="false"
  36479. static="false" final="false" visibility="public"
  36480. deprecated="not deprecated">
  36481. <param name="s" type="java.io.PrintStream"/>
  36482. </method>
  36483. <method name="printStackTrace"
  36484. abstract="false" native="false" synchronized="false"
  36485. static="false" final="false" visibility="public"
  36486. deprecated="not deprecated">
  36487. <param name="s" type="java.io.PrintWriter"/>
  36488. </method>
  36489. <doc>
  36490. <![CDATA[An exception class for authorization-related issues.
  36491. This class <em>does not</em> provide the stack trace for security purposes.]]>
  36492. </doc>
  36493. </class>
  36494. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  36495. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  36496. <class name="PolicyProvider" extends="java.lang.Object"
  36497. abstract="true"
  36498. static="false" final="false" visibility="public"
  36499. deprecated="not deprecated">
  36500. <constructor name="PolicyProvider"
  36501. static="false" final="false" visibility="public"
  36502. deprecated="not deprecated">
  36503. </constructor>
  36504. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  36505. abstract="true" native="false" synchronized="false"
  36506. static="false" final="false" visibility="public"
  36507. deprecated="not deprecated">
  36508. <doc>
  36509. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  36510. @return the {@link Service} definitions]]>
  36511. </doc>
  36512. </method>
  36513. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  36514. transient="false" volatile="false"
  36515. static="true" final="true" visibility="public"
  36516. deprecated="not deprecated">
  36517. <doc>
  36518. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  36519. </doc>
  36520. </field>
  36521. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  36522. transient="false" volatile="false"
  36523. static="true" final="true" visibility="public"
  36524. deprecated="not deprecated">
  36525. <doc>
  36526. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  36527. </doc>
  36528. </field>
  36529. <doc>
  36530. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  36531. security {@link Policy} in effect for Hadoop.]]>
  36532. </doc>
  36533. </class>
  36534. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  36535. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  36536. <class name="ProxyUsers" extends="java.lang.Object"
  36537. abstract="false"
  36538. static="false" final="false" visibility="public"
  36539. deprecated="not deprecated">
  36540. <constructor name="ProxyUsers"
  36541. static="false" final="false" visibility="public"
  36542. deprecated="not deprecated">
  36543. </constructor>
  36544. <method name="refreshSuperUserGroupsConfiguration"
  36545. abstract="false" native="false" synchronized="false"
  36546. static="true" final="false" visibility="public"
  36547. deprecated="not deprecated">
  36548. <doc>
  36549. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  36550. </doc>
  36551. </method>
  36552. <method name="refreshSuperUserGroupsConfiguration"
  36553. abstract="false" native="false" synchronized="true"
  36554. static="true" final="false" visibility="public"
  36555. deprecated="not deprecated">
  36556. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36557. <doc>
  36558. <![CDATA[refresh configuration
  36559. @param conf]]>
  36560. </doc>
  36561. </method>
  36562. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  36563. abstract="false" native="false" synchronized="false"
  36564. static="true" final="false" visibility="public"
  36565. deprecated="not deprecated">
  36566. <param name="userName" type="java.lang.String"/>
  36567. <doc>
  36568. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  36569. @param userName name of the superuser
  36570. @return configuration key for superuser groups]]>
  36571. </doc>
  36572. </method>
  36573. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  36574. abstract="false" native="false" synchronized="false"
  36575. static="true" final="false" visibility="public"
  36576. deprecated="not deprecated">
  36577. <param name="userName" type="java.lang.String"/>
  36578. <doc>
  36579. <![CDATA[Return configuration key for superuser ip addresses
  36580. @param userName name of the superuser
  36581. @return configuration key for superuser ip-addresses]]>
  36582. </doc>
  36583. </method>
  36584. <method name="authorize"
  36585. abstract="false" native="false" synchronized="true"
  36586. static="true" final="false" visibility="public"
  36587. deprecated="not deprecated">
  36588. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  36589. <param name="remoteAddress" type="java.lang.String"/>
  36590. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  36591. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  36592. <doc>
  36593. <![CDATA[Authorize the superuser which is doing doAs
  36594. @param user ugi of the effective or proxy user which contains a real user
  36595. @param remoteAddress the ip address of client
  36596. @param newConf configuration
  36597. @throws AuthorizationException]]>
  36598. </doc>
  36599. </method>
  36600. <field name="CONF_GROUPS" type="java.lang.String"
  36601. transient="false" volatile="false"
  36602. static="true" final="true" visibility="public"
  36603. deprecated="not deprecated">
  36604. </field>
  36605. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  36606. transient="false" volatile="false"
  36607. static="true" final="true" visibility="public"
  36608. deprecated="not deprecated">
  36609. </field>
  36610. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  36611. transient="false" volatile="false"
  36612. static="true" final="true" visibility="public"
  36613. deprecated="not deprecated">
  36614. </field>
  36615. </class>
  36616. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  36617. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  36618. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  36619. static="false" final="false" visibility="public"
  36620. deprecated="not deprecated">
  36621. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  36622. <method name="refreshServiceAcl"
  36623. abstract="false" native="false" synchronized="false"
  36624. static="false" final="false" visibility="public"
  36625. deprecated="not deprecated">
  36626. <exception name="IOException" type="java.io.IOException"/>
  36627. <doc>
  36628. <![CDATA[Refresh the service-level authorization policy in-effect.
  36629. @throws IOException]]>
  36630. </doc>
  36631. </method>
  36632. <field name="versionID" type="long"
  36633. transient="false" volatile="false"
  36634. static="true" final="true" visibility="public"
  36635. deprecated="not deprecated">
  36636. <doc>
  36637. <![CDATA[Version 1: Initial version]]>
  36638. </doc>
  36639. </field>
  36640. <doc>
  36641. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  36642. </doc>
  36643. </interface>
  36644. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  36645. <!-- start class org.apache.hadoop.security.authorize.Service -->
  36646. <class name="Service" extends="java.lang.Object"
  36647. abstract="false"
  36648. static="false" final="false" visibility="public"
  36649. deprecated="not deprecated">
  36650. <constructor name="Service" type="java.lang.String, java.lang.Class"
  36651. static="false" final="false" visibility="public"
  36652. deprecated="not deprecated">
  36653. </constructor>
  36654. <method name="getServiceKey" return="java.lang.String"
  36655. abstract="false" native="false" synchronized="false"
  36656. static="false" final="false" visibility="public"
  36657. deprecated="not deprecated">
  36658. <doc>
  36659. <![CDATA[Get the configuration key for the service.
  36660. @return the configuration key for the service]]>
  36661. </doc>
  36662. </method>
  36663. <method name="getProtocol" return="java.lang.Class"
  36664. abstract="false" native="false" synchronized="false"
  36665. static="false" final="false" visibility="public"
  36666. deprecated="not deprecated">
  36667. <doc>
  36668. <![CDATA[Get the protocol for the service
  36669. @return the {@link Class} for the protocol]]>
  36670. </doc>
  36671. </method>
  36672. <doc>
  36673. <![CDATA[An abstract definition of <em>service</em> as related to
  36674. Service Level Authorization for Hadoop.
  36675. Each service defines it's configuration key and also the necessary
  36676. {@link Permission} required to access the service.]]>
  36677. </doc>
  36678. </class>
  36679. <!-- end class org.apache.hadoop.security.authorize.Service -->
  36680. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  36681. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  36682. abstract="false"
  36683. static="false" final="false" visibility="public"
  36684. deprecated="not deprecated">
  36685. <constructor name="ServiceAuthorizationManager"
  36686. static="false" final="false" visibility="public"
  36687. deprecated="not deprecated">
  36688. </constructor>
  36689. <method name="authorize"
  36690. abstract="false" native="false" synchronized="false"
  36691. static="true" final="false" visibility="public"
  36692. deprecated="not deprecated">
  36693. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  36694. <param name="protocol" type="java.lang.Class"/>
  36695. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36696. <param name="addr" type="java.net.InetAddress"/>
  36697. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  36698. <doc>
  36699. <![CDATA[Authorize the user to access the protocol being used.
  36700. @param user user accessing the service
  36701. @param protocol service being accessed
  36702. @param conf configuration to use
  36703. @param addr InetAddress of the client
  36704. @throws AuthorizationException on authorization failure]]>
  36705. </doc>
  36706. </method>
  36707. <method name="refresh"
  36708. abstract="false" native="false" synchronized="true"
  36709. static="true" final="false" visibility="public"
  36710. deprecated="not deprecated">
  36711. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36712. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  36713. </method>
  36714. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  36715. transient="false" volatile="false"
  36716. static="true" final="true" visibility="public"
  36717. deprecated="Use
  36718. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  36719. instead.">
  36720. <doc>
  36721. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  36722. @deprecated Use
  36723. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  36724. instead.]]>
  36725. </doc>
  36726. </field>
  36727. <doc>
  36728. <![CDATA[An authorization manager which handles service-level authorization
  36729. for incoming service requests.]]>
  36730. </doc>
  36731. </class>
  36732. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  36733. </package>
  36734. <package name="org.apache.hadoop.security.token">
  36735. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  36736. <class name="SecretManager" extends="java.lang.Object"
  36737. abstract="true"
  36738. static="false" final="false" visibility="public"
  36739. deprecated="not deprecated">
  36740. <constructor name="SecretManager"
  36741. static="false" final="false" visibility="public"
  36742. deprecated="not deprecated">
  36743. </constructor>
  36744. <method name="createPassword" return="byte[]"
  36745. abstract="true" native="false" synchronized="false"
  36746. static="false" final="false" visibility="protected"
  36747. deprecated="not deprecated">
  36748. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36749. <doc>
  36750. <![CDATA[Create the password for the given identifier.
  36751. identifier may be modified inside this method.
  36752. @param identifier the identifier to use
  36753. @return the new password]]>
  36754. </doc>
  36755. </method>
  36756. <method name="retrievePassword" return="byte[]"
  36757. abstract="true" native="false" synchronized="false"
  36758. static="false" final="false" visibility="public"
  36759. deprecated="not deprecated">
  36760. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  36761. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  36762. <doc>
  36763. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  36764. or registry to make sure the token hasn't expired or been revoked. Returns
  36765. the relevant password.
  36766. @param identifier the identifier to validate
  36767. @return the password to use
  36768. @throws InvalidToken the token was invalid]]>
  36769. </doc>
  36770. </method>
  36771. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  36772. abstract="true" native="false" synchronized="false"
  36773. static="false" final="false" visibility="public"
  36774. deprecated="not deprecated">
  36775. <doc>
  36776. <![CDATA[Create an empty token identifier.
  36777. @return the newly created empty token identifier]]>
  36778. </doc>
  36779. </method>
  36780. <method name="generateSecret" return="javax.crypto.SecretKey"
  36781. abstract="false" native="false" synchronized="false"
  36782. static="false" final="false" visibility="protected"
  36783. deprecated="not deprecated">
  36784. <doc>
  36785. <![CDATA[Generate a new random secret key.
  36786. @return the new key]]>
  36787. </doc>
  36788. </method>
  36789. <method name="createPassword" return="byte[]"
  36790. abstract="false" native="false" synchronized="false"
  36791. static="true" final="false" visibility="protected"
  36792. deprecated="not deprecated">
  36793. <param name="identifier" type="byte[]"/>
  36794. <param name="key" type="javax.crypto.SecretKey"/>
  36795. <doc>
  36796. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  36797. output as password
  36798. @param identifier the bytes of the identifier
  36799. @param key the secret key
  36800. @return the bytes of the generated password]]>
  36801. </doc>
  36802. </method>
  36803. <method name="createSecretKey" return="javax.crypto.SecretKey"
  36804. abstract="false" native="false" synchronized="false"
  36805. static="true" final="false" visibility="protected"
  36806. deprecated="not deprecated">
  36807. <param name="key" type="byte[]"/>
  36808. <doc>
  36809. <![CDATA[Convert the byte[] to a secret key
  36810. @param key the byte[] to create a secret key from
  36811. @return the secret key]]>
  36812. </doc>
  36813. </method>
  36814. <doc>
  36815. <![CDATA[The server-side secret manager for each token type.
  36816. @param <T> The type of the token identifier]]>
  36817. </doc>
  36818. </class>
  36819. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  36820. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  36821. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  36822. abstract="false"
  36823. static="true" final="false" visibility="public"
  36824. deprecated="not deprecated">
  36825. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  36826. static="false" final="false" visibility="public"
  36827. deprecated="not deprecated">
  36828. </constructor>
  36829. <doc>
  36830. <![CDATA[The token was invalid and the message explains why.]]>
  36831. </doc>
  36832. </class>
  36833. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  36834. <!-- start class org.apache.hadoop.security.token.Token -->
  36835. <class name="Token" extends="java.lang.Object"
  36836. abstract="false"
  36837. static="false" final="false" visibility="public"
  36838. deprecated="not deprecated">
  36839. <implements name="org.apache.hadoop.io.Writable"/>
  36840. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  36841. static="false" final="false" visibility="public"
  36842. deprecated="not deprecated">
  36843. <doc>
  36844. <![CDATA[Construct a token given a token identifier and a secret manager for the
  36845. type of the token identifier.
  36846. @param id the token identifier
  36847. @param mgr the secret manager]]>
  36848. </doc>
  36849. </constructor>
  36850. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  36851. static="false" final="false" visibility="public"
  36852. deprecated="not deprecated">
  36853. <doc>
  36854. <![CDATA[Construct a token from the components.
  36855. @param identifier the token identifier
  36856. @param password the token's password
  36857. @param kind the kind of token
  36858. @param service the service for this token]]>
  36859. </doc>
  36860. </constructor>
  36861. <constructor name="Token"
  36862. static="false" final="false" visibility="public"
  36863. deprecated="not deprecated">
  36864. <doc>
  36865. <![CDATA[Default constructor]]>
  36866. </doc>
  36867. </constructor>
  36868. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  36869. static="false" final="false" visibility="public"
  36870. deprecated="not deprecated">
  36871. <doc>
  36872. <![CDATA[Clone a token.
  36873. @param other the token to clone]]>
  36874. </doc>
  36875. </constructor>
  36876. <method name="getIdentifier" return="byte[]"
  36877. abstract="false" native="false" synchronized="false"
  36878. static="false" final="false" visibility="public"
  36879. deprecated="not deprecated">
  36880. <doc>
  36881. <![CDATA[Get the token identifier
  36882. @return the token identifier]]>
  36883. </doc>
  36884. </method>
  36885. <method name="getPassword" return="byte[]"
  36886. abstract="false" native="false" synchronized="false"
  36887. static="false" final="false" visibility="public"
  36888. deprecated="not deprecated">
  36889. <doc>
  36890. <![CDATA[Get the token password/secret
  36891. @return the token password/secret]]>
  36892. </doc>
  36893. </method>
  36894. <method name="getKind" return="org.apache.hadoop.io.Text"
  36895. abstract="false" native="false" synchronized="false"
  36896. static="false" final="false" visibility="public"
  36897. deprecated="not deprecated">
  36898. <doc>
  36899. <![CDATA[Get the token kind
  36900. @return the kind of the token]]>
  36901. </doc>
  36902. </method>
  36903. <method name="setKind"
  36904. abstract="false" native="false" synchronized="true"
  36905. static="false" final="false" visibility="public"
  36906. deprecated="not deprecated">
  36907. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  36908. <doc>
  36909. <![CDATA[Set the token kind. This is only intended to be used by services that
  36910. wrap another service's token, such as HFTP wrapping HDFS.
  36911. @param newKind]]>
  36912. </doc>
  36913. </method>
  36914. <method name="getService" return="org.apache.hadoop.io.Text"
  36915. abstract="false" native="false" synchronized="false"
  36916. static="false" final="false" visibility="public"
  36917. deprecated="not deprecated">
  36918. <doc>
  36919. <![CDATA[Get the service on which the token is supposed to be used
  36920. @return the service name]]>
  36921. </doc>
  36922. </method>
  36923. <method name="setService"
  36924. abstract="false" native="false" synchronized="false"
  36925. static="false" final="false" visibility="public"
  36926. deprecated="not deprecated">
  36927. <param name="newService" type="org.apache.hadoop.io.Text"/>
  36928. <doc>
  36929. <![CDATA[Set the service on which the token is supposed to be used
  36930. @param newService the service name]]>
  36931. </doc>
  36932. </method>
  36933. <method name="readFields"
  36934. abstract="false" native="false" synchronized="false"
  36935. static="false" final="false" visibility="public"
  36936. deprecated="not deprecated">
  36937. <param name="in" type="java.io.DataInput"/>
  36938. <exception name="IOException" type="java.io.IOException"/>
  36939. <doc>
  36940. <![CDATA[{@inheritDoc}]]>
  36941. </doc>
  36942. </method>
  36943. <method name="write"
  36944. abstract="false" native="false" synchronized="false"
  36945. static="false" final="false" visibility="public"
  36946. deprecated="not deprecated">
  36947. <param name="out" type="java.io.DataOutput"/>
  36948. <exception name="IOException" type="java.io.IOException"/>
  36949. <doc>
  36950. <![CDATA[{@inheritDoc}]]>
  36951. </doc>
  36952. </method>
  36953. <method name="encodeToUrlString" return="java.lang.String"
  36954. abstract="false" native="false" synchronized="false"
  36955. static="false" final="false" visibility="public"
  36956. deprecated="not deprecated">
  36957. <exception name="IOException" type="java.io.IOException"/>
  36958. <doc>
  36959. <![CDATA[Encode this token as a url safe string
  36960. @return the encoded string
  36961. @throws IOException]]>
  36962. </doc>
  36963. </method>
  36964. <method name="decodeFromUrlString"
  36965. abstract="false" native="false" synchronized="false"
  36966. static="false" final="false" visibility="public"
  36967. deprecated="not deprecated">
  36968. <param name="newValue" type="java.lang.String"/>
  36969. <exception name="IOException" type="java.io.IOException"/>
  36970. <doc>
  36971. <![CDATA[Decode the given url safe string into this token.
  36972. @param newValue the encoded string
  36973. @throws IOException]]>
  36974. </doc>
  36975. </method>
  36976. <method name="equals" return="boolean"
  36977. abstract="false" native="false" synchronized="false"
  36978. static="false" final="false" visibility="public"
  36979. deprecated="not deprecated">
  36980. <param name="right" type="java.lang.Object"/>
  36981. </method>
  36982. <method name="hashCode" return="int"
  36983. abstract="false" native="false" synchronized="false"
  36984. static="false" final="false" visibility="public"
  36985. deprecated="not deprecated">
  36986. </method>
  36987. <method name="toString" return="java.lang.String"
  36988. abstract="false" native="false" synchronized="false"
  36989. static="false" final="false" visibility="public"
  36990. deprecated="not deprecated">
  36991. </method>
  36992. <method name="isManaged" return="boolean"
  36993. abstract="false" native="false" synchronized="false"
  36994. static="false" final="false" visibility="public"
  36995. deprecated="not deprecated">
  36996. <exception name="IOException" type="java.io.IOException"/>
  36997. <doc>
  36998. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  36999. @return true, if it can be renewed and cancelled.]]>
  37000. </doc>
  37001. </method>
  37002. <method name="renew" return="long"
  37003. abstract="false" native="false" synchronized="false"
  37004. static="false" final="false" visibility="public"
  37005. deprecated="not deprecated">
  37006. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37007. <exception name="IOException" type="java.io.IOException"/>
  37008. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37009. <doc>
  37010. <![CDATA[Renew this delegation token
  37011. @return the new expiration time
  37012. @throws IOException
  37013. @throws InterruptedException]]>
  37014. </doc>
  37015. </method>
  37016. <method name="cancel"
  37017. abstract="false" native="false" synchronized="false"
  37018. static="false" final="false" visibility="public"
  37019. deprecated="not deprecated">
  37020. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37021. <exception name="IOException" type="java.io.IOException"/>
  37022. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37023. <doc>
  37024. <![CDATA[Cancel this delegation token
  37025. @throws IOException
  37026. @throws InterruptedException]]>
  37027. </doc>
  37028. </method>
  37029. <field name="LOG" type="org.apache.commons.logging.Log"
  37030. transient="false" volatile="false"
  37031. static="true" final="true" visibility="public"
  37032. deprecated="not deprecated">
  37033. </field>
  37034. <doc>
  37035. <![CDATA[The client-side form of the token.]]>
  37036. </doc>
  37037. </class>
  37038. <!-- end class org.apache.hadoop.security.token.Token -->
  37039. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  37040. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  37041. abstract="false"
  37042. static="true" final="false" visibility="public"
  37043. deprecated="not deprecated">
  37044. <constructor name="Token.TrivialRenewer"
  37045. static="false" final="false" visibility="public"
  37046. deprecated="not deprecated">
  37047. </constructor>
  37048. <method name="getKind" return="org.apache.hadoop.io.Text"
  37049. abstract="false" native="false" synchronized="false"
  37050. static="false" final="false" visibility="protected"
  37051. deprecated="not deprecated">
  37052. </method>
  37053. <method name="handleKind" return="boolean"
  37054. abstract="false" native="false" synchronized="false"
  37055. static="false" final="false" visibility="public"
  37056. deprecated="not deprecated">
  37057. <param name="kind" type="org.apache.hadoop.io.Text"/>
  37058. </method>
  37059. <method name="isManaged" return="boolean"
  37060. abstract="false" native="false" synchronized="false"
  37061. static="false" final="false" visibility="public"
  37062. deprecated="not deprecated">
  37063. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37064. </method>
  37065. <method name="renew" return="long"
  37066. abstract="false" native="false" synchronized="false"
  37067. static="false" final="false" visibility="public"
  37068. deprecated="not deprecated">
  37069. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37070. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37071. </method>
  37072. <method name="cancel"
  37073. abstract="false" native="false" synchronized="false"
  37074. static="false" final="false" visibility="public"
  37075. deprecated="not deprecated">
  37076. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37077. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37078. <exception name="IOException" type="java.io.IOException"/>
  37079. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37080. </method>
  37081. <doc>
  37082. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  37083. to implement getKind for their token kind.]]>
  37084. </doc>
  37085. </class>
  37086. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  37087. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  37088. <class name="TokenIdentifier" extends="java.lang.Object"
  37089. abstract="true"
  37090. static="false" final="false" visibility="public"
  37091. deprecated="not deprecated">
  37092. <implements name="org.apache.hadoop.io.Writable"/>
  37093. <constructor name="TokenIdentifier"
  37094. static="false" final="false" visibility="public"
  37095. deprecated="not deprecated">
  37096. </constructor>
  37097. <method name="getKind" return="org.apache.hadoop.io.Text"
  37098. abstract="true" native="false" synchronized="false"
  37099. static="false" final="false" visibility="public"
  37100. deprecated="not deprecated">
  37101. <doc>
  37102. <![CDATA[Get the token kind
  37103. @return the kind of the token]]>
  37104. </doc>
  37105. </method>
  37106. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  37107. abstract="true" native="false" synchronized="false"
  37108. static="false" final="false" visibility="public"
  37109. deprecated="not deprecated">
  37110. <doc>
  37111. <![CDATA[Get the Ugi with the username encoded in the token identifier
  37112. @return the username. null is returned if username in the identifier is
  37113. empty or null.]]>
  37114. </doc>
  37115. </method>
  37116. <method name="getBytes" return="byte[]"
  37117. abstract="false" native="false" synchronized="false"
  37118. static="false" final="false" visibility="public"
  37119. deprecated="not deprecated">
  37120. <doc>
  37121. <![CDATA[Get the bytes for the token identifier
  37122. @return the bytes of the identifier]]>
  37123. </doc>
  37124. </method>
  37125. <doc>
  37126. <![CDATA[An identifier that identifies a token, may contain public information
  37127. about a token, including its kind (or type).]]>
  37128. </doc>
  37129. </class>
  37130. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  37131. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  37132. <interface name="TokenInfo" abstract="true"
  37133. static="false" final="false" visibility="public"
  37134. deprecated="not deprecated">
  37135. <implements name="java.lang.annotation.Annotation"/>
  37136. <method name="value" return="java.lang.Class"
  37137. abstract="false" native="false" synchronized="false"
  37138. static="false" final="false" visibility="public"
  37139. deprecated="not deprecated">
  37140. <doc>
  37141. <![CDATA[The type of TokenSelector to be used]]>
  37142. </doc>
  37143. </method>
  37144. <doc>
  37145. <![CDATA[Indicates Token related information to be used]]>
  37146. </doc>
  37147. </interface>
  37148. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  37149. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  37150. <class name="TokenRenewer" extends="java.lang.Object"
  37151. abstract="true"
  37152. static="false" final="false" visibility="public"
  37153. deprecated="not deprecated">
  37154. <constructor name="TokenRenewer"
  37155. static="false" final="false" visibility="public"
  37156. deprecated="not deprecated">
  37157. </constructor>
  37158. <method name="handleKind" return="boolean"
  37159. abstract="true" native="false" synchronized="false"
  37160. static="false" final="false" visibility="public"
  37161. deprecated="not deprecated">
  37162. <param name="kind" type="org.apache.hadoop.io.Text"/>
  37163. <doc>
  37164. <![CDATA[Does this renewer handle this kind of token?
  37165. @param kind the kind of the token
  37166. @return true if this renewer can renew it]]>
  37167. </doc>
  37168. </method>
  37169. <method name="isManaged" return="boolean"
  37170. abstract="true" native="false" synchronized="false"
  37171. static="false" final="false" visibility="public"
  37172. deprecated="not deprecated">
  37173. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37174. <exception name="IOException" type="java.io.IOException"/>
  37175. <doc>
  37176. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  37177. cancelled.
  37178. @param token the token being checked
  37179. @return true if the token may be renewed or cancelled
  37180. @throws IOException]]>
  37181. </doc>
  37182. </method>
  37183. <method name="renew" return="long"
  37184. abstract="true" native="false" synchronized="false"
  37185. static="false" final="false" visibility="public"
  37186. deprecated="not deprecated">
  37187. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37188. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37189. <exception name="IOException" type="java.io.IOException"/>
  37190. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37191. <doc>
  37192. <![CDATA[Renew the given token.
  37193. @return the new expiration time
  37194. @throws IOException
  37195. @throws InterruptedException]]>
  37196. </doc>
  37197. </method>
  37198. <method name="cancel"
  37199. abstract="true" native="false" synchronized="false"
  37200. static="false" final="false" visibility="public"
  37201. deprecated="not deprecated">
  37202. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37203. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37204. <exception name="IOException" type="java.io.IOException"/>
  37205. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37206. <doc>
  37207. <![CDATA[Cancel the given token
  37208. @throws IOException
  37209. @throws InterruptedException]]>
  37210. </doc>
  37211. </method>
  37212. <doc>
  37213. <![CDATA[This is the interface for plugins that handle tokens.]]>
  37214. </doc>
  37215. </class>
  37216. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  37217. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  37218. <interface name="TokenSelector" abstract="true"
  37219. static="false" final="false" visibility="public"
  37220. deprecated="not deprecated">
  37221. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  37222. abstract="false" native="false" synchronized="false"
  37223. static="false" final="false" visibility="public"
  37224. deprecated="not deprecated">
  37225. <param name="service" type="org.apache.hadoop.io.Text"/>
  37226. <param name="tokens" type="java.util.Collection"/>
  37227. </method>
  37228. <doc>
  37229. <![CDATA[Select token of type T from tokens for use with named service
  37230. @param <T>
  37231. T extends TokenIdentifier]]>
  37232. </doc>
  37233. </interface>
  37234. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  37235. </package>
  37236. <package name="org.apache.hadoop.security.token.delegation">
  37237. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  37238. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  37239. abstract="true"
  37240. static="false" final="false" visibility="public"
  37241. deprecated="not deprecated">
  37242. <constructor name="AbstractDelegationTokenIdentifier"
  37243. static="false" final="false" visibility="public"
  37244. deprecated="not deprecated">
  37245. </constructor>
  37246. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  37247. static="false" final="false" visibility="public"
  37248. deprecated="not deprecated">
  37249. </constructor>
  37250. <method name="getKind" return="org.apache.hadoop.io.Text"
  37251. abstract="true" native="false" synchronized="false"
  37252. static="false" final="false" visibility="public"
  37253. deprecated="not deprecated">
  37254. </method>
  37255. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  37256. abstract="false" native="false" synchronized="false"
  37257. static="false" final="false" visibility="public"
  37258. deprecated="not deprecated">
  37259. <doc>
  37260. <![CDATA[Get the username encoded in the token identifier
  37261. @return the username or owner]]>
  37262. </doc>
  37263. </method>
  37264. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  37265. abstract="false" native="false" synchronized="false"
  37266. static="false" final="false" visibility="public"
  37267. deprecated="not deprecated">
  37268. </method>
  37269. <method name="setIssueDate"
  37270. abstract="false" native="false" synchronized="false"
  37271. static="false" final="false" visibility="public"
  37272. deprecated="not deprecated">
  37273. <param name="issueDate" type="long"/>
  37274. </method>
  37275. <method name="getIssueDate" return="long"
  37276. abstract="false" native="false" synchronized="false"
  37277. static="false" final="false" visibility="public"
  37278. deprecated="not deprecated">
  37279. </method>
  37280. <method name="setMaxDate"
  37281. abstract="false" native="false" synchronized="false"
  37282. static="false" final="false" visibility="public"
  37283. deprecated="not deprecated">
  37284. <param name="maxDate" type="long"/>
  37285. </method>
  37286. <method name="getMaxDate" return="long"
  37287. abstract="false" native="false" synchronized="false"
  37288. static="false" final="false" visibility="public"
  37289. deprecated="not deprecated">
  37290. </method>
  37291. <method name="setSequenceNumber"
  37292. abstract="false" native="false" synchronized="false"
  37293. static="false" final="false" visibility="public"
  37294. deprecated="not deprecated">
  37295. <param name="seqNum" type="int"/>
  37296. </method>
  37297. <method name="getSequenceNumber" return="int"
  37298. abstract="false" native="false" synchronized="false"
  37299. static="false" final="false" visibility="public"
  37300. deprecated="not deprecated">
  37301. </method>
  37302. <method name="setMasterKeyId"
  37303. abstract="false" native="false" synchronized="false"
  37304. static="false" final="false" visibility="public"
  37305. deprecated="not deprecated">
  37306. <param name="newId" type="int"/>
  37307. </method>
  37308. <method name="getMasterKeyId" return="int"
  37309. abstract="false" native="false" synchronized="false"
  37310. static="false" final="false" visibility="public"
  37311. deprecated="not deprecated">
  37312. </method>
  37313. <method name="equals" return="boolean"
  37314. abstract="false" native="false" synchronized="false"
  37315. static="false" final="false" visibility="public"
  37316. deprecated="not deprecated">
  37317. <param name="obj" type="java.lang.Object"/>
  37318. <doc>
  37319. <![CDATA[{@inheritDoc}]]>
  37320. </doc>
  37321. </method>
  37322. <method name="hashCode" return="int"
  37323. abstract="false" native="false" synchronized="false"
  37324. static="false" final="false" visibility="public"
  37325. deprecated="not deprecated">
  37326. <doc>
  37327. <![CDATA[{@inheritDoc}]]>
  37328. </doc>
  37329. </method>
  37330. <method name="readFields"
  37331. abstract="false" native="false" synchronized="false"
  37332. static="false" final="false" visibility="public"
  37333. deprecated="not deprecated">
  37334. <param name="in" type="java.io.DataInput"/>
  37335. <exception name="IOException" type="java.io.IOException"/>
  37336. </method>
  37337. <method name="write"
  37338. abstract="false" native="false" synchronized="false"
  37339. static="false" final="false" visibility="public"
  37340. deprecated="not deprecated">
  37341. <param name="out" type="java.io.DataOutput"/>
  37342. <exception name="IOException" type="java.io.IOException"/>
  37343. </method>
  37344. <method name="toString" return="java.lang.String"
  37345. abstract="false" native="false" synchronized="false"
  37346. static="false" final="false" visibility="public"
  37347. deprecated="not deprecated">
  37348. </method>
  37349. </class>
  37350. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  37351. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  37352. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  37353. abstract="true"
  37354. static="false" final="false" visibility="public"
  37355. deprecated="not deprecated">
  37356. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  37357. static="false" final="false" visibility="public"
  37358. deprecated="not deprecated">
  37359. </constructor>
  37360. <method name="startThreads"
  37361. abstract="false" native="false" synchronized="true"
  37362. static="false" final="false" visibility="public"
  37363. deprecated="not deprecated">
  37364. <exception name="IOException" type="java.io.IOException"/>
  37365. <doc>
  37366. <![CDATA[should be called before this object is used]]>
  37367. </doc>
  37368. </method>
  37369. <method name="isRunning" return="boolean"
  37370. abstract="false" native="false" synchronized="true"
  37371. static="false" final="false" visibility="public"
  37372. deprecated="not deprecated">
  37373. <doc>
  37374. <![CDATA[is secretMgr running
  37375. @return true if secret mgr is running]]>
  37376. </doc>
  37377. </method>
  37378. <method name="addKey"
  37379. abstract="false" native="false" synchronized="true"
  37380. static="false" final="false" visibility="public"
  37381. deprecated="not deprecated">
  37382. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  37383. <exception name="IOException" type="java.io.IOException"/>
  37384. <doc>
  37385. <![CDATA[Add a previously used master key to cache (when NN restarts),
  37386. should be called before activate().]]>
  37387. </doc>
  37388. </method>
  37389. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  37390. abstract="false" native="false" synchronized="true"
  37391. static="false" final="false" visibility="public"
  37392. deprecated="not deprecated">
  37393. </method>
  37394. <method name="logUpdateMasterKey"
  37395. abstract="false" native="false" synchronized="false"
  37396. static="false" final="false" visibility="protected"
  37397. deprecated="not deprecated">
  37398. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  37399. <exception name="IOException" type="java.io.IOException"/>
  37400. </method>
  37401. <method name="createPassword" return="byte[]"
  37402. abstract="false" native="false" synchronized="true"
  37403. static="false" final="false" visibility="protected"
  37404. deprecated="not deprecated">
  37405. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37406. </method>
  37407. <method name="retrievePassword" return="byte[]"
  37408. abstract="false" native="false" synchronized="true"
  37409. static="false" final="false" visibility="public"
  37410. deprecated="not deprecated">
  37411. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37412. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37413. </method>
  37414. <method name="verifyToken"
  37415. abstract="false" native="false" synchronized="true"
  37416. static="false" final="false" visibility="public"
  37417. deprecated="not deprecated">
  37418. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  37419. <param name="password" type="byte[]"/>
  37420. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37421. <doc>
  37422. <![CDATA[Verifies that the given identifier and password are valid and match.
  37423. @param identifier Token identifier.
  37424. @param password Password in the token.
  37425. @throws InvalidToken]]>
  37426. </doc>
  37427. </method>
  37428. <method name="renewToken" return="long"
  37429. abstract="false" native="false" synchronized="true"
  37430. static="false" final="false" visibility="public"
  37431. deprecated="not deprecated">
  37432. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37433. <param name="renewer" type="java.lang.String"/>
  37434. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  37435. <exception name="IOException" type="java.io.IOException"/>
  37436. <doc>
  37437. <![CDATA[Renew a delegation token.
  37438. @param token the token to renew
  37439. @param renewer the full principal name of the user doing the renewal
  37440. @return the new expiration time
  37441. @throws InvalidToken if the token is invalid
  37442. @throws AccessControlException if the user can't renew token]]>
  37443. </doc>
  37444. </method>
  37445. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  37446. abstract="false" native="false" synchronized="true"
  37447. static="false" final="false" visibility="public"
  37448. deprecated="not deprecated">
  37449. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37450. <param name="canceller" type="java.lang.String"/>
  37451. <exception name="IOException" type="java.io.IOException"/>
  37452. <doc>
  37453. <![CDATA[Cancel a token by removing it from cache.
  37454. @return Identifier of the canceled token
  37455. @throws InvalidToken for invalid token
  37456. @throws AccessControlException if the user isn't allowed to cancel]]>
  37457. </doc>
  37458. </method>
  37459. <method name="createSecretKey" return="javax.crypto.SecretKey"
  37460. abstract="false" native="false" synchronized="false"
  37461. static="true" final="false" visibility="public"
  37462. deprecated="not deprecated">
  37463. <param name="key" type="byte[]"/>
  37464. <doc>
  37465. <![CDATA[Convert the byte[] to a secret key
  37466. @param key the byte[] to create the secret key from
  37467. @return the secret key]]>
  37468. </doc>
  37469. </method>
  37470. <method name="stopThreads"
  37471. abstract="false" native="false" synchronized="true"
  37472. static="false" final="false" visibility="public"
  37473. deprecated="not deprecated">
  37474. </method>
  37475. <field name="currentTokens" type="java.util.Map"
  37476. transient="false" volatile="false"
  37477. static="false" final="true" visibility="protected"
  37478. deprecated="not deprecated">
  37479. <doc>
  37480. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  37481. to DelegationTokenInformation. Protected by this object lock.]]>
  37482. </doc>
  37483. </field>
  37484. <field name="delegationTokenSequenceNumber" type="int"
  37485. transient="false" volatile="false"
  37486. static="false" final="false" visibility="protected"
  37487. deprecated="not deprecated">
  37488. <doc>
  37489. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  37490. Protected by this object lock.]]>
  37491. </doc>
  37492. </field>
  37493. <field name="allKeys" type="java.util.Map"
  37494. transient="false" volatile="false"
  37495. static="false" final="true" visibility="protected"
  37496. deprecated="not deprecated">
  37497. <doc>
  37498. <![CDATA[Access to allKeys is protected by this object lock]]>
  37499. </doc>
  37500. </field>
  37501. <field name="currentId" type="int"
  37502. transient="false" volatile="false"
  37503. static="false" final="false" visibility="protected"
  37504. deprecated="not deprecated">
  37505. <doc>
  37506. <![CDATA[Access to currentId is protected by this object lock.]]>
  37507. </doc>
  37508. </field>
  37509. <field name="running" type="boolean"
  37510. transient="false" volatile="true"
  37511. static="false" final="false" visibility="protected"
  37512. deprecated="not deprecated">
  37513. </field>
  37514. </class>
  37515. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  37516. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  37517. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  37518. abstract="false"
  37519. static="true" final="false" visibility="public"
  37520. deprecated="not deprecated">
  37521. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  37522. static="false" final="false" visibility="public"
  37523. deprecated="not deprecated">
  37524. </constructor>
  37525. <method name="getRenewDate" return="long"
  37526. abstract="false" native="false" synchronized="false"
  37527. static="false" final="false" visibility="public"
  37528. deprecated="not deprecated">
  37529. <doc>
  37530. <![CDATA[returns renew date]]>
  37531. </doc>
  37532. </method>
  37533. <doc>
  37534. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  37535. </doc>
  37536. </class>
  37537. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  37538. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  37539. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  37540. abstract="false"
  37541. static="false" final="false" visibility="public"
  37542. deprecated="not deprecated">
  37543. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  37544. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  37545. static="false" final="false" visibility="protected"
  37546. deprecated="not deprecated">
  37547. </constructor>
  37548. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  37549. abstract="false" native="false" synchronized="false"
  37550. static="false" final="false" visibility="public"
  37551. deprecated="not deprecated">
  37552. <param name="service" type="org.apache.hadoop.io.Text"/>
  37553. <param name="tokens" type="java.util.Collection"/>
  37554. </method>
  37555. <doc>
  37556. <![CDATA[Look through tokens to find the first delegation token that matches the
  37557. service and return it.]]>
  37558. </doc>
  37559. </class>
  37560. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  37561. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  37562. <class name="DelegationKey" extends="java.lang.Object"
  37563. abstract="false"
  37564. static="false" final="false" visibility="public"
  37565. deprecated="not deprecated">
  37566. <implements name="org.apache.hadoop.io.Writable"/>
  37567. <constructor name="DelegationKey"
  37568. static="false" final="false" visibility="public"
  37569. deprecated="not deprecated">
  37570. </constructor>
  37571. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  37572. static="false" final="false" visibility="public"
  37573. deprecated="not deprecated">
  37574. </constructor>
  37575. <method name="getKeyId" return="int"
  37576. abstract="false" native="false" synchronized="false"
  37577. static="false" final="false" visibility="public"
  37578. deprecated="not deprecated">
  37579. </method>
  37580. <method name="getExpiryDate" return="long"
  37581. abstract="false" native="false" synchronized="false"
  37582. static="false" final="false" visibility="public"
  37583. deprecated="not deprecated">
  37584. </method>
  37585. <method name="getKey" return="javax.crypto.SecretKey"
  37586. abstract="false" native="false" synchronized="false"
  37587. static="false" final="false" visibility="public"
  37588. deprecated="not deprecated">
  37589. </method>
  37590. <method name="setExpiryDate"
  37591. abstract="false" native="false" synchronized="false"
  37592. static="false" final="false" visibility="public"
  37593. deprecated="not deprecated">
  37594. <param name="expiryDate" type="long"/>
  37595. </method>
  37596. <method name="write"
  37597. abstract="false" native="false" synchronized="false"
  37598. static="false" final="false" visibility="public"
  37599. deprecated="not deprecated">
  37600. <param name="out" type="java.io.DataOutput"/>
  37601. <exception name="IOException" type="java.io.IOException"/>
  37602. </method>
  37603. <method name="readFields"
  37604. abstract="false" native="false" synchronized="false"
  37605. static="false" final="false" visibility="public"
  37606. deprecated="not deprecated">
  37607. <param name="in" type="java.io.DataInput"/>
  37608. <exception name="IOException" type="java.io.IOException"/>
  37609. </method>
  37610. <doc>
  37611. <![CDATA[Key used for generating and verifying delegation tokens]]>
  37612. </doc>
  37613. </class>
  37614. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  37615. </package>
  37616. <package name="org.apache.hadoop.util">
  37617. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  37618. <class name="ChecksumUtil" extends="java.lang.Object"
  37619. abstract="false"
  37620. static="false" final="false" visibility="public"
  37621. deprecated="not deprecated">
  37622. <constructor name="ChecksumUtil"
  37623. static="false" final="false" visibility="public"
  37624. deprecated="not deprecated">
  37625. </constructor>
  37626. <method name="updateChunkChecksum"
  37627. abstract="false" native="false" synchronized="false"
  37628. static="true" final="false" visibility="public"
  37629. deprecated="not deprecated">
  37630. <param name="buf" type="byte[]"/>
  37631. <param name="checksumOff" type="int"/>
  37632. <param name="dataOff" type="int"/>
  37633. <param name="dataLen" type="int"/>
  37634. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  37635. <exception name="IOException" type="java.io.IOException"/>
  37636. <doc>
  37637. <![CDATA[updates the checksum for a buffer
  37638. @param buf - buffer to update the checksum in
  37639. @param chunkOff - offset in the buffer where the checksum is to update
  37640. @param dataOff - offset in the buffer of the data
  37641. @param dataLen - length of data to compute checksum on]]>
  37642. </doc>
  37643. </method>
  37644. </class>
  37645. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  37646. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  37647. <class name="CyclicIteration" extends="java.lang.Object"
  37648. abstract="false"
  37649. static="false" final="false" visibility="public"
  37650. deprecated="not deprecated">
  37651. <implements name="java.lang.Iterable"/>
  37652. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  37653. static="false" final="false" visibility="public"
  37654. deprecated="not deprecated">
  37655. <doc>
  37656. <![CDATA[Construct an {@link Iterable} object,
  37657. so that an {@link Iterator} can be created
  37658. for iterating the given {@link NavigableMap}.
  37659. The iteration begins from the starting key exclusively.]]>
  37660. </doc>
  37661. </constructor>
  37662. <method name="iterator" return="java.util.Iterator"
  37663. abstract="false" native="false" synchronized="false"
  37664. static="false" final="false" visibility="public"
  37665. deprecated="not deprecated">
  37666. <doc>
  37667. <![CDATA[{@inheritDoc}]]>
  37668. </doc>
  37669. </method>
  37670. <doc>
  37671. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  37672. The {@link Iterator} navigates the entries of the map
  37673. according to the map's ordering.
  37674. If the {@link Iterator} hits the last entry of the map,
  37675. it will then continue from the first entry.]]>
  37676. </doc>
  37677. </class>
  37678. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  37679. <!-- start class org.apache.hadoop.util.Daemon -->
  37680. <class name="Daemon" extends="java.lang.Thread"
  37681. abstract="false"
  37682. static="false" final="false" visibility="public"
  37683. deprecated="not deprecated">
  37684. <constructor name="Daemon"
  37685. static="false" final="false" visibility="public"
  37686. deprecated="not deprecated">
  37687. <doc>
  37688. <![CDATA[Construct a daemon thread.]]>
  37689. </doc>
  37690. </constructor>
  37691. <constructor name="Daemon" type="java.lang.Runnable"
  37692. static="false" final="false" visibility="public"
  37693. deprecated="not deprecated">
  37694. <doc>
  37695. <![CDATA[Construct a daemon thread.]]>
  37696. </doc>
  37697. </constructor>
  37698. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  37699. static="false" final="false" visibility="public"
  37700. deprecated="not deprecated">
  37701. <doc>
  37702. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  37703. </doc>
  37704. </constructor>
  37705. <method name="getRunnable" return="java.lang.Runnable"
  37706. abstract="false" native="false" synchronized="false"
  37707. static="false" final="false" visibility="public"
  37708. deprecated="not deprecated">
  37709. </method>
  37710. <doc>
  37711. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  37712. </doc>
  37713. </class>
  37714. <!-- end class org.apache.hadoop.util.Daemon -->
  37715. <!-- start class org.apache.hadoop.util.DataChecksum -->
  37716. <class name="DataChecksum" extends="java.lang.Object"
  37717. abstract="false"
  37718. static="false" final="false" visibility="public"
  37719. deprecated="not deprecated">
  37720. <implements name="java.util.zip.Checksum"/>
  37721. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37722. abstract="false" native="false" synchronized="false"
  37723. static="true" final="false" visibility="public"
  37724. deprecated="not deprecated">
  37725. <param name="type" type="int"/>
  37726. <param name="bytesPerChecksum" type="int"/>
  37727. </method>
  37728. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37729. abstract="false" native="false" synchronized="false"
  37730. static="true" final="false" visibility="public"
  37731. deprecated="not deprecated">
  37732. <param name="bytes" type="byte[]"/>
  37733. <param name="offset" type="int"/>
  37734. <doc>
  37735. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  37736. @return DataChecksum of the type in the array or null in case of an error.]]>
  37737. </doc>
  37738. </method>
  37739. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  37740. abstract="false" native="false" synchronized="false"
  37741. static="true" final="false" visibility="public"
  37742. deprecated="not deprecated">
  37743. <param name="in" type="java.io.DataInputStream"/>
  37744. <exception name="IOException" type="java.io.IOException"/>
  37745. <doc>
  37746. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  37747. input stream <i>in</i>]]>
  37748. </doc>
  37749. </method>
  37750. <method name="writeHeader"
  37751. abstract="false" native="false" synchronized="false"
  37752. static="false" final="false" visibility="public"
  37753. deprecated="not deprecated">
  37754. <param name="out" type="java.io.DataOutputStream"/>
  37755. <exception name="IOException" type="java.io.IOException"/>
  37756. <doc>
  37757. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  37758. </doc>
  37759. </method>
  37760. <method name="getHeader" return="byte[]"
  37761. abstract="false" native="false" synchronized="false"
  37762. static="false" final="false" visibility="public"
  37763. deprecated="not deprecated">
  37764. </method>
  37765. <method name="writeValue" return="int"
  37766. abstract="false" native="false" synchronized="false"
  37767. static="false" final="false" visibility="public"
  37768. deprecated="not deprecated">
  37769. <param name="out" type="java.io.DataOutputStream"/>
  37770. <param name="reset" type="boolean"/>
  37771. <exception name="IOException" type="java.io.IOException"/>
  37772. <doc>
  37773. <![CDATA[Writes the current checksum to the stream.
  37774. If <i>reset</i> is true, then resets the checksum.
  37775. @return number of bytes written. Will be equal to getChecksumSize();]]>
  37776. </doc>
  37777. </method>
  37778. <method name="writeValue" return="int"
  37779. abstract="false" native="false" synchronized="false"
  37780. static="false" final="false" visibility="public"
  37781. deprecated="not deprecated">
  37782. <param name="buf" type="byte[]"/>
  37783. <param name="offset" type="int"/>
  37784. <param name="reset" type="boolean"/>
  37785. <exception name="IOException" type="java.io.IOException"/>
  37786. <doc>
  37787. <![CDATA[Writes the current checksum to a buffer.
  37788. If <i>reset</i> is true, then resets the checksum.
  37789. @return number of bytes written. Will be equal to getChecksumSize();]]>
  37790. </doc>
  37791. </method>
  37792. <method name="compare" return="boolean"
  37793. abstract="false" native="false" synchronized="false"
  37794. static="false" final="false" visibility="public"
  37795. deprecated="not deprecated">
  37796. <param name="buf" type="byte[]"/>
  37797. <param name="offset" type="int"/>
  37798. <doc>
  37799. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  37800. @return true if the checksum matches and false otherwise.]]>
  37801. </doc>
  37802. </method>
  37803. <method name="getChecksumType" return="int"
  37804. abstract="false" native="false" synchronized="false"
  37805. static="false" final="false" visibility="public"
  37806. deprecated="not deprecated">
  37807. </method>
  37808. <method name="getChecksumSize" return="int"
  37809. abstract="false" native="false" synchronized="false"
  37810. static="false" final="false" visibility="public"
  37811. deprecated="not deprecated">
  37812. </method>
  37813. <method name="getBytesPerChecksum" return="int"
  37814. abstract="false" native="false" synchronized="false"
  37815. static="false" final="false" visibility="public"
  37816. deprecated="not deprecated">
  37817. </method>
  37818. <method name="getNumBytesInSum" return="int"
  37819. abstract="false" native="false" synchronized="false"
  37820. static="false" final="false" visibility="public"
  37821. deprecated="not deprecated">
  37822. </method>
  37823. <method name="getChecksumHeaderSize" return="int"
  37824. abstract="false" native="false" synchronized="false"
  37825. static="true" final="false" visibility="public"
  37826. deprecated="not deprecated">
  37827. </method>
  37828. <method name="getValue" return="long"
  37829. abstract="false" native="false" synchronized="false"
  37830. static="false" final="false" visibility="public"
  37831. deprecated="not deprecated">
  37832. </method>
  37833. <method name="reset"
  37834. abstract="false" native="false" synchronized="false"
  37835. static="false" final="false" visibility="public"
  37836. deprecated="not deprecated">
  37837. </method>
  37838. <method name="update"
  37839. abstract="false" native="false" synchronized="false"
  37840. static="false" final="false" visibility="public"
  37841. deprecated="not deprecated">
  37842. <param name="b" type="byte[]"/>
  37843. <param name="off" type="int"/>
  37844. <param name="len" type="int"/>
  37845. </method>
  37846. <method name="update"
  37847. abstract="false" native="false" synchronized="false"
  37848. static="false" final="false" visibility="public"
  37849. deprecated="not deprecated">
  37850. <param name="b" type="int"/>
  37851. </method>
  37852. <field name="HEADER_LEN" type="int"
  37853. transient="false" volatile="false"
  37854. static="true" final="true" visibility="public"
  37855. deprecated="not deprecated">
  37856. </field>
  37857. <field name="CHECKSUM_NULL" type="int"
  37858. transient="false" volatile="false"
  37859. static="true" final="true" visibility="public"
  37860. deprecated="not deprecated">
  37861. </field>
  37862. <field name="CHECKSUM_CRC32" type="int"
  37863. transient="false" volatile="false"
  37864. static="true" final="true" visibility="public"
  37865. deprecated="not deprecated">
  37866. </field>
  37867. <field name="SIZE_OF_INTEGER" type="int"
  37868. transient="false" volatile="false"
  37869. static="true" final="true" visibility="public"
  37870. deprecated="not deprecated">
  37871. </field>
  37872. <doc>
  37873. <![CDATA[This class provides inteface and utilities for processing checksums for
  37874. DFS data transfers.]]>
  37875. </doc>
  37876. </class>
  37877. <!-- end class org.apache.hadoop.util.DataChecksum -->
  37878. <!-- start class org.apache.hadoop.util.DiskChecker -->
  37879. <class name="DiskChecker" extends="java.lang.Object"
  37880. abstract="false"
  37881. static="false" final="false" visibility="public"
  37882. deprecated="not deprecated">
  37883. <constructor name="DiskChecker"
  37884. static="false" final="false" visibility="public"
  37885. deprecated="not deprecated">
  37886. </constructor>
  37887. <method name="mkdirsWithExistsCheck" return="boolean"
  37888. abstract="false" native="false" synchronized="false"
  37889. static="true" final="false" visibility="public"
  37890. deprecated="not deprecated">
  37891. <param name="dir" type="java.io.File"/>
  37892. <doc>
  37893. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  37894. method provided in the Sun's java.io.File class in the following way:
  37895. While creating the non-existent parent directories, this method checks for
  37896. the existence of those directories if the mkdir fails at any point (since
  37897. that directory might have just been created by some other process).
  37898. If both mkdir() and the exists() check fails for any seemingly
  37899. non-existent directory, then we signal an error; Sun's mkdir would signal
  37900. an error (return false) if a directory it is attempting to create already
  37901. exists or the mkdir fails.
  37902. @param dir
  37903. @return true on success, false on failure]]>
  37904. </doc>
  37905. </method>
  37906. <method name="checkDir"
  37907. abstract="false" native="false" synchronized="false"
  37908. static="true" final="false" visibility="public"
  37909. deprecated="not deprecated">
  37910. <param name="dir" type="java.io.File"/>
  37911. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  37912. <doc>
  37913. <![CDATA[Create the directory if it doesn't exist and
  37914. @param dir
  37915. @throws DiskErrorException]]>
  37916. </doc>
  37917. </method>
  37918. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  37919. abstract="false" native="false" synchronized="false"
  37920. static="true" final="false" visibility="public"
  37921. deprecated="not deprecated">
  37922. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  37923. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  37924. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  37925. <exception name="IOException" type="java.io.IOException"/>
  37926. <doc>
  37927. <![CDATA[Create the directory or check permissions if it already exists.
  37928. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  37929. from the mkdirs method provided in the Sun's java.io.File class in the
  37930. following way:
  37931. While creating the non-existent parent directories, this method checks for
  37932. the existence of those directories if the mkdir fails at any point (since
  37933. that directory might have just been created by some other process).
  37934. If both mkdir() and the exists() check fails for any seemingly
  37935. non-existent directory, then we signal an error; Sun's mkdir would signal
  37936. an error (return false) if a directory it is attempting to create already
  37937. exists or the mkdir fails.
  37938. @param localFS local filesystem
  37939. @param dir directory to be created or checked
  37940. @param expected expected permission
  37941. @return true on success, false on failure]]>
  37942. </doc>
  37943. </method>
  37944. <method name="checkDir"
  37945. abstract="false" native="false" synchronized="false"
  37946. static="true" final="false" visibility="public"
  37947. deprecated="not deprecated">
  37948. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  37949. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  37950. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  37951. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  37952. <exception name="IOException" type="java.io.IOException"/>
  37953. <doc>
  37954. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  37955. it can be read from and written into.
  37956. @param localFS local filesystem
  37957. @param dir directory
  37958. @param expected permission
  37959. @throws DiskErrorException
  37960. @throws IOException]]>
  37961. </doc>
  37962. </method>
  37963. <doc>
  37964. <![CDATA[Class that provides utility functions for checking disk problem]]>
  37965. </doc>
  37966. </class>
  37967. <!-- end class org.apache.hadoop.util.DiskChecker -->
  37968. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  37969. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  37970. abstract="false"
  37971. static="true" final="false" visibility="public"
  37972. deprecated="not deprecated">
  37973. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  37974. static="false" final="false" visibility="public"
  37975. deprecated="not deprecated">
  37976. </constructor>
  37977. </class>
  37978. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  37979. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  37980. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  37981. abstract="false"
  37982. static="true" final="false" visibility="public"
  37983. deprecated="not deprecated">
  37984. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  37985. static="false" final="false" visibility="public"
  37986. deprecated="not deprecated">
  37987. </constructor>
  37988. </class>
  37989. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  37990. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  37991. <class name="GenericOptionsParser" extends="java.lang.Object"
  37992. abstract="false"
  37993. static="false" final="false" visibility="public"
  37994. deprecated="not deprecated">
  37995. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  37996. static="false" final="false" visibility="public"
  37997. deprecated="not deprecated">
  37998. <exception name="IOException" type="java.io.IOException"/>
  37999. <doc>
  38000. <![CDATA[Create an options parser with the given options to parse the args.
  38001. @param opts the options
  38002. @param args the command line arguments
  38003. @throws IOException]]>
  38004. </doc>
  38005. </constructor>
  38006. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  38007. static="false" final="false" visibility="public"
  38008. deprecated="not deprecated">
  38009. <exception name="IOException" type="java.io.IOException"/>
  38010. <doc>
  38011. <![CDATA[Create an options parser to parse the args.
  38012. @param args the command line arguments
  38013. @throws IOException]]>
  38014. </doc>
  38015. </constructor>
  38016. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  38017. static="false" final="false" visibility="public"
  38018. deprecated="not deprecated">
  38019. <exception name="IOException" type="java.io.IOException"/>
  38020. <doc>
  38021. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  38022. arguments.
  38023. The array of string arguments other than the generic arguments can be
  38024. obtained by {@link #getRemainingArgs()}.
  38025. @param conf the <code>Configuration</code> to modify.
  38026. @param args command-line arguments.
  38027. @throws IOException]]>
  38028. </doc>
  38029. </constructor>
  38030. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  38031. static="false" final="false" visibility="public"
  38032. deprecated="not deprecated">
  38033. <exception name="IOException" type="java.io.IOException"/>
  38034. <doc>
  38035. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  38036. as generic Hadoop options.
  38037. The resulting <code>CommandLine</code> object can be obtained by
  38038. {@link #getCommandLine()}.
  38039. @param conf the configuration to modify
  38040. @param options options built by the caller
  38041. @param args User-specified arguments
  38042. @throws IOException]]>
  38043. </doc>
  38044. </constructor>
  38045. <method name="getRemainingArgs" return="java.lang.String[]"
  38046. abstract="false" native="false" synchronized="false"
  38047. static="false" final="false" visibility="public"
  38048. deprecated="not deprecated">
  38049. <doc>
  38050. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  38051. @return array of <code>String</code>s containing the un-parsed arguments
  38052. or <strong>empty array</strong> if commandLine was not defined.]]>
  38053. </doc>
  38054. </method>
  38055. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  38056. abstract="false" native="false" synchronized="false"
  38057. static="false" final="false" visibility="public"
  38058. deprecated="not deprecated">
  38059. <doc>
  38060. <![CDATA[Get the modified configuration
  38061. @return the configuration that has the modified parameters.]]>
  38062. </doc>
  38063. </method>
  38064. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  38065. abstract="false" native="false" synchronized="false"
  38066. static="false" final="false" visibility="public"
  38067. deprecated="not deprecated">
  38068. <doc>
  38069. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  38070. to process the parsed arguments.
  38071. Note: If the object is created with
  38072. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  38073. object will only contain parsed generic options.
  38074. @return <code>CommandLine</code> representing list of arguments
  38075. parsed against Options descriptor.]]>
  38076. </doc>
  38077. </method>
  38078. <method name="getLibJars" return="java.net.URL[]"
  38079. abstract="false" native="false" synchronized="false"
  38080. static="true" final="false" visibility="public"
  38081. deprecated="not deprecated">
  38082. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38083. <exception name="IOException" type="java.io.IOException"/>
  38084. <doc>
  38085. <![CDATA[If libjars are set in the conf, parse the libjars.
  38086. @param conf
  38087. @return libjar urls
  38088. @throws IOException]]>
  38089. </doc>
  38090. </method>
  38091. <method name="printGenericCommandUsage"
  38092. abstract="false" native="false" synchronized="false"
  38093. static="true" final="false" visibility="public"
  38094. deprecated="not deprecated">
  38095. <param name="out" type="java.io.PrintStream"/>
  38096. <doc>
  38097. <![CDATA[Print the usage message for generic command-line options supported.
  38098. @param out stream to print the usage message to.]]>
  38099. </doc>
  38100. </method>
  38101. <doc>
  38102. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  38103. arguments generic to the Hadoop framework.
  38104. <code>GenericOptionsParser</code> recognizes several standarad command
  38105. line arguments, enabling applications to easily specify a namenode, a
  38106. jobtracker, additional configuration resources etc.
  38107. <h4 id="GenericOptions">Generic Options</h4>
  38108. <p>The supported generic options are:</p>
  38109. <p><blockquote><pre>
  38110. -conf &lt;configuration file&gt; specify a configuration file
  38111. -D &lt;property=value&gt; use value for given property
  38112. -fs &lt;local|namenode:port&gt; specify a namenode
  38113. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  38114. -files &lt;comma separated list of files&gt; specify comma separated
  38115. files to be copied to the map reduce cluster
  38116. -libjars &lt;comma separated list of jars&gt; specify comma separated
  38117. jar files to include in the classpath.
  38118. -archives &lt;comma separated list of archives&gt; specify comma
  38119. separated archives to be unarchived on the compute machines.
  38120. </pre></blockquote></p>
  38121. <p>The general command line syntax is:</p>
  38122. <p><tt><pre>
  38123. bin/hadoop command [genericOptions] [commandOptions]
  38124. </pre></tt></p>
  38125. <p>Generic command line arguments <strong>might</strong> modify
  38126. <code>Configuration </code> objects, given to constructors.</p>
  38127. <p>The functionality is implemented using Commons CLI.</p>
  38128. <p>Examples:</p>
  38129. <p><blockquote><pre>
  38130. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  38131. list /data directory in dfs with namenode darwin:8020
  38132. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  38133. list /data directory in dfs with namenode darwin:8020
  38134. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  38135. list /data directory in dfs with conf specified in hadoop-site.xml
  38136. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  38137. submit a job to job tracker darwin:50020
  38138. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  38139. submit a job to job tracker darwin:50020
  38140. $ bin/hadoop job -jt local -submit job.xml
  38141. submit a job to local runner
  38142. $ bin/hadoop jar -libjars testlib.jar
  38143. -archives test.tgz -files file.txt inputjar args
  38144. job submission with libjars, files and archives
  38145. </pre></blockquote></p>
  38146. @see Tool
  38147. @see ToolRunner]]>
  38148. </doc>
  38149. </class>
  38150. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  38151. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  38152. <class name="GenericsUtil" extends="java.lang.Object"
  38153. abstract="false"
  38154. static="false" final="false" visibility="public"
  38155. deprecated="not deprecated">
  38156. <constructor name="GenericsUtil"
  38157. static="false" final="false" visibility="public"
  38158. deprecated="not deprecated">
  38159. </constructor>
  38160. <method name="getClass" return="java.lang.Class"
  38161. abstract="false" native="false" synchronized="false"
  38162. static="true" final="false" visibility="public"
  38163. deprecated="not deprecated">
  38164. <param name="t" type="java.lang.Object"/>
  38165. <doc>
  38166. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  38167. argument of type <code>T</code>.
  38168. @param <T> The type of the argument
  38169. @param t the object to get it class
  38170. @return <code>Class&lt;T&gt;</code>]]>
  38171. </doc>
  38172. </method>
  38173. <method name="toArray" return="java.lang.Object[]"
  38174. abstract="false" native="false" synchronized="false"
  38175. static="true" final="false" visibility="public"
  38176. deprecated="not deprecated">
  38177. <param name="c" type="java.lang.Class"/>
  38178. <param name="list" type="java.util.List"/>
  38179. <doc>
  38180. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  38181. <code>T[]</code>.
  38182. @param c the Class object of the items in the list
  38183. @param list the list to convert]]>
  38184. </doc>
  38185. </method>
  38186. <method name="toArray" return="java.lang.Object[]"
  38187. abstract="false" native="false" synchronized="false"
  38188. static="true" final="false" visibility="public"
  38189. deprecated="not deprecated">
  38190. <param name="list" type="java.util.List"/>
  38191. <doc>
  38192. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  38193. <code>T[]</code>.
  38194. @param list the list to convert
  38195. @throws ArrayIndexOutOfBoundsException if the list is empty.
  38196. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  38197. </doc>
  38198. </method>
  38199. <doc>
  38200. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  38201. </doc>
  38202. </class>
  38203. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  38204. <!-- start class org.apache.hadoop.util.HeapSort -->
  38205. <class name="HeapSort" extends="java.lang.Object"
  38206. abstract="false"
  38207. static="false" final="true" visibility="public"
  38208. deprecated="not deprecated">
  38209. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  38210. <constructor name="HeapSort"
  38211. static="false" final="false" visibility="public"
  38212. deprecated="not deprecated">
  38213. </constructor>
  38214. <method name="sort"
  38215. abstract="false" native="false" synchronized="false"
  38216. static="false" final="false" visibility="public"
  38217. deprecated="not deprecated">
  38218. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38219. <param name="p" type="int"/>
  38220. <param name="r" type="int"/>
  38221. <doc>
  38222. <![CDATA[Sort the given range of items using heap sort.
  38223. {@inheritDoc}]]>
  38224. </doc>
  38225. </method>
  38226. <method name="sort"
  38227. abstract="false" native="false" synchronized="false"
  38228. static="false" final="false" visibility="public"
  38229. deprecated="not deprecated">
  38230. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38231. <param name="p" type="int"/>
  38232. <param name="r" type="int"/>
  38233. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  38234. <doc>
  38235. <![CDATA[{@inheritDoc}]]>
  38236. </doc>
  38237. </method>
  38238. <doc>
  38239. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  38240. </doc>
  38241. </class>
  38242. <!-- end class org.apache.hadoop.util.HeapSort -->
  38243. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  38244. <class name="HostsFileReader" extends="java.lang.Object"
  38245. abstract="false"
  38246. static="false" final="false" visibility="public"
  38247. deprecated="not deprecated">
  38248. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  38249. static="false" final="false" visibility="public"
  38250. deprecated="not deprecated">
  38251. <exception name="IOException" type="java.io.IOException"/>
  38252. </constructor>
  38253. <method name="refresh"
  38254. abstract="false" native="false" synchronized="true"
  38255. static="false" final="false" visibility="public"
  38256. deprecated="not deprecated">
  38257. <exception name="IOException" type="java.io.IOException"/>
  38258. </method>
  38259. <method name="getHosts" return="java.util.Set"
  38260. abstract="false" native="false" synchronized="true"
  38261. static="false" final="false" visibility="public"
  38262. deprecated="not deprecated">
  38263. </method>
  38264. <method name="getExcludedHosts" return="java.util.Set"
  38265. abstract="false" native="false" synchronized="true"
  38266. static="false" final="false" visibility="public"
  38267. deprecated="not deprecated">
  38268. </method>
  38269. <method name="setIncludesFile"
  38270. abstract="false" native="false" synchronized="true"
  38271. static="false" final="false" visibility="public"
  38272. deprecated="not deprecated">
  38273. <param name="includesFile" type="java.lang.String"/>
  38274. </method>
  38275. <method name="setExcludesFile"
  38276. abstract="false" native="false" synchronized="true"
  38277. static="false" final="false" visibility="public"
  38278. deprecated="not deprecated">
  38279. <param name="excludesFile" type="java.lang.String"/>
  38280. </method>
  38281. <method name="updateFileNames"
  38282. abstract="false" native="false" synchronized="true"
  38283. static="false" final="false" visibility="public"
  38284. deprecated="not deprecated">
  38285. <param name="includesFile" type="java.lang.String"/>
  38286. <param name="excludesFile" type="java.lang.String"/>
  38287. <exception name="IOException" type="java.io.IOException"/>
  38288. </method>
  38289. </class>
  38290. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  38291. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  38292. <interface name="IndexedSortable" abstract="true"
  38293. static="false" final="false" visibility="public"
  38294. deprecated="not deprecated">
  38295. <method name="compare" return="int"
  38296. abstract="false" native="false" synchronized="false"
  38297. static="false" final="false" visibility="public"
  38298. deprecated="not deprecated">
  38299. <param name="i" type="int"/>
  38300. <param name="j" type="int"/>
  38301. <doc>
  38302. <![CDATA[Compare items at the given addresses consistent with the semantics of
  38303. {@link java.util.Comparator#compare(Object, Object)}.]]>
  38304. </doc>
  38305. </method>
  38306. <method name="swap"
  38307. abstract="false" native="false" synchronized="false"
  38308. static="false" final="false" visibility="public"
  38309. deprecated="not deprecated">
  38310. <param name="i" type="int"/>
  38311. <param name="j" type="int"/>
  38312. <doc>
  38313. <![CDATA[Swap items at the given addresses.]]>
  38314. </doc>
  38315. </method>
  38316. <doc>
  38317. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  38318. algorithms.]]>
  38319. </doc>
  38320. </interface>
  38321. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  38322. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  38323. <interface name="IndexedSorter" abstract="true"
  38324. static="false" final="false" visibility="public"
  38325. deprecated="not deprecated">
  38326. <method name="sort"
  38327. abstract="false" native="false" synchronized="false"
  38328. static="false" final="false" visibility="public"
  38329. deprecated="not deprecated">
  38330. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38331. <param name="l" type="int"/>
  38332. <param name="r" type="int"/>
  38333. <doc>
  38334. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  38335. range of logical indices. From the perspective of the sort algorithm,
  38336. each index between l (inclusive) and r (exclusive) is an addressable
  38337. entry.
  38338. @see IndexedSortable#compare
  38339. @see IndexedSortable#swap]]>
  38340. </doc>
  38341. </method>
  38342. <method name="sort"
  38343. abstract="false" native="false" synchronized="false"
  38344. static="false" final="false" visibility="public"
  38345. deprecated="not deprecated">
  38346. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  38347. <param name="l" type="int"/>
  38348. <param name="r" type="int"/>
  38349. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  38350. <doc>
  38351. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  38352. periodically.
  38353. @see #sort(IndexedSortable,int,int)]]>
  38354. </doc>
  38355. </method>
  38356. <doc>
  38357. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  38358. A sort algorithm implementing this interface may only
  38359. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  38360. for a range of indices to effect a sort across that range.]]>
  38361. </doc>
  38362. </interface>
  38363. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  38364. <!-- start class org.apache.hadoop.util.LineReader -->
  38365. <class name="LineReader" extends="java.lang.Object"
  38366. abstract="false"
  38367. static="false" final="false" visibility="public"
  38368. deprecated="not deprecated">
  38369. <constructor name="LineReader" type="java.io.InputStream"
  38370. static="false" final="false" visibility="public"
  38371. deprecated="not deprecated">
  38372. <doc>
  38373. <![CDATA[Create a line reader that reads from the given stream using the
  38374. default buffer-size (64k).
  38375. @param in The input stream
  38376. @throws IOException]]>
  38377. </doc>
  38378. </constructor>
  38379. <constructor name="LineReader" type="java.io.InputStream, int"
  38380. static="false" final="false" visibility="public"
  38381. deprecated="not deprecated">
  38382. <doc>
  38383. <![CDATA[Create a line reader that reads from the given stream using the
  38384. given buffer-size.
  38385. @param in The input stream
  38386. @param bufferSize Size of the read buffer
  38387. @throws IOException]]>
  38388. </doc>
  38389. </constructor>
  38390. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  38391. static="false" final="false" visibility="public"
  38392. deprecated="not deprecated">
  38393. <exception name="IOException" type="java.io.IOException"/>
  38394. <doc>
  38395. <![CDATA[Create a line reader that reads from the given stream using the
  38396. <code>io.file.buffer.size</code> specified in the given
  38397. <code>Configuration</code>.
  38398. @param in input stream
  38399. @param conf configuration
  38400. @throws IOException]]>
  38401. </doc>
  38402. </constructor>
  38403. <method name="close"
  38404. abstract="false" native="false" synchronized="false"
  38405. static="false" final="false" visibility="public"
  38406. deprecated="not deprecated">
  38407. <exception name="IOException" type="java.io.IOException"/>
  38408. <doc>
  38409. <![CDATA[Close the underlying stream.
  38410. @throws IOException]]>
  38411. </doc>
  38412. </method>
  38413. <method name="readLine" return="int"
  38414. abstract="false" native="false" synchronized="false"
  38415. static="false" final="false" visibility="public"
  38416. deprecated="not deprecated">
  38417. <param name="str" type="org.apache.hadoop.io.Text"/>
  38418. <param name="maxLineLength" type="int"/>
  38419. <param name="maxBytesToConsume" type="int"/>
  38420. <exception name="IOException" type="java.io.IOException"/>
  38421. <doc>
  38422. <![CDATA[Read one line from the InputStream into the given Text. A line
  38423. can be terminated by one of the following: '\n' (LF) , '\r' (CR),
  38424. or '\r\n' (CR+LF). EOF also terminates an otherwise unterminated
  38425. line.
  38426. @param str the object to store the given line (without newline)
  38427. @param maxLineLength the maximum number of bytes to store into str;
  38428. the rest of the line is silently discarded.
  38429. @param maxBytesToConsume the maximum number of bytes to consume
  38430. in this call. This is only a hint, because if the line cross
  38431. this threshold, we allow it to happen. It can overshoot
  38432. potentially by as much as one buffer length.
  38433. @return the number of bytes read including the (longest) newline
  38434. found.
  38435. @throws IOException if the underlying stream throws]]>
  38436. </doc>
  38437. </method>
  38438. <method name="readLine" return="int"
  38439. abstract="false" native="false" synchronized="false"
  38440. static="false" final="false" visibility="public"
  38441. deprecated="not deprecated">
  38442. <param name="str" type="org.apache.hadoop.io.Text"/>
  38443. <param name="maxLineLength" type="int"/>
  38444. <exception name="IOException" type="java.io.IOException"/>
  38445. <doc>
  38446. <![CDATA[Read from the InputStream into the given Text.
  38447. @param str the object to store the given line
  38448. @param maxLineLength the maximum number of bytes to store into str.
  38449. @return the number of bytes read including the newline
  38450. @throws IOException if the underlying stream throws]]>
  38451. </doc>
  38452. </method>
  38453. <method name="readLine" return="int"
  38454. abstract="false" native="false" synchronized="false"
  38455. static="false" final="false" visibility="public"
  38456. deprecated="not deprecated">
  38457. <param name="str" type="org.apache.hadoop.io.Text"/>
  38458. <exception name="IOException" type="java.io.IOException"/>
  38459. <doc>
  38460. <![CDATA[Read from the InputStream into the given Text.
  38461. @param str the object to store the given line
  38462. @return the number of bytes read including the newline
  38463. @throws IOException if the underlying stream throws]]>
  38464. </doc>
  38465. </method>
  38466. <doc>
  38467. <![CDATA[A class that provides a line reader from an input stream.]]>
  38468. </doc>
  38469. </class>
  38470. <!-- end class org.apache.hadoop.util.LineReader -->
  38471. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  38472. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  38473. abstract="false"
  38474. static="false" final="false" visibility="public"
  38475. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  38476. instead">
  38477. <constructor name="LinuxMemoryCalculatorPlugin"
  38478. static="false" final="false" visibility="public"
  38479. deprecated="not deprecated">
  38480. </constructor>
  38481. <method name="getPhysicalMemorySize" return="long"
  38482. abstract="false" native="false" synchronized="false"
  38483. static="false" final="false" visibility="public"
  38484. deprecated="not deprecated">
  38485. <doc>
  38486. <![CDATA[{@inheritDoc}]]>
  38487. </doc>
  38488. </method>
  38489. <method name="getVirtualMemorySize" return="long"
  38490. abstract="false" native="false" synchronized="false"
  38491. static="false" final="false" visibility="public"
  38492. deprecated="not deprecated">
  38493. <doc>
  38494. <![CDATA[{@inheritDoc}]]>
  38495. </doc>
  38496. </method>
  38497. <doc>
  38498. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  38499. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  38500. instead]]>
  38501. </doc>
  38502. </class>
  38503. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  38504. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  38505. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  38506. abstract="false"
  38507. static="false" final="false" visibility="public"
  38508. deprecated="not deprecated">
  38509. <constructor name="LinuxResourceCalculatorPlugin"
  38510. static="false" final="false" visibility="public"
  38511. deprecated="not deprecated">
  38512. </constructor>
  38513. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  38514. static="false" final="false" visibility="public"
  38515. deprecated="not deprecated">
  38516. <doc>
  38517. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  38518. used only in unit tests
  38519. @param procfsMemFile fake file for /proc/meminfo
  38520. @param procfsCpuFile fake file for /proc/cpuinfo
  38521. @param procfsStatFile fake file for /proc/stat
  38522. @param jiffyLengthInMillis fake jiffy length value]]>
  38523. </doc>
  38524. </constructor>
  38525. <method name="getPhysicalMemorySize" return="long"
  38526. abstract="false" native="false" synchronized="false"
  38527. static="false" final="false" visibility="public"
  38528. deprecated="not deprecated">
  38529. <doc>
  38530. <![CDATA[{@inheritDoc}]]>
  38531. </doc>
  38532. </method>
  38533. <method name="getVirtualMemorySize" return="long"
  38534. abstract="false" native="false" synchronized="false"
  38535. static="false" final="false" visibility="public"
  38536. deprecated="not deprecated">
  38537. <doc>
  38538. <![CDATA[{@inheritDoc}]]>
  38539. </doc>
  38540. </method>
  38541. <method name="getAvailablePhysicalMemorySize" return="long"
  38542. abstract="false" native="false" synchronized="false"
  38543. static="false" final="false" visibility="public"
  38544. deprecated="not deprecated">
  38545. <doc>
  38546. <![CDATA[{@inheritDoc}]]>
  38547. </doc>
  38548. </method>
  38549. <method name="getAvailableVirtualMemorySize" return="long"
  38550. abstract="false" native="false" synchronized="false"
  38551. static="false" final="false" visibility="public"
  38552. deprecated="not deprecated">
  38553. <doc>
  38554. <![CDATA[{@inheritDoc}]]>
  38555. </doc>
  38556. </method>
  38557. <method name="getNumProcessors" return="int"
  38558. abstract="false" native="false" synchronized="false"
  38559. static="false" final="false" visibility="public"
  38560. deprecated="not deprecated">
  38561. <doc>
  38562. <![CDATA[{@inheritDoc}]]>
  38563. </doc>
  38564. </method>
  38565. <method name="getCpuFrequency" return="long"
  38566. abstract="false" native="false" synchronized="false"
  38567. static="false" final="false" visibility="public"
  38568. deprecated="not deprecated">
  38569. <doc>
  38570. <![CDATA[{@inheritDoc}]]>
  38571. </doc>
  38572. </method>
  38573. <method name="getCumulativeCpuTime" return="long"
  38574. abstract="false" native="false" synchronized="false"
  38575. static="false" final="false" visibility="public"
  38576. deprecated="not deprecated">
  38577. <doc>
  38578. <![CDATA[{@inheritDoc}]]>
  38579. </doc>
  38580. </method>
  38581. <method name="getCpuUsage" return="float"
  38582. abstract="false" native="false" synchronized="false"
  38583. static="false" final="false" visibility="public"
  38584. deprecated="not deprecated">
  38585. <doc>
  38586. <![CDATA[{@inheritDoc}]]>
  38587. </doc>
  38588. </method>
  38589. <method name="main"
  38590. abstract="false" native="false" synchronized="false"
  38591. static="true" final="false" visibility="public"
  38592. deprecated="not deprecated">
  38593. <param name="args" type="java.lang.String[]"/>
  38594. <doc>
  38595. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  38596. @param args]]>
  38597. </doc>
  38598. </method>
  38599. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  38600. abstract="false" native="false" synchronized="false"
  38601. static="false" final="false" visibility="public"
  38602. deprecated="not deprecated">
  38603. </method>
  38604. <doc>
  38605. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  38606. </doc>
  38607. </class>
  38608. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  38609. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  38610. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  38611. abstract="true"
  38612. static="false" final="false" visibility="public"
  38613. deprecated="Use
  38614. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  38615. instead">
  38616. <constructor name="MemoryCalculatorPlugin"
  38617. static="false" final="false" visibility="public"
  38618. deprecated="not deprecated">
  38619. </constructor>
  38620. <method name="getVirtualMemorySize" return="long"
  38621. abstract="true" native="false" synchronized="false"
  38622. static="false" final="false" visibility="public"
  38623. deprecated="not deprecated">
  38624. <doc>
  38625. <![CDATA[Obtain the total size of the virtual memory present in the system.
  38626. @return virtual memory size in bytes.]]>
  38627. </doc>
  38628. </method>
  38629. <method name="getPhysicalMemorySize" return="long"
  38630. abstract="true" native="false" synchronized="false"
  38631. static="false" final="false" visibility="public"
  38632. deprecated="not deprecated">
  38633. <doc>
  38634. <![CDATA[Obtain the total size of the physical memory present in the system.
  38635. @return physical memory size bytes.]]>
  38636. </doc>
  38637. </method>
  38638. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  38639. abstract="false" native="false" synchronized="false"
  38640. static="true" final="false" visibility="public"
  38641. deprecated="not deprecated">
  38642. <param name="clazz" type="java.lang.Class"/>
  38643. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38644. <doc>
  38645. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  38646. class name is null, this method will try and return a memory calculator
  38647. plugin available for this system.
  38648. @param clazz class-name
  38649. @param conf configure the plugin with this.
  38650. @return MemoryCalculatorPlugin]]>
  38651. </doc>
  38652. </method>
  38653. <doc>
  38654. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  38655. @deprecated Use
  38656. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  38657. instead]]>
  38658. </doc>
  38659. </class>
  38660. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  38661. <!-- start class org.apache.hadoop.util.MergeSort -->
  38662. <class name="MergeSort" extends="java.lang.Object"
  38663. abstract="false"
  38664. static="false" final="false" visibility="public"
  38665. deprecated="not deprecated">
  38666. <constructor name="MergeSort" type="java.util.Comparator"
  38667. static="false" final="false" visibility="public"
  38668. deprecated="not deprecated">
  38669. </constructor>
  38670. <method name="mergeSort"
  38671. abstract="false" native="false" synchronized="false"
  38672. static="false" final="false" visibility="public"
  38673. deprecated="not deprecated">
  38674. <param name="src" type="int[]"/>
  38675. <param name="dest" type="int[]"/>
  38676. <param name="low" type="int"/>
  38677. <param name="high" type="int"/>
  38678. </method>
  38679. <doc>
  38680. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  38681. </doc>
  38682. </class>
  38683. <!-- end class org.apache.hadoop.util.MergeSort -->
  38684. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  38685. <class name="NativeCodeLoader" extends="java.lang.Object"
  38686. abstract="false"
  38687. static="false" final="false" visibility="public"
  38688. deprecated="not deprecated">
  38689. <constructor name="NativeCodeLoader"
  38690. static="false" final="false" visibility="public"
  38691. deprecated="not deprecated">
  38692. </constructor>
  38693. <method name="isNativeCodeLoaded" return="boolean"
  38694. abstract="false" native="false" synchronized="false"
  38695. static="true" final="false" visibility="public"
  38696. deprecated="not deprecated">
  38697. <doc>
  38698. <![CDATA[Check if native-hadoop code is loaded for this platform.
  38699. @return <code>true</code> if native-hadoop is loaded,
  38700. else <code>false</code>]]>
  38701. </doc>
  38702. </method>
  38703. <method name="getLoadNativeLibraries" return="boolean"
  38704. abstract="false" native="false" synchronized="false"
  38705. static="false" final="false" visibility="public"
  38706. deprecated="not deprecated">
  38707. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38708. <doc>
  38709. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  38710. @param conf configuration
  38711. @return <code>true</code> if native hadoop libraries, if present, can be
  38712. used for this job; <code>false</code> otherwise.]]>
  38713. </doc>
  38714. </method>
  38715. <method name="setLoadNativeLibraries"
  38716. abstract="false" native="false" synchronized="false"
  38717. static="false" final="false" visibility="public"
  38718. deprecated="not deprecated">
  38719. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38720. <param name="loadNativeLibraries" type="boolean"/>
  38721. <doc>
  38722. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  38723. @param conf configuration
  38724. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  38725. </doc>
  38726. </method>
  38727. <doc>
  38728. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  38729. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  38730. or the default java implementations where appropriate.]]>
  38731. </doc>
  38732. </class>
  38733. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  38734. <!-- start class org.apache.hadoop.util.PlatformName -->
  38735. <class name="PlatformName" extends="java.lang.Object"
  38736. abstract="false"
  38737. static="false" final="false" visibility="public"
  38738. deprecated="not deprecated">
  38739. <constructor name="PlatformName"
  38740. static="false" final="false" visibility="public"
  38741. deprecated="not deprecated">
  38742. </constructor>
  38743. <method name="getPlatformName" return="java.lang.String"
  38744. abstract="false" native="false" synchronized="false"
  38745. static="true" final="false" visibility="public"
  38746. deprecated="not deprecated">
  38747. <doc>
  38748. <![CDATA[Get the complete platform as per the java-vm.
  38749. @return returns the complete platform as per the java-vm.]]>
  38750. </doc>
  38751. </method>
  38752. <method name="main"
  38753. abstract="false" native="false" synchronized="false"
  38754. static="true" final="false" visibility="public"
  38755. deprecated="not deprecated">
  38756. <param name="args" type="java.lang.String[]"/>
  38757. </method>
  38758. <doc>
  38759. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  38760. </doc>
  38761. </class>
  38762. <!-- end class org.apache.hadoop.util.PlatformName -->
  38763. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  38764. <class name="PrintJarMainClass" extends="java.lang.Object"
  38765. abstract="false"
  38766. static="false" final="false" visibility="public"
  38767. deprecated="not deprecated">
  38768. <constructor name="PrintJarMainClass"
  38769. static="false" final="false" visibility="public"
  38770. deprecated="not deprecated">
  38771. </constructor>
  38772. <method name="main"
  38773. abstract="false" native="false" synchronized="false"
  38774. static="true" final="false" visibility="public"
  38775. deprecated="not deprecated">
  38776. <param name="args" type="java.lang.String[]"/>
  38777. <doc>
  38778. <![CDATA[@param args]]>
  38779. </doc>
  38780. </method>
  38781. <doc>
  38782. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  38783. </doc>
  38784. </class>
  38785. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  38786. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  38787. <class name="PriorityQueue" extends="java.lang.Object"
  38788. abstract="true"
  38789. static="false" final="false" visibility="public"
  38790. deprecated="not deprecated">
  38791. <constructor name="PriorityQueue"
  38792. static="false" final="false" visibility="public"
  38793. deprecated="not deprecated">
  38794. </constructor>
  38795. <method name="lessThan" return="boolean"
  38796. abstract="true" native="false" synchronized="false"
  38797. static="false" final="false" visibility="protected"
  38798. deprecated="not deprecated">
  38799. <param name="a" type="java.lang.Object"/>
  38800. <param name="b" type="java.lang.Object"/>
  38801. <doc>
  38802. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  38803. must define this one method.]]>
  38804. </doc>
  38805. </method>
  38806. <method name="initialize"
  38807. abstract="false" native="false" synchronized="false"
  38808. static="false" final="true" visibility="protected"
  38809. deprecated="not deprecated">
  38810. <param name="maxSize" type="int"/>
  38811. <doc>
  38812. <![CDATA[Subclass constructors must call this.]]>
  38813. </doc>
  38814. </method>
  38815. <method name="put"
  38816. abstract="false" native="false" synchronized="false"
  38817. static="false" final="true" visibility="public"
  38818. deprecated="not deprecated">
  38819. <param name="element" type="java.lang.Object"/>
  38820. <doc>
  38821. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  38822. If one tries to add more objects than maxSize from initialize
  38823. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  38824. </doc>
  38825. </method>
  38826. <method name="insert" return="boolean"
  38827. abstract="false" native="false" synchronized="false"
  38828. static="false" final="false" visibility="public"
  38829. deprecated="not deprecated">
  38830. <param name="element" type="java.lang.Object"/>
  38831. <doc>
  38832. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  38833. the PriorityQueue is not full, or not lessThan(element, top()).
  38834. @param element
  38835. @return true if element is added, false otherwise.]]>
  38836. </doc>
  38837. </method>
  38838. <method name="top" return="java.lang.Object"
  38839. abstract="false" native="false" synchronized="false"
  38840. static="false" final="true" visibility="public"
  38841. deprecated="not deprecated">
  38842. <doc>
  38843. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  38844. </doc>
  38845. </method>
  38846. <method name="pop" return="java.lang.Object"
  38847. abstract="false" native="false" synchronized="false"
  38848. static="false" final="true" visibility="public"
  38849. deprecated="not deprecated">
  38850. <doc>
  38851. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  38852. time.]]>
  38853. </doc>
  38854. </method>
  38855. <method name="adjustTop"
  38856. abstract="false" native="false" synchronized="false"
  38857. static="false" final="true" visibility="public"
  38858. deprecated="not deprecated">
  38859. <doc>
  38860. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  38861. worst case, but it's at least twice as fast to <pre>
  38862. { pq.top().change(); pq.adjustTop(); }
  38863. </pre> instead of <pre>
  38864. { o = pq.pop(); o.change(); pq.push(o); }
  38865. </pre>]]>
  38866. </doc>
  38867. </method>
  38868. <method name="size" return="int"
  38869. abstract="false" native="false" synchronized="false"
  38870. static="false" final="true" visibility="public"
  38871. deprecated="not deprecated">
  38872. <doc>
  38873. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  38874. </doc>
  38875. </method>
  38876. <method name="clear"
  38877. abstract="false" native="false" synchronized="false"
  38878. static="false" final="true" visibility="public"
  38879. deprecated="not deprecated">
  38880. <doc>
  38881. <![CDATA[Removes all entries from the PriorityQueue.]]>
  38882. </doc>
  38883. </method>
  38884. <doc>
  38885. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  38886. least element can always be found in constant time. Put()'s and pop()'s
  38887. require log(size) time.]]>
  38888. </doc>
  38889. </class>
  38890. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  38891. <!-- start class org.apache.hadoop.util.ProcessTree -->
  38892. <class name="ProcessTree" extends="java.lang.Object"
  38893. abstract="false"
  38894. static="false" final="false" visibility="public"
  38895. deprecated="not deprecated">
  38896. <constructor name="ProcessTree"
  38897. static="false" final="false" visibility="public"
  38898. deprecated="not deprecated">
  38899. </constructor>
  38900. <method name="killProcess"
  38901. abstract="false" native="false" synchronized="false"
  38902. static="true" final="false" visibility="public"
  38903. deprecated="not deprecated">
  38904. <param name="pid" type="java.lang.String"/>
  38905. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  38906. <doc>
  38907. <![CDATA[Sends signal to process, forcefully terminating the process.
  38908. @param pid process id
  38909. @param signal the signal number to send]]>
  38910. </doc>
  38911. </method>
  38912. <method name="killProcessGroup"
  38913. abstract="false" native="false" synchronized="false"
  38914. static="true" final="false" visibility="public"
  38915. deprecated="not deprecated">
  38916. <param name="pgrpId" type="java.lang.String"/>
  38917. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  38918. <doc>
  38919. <![CDATA[Sends signal to all process belonging to same process group,
  38920. forcefully terminating the process group.
  38921. @param pgrpId process group id
  38922. @param signal the signal number to send]]>
  38923. </doc>
  38924. </method>
  38925. <method name="isAlive" return="boolean"
  38926. abstract="false" native="false" synchronized="false"
  38927. static="true" final="false" visibility="public"
  38928. deprecated="not deprecated">
  38929. <param name="pid" type="java.lang.String"/>
  38930. <doc>
  38931. <![CDATA[Is the process with PID pid still alive?
  38932. This method assumes that isAlive is called on a pid that was alive not
  38933. too long ago, and hence assumes no chance of pid-wrapping-around.
  38934. @param pid pid of the process to check.
  38935. @return true if process is alive.]]>
  38936. </doc>
  38937. </method>
  38938. <method name="isProcessGroupAlive" return="boolean"
  38939. abstract="false" native="false" synchronized="false"
  38940. static="true" final="false" visibility="public"
  38941. deprecated="not deprecated">
  38942. <param name="pgrpId" type="java.lang.String"/>
  38943. <doc>
  38944. <![CDATA[Is the process group with still alive?
  38945. This method assumes that isAlive is called on a pid that was alive not
  38946. too long ago, and hence assumes no chance of pid-wrapping-around.
  38947. @param pgrpId process group id
  38948. @return true if any of process in group is alive.]]>
  38949. </doc>
  38950. </method>
  38951. <field name="isSetsidAvailable" type="boolean"
  38952. transient="false" volatile="false"
  38953. static="true" final="true" visibility="public"
  38954. deprecated="not deprecated">
  38955. </field>
  38956. <doc>
  38957. <![CDATA[Process tree related operations]]>
  38958. </doc>
  38959. </class>
  38960. <!-- end class org.apache.hadoop.util.ProcessTree -->
  38961. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  38962. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  38963. abstract="false"
  38964. static="true" final="true" visibility="public"
  38965. deprecated="not deprecated">
  38966. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  38967. abstract="false" native="false" synchronized="false"
  38968. static="true" final="false" visibility="public"
  38969. deprecated="not deprecated">
  38970. </method>
  38971. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  38972. abstract="false" native="false" synchronized="false"
  38973. static="true" final="false" visibility="public"
  38974. deprecated="not deprecated">
  38975. <param name="name" type="java.lang.String"/>
  38976. </method>
  38977. <method name="getValue" return="int"
  38978. abstract="false" native="false" synchronized="false"
  38979. static="false" final="false" visibility="public"
  38980. deprecated="not deprecated">
  38981. </method>
  38982. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  38983. transient="false" volatile="false"
  38984. static="true" final="true" visibility="public"
  38985. deprecated="not deprecated">
  38986. </field>
  38987. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  38988. transient="false" volatile="false"
  38989. static="true" final="true" visibility="public"
  38990. deprecated="not deprecated">
  38991. </field>
  38992. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  38993. transient="false" volatile="false"
  38994. static="true" final="true" visibility="public"
  38995. deprecated="not deprecated">
  38996. </field>
  38997. <doc>
  38998. <![CDATA[The constants for the signals.]]>
  38999. </doc>
  39000. </class>
  39001. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  39002. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  39003. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  39004. abstract="false"
  39005. static="false" final="false" visibility="public"
  39006. deprecated="not deprecated">
  39007. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  39008. static="false" final="false" visibility="public"
  39009. deprecated="not deprecated">
  39010. </constructor>
  39011. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  39012. static="false" final="false" visibility="public"
  39013. deprecated="not deprecated">
  39014. </constructor>
  39015. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  39016. static="false" final="false" visibility="public"
  39017. deprecated="not deprecated">
  39018. </constructor>
  39019. <method name="isAvailable" return="boolean"
  39020. abstract="false" native="false" synchronized="false"
  39021. static="true" final="false" visibility="public"
  39022. deprecated="not deprecated">
  39023. <doc>
  39024. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  39025. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  39026. </doc>
  39027. </method>
  39028. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  39029. abstract="false" native="false" synchronized="false"
  39030. static="false" final="false" visibility="public"
  39031. deprecated="not deprecated">
  39032. <doc>
  39033. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  39034. an empty tree will be returned.
  39035. @return the process-tree with latest state.]]>
  39036. </doc>
  39037. </method>
  39038. <method name="isAlive" return="boolean"
  39039. abstract="false" native="false" synchronized="false"
  39040. static="false" final="false" visibility="public"
  39041. deprecated="not deprecated">
  39042. <doc>
  39043. <![CDATA[Is the root-process alive?
  39044. @return true if the root-process is alive, false otherwise.]]>
  39045. </doc>
  39046. </method>
  39047. <method name="isAnyProcessInTreeAlive" return="boolean"
  39048. abstract="false" native="false" synchronized="false"
  39049. static="false" final="false" visibility="public"
  39050. deprecated="not deprecated">
  39051. <doc>
  39052. <![CDATA[Is any of the subprocesses in the process-tree alive?
  39053. @return true if any of the processes in the process-tree is
  39054. alive, false otherwise.]]>
  39055. </doc>
  39056. </method>
  39057. <method name="getProcessTreeDump" return="java.lang.String"
  39058. abstract="false" native="false" synchronized="false"
  39059. static="false" final="false" visibility="public"
  39060. deprecated="not deprecated">
  39061. <doc>
  39062. <![CDATA[Get a dump of the process-tree.
  39063. @return a string concatenating the dump of information of all the processes
  39064. in the process-tree]]>
  39065. </doc>
  39066. </method>
  39067. <method name="getCumulativeVmem" return="long"
  39068. abstract="false" native="false" synchronized="false"
  39069. static="false" final="false" visibility="public"
  39070. deprecated="not deprecated">
  39071. <doc>
  39072. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  39073. process-tree.
  39074. @return cumulative virtual memory used by the process-tree in bytes.]]>
  39075. </doc>
  39076. </method>
  39077. <method name="getCumulativeRssmem" return="long"
  39078. abstract="false" native="false" synchronized="false"
  39079. static="false" final="false" visibility="public"
  39080. deprecated="not deprecated">
  39081. <doc>
  39082. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  39083. in the process-tree.
  39084. @return cumulative rss memory used by the process-tree in bytes. return 0
  39085. if it cannot be calculated]]>
  39086. </doc>
  39087. </method>
  39088. <method name="getCumulativeVmem" return="long"
  39089. abstract="false" native="false" synchronized="false"
  39090. static="false" final="false" visibility="public"
  39091. deprecated="not deprecated">
  39092. <param name="olderThanAge" type="int"/>
  39093. <doc>
  39094. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  39095. process-tree that are older than the passed in age.
  39096. @param olderThanAge processes above this age are included in the
  39097. memory addition
  39098. @return cumulative virtual memory used by the process-tree in bytes,
  39099. for processes older than this age.]]>
  39100. </doc>
  39101. </method>
  39102. <method name="getCumulativeRssmem" return="long"
  39103. abstract="false" native="false" synchronized="false"
  39104. static="false" final="false" visibility="public"
  39105. deprecated="not deprecated">
  39106. <param name="olderThanAge" type="int"/>
  39107. <doc>
  39108. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  39109. in the process-tree that are older than the passed in age.
  39110. @param olderThanAge processes above this age are included in the
  39111. memory addition
  39112. @return cumulative rss memory used by the process-tree in bytes,
  39113. for processes older than this age. return 0 if it cannot be
  39114. calculated]]>
  39115. </doc>
  39116. </method>
  39117. <method name="getCumulativeCpuTime" return="long"
  39118. abstract="false" native="false" synchronized="false"
  39119. static="false" final="false" visibility="public"
  39120. deprecated="not deprecated">
  39121. <doc>
  39122. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  39123. process-tree since the process-tree created
  39124. @return cumulative CPU time in millisecond since the process-tree created
  39125. return 0 if it cannot be calculated]]>
  39126. </doc>
  39127. </method>
  39128. <method name="toString" return="java.lang.String"
  39129. abstract="false" native="false" synchronized="false"
  39130. static="false" final="false" visibility="public"
  39131. deprecated="not deprecated">
  39132. <doc>
  39133. <![CDATA[Returns a string printing PIDs of process present in the
  39134. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  39135. </doc>
  39136. </method>
  39137. <field name="PAGE_SIZE" type="long"
  39138. transient="false" volatile="false"
  39139. static="true" final="true" visibility="public"
  39140. deprecated="not deprecated">
  39141. </field>
  39142. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  39143. transient="false" volatile="false"
  39144. static="true" final="true" visibility="public"
  39145. deprecated="not deprecated">
  39146. </field>
  39147. <doc>
  39148. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  39149. </doc>
  39150. </class>
  39151. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  39152. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  39153. <class name="ProgramDriver" extends="java.lang.Object"
  39154. abstract="false"
  39155. static="false" final="false" visibility="public"
  39156. deprecated="not deprecated">
  39157. <constructor name="ProgramDriver"
  39158. static="false" final="false" visibility="public"
  39159. deprecated="not deprecated">
  39160. </constructor>
  39161. <method name="addClass"
  39162. abstract="false" native="false" synchronized="false"
  39163. static="false" final="false" visibility="public"
  39164. deprecated="not deprecated">
  39165. <param name="name" type="java.lang.String"/>
  39166. <param name="mainClass" type="java.lang.Class"/>
  39167. <param name="description" type="java.lang.String"/>
  39168. <exception name="Throwable" type="java.lang.Throwable"/>
  39169. <doc>
  39170. <![CDATA[This is the method that adds the classed to the repository
  39171. @param name The name of the string you want the class instance to be called with
  39172. @param mainClass The class that you want to add to the repository
  39173. @param description The description of the class
  39174. @throws NoSuchMethodException
  39175. @throws SecurityException]]>
  39176. </doc>
  39177. </method>
  39178. <method name="driver"
  39179. abstract="false" native="false" synchronized="false"
  39180. static="false" final="false" visibility="public"
  39181. deprecated="not deprecated">
  39182. <param name="args" type="java.lang.String[]"/>
  39183. <exception name="Throwable" type="java.lang.Throwable"/>
  39184. <doc>
  39185. <![CDATA[This is a driver for the example programs.
  39186. It looks at the first command line argument and tries to find an
  39187. example program with that name.
  39188. If it is found, it calls the main method in that class with the rest
  39189. of the command line arguments.
  39190. @param args The argument from the user. args[0] is the command to run.
  39191. @throws NoSuchMethodException
  39192. @throws SecurityException
  39193. @throws IllegalAccessException
  39194. @throws IllegalArgumentException
  39195. @throws Throwable Anything thrown by the example program's main]]>
  39196. </doc>
  39197. </method>
  39198. <doc>
  39199. <![CDATA[A driver that is used to run programs added to it]]>
  39200. </doc>
  39201. </class>
  39202. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  39203. <!-- start class org.apache.hadoop.util.Progress -->
  39204. <class name="Progress" extends="java.lang.Object"
  39205. abstract="false"
  39206. static="false" final="false" visibility="public"
  39207. deprecated="not deprecated">
  39208. <constructor name="Progress"
  39209. static="false" final="false" visibility="public"
  39210. deprecated="not deprecated">
  39211. <doc>
  39212. <![CDATA[Creates a new root node.]]>
  39213. </doc>
  39214. </constructor>
  39215. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  39216. abstract="false" native="false" synchronized="false"
  39217. static="false" final="false" visibility="public"
  39218. deprecated="not deprecated">
  39219. <param name="status" type="java.lang.String"/>
  39220. <doc>
  39221. <![CDATA[Adds a named node to the tree.]]>
  39222. </doc>
  39223. </method>
  39224. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  39225. abstract="false" native="false" synchronized="true"
  39226. static="false" final="false" visibility="public"
  39227. deprecated="not deprecated">
  39228. <doc>
  39229. <![CDATA[Adds a node to the tree.]]>
  39230. </doc>
  39231. </method>
  39232. <method name="startNextPhase"
  39233. abstract="false" native="false" synchronized="true"
  39234. static="false" final="false" visibility="public"
  39235. deprecated="not deprecated">
  39236. <doc>
  39237. <![CDATA[Called during execution to move to the next phase at this level in the
  39238. tree.]]>
  39239. </doc>
  39240. </method>
  39241. <method name="phase" return="org.apache.hadoop.util.Progress"
  39242. abstract="false" native="false" synchronized="true"
  39243. static="false" final="false" visibility="public"
  39244. deprecated="not deprecated">
  39245. <doc>
  39246. <![CDATA[Returns the current sub-node executing.]]>
  39247. </doc>
  39248. </method>
  39249. <method name="complete"
  39250. abstract="false" native="false" synchronized="false"
  39251. static="false" final="false" visibility="public"
  39252. deprecated="not deprecated">
  39253. <doc>
  39254. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  39255. </doc>
  39256. </method>
  39257. <method name="set"
  39258. abstract="false" native="false" synchronized="true"
  39259. static="false" final="false" visibility="public"
  39260. deprecated="not deprecated">
  39261. <param name="progress" type="float"/>
  39262. <doc>
  39263. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  39264. </doc>
  39265. </method>
  39266. <method name="get" return="float"
  39267. abstract="false" native="false" synchronized="true"
  39268. static="false" final="false" visibility="public"
  39269. deprecated="not deprecated">
  39270. <doc>
  39271. <![CDATA[Returns the overall progress of the root.]]>
  39272. </doc>
  39273. </method>
  39274. <method name="setStatus"
  39275. abstract="false" native="false" synchronized="true"
  39276. static="false" final="false" visibility="public"
  39277. deprecated="not deprecated">
  39278. <param name="status" type="java.lang.String"/>
  39279. </method>
  39280. <method name="toString" return="java.lang.String"
  39281. abstract="false" native="false" synchronized="false"
  39282. static="false" final="false" visibility="public"
  39283. deprecated="not deprecated">
  39284. </method>
  39285. <doc>
  39286. <![CDATA[Utility to assist with generation of progress reports. Applications build
  39287. a hierarchy of {@link Progress} instances, each modelling a phase of
  39288. execution. The root is constructed with {@link #Progress()}. Nodes for
  39289. sub-phases are created by calling {@link #addPhase()}.]]>
  39290. </doc>
  39291. </class>
  39292. <!-- end class org.apache.hadoop.util.Progress -->
  39293. <!-- start interface org.apache.hadoop.util.Progressable -->
  39294. <interface name="Progressable" abstract="true"
  39295. static="false" final="false" visibility="public"
  39296. deprecated="not deprecated">
  39297. <method name="progress"
  39298. abstract="false" native="false" synchronized="false"
  39299. static="false" final="false" visibility="public"
  39300. deprecated="not deprecated">
  39301. <doc>
  39302. <![CDATA[Report progress to the Hadoop framework.]]>
  39303. </doc>
  39304. </method>
  39305. <doc>
  39306. <![CDATA[A facility for reporting progress.
  39307. <p>Clients and/or applications can use the provided <code>Progressable</code>
  39308. to explicitly report progress to the Hadoop framework. This is especially
  39309. important for operations which take an insignificant amount of time since,
  39310. in-lieu of the reported progress, the framework has to assume that an error
  39311. has occured and time-out the operation.</p>]]>
  39312. </doc>
  39313. </interface>
  39314. <!-- end interface org.apache.hadoop.util.Progressable -->
  39315. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  39316. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  39317. abstract="true"
  39318. static="false" final="false" visibility="public"
  39319. deprecated="not deprecated">
  39320. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  39321. static="false" final="false" visibility="public"
  39322. deprecated="not deprecated">
  39323. <doc>
  39324. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  39325. used as first word in the log messages.
  39326. @param workItemsName - what kind of work items are being managed
  39327. on the queue? A plural word is best here, for logging.
  39328. @param logObject - What log do you want the log messages to be sent to?]]>
  39329. </doc>
  39330. </constructor>
  39331. <method name="startCycle"
  39332. abstract="false" native="false" synchronized="false"
  39333. static="false" final="false" visibility="public"
  39334. deprecated="not deprecated">
  39335. <param name="maxWorkToProcess" type="int"/>
  39336. </method>
  39337. <method name="endCycle"
  39338. abstract="false" native="false" synchronized="false"
  39339. static="false" final="false" visibility="public"
  39340. deprecated="not deprecated">
  39341. <param name="workFound" type="int"/>
  39342. </method>
  39343. <method name="checkRestart"
  39344. abstract="false" native="false" synchronized="false"
  39345. static="false" final="false" visibility="public"
  39346. deprecated="not deprecated">
  39347. </method>
  39348. <method name="preCheckIsLastCycle" return="boolean"
  39349. abstract="true" native="false" synchronized="false"
  39350. static="false" final="false" visibility="public"
  39351. deprecated="not deprecated">
  39352. <param name="maxWorkToProcess" type="int"/>
  39353. <doc>
  39354. <![CDATA[The termination condition is to identify the last cycle that will
  39355. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  39356. is called at the beginning of each cycle, and
  39357. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  39358. At least one of them must correctly provide the termination
  39359. condition. The other may always return 'false'. If either of them
  39360. returns 'true' in a given cycle, then at the end of that cycle the
  39361. stats will be output to log, and stats collection will end.
  39362. @param maxWorkToProcess - if this number is greater than the amount
  39363. of work remaining at the start of a cycle, then it will
  39364. be the last cycle.
  39365. @return - true if last cycle detected, else false]]>
  39366. </doc>
  39367. </method>
  39368. <method name="postCheckIsLastCycle" return="boolean"
  39369. abstract="true" native="false" synchronized="false"
  39370. static="false" final="false" visibility="public"
  39371. deprecated="not deprecated">
  39372. <param name="workFound" type="int"/>
  39373. <doc>
  39374. <![CDATA[See {@link #preCheckIsLastCycle}.
  39375. @param workFound - may not be useful
  39376. @return - true if remaining work is zero at end of cycle,
  39377. else false]]>
  39378. </doc>
  39379. </method>
  39380. <doc>
  39381. <![CDATA[Hadoop has several work queues, such as
  39382. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  39383. With a properly throttled queue, a worker thread cycles repeatedly,
  39384. doing a chunk of work each cycle then resting a bit, until the queue is
  39385. empty. This class is intended to collect statistics about the behavior of
  39386. such queues and consumers. It reports the amount of work done and
  39387. how long it took, for the first cycle after collection starts, and for
  39388. the total number of cycles needed to flush the queue. We use a state
  39389. machine to detect when the queue has been flushed and then we log the
  39390. stats; see {@link State} for enumeration of the states and their meanings.]]>
  39391. </doc>
  39392. </class>
  39393. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  39394. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  39395. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  39396. abstract="false"
  39397. static="true" final="true" visibility="public"
  39398. deprecated="not deprecated">
  39399. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  39400. abstract="false" native="false" synchronized="false"
  39401. static="true" final="false" visibility="public"
  39402. deprecated="not deprecated">
  39403. </method>
  39404. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39405. abstract="false" native="false" synchronized="false"
  39406. static="true" final="false" visibility="public"
  39407. deprecated="not deprecated">
  39408. <param name="name" type="java.lang.String"/>
  39409. </method>
  39410. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39411. transient="false" volatile="false"
  39412. static="true" final="true" visibility="public"
  39413. deprecated="not deprecated">
  39414. </field>
  39415. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39416. transient="false" volatile="false"
  39417. static="true" final="true" visibility="public"
  39418. deprecated="not deprecated">
  39419. </field>
  39420. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39421. transient="false" volatile="false"
  39422. static="true" final="true" visibility="public"
  39423. deprecated="not deprecated">
  39424. </field>
  39425. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39426. transient="false" volatile="false"
  39427. static="true" final="true" visibility="public"
  39428. deprecated="not deprecated">
  39429. </field>
  39430. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39431. transient="false" volatile="false"
  39432. static="true" final="true" visibility="public"
  39433. deprecated="not deprecated">
  39434. </field>
  39435. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  39436. transient="false" volatile="false"
  39437. static="true" final="true" visibility="public"
  39438. deprecated="not deprecated">
  39439. </field>
  39440. <doc>
  39441. <![CDATA[This enum provides the "states" of a state machine for
  39442. {@link QueueProcessingStatistics}.
  39443. The meanings of the states are: <ul>
  39444. <li> BEGIN_COLLECTING - Ready to begin.
  39445. <li> IN_FIRST_CYCLE - Started the first cycle.
  39446. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  39447. no further cycles because this one will complete all
  39448. needed work. When done, will go straight to
  39449. "DONE_COLLECTING".
  39450. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  39451. <li> IN_LAST_CYCLE - Started the last cycle.
  39452. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  39453. </ul>]]>
  39454. </doc>
  39455. </class>
  39456. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  39457. <!-- start class org.apache.hadoop.util.QuickSort -->
  39458. <class name="QuickSort" extends="java.lang.Object"
  39459. abstract="false"
  39460. static="false" final="true" visibility="public"
  39461. deprecated="not deprecated">
  39462. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  39463. <constructor name="QuickSort"
  39464. static="false" final="false" visibility="public"
  39465. deprecated="not deprecated">
  39466. </constructor>
  39467. <method name="getMaxDepth" return="int"
  39468. abstract="false" native="false" synchronized="false"
  39469. static="true" final="false" visibility="protected"
  39470. deprecated="not deprecated">
  39471. <param name="x" type="int"/>
  39472. <doc>
  39473. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  39474. Returns 2 * ceil(log(n)).]]>
  39475. </doc>
  39476. </method>
  39477. <method name="sort"
  39478. abstract="false" native="false" synchronized="false"
  39479. static="false" final="false" visibility="public"
  39480. deprecated="not deprecated">
  39481. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39482. <param name="p" type="int"/>
  39483. <param name="r" type="int"/>
  39484. <doc>
  39485. <![CDATA[Sort the given range of items using quick sort.
  39486. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  39487. then switch to {@link HeapSort}.]]>
  39488. </doc>
  39489. </method>
  39490. <method name="sort"
  39491. abstract="false" native="false" synchronized="false"
  39492. static="false" final="false" visibility="public"
  39493. deprecated="not deprecated">
  39494. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  39495. <param name="p" type="int"/>
  39496. <param name="r" type="int"/>
  39497. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  39498. <doc>
  39499. <![CDATA[{@inheritDoc}]]>
  39500. </doc>
  39501. </method>
  39502. <doc>
  39503. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  39504. </doc>
  39505. </class>
  39506. <!-- end class org.apache.hadoop.util.QuickSort -->
  39507. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  39508. <class name="ReflectionUtils" extends="java.lang.Object"
  39509. abstract="false"
  39510. static="false" final="false" visibility="public"
  39511. deprecated="not deprecated">
  39512. <constructor name="ReflectionUtils"
  39513. static="false" final="false" visibility="public"
  39514. deprecated="not deprecated">
  39515. </constructor>
  39516. <method name="setConf"
  39517. abstract="false" native="false" synchronized="false"
  39518. static="true" final="false" visibility="public"
  39519. deprecated="not deprecated">
  39520. <param name="theObject" type="java.lang.Object"/>
  39521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39522. <doc>
  39523. <![CDATA[Check and set 'configuration' if necessary.
  39524. @param theObject object for which to set configuration
  39525. @param conf Configuration]]>
  39526. </doc>
  39527. </method>
  39528. <method name="newInstance" return="java.lang.Object"
  39529. abstract="false" native="false" synchronized="false"
  39530. static="true" final="false" visibility="public"
  39531. deprecated="not deprecated">
  39532. <param name="theClass" type="java.lang.Class"/>
  39533. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39534. <doc>
  39535. <![CDATA[Create an object for the given class and initialize it from conf
  39536. @param theClass class of which an object is created
  39537. @param conf Configuration
  39538. @return a new object]]>
  39539. </doc>
  39540. </method>
  39541. <method name="setContentionTracing"
  39542. abstract="false" native="false" synchronized="false"
  39543. static="true" final="false" visibility="public"
  39544. deprecated="not deprecated">
  39545. <param name="val" type="boolean"/>
  39546. </method>
  39547. <method name="printThreadInfo"
  39548. abstract="false" native="false" synchronized="false"
  39549. static="true" final="false" visibility="public"
  39550. deprecated="not deprecated">
  39551. <param name="stream" type="java.io.PrintWriter"/>
  39552. <param name="title" type="java.lang.String"/>
  39553. <doc>
  39554. <![CDATA[Print all of the thread's information and stack traces.
  39555. @param stream the stream to
  39556. @param title a string title for the stack trace]]>
  39557. </doc>
  39558. </method>
  39559. <method name="logThreadInfo"
  39560. abstract="false" native="false" synchronized="false"
  39561. static="true" final="false" visibility="public"
  39562. deprecated="not deprecated">
  39563. <param name="log" type="org.apache.commons.logging.Log"/>
  39564. <param name="title" type="java.lang.String"/>
  39565. <param name="minInterval" type="long"/>
  39566. <doc>
  39567. <![CDATA[Log the current thread stacks at INFO level.
  39568. @param log the logger that logs the stack trace
  39569. @param title a descriptive title for the call stacks
  39570. @param minInterval the minimum time from the last]]>
  39571. </doc>
  39572. </method>
  39573. <method name="getClass" return="java.lang.Class"
  39574. abstract="false" native="false" synchronized="false"
  39575. static="true" final="false" visibility="public"
  39576. deprecated="not deprecated">
  39577. <param name="o" type="java.lang.Object"/>
  39578. <doc>
  39579. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  39580. @param o object whose correctly-typed <code>Class</code> is to be obtained
  39581. @return the correctly typed <code>Class</code> of the given object.]]>
  39582. </doc>
  39583. </method>
  39584. <method name="copy" return="java.lang.Object"
  39585. abstract="false" native="false" synchronized="false"
  39586. static="true" final="false" visibility="public"
  39587. deprecated="not deprecated">
  39588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39589. <param name="src" type="java.lang.Object"/>
  39590. <param name="dst" type="java.lang.Object"/>
  39591. <exception name="IOException" type="java.io.IOException"/>
  39592. <doc>
  39593. <![CDATA[Make a copy of the writable object using serialization to a buffer
  39594. @param dst the object to copy from
  39595. @param src the object to copy into, which is destroyed
  39596. @throws IOException]]>
  39597. </doc>
  39598. </method>
  39599. <method name="cloneWritableInto"
  39600. abstract="false" native="false" synchronized="false"
  39601. static="true" final="false" visibility="public"
  39602. deprecated="not deprecated">
  39603. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  39604. <param name="src" type="org.apache.hadoop.io.Writable"/>
  39605. <exception name="IOException" type="java.io.IOException"/>
  39606. </method>
  39607. <doc>
  39608. <![CDATA[General reflection utils]]>
  39609. </doc>
  39610. </class>
  39611. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  39612. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  39613. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  39614. abstract="true"
  39615. static="false" final="false" visibility="public"
  39616. deprecated="not deprecated">
  39617. <constructor name="ResourceCalculatorPlugin"
  39618. static="false" final="false" visibility="public"
  39619. deprecated="not deprecated">
  39620. </constructor>
  39621. <method name="getVirtualMemorySize" return="long"
  39622. abstract="true" native="false" synchronized="false"
  39623. static="false" final="false" visibility="public"
  39624. deprecated="not deprecated">
  39625. <doc>
  39626. <![CDATA[Obtain the total size of the virtual memory present in the system.
  39627. @return virtual memory size in bytes.]]>
  39628. </doc>
  39629. </method>
  39630. <method name="getPhysicalMemorySize" return="long"
  39631. abstract="true" native="false" synchronized="false"
  39632. static="false" final="false" visibility="public"
  39633. deprecated="not deprecated">
  39634. <doc>
  39635. <![CDATA[Obtain the total size of the physical memory present in the system.
  39636. @return physical memory size bytes.]]>
  39637. </doc>
  39638. </method>
  39639. <method name="getAvailableVirtualMemorySize" return="long"
  39640. abstract="true" native="false" synchronized="false"
  39641. static="false" final="false" visibility="public"
  39642. deprecated="not deprecated">
  39643. <doc>
  39644. <![CDATA[Obtain the total size of the available virtual memory present
  39645. in the system.
  39646. @return available virtual memory size in bytes.]]>
  39647. </doc>
  39648. </method>
  39649. <method name="getAvailablePhysicalMemorySize" return="long"
  39650. abstract="true" native="false" synchronized="false"
  39651. static="false" final="false" visibility="public"
  39652. deprecated="not deprecated">
  39653. <doc>
  39654. <![CDATA[Obtain the total size of the available physical memory present
  39655. in the system.
  39656. @return available physical memory size bytes.]]>
  39657. </doc>
  39658. </method>
  39659. <method name="getNumProcessors" return="int"
  39660. abstract="true" native="false" synchronized="false"
  39661. static="false" final="false" visibility="public"
  39662. deprecated="not deprecated">
  39663. <doc>
  39664. <![CDATA[Obtain the total number of processors present on the system.
  39665. @return number of processors]]>
  39666. </doc>
  39667. </method>
  39668. <method name="getCpuFrequency" return="long"
  39669. abstract="true" native="false" synchronized="false"
  39670. static="false" final="false" visibility="public"
  39671. deprecated="not deprecated">
  39672. <doc>
  39673. <![CDATA[Obtain the CPU frequency of on the system.
  39674. @return CPU frequency in kHz]]>
  39675. </doc>
  39676. </method>
  39677. <method name="getCumulativeCpuTime" return="long"
  39678. abstract="true" native="false" synchronized="false"
  39679. static="false" final="false" visibility="public"
  39680. deprecated="not deprecated">
  39681. <doc>
  39682. <![CDATA[Obtain the cumulative CPU time since the system is on.
  39683. @return cumulative CPU time in milliseconds]]>
  39684. </doc>
  39685. </method>
  39686. <method name="getCpuUsage" return="float"
  39687. abstract="true" native="false" synchronized="false"
  39688. static="false" final="false" visibility="public"
  39689. deprecated="not deprecated">
  39690. <doc>
  39691. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  39692. @return CPU usage in %]]>
  39693. </doc>
  39694. </method>
  39695. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  39696. abstract="true" native="false" synchronized="false"
  39697. static="false" final="false" visibility="public"
  39698. deprecated="not deprecated">
  39699. <doc>
  39700. <![CDATA[Obtain resource status used by current process tree.]]>
  39701. </doc>
  39702. </method>
  39703. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  39704. abstract="false" native="false" synchronized="false"
  39705. static="true" final="false" visibility="public"
  39706. deprecated="not deprecated">
  39707. <param name="clazz" type="java.lang.Class"/>
  39708. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39709. <doc>
  39710. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  39711. class name is null, this method will try and return a memory calculator
  39712. plugin available for this system.
  39713. @param clazz class-name
  39714. @param conf configure the plugin with this.
  39715. @return ResourceCalculatorPlugin]]>
  39716. </doc>
  39717. </method>
  39718. <doc>
  39719. <![CDATA[Plugin to calculate resource information on the system.]]>
  39720. </doc>
  39721. </class>
  39722. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  39723. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  39724. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  39725. abstract="false"
  39726. static="true" final="false" visibility="public"
  39727. deprecated="not deprecated">
  39728. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  39729. static="false" final="false" visibility="public"
  39730. deprecated="not deprecated">
  39731. </constructor>
  39732. <method name="getPhysicalMemorySize" return="long"
  39733. abstract="false" native="false" synchronized="false"
  39734. static="false" final="false" visibility="public"
  39735. deprecated="not deprecated">
  39736. <doc>
  39737. <![CDATA[Obtain the physical memory size used by current process tree.
  39738. @return physical memory size in bytes.]]>
  39739. </doc>
  39740. </method>
  39741. <method name="getVirtualMemorySize" return="long"
  39742. abstract="false" native="false" synchronized="false"
  39743. static="false" final="false" visibility="public"
  39744. deprecated="not deprecated">
  39745. <doc>
  39746. <![CDATA[Obtain the virtual memory size used by a current process tree.
  39747. @return virtual memory size in bytes.]]>
  39748. </doc>
  39749. </method>
  39750. <method name="getCumulativeCpuTime" return="long"
  39751. abstract="false" native="false" synchronized="false"
  39752. static="false" final="false" visibility="public"
  39753. deprecated="not deprecated">
  39754. <doc>
  39755. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  39756. @return cumulative CPU time in milliseconds]]>
  39757. </doc>
  39758. </method>
  39759. </class>
  39760. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  39761. <!-- start class org.apache.hadoop.util.RunJar -->
  39762. <class name="RunJar" extends="java.lang.Object"
  39763. abstract="false"
  39764. static="false" final="false" visibility="public"
  39765. deprecated="not deprecated">
  39766. <constructor name="RunJar"
  39767. static="false" final="false" visibility="public"
  39768. deprecated="not deprecated">
  39769. </constructor>
  39770. <method name="unJar"
  39771. abstract="false" native="false" synchronized="false"
  39772. static="true" final="false" visibility="public"
  39773. deprecated="not deprecated">
  39774. <param name="jarFile" type="java.io.File"/>
  39775. <param name="toDir" type="java.io.File"/>
  39776. <exception name="IOException" type="java.io.IOException"/>
  39777. <doc>
  39778. <![CDATA[Unpack a jar file into a directory.]]>
  39779. </doc>
  39780. </method>
  39781. <method name="main"
  39782. abstract="false" native="false" synchronized="false"
  39783. static="true" final="false" visibility="public"
  39784. deprecated="not deprecated">
  39785. <param name="args" type="java.lang.String[]"/>
  39786. <exception name="Throwable" type="java.lang.Throwable"/>
  39787. <doc>
  39788. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  39789. then it must be provided on the command line.]]>
  39790. </doc>
  39791. </method>
  39792. <doc>
  39793. <![CDATA[Run a Hadoop job jar.]]>
  39794. </doc>
  39795. </class>
  39796. <!-- end class org.apache.hadoop.util.RunJar -->
  39797. <!-- start class org.apache.hadoop.util.ServletUtil -->
  39798. <class name="ServletUtil" extends="java.lang.Object"
  39799. abstract="false"
  39800. static="false" final="false" visibility="public"
  39801. deprecated="not deprecated">
  39802. <constructor name="ServletUtil"
  39803. static="false" final="false" visibility="public"
  39804. deprecated="not deprecated">
  39805. </constructor>
  39806. <method name="initHTML" return="java.io.PrintWriter"
  39807. abstract="false" native="false" synchronized="false"
  39808. static="true" final="false" visibility="public"
  39809. deprecated="not deprecated">
  39810. <param name="response" type="javax.servlet.ServletResponse"/>
  39811. <param name="title" type="java.lang.String"/>
  39812. <exception name="IOException" type="java.io.IOException"/>
  39813. <doc>
  39814. <![CDATA[Initial HTML header]]>
  39815. </doc>
  39816. </method>
  39817. <method name="getParameter" return="java.lang.String"
  39818. abstract="false" native="false" synchronized="false"
  39819. static="true" final="false" visibility="public"
  39820. deprecated="not deprecated">
  39821. <param name="request" type="javax.servlet.ServletRequest"/>
  39822. <param name="name" type="java.lang.String"/>
  39823. <doc>
  39824. <![CDATA[Get a parameter from a ServletRequest.
  39825. Return null if the parameter contains only white spaces.]]>
  39826. </doc>
  39827. </method>
  39828. <method name="htmlFooter" return="java.lang.String"
  39829. abstract="false" native="false" synchronized="false"
  39830. static="true" final="false" visibility="public"
  39831. deprecated="not deprecated">
  39832. <doc>
  39833. <![CDATA[HTML footer to be added in the jsps.
  39834. @return the HTML footer.]]>
  39835. </doc>
  39836. </method>
  39837. <method name="percentageGraph" return="java.lang.String"
  39838. abstract="false" native="false" synchronized="false"
  39839. static="true" final="false" visibility="public"
  39840. deprecated="not deprecated">
  39841. <param name="perc" type="int"/>
  39842. <param name="width" type="int"/>
  39843. <exception name="IOException" type="java.io.IOException"/>
  39844. <doc>
  39845. <![CDATA[Generate the percentage graph and returns HTML representation string
  39846. of the same.
  39847. @param perc The percentage value for which graph is to be generated
  39848. @param width The width of the display table
  39849. @return HTML String representation of the percentage graph
  39850. @throws IOException]]>
  39851. </doc>
  39852. </method>
  39853. <method name="percentageGraph" return="java.lang.String"
  39854. abstract="false" native="false" synchronized="false"
  39855. static="true" final="false" visibility="public"
  39856. deprecated="not deprecated">
  39857. <param name="perc" type="float"/>
  39858. <param name="width" type="int"/>
  39859. <exception name="IOException" type="java.io.IOException"/>
  39860. <doc>
  39861. <![CDATA[Generate the percentage graph and returns HTML representation string
  39862. of the same.
  39863. @param perc The percentage value for which graph is to be generated
  39864. @param width The width of the display table
  39865. @return HTML String representation of the percentage graph
  39866. @throws IOException]]>
  39867. </doc>
  39868. </method>
  39869. <field name="HTML_TAIL" type="java.lang.String"
  39870. transient="false" volatile="false"
  39871. static="true" final="true" visibility="public"
  39872. deprecated="not deprecated">
  39873. </field>
  39874. </class>
  39875. <!-- end class org.apache.hadoop.util.ServletUtil -->
  39876. <!-- start class org.apache.hadoop.util.Shell -->
  39877. <class name="Shell" extends="java.lang.Object"
  39878. abstract="true"
  39879. static="false" final="false" visibility="public"
  39880. deprecated="not deprecated">
  39881. <constructor name="Shell"
  39882. static="false" final="false" visibility="public"
  39883. deprecated="not deprecated">
  39884. </constructor>
  39885. <constructor name="Shell" type="long"
  39886. static="false" final="false" visibility="public"
  39887. deprecated="not deprecated">
  39888. <doc>
  39889. <![CDATA[@param interval the minimum duration to wait before re-executing the
  39890. command.]]>
  39891. </doc>
  39892. </constructor>
  39893. <method name="getGroupsCommand" return="java.lang.String[]"
  39894. abstract="false" native="false" synchronized="false"
  39895. static="true" final="false" visibility="public"
  39896. deprecated="not deprecated">
  39897. <doc>
  39898. <![CDATA[a Unix command to get the current user's groups list]]>
  39899. </doc>
  39900. </method>
  39901. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  39902. abstract="false" native="false" synchronized="false"
  39903. static="true" final="false" visibility="public"
  39904. deprecated="not deprecated">
  39905. <param name="user" type="java.lang.String"/>
  39906. <doc>
  39907. <![CDATA[a Unix command to get a given user's groups list]]>
  39908. </doc>
  39909. </method>
  39910. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  39911. abstract="false" native="false" synchronized="false"
  39912. static="true" final="false" visibility="public"
  39913. deprecated="not deprecated">
  39914. <param name="netgroup" type="java.lang.String"/>
  39915. <doc>
  39916. <![CDATA[a Unix command to get a given netgroup's user list]]>
  39917. </doc>
  39918. </method>
  39919. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  39920. abstract="false" native="false" synchronized="false"
  39921. static="true" final="false" visibility="public"
  39922. deprecated="not deprecated">
  39923. <doc>
  39924. <![CDATA[Return a Unix command to get permission information.]]>
  39925. </doc>
  39926. </method>
  39927. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  39928. abstract="false" native="false" synchronized="false"
  39929. static="true" final="false" visibility="public"
  39930. deprecated="not deprecated">
  39931. <param name="memoryLimit" type="int"/>
  39932. <doc>
  39933. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  39934. to a given child process. This is only relevant when we are forking a
  39935. process from within the Mapper or the Reducer implementations.
  39936. Also see Hadoop Pipes and Hadoop Streaming.
  39937. It also checks to ensure that we are running on a *nix platform else
  39938. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  39939. @param memoryLimit virtual memory limit
  39940. @return a <code>String[]</code> with the ulimit command arguments or
  39941. <code>null</code> if we are running on a non *nix platform or
  39942. if the limit is unspecified.]]>
  39943. </doc>
  39944. </method>
  39945. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  39946. abstract="false" native="false" synchronized="false"
  39947. static="true" final="false" visibility="public"
  39948. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  39949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39950. <doc>
  39951. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  39952. to a given child process. This is only relevant when we are forking a
  39953. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  39954. {@link org.apache.hadoop.mapred.Reducer} implementations
  39955. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  39956. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  39957. It also checks to ensure that we are running on a *nix platform else
  39958. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  39959. @param conf configuration
  39960. @return a <code>String[]</code> with the ulimit command arguments or
  39961. <code>null</code> if we are running on a non *nix platform or
  39962. if the limit is unspecified.
  39963. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  39964. </doc>
  39965. </method>
  39966. <method name="setEnvironment"
  39967. abstract="false" native="false" synchronized="false"
  39968. static="false" final="false" visibility="protected"
  39969. deprecated="not deprecated">
  39970. <param name="env" type="java.util.Map"/>
  39971. <doc>
  39972. <![CDATA[set the environment for the command
  39973. @param env Mapping of environment variables]]>
  39974. </doc>
  39975. </method>
  39976. <method name="setWorkingDirectory"
  39977. abstract="false" native="false" synchronized="false"
  39978. static="false" final="false" visibility="protected"
  39979. deprecated="not deprecated">
  39980. <param name="dir" type="java.io.File"/>
  39981. <doc>
  39982. <![CDATA[set the working directory
  39983. @param dir The directory where the command would be executed]]>
  39984. </doc>
  39985. </method>
  39986. <method name="run"
  39987. abstract="false" native="false" synchronized="false"
  39988. static="false" final="false" visibility="protected"
  39989. deprecated="not deprecated">
  39990. <exception name="IOException" type="java.io.IOException"/>
  39991. <doc>
  39992. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  39993. </doc>
  39994. </method>
  39995. <method name="getExecString" return="java.lang.String[]"
  39996. abstract="true" native="false" synchronized="false"
  39997. static="false" final="false" visibility="protected"
  39998. deprecated="not deprecated">
  39999. <doc>
  40000. <![CDATA[return an array containing the command name & its parameters]]>
  40001. </doc>
  40002. </method>
  40003. <method name="parseExecResult"
  40004. abstract="true" native="false" synchronized="false"
  40005. static="false" final="false" visibility="protected"
  40006. deprecated="not deprecated">
  40007. <param name="lines" type="java.io.BufferedReader"/>
  40008. <exception name="IOException" type="java.io.IOException"/>
  40009. <doc>
  40010. <![CDATA[Parse the execution result]]>
  40011. </doc>
  40012. </method>
  40013. <method name="getProcess" return="java.lang.Process"
  40014. abstract="false" native="false" synchronized="false"
  40015. static="false" final="false" visibility="public"
  40016. deprecated="not deprecated">
  40017. <doc>
  40018. <![CDATA[get the current sub-process executing the given command
  40019. @return process executing the command]]>
  40020. </doc>
  40021. </method>
  40022. <method name="getExitCode" return="int"
  40023. abstract="false" native="false" synchronized="false"
  40024. static="false" final="false" visibility="public"
  40025. deprecated="not deprecated">
  40026. <doc>
  40027. <![CDATA[get the exit code
  40028. @return the exit code of the process]]>
  40029. </doc>
  40030. </method>
  40031. <method name="isTimedOut" return="boolean"
  40032. abstract="false" native="false" synchronized="false"
  40033. static="false" final="false" visibility="public"
  40034. deprecated="not deprecated">
  40035. <doc>
  40036. <![CDATA[To check if the passed script to shell command executor timed out or
  40037. not.
  40038. @return if the script timed out.]]>
  40039. </doc>
  40040. </method>
  40041. <method name="execCommand" return="java.lang.String"
  40042. abstract="false" native="false" synchronized="false"
  40043. static="true" final="false" visibility="public"
  40044. deprecated="not deprecated">
  40045. <param name="cmd" type="java.lang.String[]"/>
  40046. <exception name="IOException" type="java.io.IOException"/>
  40047. <doc>
  40048. <![CDATA[Static method to execute a shell command.
  40049. Covers most of the simple cases without requiring the user to implement
  40050. the <code>Shell</code> interface.
  40051. @param cmd shell command to execute.
  40052. @return the output of the executed command.]]>
  40053. </doc>
  40054. </method>
  40055. <method name="execCommand" return="java.lang.String"
  40056. abstract="false" native="false" synchronized="false"
  40057. static="true" final="false" visibility="public"
  40058. deprecated="not deprecated">
  40059. <param name="env" type="java.util.Map"/>
  40060. <param name="cmd" type="java.lang.String[]"/>
  40061. <param name="timeout" type="long"/>
  40062. <exception name="IOException" type="java.io.IOException"/>
  40063. <doc>
  40064. <![CDATA[Static method to execute a shell command.
  40065. Covers most of the simple cases without requiring the user to implement
  40066. the <code>Shell</code> interface.
  40067. @param env the map of environment key=value
  40068. @param cmd shell command to execute.
  40069. @param timeout time in milliseconds after which script should be marked timeout
  40070. @return the output of the executed command.o]]>
  40071. </doc>
  40072. </method>
  40073. <method name="execCommand" return="java.lang.String"
  40074. abstract="false" native="false" synchronized="false"
  40075. static="true" final="false" visibility="public"
  40076. deprecated="not deprecated">
  40077. <param name="env" type="java.util.Map"/>
  40078. <param name="cmd" type="java.lang.String[]"/>
  40079. <exception name="IOException" type="java.io.IOException"/>
  40080. <doc>
  40081. <![CDATA[Static method to execute a shell command.
  40082. Covers most of the simple cases without requiring the user to implement
  40083. the <code>Shell</code> interface.
  40084. @param env the map of environment key=value
  40085. @param cmd shell command to execute.
  40086. @return the output of the executed command.]]>
  40087. </doc>
  40088. </method>
  40089. <field name="LOG" type="org.apache.commons.logging.Log"
  40090. transient="false" volatile="false"
  40091. static="true" final="true" visibility="public"
  40092. deprecated="not deprecated">
  40093. </field>
  40094. <field name="USER_NAME_COMMAND" type="java.lang.String"
  40095. transient="false" volatile="false"
  40096. static="true" final="true" visibility="public"
  40097. deprecated="not deprecated">
  40098. <doc>
  40099. <![CDATA[a Unix command to get the current user's name]]>
  40100. </doc>
  40101. </field>
  40102. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  40103. transient="false" volatile="false"
  40104. static="true" final="true" visibility="public"
  40105. deprecated="not deprecated">
  40106. <doc>
  40107. <![CDATA[a Unix command to set permission]]>
  40108. </doc>
  40109. </field>
  40110. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  40111. transient="false" volatile="false"
  40112. static="true" final="true" visibility="public"
  40113. deprecated="not deprecated">
  40114. <doc>
  40115. <![CDATA[a Unix command to set owner]]>
  40116. </doc>
  40117. </field>
  40118. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  40119. transient="false" volatile="false"
  40120. static="true" final="true" visibility="public"
  40121. deprecated="not deprecated">
  40122. </field>
  40123. <field name="timeOutInterval" type="long"
  40124. transient="false" volatile="false"
  40125. static="false" final="false" visibility="protected"
  40126. deprecated="not deprecated">
  40127. <doc>
  40128. <![CDATA[Time after which the executing script would be timedout]]>
  40129. </doc>
  40130. </field>
  40131. <field name="ULIMIT_COMMAND" type="java.lang.String"
  40132. transient="false" volatile="false"
  40133. static="true" final="true" visibility="public"
  40134. deprecated="not deprecated">
  40135. <doc>
  40136. <![CDATA[a Unix command to get ulimit of a process.]]>
  40137. </doc>
  40138. </field>
  40139. <field name="WINDOWS" type="boolean"
  40140. transient="false" volatile="false"
  40141. static="true" final="true" visibility="public"
  40142. deprecated="not deprecated">
  40143. <doc>
  40144. <![CDATA[Set to true on Windows platforms]]>
  40145. </doc>
  40146. </field>
  40147. <doc>
  40148. <![CDATA[A base class for running a Unix command.
  40149. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  40150. <code>df</code>. It also offers facilities to gate commands by
  40151. time-intervals.]]>
  40152. </doc>
  40153. </class>
  40154. <!-- end class org.apache.hadoop.util.Shell -->
  40155. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  40156. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  40157. abstract="false"
  40158. static="true" final="false" visibility="public"
  40159. deprecated="not deprecated">
  40160. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  40161. static="false" final="false" visibility="public"
  40162. deprecated="not deprecated">
  40163. </constructor>
  40164. <method name="getExitCode" return="int"
  40165. abstract="false" native="false" synchronized="false"
  40166. static="false" final="false" visibility="public"
  40167. deprecated="not deprecated">
  40168. </method>
  40169. <doc>
  40170. <![CDATA[This is an IOException with exit code added.]]>
  40171. </doc>
  40172. </class>
  40173. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  40174. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  40175. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  40176. abstract="false"
  40177. static="true" final="false" visibility="public"
  40178. deprecated="not deprecated">
  40179. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  40180. static="false" final="false" visibility="public"
  40181. deprecated="not deprecated">
  40182. </constructor>
  40183. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  40184. static="false" final="false" visibility="public"
  40185. deprecated="not deprecated">
  40186. </constructor>
  40187. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  40188. static="false" final="false" visibility="public"
  40189. deprecated="not deprecated">
  40190. </constructor>
  40191. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  40192. static="false" final="false" visibility="public"
  40193. deprecated="not deprecated">
  40194. <doc>
  40195. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  40196. @param execString The command to execute with arguments
  40197. @param dir If not-null, specifies the directory which should be set
  40198. as the current working directory for the command.
  40199. If null, the current working directory is not modified.
  40200. @param env If not-null, environment of the command will include the
  40201. key-value pairs specified in the map. If null, the current
  40202. environment is not modified.
  40203. @param timeout Specifies the time in milliseconds, after which the
  40204. command will be killed and the status marked as timedout.
  40205. If 0, the command will not be timed out.]]>
  40206. </doc>
  40207. </constructor>
  40208. <method name="execute"
  40209. abstract="false" native="false" synchronized="false"
  40210. static="false" final="false" visibility="public"
  40211. deprecated="not deprecated">
  40212. <exception name="IOException" type="java.io.IOException"/>
  40213. <doc>
  40214. <![CDATA[Execute the shell command.]]>
  40215. </doc>
  40216. </method>
  40217. <method name="getExecString" return="java.lang.String[]"
  40218. abstract="false" native="false" synchronized="false"
  40219. static="false" final="false" visibility="protected"
  40220. deprecated="not deprecated">
  40221. </method>
  40222. <method name="parseExecResult"
  40223. abstract="false" native="false" synchronized="false"
  40224. static="false" final="false" visibility="protected"
  40225. deprecated="not deprecated">
  40226. <param name="lines" type="java.io.BufferedReader"/>
  40227. <exception name="IOException" type="java.io.IOException"/>
  40228. </method>
  40229. <method name="getOutput" return="java.lang.String"
  40230. abstract="false" native="false" synchronized="false"
  40231. static="false" final="false" visibility="public"
  40232. deprecated="not deprecated">
  40233. <doc>
  40234. <![CDATA[Get the output of the shell command.]]>
  40235. </doc>
  40236. </method>
  40237. <method name="toString" return="java.lang.String"
  40238. abstract="false" native="false" synchronized="false"
  40239. static="false" final="false" visibility="public"
  40240. deprecated="not deprecated">
  40241. <doc>
  40242. <![CDATA[Returns the commands of this instance.
  40243. Arguments with spaces in are presented with quotes round; other
  40244. arguments are presented raw
  40245. @return a string representation of the object.]]>
  40246. </doc>
  40247. </method>
  40248. <doc>
  40249. <![CDATA[A simple shell command executor.
  40250. <code>ShellCommandExecutor</code>should be used in cases where the output
  40251. of the command needs no explicit parsing and where the command, working
  40252. directory and the environment remains unchanged. The output of the command
  40253. is stored as-is and is expected to be small.]]>
  40254. </doc>
  40255. </class>
  40256. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  40257. <!-- start class org.apache.hadoop.util.StringUtils -->
  40258. <class name="StringUtils" extends="java.lang.Object"
  40259. abstract="false"
  40260. static="false" final="false" visibility="public"
  40261. deprecated="not deprecated">
  40262. <constructor name="StringUtils"
  40263. static="false" final="false" visibility="public"
  40264. deprecated="not deprecated">
  40265. </constructor>
  40266. <method name="stringifyException" return="java.lang.String"
  40267. abstract="false" native="false" synchronized="false"
  40268. static="true" final="false" visibility="public"
  40269. deprecated="not deprecated">
  40270. <param name="e" type="java.lang.Throwable"/>
  40271. <doc>
  40272. <![CDATA[Make a string representation of the exception.
  40273. @param e The exception to stringify
  40274. @return A string with exception name and call stack.]]>
  40275. </doc>
  40276. </method>
  40277. <method name="simpleHostname" return="java.lang.String"
  40278. abstract="false" native="false" synchronized="false"
  40279. static="true" final="false" visibility="public"
  40280. deprecated="not deprecated">
  40281. <param name="fullHostname" type="java.lang.String"/>
  40282. <doc>
  40283. <![CDATA[Given a full hostname, return the word upto the first dot.
  40284. @param fullHostname the full hostname
  40285. @return the hostname to the first dot]]>
  40286. </doc>
  40287. </method>
  40288. <method name="humanReadableInt" return="java.lang.String"
  40289. abstract="false" native="false" synchronized="false"
  40290. static="true" final="false" visibility="public"
  40291. deprecated="not deprecated">
  40292. <param name="number" type="long"/>
  40293. <doc>
  40294. <![CDATA[Given an integer, return a string that is in an approximate, but human
  40295. readable format.
  40296. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  40297. @param number the number to format
  40298. @return a human readable form of the integer]]>
  40299. </doc>
  40300. </method>
  40301. <method name="formatPercent" return="java.lang.String"
  40302. abstract="false" native="false" synchronized="false"
  40303. static="true" final="false" visibility="public"
  40304. deprecated="not deprecated">
  40305. <param name="done" type="double"/>
  40306. <param name="digits" type="int"/>
  40307. <doc>
  40308. <![CDATA[Format a percentage for presentation to the user.
  40309. @param done the percentage to format (0.0 to 1.0)
  40310. @param digits the number of digits past the decimal point
  40311. @return a string representation of the percentage]]>
  40312. </doc>
  40313. </method>
  40314. <method name="arrayToString" return="java.lang.String"
  40315. abstract="false" native="false" synchronized="false"
  40316. static="true" final="false" visibility="public"
  40317. deprecated="not deprecated">
  40318. <param name="strs" type="java.lang.String[]"/>
  40319. <doc>
  40320. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  40321. @param strs Array of strings
  40322. @return Empty string if strs.length is 0, comma separated list of strings
  40323. otherwise]]>
  40324. </doc>
  40325. </method>
  40326. <method name="byteToHexString" return="java.lang.String"
  40327. abstract="false" native="false" synchronized="false"
  40328. static="true" final="false" visibility="public"
  40329. deprecated="not deprecated">
  40330. <param name="bytes" type="byte[]"/>
  40331. <param name="start" type="int"/>
  40332. <param name="end" type="int"/>
  40333. <doc>
  40334. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  40335. representation of the bytes
  40336. @param bytes
  40337. @param start start index, inclusively
  40338. @param end end index, exclusively
  40339. @return hex string representation of the byte array]]>
  40340. </doc>
  40341. </method>
  40342. <method name="byteToHexString" return="java.lang.String"
  40343. abstract="false" native="false" synchronized="false"
  40344. static="true" final="false" visibility="public"
  40345. deprecated="not deprecated">
  40346. <param name="bytes" type="byte[]"/>
  40347. <doc>
  40348. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  40349. </doc>
  40350. </method>
  40351. <method name="hexStringToByte" return="byte[]"
  40352. abstract="false" native="false" synchronized="false"
  40353. static="true" final="false" visibility="public"
  40354. deprecated="not deprecated">
  40355. <param name="hex" type="java.lang.String"/>
  40356. <doc>
  40357. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  40358. string
  40359. @param hex the hex String array
  40360. @return a byte array that is a hex string representation of the given
  40361. string. The size of the byte array is therefore hex.length/2]]>
  40362. </doc>
  40363. </method>
  40364. <method name="uriToString" return="java.lang.String"
  40365. abstract="false" native="false" synchronized="false"
  40366. static="true" final="false" visibility="public"
  40367. deprecated="not deprecated">
  40368. <param name="uris" type="java.net.URI[]"/>
  40369. <doc>
  40370. <![CDATA[@param uris]]>
  40371. </doc>
  40372. </method>
  40373. <method name="stringToURI" return="java.net.URI[]"
  40374. abstract="false" native="false" synchronized="false"
  40375. static="true" final="false" visibility="public"
  40376. deprecated="not deprecated">
  40377. <param name="str" type="java.lang.String[]"/>
  40378. <doc>
  40379. <![CDATA[@param str]]>
  40380. </doc>
  40381. </method>
  40382. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  40383. abstract="false" native="false" synchronized="false"
  40384. static="true" final="false" visibility="public"
  40385. deprecated="not deprecated">
  40386. <param name="str" type="java.lang.String[]"/>
  40387. <doc>
  40388. <![CDATA[@param str]]>
  40389. </doc>
  40390. </method>
  40391. <method name="formatTimeDiff" return="java.lang.String"
  40392. abstract="false" native="false" synchronized="false"
  40393. static="true" final="false" visibility="public"
  40394. deprecated="not deprecated">
  40395. <param name="finishTime" type="long"/>
  40396. <param name="startTime" type="long"/>
  40397. <doc>
  40398. <![CDATA[Given a finish and start time in long milliseconds, returns a
  40399. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  40400. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  40401. @param finishTime finish time
  40402. @param startTime start time]]>
  40403. </doc>
  40404. </method>
  40405. <method name="formatTime" return="java.lang.String"
  40406. abstract="false" native="false" synchronized="false"
  40407. static="true" final="false" visibility="public"
  40408. deprecated="not deprecated">
  40409. <param name="timeDiff" type="long"/>
  40410. <doc>
  40411. <![CDATA[Given the time in long milliseconds, returns a
  40412. String in the format Xhrs, Ymins, Z sec.
  40413. @param timeDiff The time difference to format]]>
  40414. </doc>
  40415. </method>
  40416. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  40417. abstract="false" native="false" synchronized="false"
  40418. static="true" final="false" visibility="public"
  40419. deprecated="not deprecated">
  40420. <param name="dateFormat" type="java.text.DateFormat"/>
  40421. <param name="finishTime" type="long"/>
  40422. <param name="startTime" type="long"/>
  40423. <doc>
  40424. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  40425. as returned by formatTimeDiff().
  40426. If finish time is 0, empty string is returned, if start time is 0
  40427. then difference is not appended to return value.
  40428. @param dateFormat date format to use
  40429. @param finishTime fnish time
  40430. @param startTime start time
  40431. @return formatted value.]]>
  40432. </doc>
  40433. </method>
  40434. <method name="getStrings" return="java.lang.String[]"
  40435. abstract="false" native="false" synchronized="false"
  40436. static="true" final="false" visibility="public"
  40437. deprecated="not deprecated">
  40438. <param name="str" type="java.lang.String"/>
  40439. <doc>
  40440. <![CDATA[Returns an arraylist of strings.
  40441. @param str the comma seperated string values
  40442. @return the arraylist of the comma seperated string values]]>
  40443. </doc>
  40444. </method>
  40445. <method name="getStringCollection" return="java.util.Collection"
  40446. abstract="false" native="false" synchronized="false"
  40447. static="true" final="false" visibility="public"
  40448. deprecated="not deprecated">
  40449. <param name="str" type="java.lang.String"/>
  40450. <doc>
  40451. <![CDATA[Returns a collection of strings.
  40452. @param str comma seperated string values
  40453. @return an <code>ArrayList</code> of string values]]>
  40454. </doc>
  40455. </method>
  40456. <method name="split" return="java.lang.String[]"
  40457. abstract="false" native="false" synchronized="false"
  40458. static="true" final="false" visibility="public"
  40459. deprecated="not deprecated">
  40460. <param name="str" type="java.lang.String"/>
  40461. <doc>
  40462. <![CDATA[Split a string using the default separator
  40463. @param str a string that may have escaped separator
  40464. @return an array of strings]]>
  40465. </doc>
  40466. </method>
  40467. <method name="split" return="java.lang.String[]"
  40468. abstract="false" native="false" synchronized="false"
  40469. static="true" final="false" visibility="public"
  40470. deprecated="not deprecated">
  40471. <param name="str" type="java.lang.String"/>
  40472. <param name="escapeChar" type="char"/>
  40473. <param name="separator" type="char"/>
  40474. <doc>
  40475. <![CDATA[Split a string using the given separator
  40476. @param str a string that may have escaped separator
  40477. @param escapeChar a char that be used to escape the separator
  40478. @param separator a separator char
  40479. @return an array of strings]]>
  40480. </doc>
  40481. </method>
  40482. <method name="findNext" return="int"
  40483. abstract="false" native="false" synchronized="false"
  40484. static="true" final="false" visibility="public"
  40485. deprecated="not deprecated">
  40486. <param name="str" type="java.lang.String"/>
  40487. <param name="separator" type="char"/>
  40488. <param name="escapeChar" type="char"/>
  40489. <param name="start" type="int"/>
  40490. <param name="split" type="java.lang.StringBuilder"/>
  40491. <doc>
  40492. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  40493. separators starting from the index. Note the substring between the index
  40494. and the position of the separator is passed.
  40495. @param str the source string
  40496. @param separator the character to find
  40497. @param escapeChar character used to escape
  40498. @param start from where to search
  40499. @param split used to pass back the extracted string]]>
  40500. </doc>
  40501. </method>
  40502. <method name="escapeString" return="java.lang.String"
  40503. abstract="false" native="false" synchronized="false"
  40504. static="true" final="false" visibility="public"
  40505. deprecated="not deprecated">
  40506. <param name="str" type="java.lang.String"/>
  40507. <doc>
  40508. <![CDATA[Escape commas in the string using the default escape char
  40509. @param str a string
  40510. @return an escaped string]]>
  40511. </doc>
  40512. </method>
  40513. <method name="escapeString" return="java.lang.String"
  40514. abstract="false" native="false" synchronized="false"
  40515. static="true" final="false" visibility="public"
  40516. deprecated="not deprecated">
  40517. <param name="str" type="java.lang.String"/>
  40518. <param name="escapeChar" type="char"/>
  40519. <param name="charToEscape" type="char"/>
  40520. <doc>
  40521. <![CDATA[Escape <code>charToEscape</code> in the string
  40522. with the escape char <code>escapeChar</code>
  40523. @param str string
  40524. @param escapeChar escape char
  40525. @param charToEscape the char to be escaped
  40526. @return an escaped string]]>
  40527. </doc>
  40528. </method>
  40529. <method name="escapeString" return="java.lang.String"
  40530. abstract="false" native="false" synchronized="false"
  40531. static="true" final="false" visibility="public"
  40532. deprecated="not deprecated">
  40533. <param name="str" type="java.lang.String"/>
  40534. <param name="escapeChar" type="char"/>
  40535. <param name="charsToEscape" type="char[]"/>
  40536. <doc>
  40537. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  40538. </doc>
  40539. </method>
  40540. <method name="unEscapeString" return="java.lang.String"
  40541. abstract="false" native="false" synchronized="false"
  40542. static="true" final="false" visibility="public"
  40543. deprecated="not deprecated">
  40544. <param name="str" type="java.lang.String"/>
  40545. <doc>
  40546. <![CDATA[Unescape commas in the string using the default escape char
  40547. @param str a string
  40548. @return an unescaped string]]>
  40549. </doc>
  40550. </method>
  40551. <method name="unEscapeString" return="java.lang.String"
  40552. abstract="false" native="false" synchronized="false"
  40553. static="true" final="false" visibility="public"
  40554. deprecated="not deprecated">
  40555. <param name="str" type="java.lang.String"/>
  40556. <param name="escapeChar" type="char"/>
  40557. <param name="charToEscape" type="char"/>
  40558. <doc>
  40559. <![CDATA[Unescape <code>charToEscape</code> in the string
  40560. with the escape char <code>escapeChar</code>
  40561. @param str string
  40562. @param escapeChar escape char
  40563. @param charToEscape the escaped char
  40564. @return an unescaped string]]>
  40565. </doc>
  40566. </method>
  40567. <method name="unEscapeString" return="java.lang.String"
  40568. abstract="false" native="false" synchronized="false"
  40569. static="true" final="false" visibility="public"
  40570. deprecated="not deprecated">
  40571. <param name="str" type="java.lang.String"/>
  40572. <param name="escapeChar" type="char"/>
  40573. <param name="charsToEscape" type="char[]"/>
  40574. <doc>
  40575. <![CDATA[@param charsToEscape array of characters to unescape]]>
  40576. </doc>
  40577. </method>
  40578. <method name="getHostname" return="java.lang.String"
  40579. abstract="false" native="false" synchronized="false"
  40580. static="true" final="false" visibility="public"
  40581. deprecated="not deprecated">
  40582. <doc>
  40583. <![CDATA[Return hostname without throwing exception.
  40584. @return hostname]]>
  40585. </doc>
  40586. </method>
  40587. <method name="startupShutdownMessage"
  40588. abstract="false" native="false" synchronized="false"
  40589. static="true" final="false" visibility="public"
  40590. deprecated="not deprecated">
  40591. <param name="clazz" type="java.lang.Class"/>
  40592. <param name="args" type="java.lang.String[]"/>
  40593. <param name="LOG" type="org.apache.commons.logging.Log"/>
  40594. <doc>
  40595. <![CDATA[Print a log message for starting up and shutting down
  40596. @param clazz the class of the server
  40597. @param args arguments
  40598. @param LOG the target log object]]>
  40599. </doc>
  40600. </method>
  40601. <method name="escapeHTML" return="java.lang.String"
  40602. abstract="false" native="false" synchronized="false"
  40603. static="true" final="false" visibility="public"
  40604. deprecated="not deprecated">
  40605. <param name="string" type="java.lang.String"/>
  40606. <doc>
  40607. <![CDATA[Escapes HTML Special characters present in the string.
  40608. @param string
  40609. @return HTML Escaped String representation]]>
  40610. </doc>
  40611. </method>
  40612. <method name="byteDesc" return="java.lang.String"
  40613. abstract="false" native="false" synchronized="false"
  40614. static="true" final="false" visibility="public"
  40615. deprecated="not deprecated">
  40616. <param name="len" type="long"/>
  40617. <doc>
  40618. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  40619. </doc>
  40620. </method>
  40621. <method name="limitDecimalTo2" return="java.lang.String"
  40622. abstract="false" native="false" synchronized="true"
  40623. static="true" final="false" visibility="public"
  40624. deprecated="not deprecated">
  40625. <param name="d" type="double"/>
  40626. </method>
  40627. <method name="join" return="java.lang.String"
  40628. abstract="false" native="false" synchronized="false"
  40629. static="true" final="false" visibility="public"
  40630. deprecated="not deprecated">
  40631. <param name="separator" type="java.lang.CharSequence"/>
  40632. <param name="strings" type="java.lang.Iterable"/>
  40633. <doc>
  40634. <![CDATA[Concatenates strings, using a separator.
  40635. @param separator Separator to join with.
  40636. @param strings Strings to join.
  40637. @return the joined string]]>
  40638. </doc>
  40639. </method>
  40640. <method name="join" return="java.lang.String"
  40641. abstract="false" native="false" synchronized="false"
  40642. static="true" final="false" visibility="public"
  40643. deprecated="not deprecated">
  40644. <param name="separator" type="java.lang.CharSequence"/>
  40645. <param name="strings" type="java.lang.String[]"/>
  40646. <doc>
  40647. <![CDATA[Concatenates strings, using a separator.
  40648. @param separator to join with
  40649. @param strings to join
  40650. @return the joined string]]>
  40651. </doc>
  40652. </method>
  40653. <method name="capitalize" return="java.lang.String"
  40654. abstract="false" native="false" synchronized="false"
  40655. static="true" final="false" visibility="public"
  40656. deprecated="not deprecated">
  40657. <param name="s" type="java.lang.String"/>
  40658. <doc>
  40659. <![CDATA[Capitalize a word
  40660. @param s the input string
  40661. @return capitalized string]]>
  40662. </doc>
  40663. </method>
  40664. <method name="camelize" return="java.lang.String"
  40665. abstract="false" native="false" synchronized="false"
  40666. static="true" final="false" visibility="public"
  40667. deprecated="not deprecated">
  40668. <param name="s" type="java.lang.String"/>
  40669. <doc>
  40670. <![CDATA[Convert SOME_STUFF to SomeStuff
  40671. @param s input string
  40672. @return camelized string]]>
  40673. </doc>
  40674. </method>
  40675. <field name="COMMA" type="char"
  40676. transient="false" volatile="false"
  40677. static="true" final="true" visibility="public"
  40678. deprecated="not deprecated">
  40679. </field>
  40680. <field name="COMMA_STR" type="java.lang.String"
  40681. transient="false" volatile="false"
  40682. static="true" final="true" visibility="public"
  40683. deprecated="not deprecated">
  40684. </field>
  40685. <field name="ESCAPE_CHAR" type="char"
  40686. transient="false" volatile="false"
  40687. static="true" final="true" visibility="public"
  40688. deprecated="not deprecated">
  40689. </field>
  40690. <doc>
  40691. <![CDATA[General string utils]]>
  40692. </doc>
  40693. </class>
  40694. <!-- end class org.apache.hadoop.util.StringUtils -->
  40695. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  40696. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  40697. abstract="false"
  40698. static="true" final="true" visibility="public"
  40699. deprecated="not deprecated">
  40700. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  40701. abstract="false" native="false" synchronized="false"
  40702. static="true" final="false" visibility="public"
  40703. deprecated="not deprecated">
  40704. </method>
  40705. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40706. abstract="false" native="false" synchronized="false"
  40707. static="true" final="false" visibility="public"
  40708. deprecated="not deprecated">
  40709. <param name="name" type="java.lang.String"/>
  40710. </method>
  40711. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40712. abstract="false" native="false" synchronized="false"
  40713. static="true" final="false" visibility="public"
  40714. deprecated="not deprecated">
  40715. <param name="symbol" type="char"/>
  40716. <doc>
  40717. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  40718. </doc>
  40719. </method>
  40720. <method name="string2long" return="long"
  40721. abstract="false" native="false" synchronized="false"
  40722. static="true" final="false" visibility="public"
  40723. deprecated="not deprecated">
  40724. <param name="s" type="java.lang.String"/>
  40725. <doc>
  40726. <![CDATA[Convert a string to long.
  40727. The input string is first be trimmed
  40728. and then it is parsed with traditional binary prefix.
  40729. For example,
  40730. "-1230k" will be converted to -1230 * 1024 = -1259520;
  40731. "891g" will be converted to 891 * 1024^3 = 956703965184;
  40732. @param s input string
  40733. @return a long value represented by the input string.]]>
  40734. </doc>
  40735. </method>
  40736. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40737. transient="false" volatile="false"
  40738. static="true" final="true" visibility="public"
  40739. deprecated="not deprecated">
  40740. </field>
  40741. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40742. transient="false" volatile="false"
  40743. static="true" final="true" visibility="public"
  40744. deprecated="not deprecated">
  40745. </field>
  40746. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40747. transient="false" volatile="false"
  40748. static="true" final="true" visibility="public"
  40749. deprecated="not deprecated">
  40750. </field>
  40751. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40752. transient="false" volatile="false"
  40753. static="true" final="true" visibility="public"
  40754. deprecated="not deprecated">
  40755. </field>
  40756. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40757. transient="false" volatile="false"
  40758. static="true" final="true" visibility="public"
  40759. deprecated="not deprecated">
  40760. </field>
  40761. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  40762. transient="false" volatile="false"
  40763. static="true" final="true" visibility="public"
  40764. deprecated="not deprecated">
  40765. </field>
  40766. <field name="value" type="long"
  40767. transient="false" volatile="false"
  40768. static="false" final="true" visibility="public"
  40769. deprecated="not deprecated">
  40770. </field>
  40771. <field name="symbol" type="char"
  40772. transient="false" volatile="false"
  40773. static="false" final="true" visibility="public"
  40774. deprecated="not deprecated">
  40775. </field>
  40776. <doc>
  40777. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  40778. which can be represented by a 64-bit integer.
  40779. TraditionalBinaryPrefix symbol are case insensitive.]]>
  40780. </doc>
  40781. </class>
  40782. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  40783. <!-- start interface org.apache.hadoop.util.Tool -->
  40784. <interface name="Tool" abstract="true"
  40785. static="false" final="false" visibility="public"
  40786. deprecated="not deprecated">
  40787. <implements name="org.apache.hadoop.conf.Configurable"/>
  40788. <method name="run" return="int"
  40789. abstract="false" native="false" synchronized="false"
  40790. static="false" final="false" visibility="public"
  40791. deprecated="not deprecated">
  40792. <param name="args" type="java.lang.String[]"/>
  40793. <exception name="Exception" type="java.lang.Exception"/>
  40794. <doc>
  40795. <![CDATA[Execute the command with the given arguments.
  40796. @param args command specific arguments.
  40797. @return exit code.
  40798. @throws Exception]]>
  40799. </doc>
  40800. </method>
  40801. <doc>
  40802. <![CDATA[A tool interface that supports handling of generic command-line options.
  40803. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  40804. The tool/application should delegate the handling of
  40805. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  40806. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  40807. and only handle its custom arguments.</p>
  40808. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  40809. <p><blockquote><pre>
  40810. public class MyApp extends Configured implements Tool {
  40811. public int run(String[] args) throws Exception {
  40812. // <code>Configuration</code> processed by <code>ToolRunner</code>
  40813. Configuration conf = getConf();
  40814. // Create a JobConf using the processed <code>conf</code>
  40815. JobConf job = new JobConf(conf, MyApp.class);
  40816. // Process custom command-line options
  40817. Path in = new Path(args[1]);
  40818. Path out = new Path(args[2]);
  40819. // Specify various job-specific parameters
  40820. job.setJobName("my-app");
  40821. job.setInputPath(in);
  40822. job.setOutputPath(out);
  40823. job.setMapperClass(MyApp.MyMapper.class);
  40824. job.setReducerClass(MyApp.MyReducer.class);
  40825. // Submit the job, then poll for progress until the job is complete
  40826. JobClient.runJob(job);
  40827. }
  40828. public static void main(String[] args) throws Exception {
  40829. // Let <code>ToolRunner</code> handle generic command-line options
  40830. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  40831. System.exit(res);
  40832. }
  40833. }
  40834. </pre></blockquote></p>
  40835. @see GenericOptionsParser
  40836. @see ToolRunner]]>
  40837. </doc>
  40838. </interface>
  40839. <!-- end interface org.apache.hadoop.util.Tool -->
  40840. <!-- start class org.apache.hadoop.util.ToolRunner -->
  40841. <class name="ToolRunner" extends="java.lang.Object"
  40842. abstract="false"
  40843. static="false" final="false" visibility="public"
  40844. deprecated="not deprecated">
  40845. <constructor name="ToolRunner"
  40846. static="false" final="false" visibility="public"
  40847. deprecated="not deprecated">
  40848. </constructor>
  40849. <method name="run" return="int"
  40850. abstract="false" native="false" synchronized="false"
  40851. static="true" final="false" visibility="public"
  40852. deprecated="not deprecated">
  40853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40854. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  40855. <param name="args" type="java.lang.String[]"/>
  40856. <exception name="Exception" type="java.lang.Exception"/>
  40857. <doc>
  40858. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  40859. parsing with the given generic arguments. Uses the given
  40860. <code>Configuration</code>, or builds one if null.
  40861. Sets the <code>Tool</code>'s configuration with the possibly modified
  40862. version of the <code>conf</code>.
  40863. @param conf <code>Configuration</code> for the <code>Tool</code>.
  40864. @param tool <code>Tool</code> to run.
  40865. @param args command-line arguments to the tool.
  40866. @return exit code of the {@link Tool#run(String[])} method.]]>
  40867. </doc>
  40868. </method>
  40869. <method name="run" return="int"
  40870. abstract="false" native="false" synchronized="false"
  40871. static="true" final="false" visibility="public"
  40872. deprecated="not deprecated">
  40873. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  40874. <param name="args" type="java.lang.String[]"/>
  40875. <exception name="Exception" type="java.lang.Exception"/>
  40876. <doc>
  40877. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  40878. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  40879. @param tool <code>Tool</code> to run.
  40880. @param args command-line arguments to the tool.
  40881. @return exit code of the {@link Tool#run(String[])} method.]]>
  40882. </doc>
  40883. </method>
  40884. <method name="printGenericCommandUsage"
  40885. abstract="false" native="false" synchronized="false"
  40886. static="true" final="false" visibility="public"
  40887. deprecated="not deprecated">
  40888. <param name="out" type="java.io.PrintStream"/>
  40889. <doc>
  40890. <![CDATA[Prints generic command-line argurments and usage information.
  40891. @param out stream to write usage information to.]]>
  40892. </doc>
  40893. </method>
  40894. <doc>
  40895. <![CDATA[A utility to help run {@link Tool}s.
  40896. <p><code>ToolRunner</code> can be used to run classes implementing
  40897. <code>Tool</code> interface. It works in conjunction with
  40898. {@link GenericOptionsParser} to parse the
  40899. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  40900. generic hadoop command line arguments</a> and modifies the
  40901. <code>Configuration</code> of the <code>Tool</code>. The
  40902. application-specific options are passed along without being modified.
  40903. </p>
  40904. @see Tool
  40905. @see GenericOptionsParser]]>
  40906. </doc>
  40907. </class>
  40908. <!-- end class org.apache.hadoop.util.ToolRunner -->
  40909. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  40910. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  40911. abstract="false"
  40912. static="false" final="false" visibility="public"
  40913. deprecated="not deprecated">
  40914. <constructor name="UTF8ByteArrayUtils"
  40915. static="false" final="false" visibility="public"
  40916. deprecated="not deprecated">
  40917. </constructor>
  40918. <method name="findByte" return="int"
  40919. abstract="false" native="false" synchronized="false"
  40920. static="true" final="false" visibility="public"
  40921. deprecated="not deprecated">
  40922. <param name="utf" type="byte[]"/>
  40923. <param name="start" type="int"/>
  40924. <param name="end" type="int"/>
  40925. <param name="b" type="byte"/>
  40926. <doc>
  40927. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  40928. @param utf a byte array containing a UTF-8 encoded string
  40929. @param start starting offset
  40930. @param end ending position
  40931. @param b the byte to find
  40932. @return position that first byte occures otherwise -1]]>
  40933. </doc>
  40934. </method>
  40935. <method name="findBytes" return="int"
  40936. abstract="false" native="false" synchronized="false"
  40937. static="true" final="false" visibility="public"
  40938. deprecated="not deprecated">
  40939. <param name="utf" type="byte[]"/>
  40940. <param name="start" type="int"/>
  40941. <param name="end" type="int"/>
  40942. <param name="b" type="byte[]"/>
  40943. <doc>
  40944. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  40945. @param utf a byte array containing a UTF-8 encoded string
  40946. @param start starting offset
  40947. @param end ending position
  40948. @param b the bytes to find
  40949. @return position that first byte occures otherwise -1]]>
  40950. </doc>
  40951. </method>
  40952. <method name="findNthByte" return="int"
  40953. abstract="false" native="false" synchronized="false"
  40954. static="true" final="false" visibility="public"
  40955. deprecated="not deprecated">
  40956. <param name="utf" type="byte[]"/>
  40957. <param name="start" type="int"/>
  40958. <param name="length" type="int"/>
  40959. <param name="b" type="byte"/>
  40960. <param name="n" type="int"/>
  40961. <doc>
  40962. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  40963. @param utf a byte array containing a UTF-8 encoded string
  40964. @param start starting offset
  40965. @param length the length of byte array
  40966. @param b the byte to find
  40967. @param n the desired occurrence of the given byte
  40968. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  40969. </doc>
  40970. </method>
  40971. <method name="findNthByte" return="int"
  40972. abstract="false" native="false" synchronized="false"
  40973. static="true" final="false" visibility="public"
  40974. deprecated="not deprecated">
  40975. <param name="utf" type="byte[]"/>
  40976. <param name="b" type="byte"/>
  40977. <param name="n" type="int"/>
  40978. <doc>
  40979. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  40980. @param utf a byte array containing a UTF-8 encoded string
  40981. @param b the byte to find
  40982. @param n the desired occurrence of the given byte
  40983. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  40984. </doc>
  40985. </method>
  40986. </class>
  40987. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  40988. <!-- start class org.apache.hadoop.util.VersionInfo -->
  40989. <class name="VersionInfo" extends="java.lang.Object"
  40990. abstract="false"
  40991. static="false" final="false" visibility="public"
  40992. deprecated="not deprecated">
  40993. <constructor name="VersionInfo"
  40994. static="false" final="false" visibility="public"
  40995. deprecated="not deprecated">
  40996. </constructor>
  40997. <method name="getVersion" return="java.lang.String"
  40998. abstract="false" native="false" synchronized="false"
  40999. static="true" final="false" visibility="public"
  41000. deprecated="not deprecated">
  41001. <doc>
  41002. <![CDATA[Get the Hadoop version.
  41003. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  41004. </doc>
  41005. </method>
  41006. <method name="getRevision" return="java.lang.String"
  41007. abstract="false" native="false" synchronized="false"
  41008. static="true" final="false" visibility="public"
  41009. deprecated="not deprecated">
  41010. <doc>
  41011. <![CDATA[Get the subversion revision number for the root directory
  41012. @return the revision number, eg. "451451"]]>
  41013. </doc>
  41014. </method>
  41015. <method name="getDate" return="java.lang.String"
  41016. abstract="false" native="false" synchronized="false"
  41017. static="true" final="false" visibility="public"
  41018. deprecated="not deprecated">
  41019. <doc>
  41020. <![CDATA[The date that Hadoop was compiled.
  41021. @return the compilation date in unix date format]]>
  41022. </doc>
  41023. </method>
  41024. <method name="getUser" return="java.lang.String"
  41025. abstract="false" native="false" synchronized="false"
  41026. static="true" final="false" visibility="public"
  41027. deprecated="not deprecated">
  41028. <doc>
  41029. <![CDATA[The user that compiled Hadoop.
  41030. @return the username of the user]]>
  41031. </doc>
  41032. </method>
  41033. <method name="getUrl" return="java.lang.String"
  41034. abstract="false" native="false" synchronized="false"
  41035. static="true" final="false" visibility="public"
  41036. deprecated="not deprecated">
  41037. <doc>
  41038. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  41039. </doc>
  41040. </method>
  41041. <method name="getBuildVersion" return="java.lang.String"
  41042. abstract="false" native="false" synchronized="false"
  41043. static="true" final="false" visibility="public"
  41044. deprecated="not deprecated">
  41045. <doc>
  41046. <![CDATA[Returns the buildVersion which includes version,
  41047. revision, user and date.]]>
  41048. </doc>
  41049. </method>
  41050. <method name="main"
  41051. abstract="false" native="false" synchronized="false"
  41052. static="true" final="false" visibility="public"
  41053. deprecated="not deprecated">
  41054. <param name="args" type="java.lang.String[]"/>
  41055. </method>
  41056. <doc>
  41057. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  41058. information.]]>
  41059. </doc>
  41060. </class>
  41061. <!-- end class org.apache.hadoop.util.VersionInfo -->
  41062. <!-- start class org.apache.hadoop.util.XMLUtils -->
  41063. <class name="XMLUtils" extends="java.lang.Object"
  41064. abstract="false"
  41065. static="false" final="false" visibility="public"
  41066. deprecated="not deprecated">
  41067. <constructor name="XMLUtils"
  41068. static="false" final="false" visibility="public"
  41069. deprecated="not deprecated">
  41070. </constructor>
  41071. <method name="transform"
  41072. abstract="false" native="false" synchronized="false"
  41073. static="true" final="false" visibility="public"
  41074. deprecated="not deprecated">
  41075. <param name="styleSheet" type="java.io.InputStream"/>
  41076. <param name="xml" type="java.io.InputStream"/>
  41077. <param name="out" type="java.io.Writer"/>
  41078. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  41079. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  41080. <doc>
  41081. <![CDATA[Transform input xml given a stylesheet.
  41082. @param styleSheet the style-sheet
  41083. @param xml input xml data
  41084. @param out output
  41085. @throws TransformerConfigurationException
  41086. @throws TransformerException]]>
  41087. </doc>
  41088. </method>
  41089. <doc>
  41090. <![CDATA[General xml utilities.]]>
  41091. </doc>
  41092. </class>
  41093. <!-- end class org.apache.hadoop.util.XMLUtils -->
  41094. </package>
  41095. <package name="org.apache.hadoop.util.bloom">
  41096. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  41097. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41098. abstract="false"
  41099. static="false" final="false" visibility="public"
  41100. deprecated="not deprecated">
  41101. <constructor name="BloomFilter"
  41102. static="false" final="false" visibility="public"
  41103. deprecated="not deprecated">
  41104. <doc>
  41105. <![CDATA[Default constructor - use with readFields]]>
  41106. </doc>
  41107. </constructor>
  41108. <constructor name="BloomFilter" type="int, int, int"
  41109. static="false" final="false" visibility="public"
  41110. deprecated="not deprecated">
  41111. <doc>
  41112. <![CDATA[Constructor
  41113. @param vectorSize The vector size of <i>this</i> filter.
  41114. @param nbHash The number of hash function to consider.
  41115. @param hashType type of the hashing function (see
  41116. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41117. </doc>
  41118. </constructor>
  41119. <method name="add"
  41120. abstract="false" native="false" synchronized="false"
  41121. static="false" final="false" visibility="public"
  41122. deprecated="not deprecated">
  41123. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41124. </method>
  41125. <method name="and"
  41126. abstract="false" native="false" synchronized="false"
  41127. static="false" final="false" visibility="public"
  41128. deprecated="not deprecated">
  41129. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41130. </method>
  41131. <method name="membershipTest" return="boolean"
  41132. abstract="false" native="false" synchronized="false"
  41133. static="false" final="false" visibility="public"
  41134. deprecated="not deprecated">
  41135. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41136. </method>
  41137. <method name="not"
  41138. abstract="false" native="false" synchronized="false"
  41139. static="false" final="false" visibility="public"
  41140. deprecated="not deprecated">
  41141. </method>
  41142. <method name="or"
  41143. abstract="false" native="false" synchronized="false"
  41144. static="false" final="false" visibility="public"
  41145. deprecated="not deprecated">
  41146. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41147. </method>
  41148. <method name="xor"
  41149. abstract="false" native="false" synchronized="false"
  41150. static="false" final="false" visibility="public"
  41151. deprecated="not deprecated">
  41152. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41153. </method>
  41154. <method name="toString" return="java.lang.String"
  41155. abstract="false" native="false" synchronized="false"
  41156. static="false" final="false" visibility="public"
  41157. deprecated="not deprecated">
  41158. </method>
  41159. <method name="getVectorSize" return="int"
  41160. abstract="false" native="false" synchronized="false"
  41161. static="false" final="false" visibility="public"
  41162. deprecated="not deprecated">
  41163. <doc>
  41164. <![CDATA[@return size of the the bloomfilter]]>
  41165. </doc>
  41166. </method>
  41167. <method name="write"
  41168. abstract="false" native="false" synchronized="false"
  41169. static="false" final="false" visibility="public"
  41170. deprecated="not deprecated">
  41171. <param name="out" type="java.io.DataOutput"/>
  41172. <exception name="IOException" type="java.io.IOException"/>
  41173. </method>
  41174. <method name="readFields"
  41175. abstract="false" native="false" synchronized="false"
  41176. static="false" final="false" visibility="public"
  41177. deprecated="not deprecated">
  41178. <param name="in" type="java.io.DataInput"/>
  41179. <exception name="IOException" type="java.io.IOException"/>
  41180. </method>
  41181. <doc>
  41182. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  41183. <p>
  41184. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  41185. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  41186. offers for the transmission of set membership information between networked hosts. A sender encodes
  41187. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  41188. representation. Computation and space costs for construction are linear in the number of elements.
  41189. The receiver uses the filter to test whether various elements are members of the set. Though the
  41190. filter will occasionally return a false positive, it will never return a false negative. When creating
  41191. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  41192. <p>
  41193. Originally created by
  41194. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41195. @see Filter The general behavior of a filter
  41196. @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>]]>
  41197. </doc>
  41198. </class>
  41199. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  41200. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  41201. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41202. abstract="false"
  41203. static="false" final="true" visibility="public"
  41204. deprecated="not deprecated">
  41205. <constructor name="CountingBloomFilter"
  41206. static="false" final="false" visibility="public"
  41207. deprecated="not deprecated">
  41208. <doc>
  41209. <![CDATA[Default constructor - use with readFields]]>
  41210. </doc>
  41211. </constructor>
  41212. <constructor name="CountingBloomFilter" type="int, int, int"
  41213. static="false" final="false" visibility="public"
  41214. deprecated="not deprecated">
  41215. <doc>
  41216. <![CDATA[Constructor
  41217. @param vectorSize The vector size of <i>this</i> filter.
  41218. @param nbHash The number of hash function to consider.
  41219. @param hashType type of the hashing function (see
  41220. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41221. </doc>
  41222. </constructor>
  41223. <method name="add"
  41224. abstract="false" native="false" synchronized="false"
  41225. static="false" final="false" visibility="public"
  41226. deprecated="not deprecated">
  41227. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41228. </method>
  41229. <method name="delete"
  41230. abstract="false" native="false" synchronized="false"
  41231. static="false" final="false" visibility="public"
  41232. deprecated="not deprecated">
  41233. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41234. <doc>
  41235. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  41236. <p>
  41237. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  41238. @param key The key to remove.]]>
  41239. </doc>
  41240. </method>
  41241. <method name="and"
  41242. abstract="false" native="false" synchronized="false"
  41243. static="false" final="false" visibility="public"
  41244. deprecated="not deprecated">
  41245. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41246. </method>
  41247. <method name="membershipTest" return="boolean"
  41248. abstract="false" native="false" synchronized="false"
  41249. static="false" final="false" visibility="public"
  41250. deprecated="not deprecated">
  41251. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41252. </method>
  41253. <method name="approximateCount" return="int"
  41254. abstract="false" native="false" synchronized="false"
  41255. static="false" final="false" visibility="public"
  41256. deprecated="not deprecated">
  41257. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41258. <doc>
  41259. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  41260. times the key was added to the filter. This allows the filter to be
  41261. used as an approximate <code>key -&gt; count</code> map.
  41262. <p>NOTE: due to the bucket size of this filter, inserting the same
  41263. key more than 15 times will cause an overflow at all filter positions
  41264. associated with this key, and it will significantly increase the error
  41265. rate for this and other keys. For this reason the filter can only be
  41266. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  41267. @param key key to be tested
  41268. @return 0 if the key is not present. Otherwise, a positive value v will
  41269. be returned such that <code>v == count</code> with probability equal to the
  41270. error rate of this filter, and <code>v &gt; count</code> otherwise.
  41271. Additionally, if the filter experienced an underflow as a result of
  41272. {@link #delete(Key)} operation, the return value may be lower than the
  41273. <code>count</code> with the probability of the false negative rate of such
  41274. filter.]]>
  41275. </doc>
  41276. </method>
  41277. <method name="not"
  41278. abstract="false" native="false" synchronized="false"
  41279. static="false" final="false" visibility="public"
  41280. deprecated="not deprecated">
  41281. </method>
  41282. <method name="or"
  41283. abstract="false" native="false" synchronized="false"
  41284. static="false" final="false" visibility="public"
  41285. deprecated="not deprecated">
  41286. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41287. </method>
  41288. <method name="xor"
  41289. abstract="false" native="false" synchronized="false"
  41290. static="false" final="false" visibility="public"
  41291. deprecated="not deprecated">
  41292. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41293. </method>
  41294. <method name="toString" return="java.lang.String"
  41295. abstract="false" native="false" synchronized="false"
  41296. static="false" final="false" visibility="public"
  41297. deprecated="not deprecated">
  41298. </method>
  41299. <method name="write"
  41300. abstract="false" native="false" synchronized="false"
  41301. static="false" final="false" visibility="public"
  41302. deprecated="not deprecated">
  41303. <param name="out" type="java.io.DataOutput"/>
  41304. <exception name="IOException" type="java.io.IOException"/>
  41305. </method>
  41306. <method name="readFields"
  41307. abstract="false" native="false" synchronized="false"
  41308. static="false" final="false" visibility="public"
  41309. deprecated="not deprecated">
  41310. <param name="in" type="java.io.DataInput"/>
  41311. <exception name="IOException" type="java.io.IOException"/>
  41312. </method>
  41313. <doc>
  41314. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  41315. 2000 paper.
  41316. <p>
  41317. A counting Bloom filter is an improvement to standard a Bloom filter as it
  41318. allows dynamic additions and deletions of set membership information. This
  41319. is achieved through the use of a counting vector instead of a bit vector.
  41320. <p>
  41321. Originally created by
  41322. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41323. @see Filter The general behavior of a filter
  41324. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  41325. </doc>
  41326. </class>
  41327. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  41328. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  41329. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  41330. abstract="false"
  41331. static="false" final="false" visibility="public"
  41332. deprecated="not deprecated">
  41333. <constructor name="DynamicBloomFilter"
  41334. static="false" final="false" visibility="public"
  41335. deprecated="not deprecated">
  41336. <doc>
  41337. <![CDATA[Zero-args constructor for the serialization.]]>
  41338. </doc>
  41339. </constructor>
  41340. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  41341. static="false" final="false" visibility="public"
  41342. deprecated="not deprecated">
  41343. <doc>
  41344. <![CDATA[Constructor.
  41345. <p>
  41346. Builds an empty Dynamic Bloom filter.
  41347. @param vectorSize The number of bits in the vector.
  41348. @param nbHash The number of hash function to consider.
  41349. @param hashType type of the hashing function (see
  41350. {@link org.apache.hadoop.util.hash.Hash}).
  41351. @param nr The threshold for the maximum number of keys to record in a
  41352. dynamic Bloom filter row.]]>
  41353. </doc>
  41354. </constructor>
  41355. <method name="add"
  41356. abstract="false" native="false" synchronized="false"
  41357. static="false" final="false" visibility="public"
  41358. deprecated="not deprecated">
  41359. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41360. </method>
  41361. <method name="and"
  41362. abstract="false" native="false" synchronized="false"
  41363. static="false" final="false" visibility="public"
  41364. deprecated="not deprecated">
  41365. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41366. </method>
  41367. <method name="membershipTest" return="boolean"
  41368. abstract="false" native="false" synchronized="false"
  41369. static="false" final="false" visibility="public"
  41370. deprecated="not deprecated">
  41371. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41372. </method>
  41373. <method name="not"
  41374. abstract="false" native="false" synchronized="false"
  41375. static="false" final="false" visibility="public"
  41376. deprecated="not deprecated">
  41377. </method>
  41378. <method name="or"
  41379. abstract="false" native="false" synchronized="false"
  41380. static="false" final="false" visibility="public"
  41381. deprecated="not deprecated">
  41382. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41383. </method>
  41384. <method name="xor"
  41385. abstract="false" native="false" synchronized="false"
  41386. static="false" final="false" visibility="public"
  41387. deprecated="not deprecated">
  41388. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41389. </method>
  41390. <method name="toString" return="java.lang.String"
  41391. abstract="false" native="false" synchronized="false"
  41392. static="false" final="false" visibility="public"
  41393. deprecated="not deprecated">
  41394. </method>
  41395. <method name="write"
  41396. abstract="false" native="false" synchronized="false"
  41397. static="false" final="false" visibility="public"
  41398. deprecated="not deprecated">
  41399. <param name="out" type="java.io.DataOutput"/>
  41400. <exception name="IOException" type="java.io.IOException"/>
  41401. </method>
  41402. <method name="readFields"
  41403. abstract="false" native="false" synchronized="false"
  41404. static="false" final="false" visibility="public"
  41405. deprecated="not deprecated">
  41406. <param name="in" type="java.io.DataInput"/>
  41407. <exception name="IOException" type="java.io.IOException"/>
  41408. </method>
  41409. <doc>
  41410. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  41411. <p>
  41412. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  41413. each of the <code>s</code> rows is a standard Bloom filter. The creation
  41414. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  41415. bit matrix, i.e., it is composed of a single standard Bloom filter.
  41416. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  41417. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  41418. the cardinality of the set <code>A</code> to record in the filter).
  41419. <p>
  41420. As the size of <code>A</code> grows during the execution of the application,
  41421. several keys must be inserted in the DBF. When inserting a key into the DBF,
  41422. one must first get an active Bloom filter in the matrix. A Bloom filter is
  41423. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  41424. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  41425. If an active Bloom filter is found, the key is inserted and
  41426. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  41427. is no active Bloom filter, a new one is created (i.e., a new row is added to
  41428. the matrix) according to the current size of <code>A</code> and the element
  41429. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  41430. this new Bloom filter is set to one. A given key is said to belong to the
  41431. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  41432. <p>
  41433. Originally created by
  41434. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41435. @see Filter The general behavior of a filter
  41436. @see BloomFilter A Bloom filter
  41437. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  41438. </doc>
  41439. </class>
  41440. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  41441. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  41442. <class name="Filter" extends="java.lang.Object"
  41443. abstract="true"
  41444. static="false" final="false" visibility="public"
  41445. deprecated="not deprecated">
  41446. <implements name="org.apache.hadoop.io.Writable"/>
  41447. <constructor name="Filter"
  41448. static="false" final="false" visibility="protected"
  41449. deprecated="not deprecated">
  41450. </constructor>
  41451. <constructor name="Filter" type="int, int, int"
  41452. static="false" final="false" visibility="protected"
  41453. deprecated="not deprecated">
  41454. <doc>
  41455. <![CDATA[Constructor.
  41456. @param vectorSize The vector size of <i>this</i> filter.
  41457. @param nbHash The number of hash functions to consider.
  41458. @param hashType type of the hashing function (see {@link Hash}).]]>
  41459. </doc>
  41460. </constructor>
  41461. <method name="add"
  41462. abstract="true" native="false" synchronized="false"
  41463. static="false" final="false" visibility="public"
  41464. deprecated="not deprecated">
  41465. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41466. <doc>
  41467. <![CDATA[Adds a key to <i>this</i> filter.
  41468. @param key The key to add.]]>
  41469. </doc>
  41470. </method>
  41471. <method name="membershipTest" return="boolean"
  41472. abstract="true" native="false" synchronized="false"
  41473. static="false" final="false" visibility="public"
  41474. deprecated="not deprecated">
  41475. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41476. <doc>
  41477. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  41478. @param key The key to test.
  41479. @return boolean True if the specified key belongs to <i>this</i> filter.
  41480. False otherwise.]]>
  41481. </doc>
  41482. </method>
  41483. <method name="and"
  41484. abstract="true" native="false" synchronized="false"
  41485. static="false" final="false" visibility="public"
  41486. deprecated="not deprecated">
  41487. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41488. <doc>
  41489. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  41490. <p>
  41491. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41492. @param filter The filter to AND with.]]>
  41493. </doc>
  41494. </method>
  41495. <method name="or"
  41496. abstract="true" native="false" synchronized="false"
  41497. static="false" final="false" visibility="public"
  41498. deprecated="not deprecated">
  41499. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41500. <doc>
  41501. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  41502. <p>
  41503. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41504. @param filter The filter to OR with.]]>
  41505. </doc>
  41506. </method>
  41507. <method name="xor"
  41508. abstract="true" native="false" synchronized="false"
  41509. static="false" final="false" visibility="public"
  41510. deprecated="not deprecated">
  41511. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  41512. <doc>
  41513. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  41514. <p>
  41515. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  41516. @param filter The filter to XOR with.]]>
  41517. </doc>
  41518. </method>
  41519. <method name="not"
  41520. abstract="true" native="false" synchronized="false"
  41521. static="false" final="false" visibility="public"
  41522. deprecated="not deprecated">
  41523. <doc>
  41524. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  41525. <p>
  41526. The result is assigned to <i>this</i> filter.]]>
  41527. </doc>
  41528. </method>
  41529. <method name="add"
  41530. abstract="false" native="false" synchronized="false"
  41531. static="false" final="false" visibility="public"
  41532. deprecated="not deprecated">
  41533. <param name="keys" type="java.util.List"/>
  41534. <doc>
  41535. <![CDATA[Adds a list of keys to <i>this</i> filter.
  41536. @param keys The list of keys.]]>
  41537. </doc>
  41538. </method>
  41539. <method name="add"
  41540. abstract="false" native="false" synchronized="false"
  41541. static="false" final="false" visibility="public"
  41542. deprecated="not deprecated">
  41543. <param name="keys" type="java.util.Collection"/>
  41544. <doc>
  41545. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  41546. @param keys The collection of keys.]]>
  41547. </doc>
  41548. </method>
  41549. <method name="add"
  41550. abstract="false" native="false" synchronized="false"
  41551. static="false" final="false" visibility="public"
  41552. deprecated="not deprecated">
  41553. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  41554. <doc>
  41555. <![CDATA[Adds an array of keys to <i>this</i> filter.
  41556. @param keys The array of keys.]]>
  41557. </doc>
  41558. </method>
  41559. <method name="write"
  41560. abstract="false" native="false" synchronized="false"
  41561. static="false" final="false" visibility="public"
  41562. deprecated="not deprecated">
  41563. <param name="out" type="java.io.DataOutput"/>
  41564. <exception name="IOException" type="java.io.IOException"/>
  41565. </method>
  41566. <method name="readFields"
  41567. abstract="false" native="false" synchronized="false"
  41568. static="false" final="false" visibility="public"
  41569. deprecated="not deprecated">
  41570. <param name="in" type="java.io.DataInput"/>
  41571. <exception name="IOException" type="java.io.IOException"/>
  41572. </method>
  41573. <field name="vectorSize" type="int"
  41574. transient="false" volatile="false"
  41575. static="false" final="false" visibility="protected"
  41576. deprecated="not deprecated">
  41577. <doc>
  41578. <![CDATA[The vector size of <i>this</i> filter.]]>
  41579. </doc>
  41580. </field>
  41581. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  41582. transient="false" volatile="false"
  41583. static="false" final="false" visibility="protected"
  41584. deprecated="not deprecated">
  41585. <doc>
  41586. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  41587. </doc>
  41588. </field>
  41589. <field name="nbHash" type="int"
  41590. transient="false" volatile="false"
  41591. static="false" final="false" visibility="protected"
  41592. deprecated="not deprecated">
  41593. <doc>
  41594. <![CDATA[The number of hash function to consider.]]>
  41595. </doc>
  41596. </field>
  41597. <field name="hashType" type="int"
  41598. transient="false" volatile="false"
  41599. static="false" final="false" visibility="protected"
  41600. deprecated="not deprecated">
  41601. <doc>
  41602. <![CDATA[Type of hashing function to use.]]>
  41603. </doc>
  41604. </field>
  41605. <doc>
  41606. <![CDATA[Defines the general behavior of a filter.
  41607. <p>
  41608. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  41609. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  41610. in a vector through the use of several hash functions.
  41611. <p>
  41612. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  41613. <p>
  41614. It must be extended in order to define the real behavior.
  41615. @see Key The general behavior of a key
  41616. @see HashFunction A hash function]]>
  41617. </doc>
  41618. </class>
  41619. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  41620. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  41621. <class name="HashFunction" extends="java.lang.Object"
  41622. abstract="false"
  41623. static="false" final="true" visibility="public"
  41624. deprecated="not deprecated">
  41625. <constructor name="HashFunction" type="int, int, int"
  41626. static="false" final="false" visibility="public"
  41627. deprecated="not deprecated">
  41628. <doc>
  41629. <![CDATA[Constructor.
  41630. <p>
  41631. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  41632. @param maxValue The maximum highest returned value.
  41633. @param nbHash The number of resulting hashed values.
  41634. @param hashType type of the hashing function (see {@link Hash}).]]>
  41635. </doc>
  41636. </constructor>
  41637. <method name="clear"
  41638. abstract="false" native="false" synchronized="false"
  41639. static="false" final="false" visibility="public"
  41640. deprecated="not deprecated">
  41641. <doc>
  41642. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  41643. </doc>
  41644. </method>
  41645. <method name="hash" return="int[]"
  41646. abstract="false" native="false" synchronized="false"
  41647. static="false" final="false" visibility="public"
  41648. deprecated="not deprecated">
  41649. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  41650. <doc>
  41651. <![CDATA[Hashes a specified key into several integers.
  41652. @param k The specified key.
  41653. @return The array of hashed values.]]>
  41654. </doc>
  41655. </method>
  41656. <doc>
  41657. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  41658. @see Key The general behavior of a key being stored in a filter
  41659. @see Filter The general behavior of a filter]]>
  41660. </doc>
  41661. </class>
  41662. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  41663. <!-- start class org.apache.hadoop.util.bloom.Key -->
  41664. <class name="Key" extends="java.lang.Object"
  41665. abstract="false"
  41666. static="false" final="false" visibility="public"
  41667. deprecated="not deprecated">
  41668. <implements name="org.apache.hadoop.io.WritableComparable"/>
  41669. <constructor name="Key"
  41670. static="false" final="false" visibility="public"
  41671. deprecated="not deprecated">
  41672. <doc>
  41673. <![CDATA[default constructor - use with readFields]]>
  41674. </doc>
  41675. </constructor>
  41676. <constructor name="Key" type="byte[]"
  41677. static="false" final="false" visibility="public"
  41678. deprecated="not deprecated">
  41679. <doc>
  41680. <![CDATA[Constructor.
  41681. <p>
  41682. Builds a key with a default weight.
  41683. @param value The byte value of <i>this</i> key.]]>
  41684. </doc>
  41685. </constructor>
  41686. <constructor name="Key" type="byte[], double"
  41687. static="false" final="false" visibility="public"
  41688. deprecated="not deprecated">
  41689. <doc>
  41690. <![CDATA[Constructor.
  41691. <p>
  41692. Builds a key with a specified weight.
  41693. @param value The value of <i>this</i> key.
  41694. @param weight The weight associated to <i>this</i> key.]]>
  41695. </doc>
  41696. </constructor>
  41697. <method name="set"
  41698. abstract="false" native="false" synchronized="false"
  41699. static="false" final="false" visibility="public"
  41700. deprecated="not deprecated">
  41701. <param name="value" type="byte[]"/>
  41702. <param name="weight" type="double"/>
  41703. <doc>
  41704. <![CDATA[@param value
  41705. @param weight]]>
  41706. </doc>
  41707. </method>
  41708. <method name="getBytes" return="byte[]"
  41709. abstract="false" native="false" synchronized="false"
  41710. static="false" final="false" visibility="public"
  41711. deprecated="not deprecated">
  41712. <doc>
  41713. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  41714. </doc>
  41715. </method>
  41716. <method name="getWeight" return="double"
  41717. abstract="false" native="false" synchronized="false"
  41718. static="false" final="false" visibility="public"
  41719. deprecated="not deprecated">
  41720. <doc>
  41721. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  41722. </doc>
  41723. </method>
  41724. <method name="incrementWeight"
  41725. abstract="false" native="false" synchronized="false"
  41726. static="false" final="false" visibility="public"
  41727. deprecated="not deprecated">
  41728. <param name="weight" type="double"/>
  41729. <doc>
  41730. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  41731. @param weight The increment.]]>
  41732. </doc>
  41733. </method>
  41734. <method name="incrementWeight"
  41735. abstract="false" native="false" synchronized="false"
  41736. static="false" final="false" visibility="public"
  41737. deprecated="not deprecated">
  41738. <doc>
  41739. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  41740. </doc>
  41741. </method>
  41742. <method name="equals" return="boolean"
  41743. abstract="false" native="false" synchronized="false"
  41744. static="false" final="false" visibility="public"
  41745. deprecated="not deprecated">
  41746. <param name="o" type="java.lang.Object"/>
  41747. </method>
  41748. <method name="hashCode" return="int"
  41749. abstract="false" native="false" synchronized="false"
  41750. static="false" final="false" visibility="public"
  41751. deprecated="not deprecated">
  41752. </method>
  41753. <method name="write"
  41754. abstract="false" native="false" synchronized="false"
  41755. static="false" final="false" visibility="public"
  41756. deprecated="not deprecated">
  41757. <param name="out" type="java.io.DataOutput"/>
  41758. <exception name="IOException" type="java.io.IOException"/>
  41759. </method>
  41760. <method name="readFields"
  41761. abstract="false" native="false" synchronized="false"
  41762. static="false" final="false" visibility="public"
  41763. deprecated="not deprecated">
  41764. <param name="in" type="java.io.DataInput"/>
  41765. <exception name="IOException" type="java.io.IOException"/>
  41766. </method>
  41767. <method name="compareTo" return="int"
  41768. abstract="false" native="false" synchronized="false"
  41769. static="false" final="false" visibility="public"
  41770. deprecated="not deprecated">
  41771. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  41772. </method>
  41773. <doc>
  41774. <![CDATA[The general behavior of a key that must be stored in a filter.
  41775. @see Filter The general behavior of a filter]]>
  41776. </doc>
  41777. </class>
  41778. <!-- end class org.apache.hadoop.util.bloom.Key -->
  41779. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  41780. <interface name="RemoveScheme" abstract="true"
  41781. static="false" final="false" visibility="public"
  41782. deprecated="not deprecated">
  41783. <field name="RANDOM" type="short"
  41784. transient="false" volatile="false"
  41785. static="true" final="true" visibility="public"
  41786. deprecated="not deprecated">
  41787. <doc>
  41788. <![CDATA[Random selection.
  41789. <p>
  41790. The idea is to randomly select a bit to reset.]]>
  41791. </doc>
  41792. </field>
  41793. <field name="MINIMUM_FN" type="short"
  41794. transient="false" volatile="false"
  41795. static="true" final="true" visibility="public"
  41796. deprecated="not deprecated">
  41797. <doc>
  41798. <![CDATA[MinimumFN Selection.
  41799. <p>
  41800. The idea is to select the bit to reset that will generate the minimum
  41801. number of false negative.]]>
  41802. </doc>
  41803. </field>
  41804. <field name="MAXIMUM_FP" type="short"
  41805. transient="false" volatile="false"
  41806. static="true" final="true" visibility="public"
  41807. deprecated="not deprecated">
  41808. <doc>
  41809. <![CDATA[MaximumFP Selection.
  41810. <p>
  41811. The idea is to select the bit to reset that will remove the maximum number
  41812. of false positive.]]>
  41813. </doc>
  41814. </field>
  41815. <field name="RATIO" type="short"
  41816. transient="false" volatile="false"
  41817. static="true" final="true" visibility="public"
  41818. deprecated="not deprecated">
  41819. <doc>
  41820. <![CDATA[Ratio Selection.
  41821. <p>
  41822. The idea is to select the bit to reset that will, at the same time, remove
  41823. the maximum number of false positve while minimizing the amount of false
  41824. negative generated.]]>
  41825. </doc>
  41826. </field>
  41827. <doc>
  41828. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  41829. <p>
  41830. Originally created by
  41831. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  41832. </doc>
  41833. </interface>
  41834. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  41835. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  41836. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  41837. abstract="false"
  41838. static="false" final="true" visibility="public"
  41839. deprecated="not deprecated">
  41840. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  41841. <constructor name="RetouchedBloomFilter"
  41842. static="false" final="false" visibility="public"
  41843. deprecated="not deprecated">
  41844. <doc>
  41845. <![CDATA[Default constructor - use with readFields]]>
  41846. </doc>
  41847. </constructor>
  41848. <constructor name="RetouchedBloomFilter" type="int, int, int"
  41849. static="false" final="false" visibility="public"
  41850. deprecated="not deprecated">
  41851. <doc>
  41852. <![CDATA[Constructor
  41853. @param vectorSize The vector size of <i>this</i> filter.
  41854. @param nbHash The number of hash function to consider.
  41855. @param hashType type of the hashing function (see
  41856. {@link org.apache.hadoop.util.hash.Hash}).]]>
  41857. </doc>
  41858. </constructor>
  41859. <method name="add"
  41860. abstract="false" native="false" synchronized="false"
  41861. static="false" final="false" visibility="public"
  41862. deprecated="not deprecated">
  41863. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41864. </method>
  41865. <method name="addFalsePositive"
  41866. abstract="false" native="false" synchronized="false"
  41867. static="false" final="false" visibility="public"
  41868. deprecated="not deprecated">
  41869. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  41870. <doc>
  41871. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  41872. <p>
  41873. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  41874. @param key The false positive key to add.]]>
  41875. </doc>
  41876. </method>
  41877. <method name="addFalsePositive"
  41878. abstract="false" native="false" synchronized="false"
  41879. static="false" final="false" visibility="public"
  41880. deprecated="not deprecated">
  41881. <param name="coll" type="java.util.Collection"/>
  41882. <doc>
  41883. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  41884. @param coll The collection of false positive.]]>
  41885. </doc>
  41886. </method>
  41887. <method name="addFalsePositive"
  41888. abstract="false" native="false" synchronized="false"
  41889. static="false" final="false" visibility="public"
  41890. deprecated="not deprecated">
  41891. <param name="keys" type="java.util.List"/>
  41892. <doc>
  41893. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  41894. @param keys The list of false positive.]]>
  41895. </doc>
  41896. </method>
  41897. <method name="addFalsePositive"
  41898. abstract="false" native="false" synchronized="false"
  41899. static="false" final="false" visibility="public"
  41900. deprecated="not deprecated">
  41901. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  41902. <doc>
  41903. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  41904. @param keys The array of false positive.]]>
  41905. </doc>
  41906. </method>
  41907. <method name="selectiveClearing"
  41908. abstract="false" native="false" synchronized="false"
  41909. static="false" final="false" visibility="public"
  41910. deprecated="not deprecated">
  41911. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  41912. <param name="scheme" type="short"/>
  41913. <doc>
  41914. <![CDATA[Performs the selective clearing for a given key.
  41915. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  41916. @param scheme The selective clearing scheme to apply.]]>
  41917. </doc>
  41918. </method>
  41919. <method name="write"
  41920. abstract="false" native="false" synchronized="false"
  41921. static="false" final="false" visibility="public"
  41922. deprecated="not deprecated">
  41923. <param name="out" type="java.io.DataOutput"/>
  41924. <exception name="IOException" type="java.io.IOException"/>
  41925. </method>
  41926. <method name="readFields"
  41927. abstract="false" native="false" synchronized="false"
  41928. static="false" final="false" visibility="public"
  41929. deprecated="not deprecated">
  41930. <param name="in" type="java.io.DataInput"/>
  41931. <exception name="IOException" type="java.io.IOException"/>
  41932. </method>
  41933. <doc>
  41934. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  41935. <p>
  41936. It allows the removal of selected false positives at the cost of introducing
  41937. random false negatives, and with the benefit of eliminating some random false
  41938. positives at the same time.
  41939. <p>
  41940. Originally created by
  41941. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  41942. @see Filter The general behavior of a filter
  41943. @see BloomFilter A Bloom filter
  41944. @see RemoveScheme The different selective clearing algorithms
  41945. @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>]]>
  41946. </doc>
  41947. </class>
  41948. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  41949. </package>
  41950. <package name="org.apache.hadoop.util.hash">
  41951. <!-- start class org.apache.hadoop.util.hash.Hash -->
  41952. <class name="Hash" extends="java.lang.Object"
  41953. abstract="true"
  41954. static="false" final="false" visibility="public"
  41955. deprecated="not deprecated">
  41956. <constructor name="Hash"
  41957. static="false" final="false" visibility="public"
  41958. deprecated="not deprecated">
  41959. </constructor>
  41960. <method name="parseHashType" return="int"
  41961. abstract="false" native="false" synchronized="false"
  41962. static="true" final="false" visibility="public"
  41963. deprecated="not deprecated">
  41964. <param name="name" type="java.lang.String"/>
  41965. <doc>
  41966. <![CDATA[This utility method converts String representation of hash function name
  41967. to a symbolic constant. Currently two function types are supported,
  41968. "jenkins" and "murmur".
  41969. @param name hash function name
  41970. @return one of the predefined constants]]>
  41971. </doc>
  41972. </method>
  41973. <method name="getHashType" return="int"
  41974. abstract="false" native="false" synchronized="false"
  41975. static="true" final="false" visibility="public"
  41976. deprecated="not deprecated">
  41977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41978. <doc>
  41979. <![CDATA[This utility method converts the name of the configured
  41980. hash type to a symbolic constant.
  41981. @param conf configuration
  41982. @return one of the predefined constants]]>
  41983. </doc>
  41984. </method>
  41985. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  41986. abstract="false" native="false" synchronized="false"
  41987. static="true" final="false" visibility="public"
  41988. deprecated="not deprecated">
  41989. <param name="type" type="int"/>
  41990. <doc>
  41991. <![CDATA[Get a singleton instance of hash function of a given type.
  41992. @param type predefined hash type
  41993. @return hash function instance, or null if type is invalid]]>
  41994. </doc>
  41995. </method>
  41996. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  41997. abstract="false" native="false" synchronized="false"
  41998. static="true" final="false" visibility="public"
  41999. deprecated="not deprecated">
  42000. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42001. <doc>
  42002. <![CDATA[Get a singleton instance of hash function of a type
  42003. defined in the configuration.
  42004. @param conf current configuration
  42005. @return defined hash type, or null if type is invalid]]>
  42006. </doc>
  42007. </method>
  42008. <method name="hash" return="int"
  42009. abstract="false" native="false" synchronized="false"
  42010. static="false" final="false" visibility="public"
  42011. deprecated="not deprecated">
  42012. <param name="bytes" type="byte[]"/>
  42013. <doc>
  42014. <![CDATA[Calculate a hash using all bytes from the input argument, and
  42015. a seed of -1.
  42016. @param bytes input bytes
  42017. @return hash value]]>
  42018. </doc>
  42019. </method>
  42020. <method name="hash" return="int"
  42021. abstract="false" native="false" synchronized="false"
  42022. static="false" final="false" visibility="public"
  42023. deprecated="not deprecated">
  42024. <param name="bytes" type="byte[]"/>
  42025. <param name="initval" type="int"/>
  42026. <doc>
  42027. <![CDATA[Calculate a hash using all bytes from the input argument,
  42028. and a provided seed value.
  42029. @param bytes input bytes
  42030. @param initval seed value
  42031. @return hash value]]>
  42032. </doc>
  42033. </method>
  42034. <method name="hash" return="int"
  42035. abstract="true" native="false" synchronized="false"
  42036. static="false" final="false" visibility="public"
  42037. deprecated="not deprecated">
  42038. <param name="bytes" type="byte[]"/>
  42039. <param name="length" type="int"/>
  42040. <param name="initval" type="int"/>
  42041. <doc>
  42042. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  42043. the provided seed value
  42044. @param bytes input bytes
  42045. @param length length of the valid bytes to consider
  42046. @param initval seed value
  42047. @return hash value]]>
  42048. </doc>
  42049. </method>
  42050. <field name="INVALID_HASH" type="int"
  42051. transient="false" volatile="false"
  42052. static="true" final="true" visibility="public"
  42053. deprecated="not deprecated">
  42054. <doc>
  42055. <![CDATA[Constant to denote invalid hash type.]]>
  42056. </doc>
  42057. </field>
  42058. <field name="JENKINS_HASH" type="int"
  42059. transient="false" volatile="false"
  42060. static="true" final="true" visibility="public"
  42061. deprecated="not deprecated">
  42062. <doc>
  42063. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  42064. </doc>
  42065. </field>
  42066. <field name="MURMUR_HASH" type="int"
  42067. transient="false" volatile="false"
  42068. static="true" final="true" visibility="public"
  42069. deprecated="not deprecated">
  42070. <doc>
  42071. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  42072. </doc>
  42073. </field>
  42074. <doc>
  42075. <![CDATA[This class represents a common API for hashing functions.]]>
  42076. </doc>
  42077. </class>
  42078. <!-- end class org.apache.hadoop.util.hash.Hash -->
  42079. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  42080. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  42081. abstract="false"
  42082. static="false" final="false" visibility="public"
  42083. deprecated="not deprecated">
  42084. <constructor name="JenkinsHash"
  42085. static="false" final="false" visibility="public"
  42086. deprecated="not deprecated">
  42087. </constructor>
  42088. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42089. abstract="false" native="false" synchronized="false"
  42090. static="true" final="false" visibility="public"
  42091. deprecated="not deprecated">
  42092. </method>
  42093. <method name="hash" return="int"
  42094. abstract="false" native="false" synchronized="false"
  42095. static="false" final="false" visibility="public"
  42096. deprecated="not deprecated">
  42097. <param name="key" type="byte[]"/>
  42098. <param name="nbytes" type="int"/>
  42099. <param name="initval" type="int"/>
  42100. <doc>
  42101. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  42102. @param key the key (the unaligned variable-length array of bytes)
  42103. @param nbytes number of bytes to include in hash
  42104. @param initval can be any integer value
  42105. @return a 32-bit value. Every bit of the key affects every bit of the
  42106. return value. Two keys differing by one or two bits will have totally
  42107. different hash values.
  42108. <p>The best hash table sizes are powers of 2. There is no need to do mod
  42109. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  42110. For example, if you need only 10 bits, do
  42111. <code>h = (h & hashmask(10));</code>
  42112. In which case, the hash table should have hashsize(10) elements.
  42113. <p>If you are hashing n strings byte[][] k, do it like this:
  42114. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  42115. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  42116. code any way you wish, private, educational, or commercial. It's free.
  42117. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  42118. acceptable. Do NOT use for cryptographic purposes.]]>
  42119. </doc>
  42120. </method>
  42121. <method name="main"
  42122. abstract="false" native="false" synchronized="false"
  42123. static="true" final="false" visibility="public"
  42124. deprecated="not deprecated">
  42125. <param name="args" type="java.lang.String[]"/>
  42126. <exception name="IOException" type="java.io.IOException"/>
  42127. <doc>
  42128. <![CDATA[Compute the hash of the specified file
  42129. @param args name of file to compute hash of.
  42130. @throws IOException]]>
  42131. </doc>
  42132. </method>
  42133. <doc>
  42134. <![CDATA[Produces 32-bit hash for hash table lookup.
  42135. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  42136. You can use this free for any purpose. It's in the public domain.
  42137. It has no warranty.
  42138. </pre>
  42139. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  42140. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  42141. function compares to others such as CRC, MD?, etc</a>
  42142. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  42143. Dr. Dobbs Article</a>]]>
  42144. </doc>
  42145. </class>
  42146. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  42147. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  42148. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  42149. abstract="false"
  42150. static="false" final="false" visibility="public"
  42151. deprecated="not deprecated">
  42152. <constructor name="MurmurHash"
  42153. static="false" final="false" visibility="public"
  42154. deprecated="not deprecated">
  42155. </constructor>
  42156. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  42157. abstract="false" native="false" synchronized="false"
  42158. static="true" final="false" visibility="public"
  42159. deprecated="not deprecated">
  42160. </method>
  42161. <method name="hash" return="int"
  42162. abstract="false" native="false" synchronized="false"
  42163. static="false" final="false" visibility="public"
  42164. deprecated="not deprecated">
  42165. <param name="data" type="byte[]"/>
  42166. <param name="length" type="int"/>
  42167. <param name="seed" type="int"/>
  42168. </method>
  42169. <doc>
  42170. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  42171. lookup. See http://murmurhash.googlepages.com/ for more details.
  42172. <p>The C version of MurmurHash 2.0 found at that site was ported
  42173. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  42174. </doc>
  42175. </class>
  42176. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  42177. </package>
  42178. <package name="org.apache.hadoop.filecache">
  42179. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  42180. <class name="DistributedCache" extends="java.lang.Object"
  42181. abstract="false"
  42182. static="false" final="false" visibility="public"
  42183. deprecated="not deprecated">
  42184. <constructor name="DistributedCache"
  42185. static="false" final="false" visibility="public"
  42186. deprecated="not deprecated">
  42187. </constructor>
  42188. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  42189. abstract="false" native="false" synchronized="false"
  42190. static="true" final="false" visibility="public"
  42191. deprecated="not deprecated">
  42192. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42193. <param name="cache" type="java.net.URI"/>
  42194. <exception name="IOException" type="java.io.IOException"/>
  42195. <doc>
  42196. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  42197. MapReduce.
  42198. @param conf configuration
  42199. @param cache cache file
  42200. @return <code>FileStatus</code> of a given cache file on hdfs
  42201. @throws IOException]]>
  42202. </doc>
  42203. </method>
  42204. <method name="getTimestamp" return="long"
  42205. abstract="false" native="false" synchronized="false"
  42206. static="true" final="false" visibility="public"
  42207. deprecated="not deprecated">
  42208. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42209. <param name="cache" type="java.net.URI"/>
  42210. <exception name="IOException" type="java.io.IOException"/>
  42211. <doc>
  42212. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  42213. @param conf configuration
  42214. @param cache cache file
  42215. @return mtime of a given cache file on hdfs
  42216. @throws IOException]]>
  42217. </doc>
  42218. </method>
  42219. <method name="createAllSymlink"
  42220. abstract="false" native="false" synchronized="false"
  42221. static="true" final="false" visibility="public"
  42222. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  42223. instead.">
  42224. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42225. <param name="jobCacheDir" type="java.io.File"/>
  42226. <param name="workDir" type="java.io.File"/>
  42227. <exception name="IOException" type="java.io.IOException"/>
  42228. <doc>
  42229. <![CDATA[This method create symlinks for all files in a given dir in another directory
  42230. @param conf the configuration
  42231. @param jobCacheDir the target directory for creating symlinks
  42232. @param workDir the directory in which the symlinks are created
  42233. @throws IOException
  42234. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  42235. instead.]]>
  42236. </doc>
  42237. </method>
  42238. <method name="setCacheArchives"
  42239. abstract="false" native="false" synchronized="false"
  42240. static="true" final="false" visibility="public"
  42241. deprecated="not deprecated">
  42242. <param name="archives" type="java.net.URI[]"/>
  42243. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42244. <doc>
  42245. <![CDATA[Set the configuration with the given set of archives. Intended
  42246. to be used by user code.
  42247. @param archives The list of archives that need to be localized
  42248. @param conf Configuration which will be changed]]>
  42249. </doc>
  42250. </method>
  42251. <method name="setCacheFiles"
  42252. abstract="false" native="false" synchronized="false"
  42253. static="true" final="false" visibility="public"
  42254. deprecated="not deprecated">
  42255. <param name="files" type="java.net.URI[]"/>
  42256. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42257. <doc>
  42258. <![CDATA[Set the configuration with the given set of files. Intended to be
  42259. used by user code.
  42260. @param files The list of files that need to be localized
  42261. @param conf Configuration which will be changed]]>
  42262. </doc>
  42263. </method>
  42264. <method name="getCacheArchives" return="java.net.URI[]"
  42265. abstract="false" native="false" synchronized="false"
  42266. static="true" final="false" visibility="public"
  42267. deprecated="not deprecated">
  42268. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42269. <exception name="IOException" type="java.io.IOException"/>
  42270. <doc>
  42271. <![CDATA[Get cache archives set in the Configuration. Used by
  42272. internal DistributedCache and MapReduce code.
  42273. @param conf The configuration which contains the archives
  42274. @return An array of the caches set in the Configuration
  42275. @throws IOException]]>
  42276. </doc>
  42277. </method>
  42278. <method name="getCacheFiles" return="java.net.URI[]"
  42279. abstract="false" native="false" synchronized="false"
  42280. static="true" final="false" visibility="public"
  42281. deprecated="not deprecated">
  42282. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42283. <exception name="IOException" type="java.io.IOException"/>
  42284. <doc>
  42285. <![CDATA[Get cache files set in the Configuration. Used by internal
  42286. DistributedCache and MapReduce code.
  42287. @param conf The configuration which contains the files
  42288. @return Am array of the files set in the Configuration
  42289. @throws IOException]]>
  42290. </doc>
  42291. </method>
  42292. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  42293. abstract="false" native="false" synchronized="false"
  42294. static="true" final="false" visibility="public"
  42295. deprecated="not deprecated">
  42296. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42297. <exception name="IOException" type="java.io.IOException"/>
  42298. <doc>
  42299. <![CDATA[Return the path array of the localized caches. Intended to be used
  42300. by user code.
  42301. @param conf Configuration that contains the localized archives
  42302. @return A path array of localized caches
  42303. @throws IOException]]>
  42304. </doc>
  42305. </method>
  42306. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  42307. abstract="false" native="false" synchronized="false"
  42308. static="true" final="false" visibility="public"
  42309. deprecated="not deprecated">
  42310. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42311. <exception name="IOException" type="java.io.IOException"/>
  42312. <doc>
  42313. <![CDATA[Return the path array of the localized files. Intended to be used
  42314. by user code.
  42315. @param conf Configuration that contains the localized files
  42316. @return A path array of localized files
  42317. @throws IOException]]>
  42318. </doc>
  42319. </method>
  42320. <method name="getArchiveTimestamps" return="long[]"
  42321. abstract="false" native="false" synchronized="false"
  42322. static="true" final="false" visibility="public"
  42323. deprecated="not deprecated">
  42324. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42325. <doc>
  42326. <![CDATA[Get the timestamps of the archives. Used by internal
  42327. DistributedCache and MapReduce code.
  42328. @param conf The configuration which stored the timestamps
  42329. @return a long array of timestamps
  42330. @throws IOException]]>
  42331. </doc>
  42332. </method>
  42333. <method name="getFileTimestamps" return="long[]"
  42334. abstract="false" native="false" synchronized="false"
  42335. static="true" final="false" visibility="public"
  42336. deprecated="not deprecated">
  42337. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42338. <doc>
  42339. <![CDATA[Get the timestamps of the files. Used by internal
  42340. DistributedCache and MapReduce code.
  42341. @param conf The configuration which stored the timestamps
  42342. @return a long array of timestamps
  42343. @throws IOException]]>
  42344. </doc>
  42345. </method>
  42346. <method name="setArchiveTimestamps"
  42347. abstract="false" native="false" synchronized="false"
  42348. static="true" final="false" visibility="public"
  42349. deprecated="not deprecated">
  42350. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42351. <param name="timestamps" type="java.lang.String"/>
  42352. <doc>
  42353. <![CDATA[This is to check the timestamp of the archives to be localized.
  42354. Used by internal MapReduce code.
  42355. @param conf Configuration which stores the timestamp's
  42356. @param timestamps comma separated list of timestamps of archives.
  42357. The order should be the same as the order in which the archives are added.]]>
  42358. </doc>
  42359. </method>
  42360. <method name="setFileTimestamps"
  42361. abstract="false" native="false" synchronized="false"
  42362. static="true" final="false" visibility="public"
  42363. deprecated="not deprecated">
  42364. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42365. <param name="timestamps" type="java.lang.String"/>
  42366. <doc>
  42367. <![CDATA[This is to check the timestamp of the files to be localized.
  42368. Used by internal MapReduce code.
  42369. @param conf Configuration which stores the timestamp's
  42370. @param timestamps comma separated list of timestamps of files.
  42371. The order should be the same as the order in which the files are added.]]>
  42372. </doc>
  42373. </method>
  42374. <method name="setLocalArchives"
  42375. abstract="false" native="false" synchronized="false"
  42376. static="true" final="false" visibility="public"
  42377. deprecated="not deprecated">
  42378. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42379. <param name="str" type="java.lang.String"/>
  42380. <doc>
  42381. <![CDATA[Set the conf to contain the location for localized archives. Used
  42382. by internal DistributedCache code.
  42383. @param conf The conf to modify to contain the localized caches
  42384. @param str a comma separated list of local archives]]>
  42385. </doc>
  42386. </method>
  42387. <method name="setLocalFiles"
  42388. abstract="false" native="false" synchronized="false"
  42389. static="true" final="false" visibility="public"
  42390. deprecated="not deprecated">
  42391. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42392. <param name="str" type="java.lang.String"/>
  42393. <doc>
  42394. <![CDATA[Set the conf to contain the location for localized files. Used
  42395. by internal DistributedCache code.
  42396. @param conf The conf to modify to contain the localized caches
  42397. @param str a comma separated list of local files]]>
  42398. </doc>
  42399. </method>
  42400. <method name="addLocalArchives"
  42401. abstract="false" native="false" synchronized="false"
  42402. static="true" final="false" visibility="public"
  42403. deprecated="not deprecated">
  42404. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42405. <param name="str" type="java.lang.String"/>
  42406. <doc>
  42407. <![CDATA[Add a archive that has been localized to the conf. Used
  42408. by internal DistributedCache code.
  42409. @param conf The conf to modify to contain the localized caches
  42410. @param str a comma separated list of local archives]]>
  42411. </doc>
  42412. </method>
  42413. <method name="addLocalFiles"
  42414. abstract="false" native="false" synchronized="false"
  42415. static="true" final="false" visibility="public"
  42416. deprecated="not deprecated">
  42417. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42418. <param name="str" type="java.lang.String"/>
  42419. <doc>
  42420. <![CDATA[Add a file that has been localized to the conf.. Used
  42421. by internal DistributedCache code.
  42422. @param conf The conf to modify to contain the localized caches
  42423. @param str a comma separated list of local files]]>
  42424. </doc>
  42425. </method>
  42426. <method name="addCacheArchive"
  42427. abstract="false" native="false" synchronized="false"
  42428. static="true" final="false" visibility="public"
  42429. deprecated="not deprecated">
  42430. <param name="uri" type="java.net.URI"/>
  42431. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42432. <doc>
  42433. <![CDATA[Add a archives to be localized to the conf. Intended to
  42434. be used by user code.
  42435. @param uri The uri of the cache to be localized
  42436. @param conf Configuration to add the cache to]]>
  42437. </doc>
  42438. </method>
  42439. <method name="addCacheFile"
  42440. abstract="false" native="false" synchronized="false"
  42441. static="true" final="false" visibility="public"
  42442. deprecated="not deprecated">
  42443. <param name="uri" type="java.net.URI"/>
  42444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42445. <doc>
  42446. <![CDATA[Add a file to be localized to the conf. Intended
  42447. to be used by user code.
  42448. @param uri The uri of the cache to be localized
  42449. @param conf Configuration to add the cache to]]>
  42450. </doc>
  42451. </method>
  42452. <method name="addFileToClassPath"
  42453. abstract="false" native="false" synchronized="false"
  42454. static="true" final="false" visibility="public"
  42455. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  42456. instead. The {@code FileSystem} should be obtained within an
  42457. appropriate {@code doAs}.">
  42458. <param name="file" type="org.apache.hadoop.fs.Path"/>
  42459. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42460. <exception name="IOException" type="java.io.IOException"/>
  42461. <doc>
  42462. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  42463. to cache as well. Intended to be used by user code.
  42464. @deprecated
  42465. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  42466. instead. The {@code FileSystem} should be obtained within an
  42467. appropriate {@code doAs}.
  42468. @param file Path of the file to be added
  42469. @param conf Configuration that contains the classpath setting]]>
  42470. </doc>
  42471. </method>
  42472. <method name="addFileToClassPath"
  42473. abstract="false" native="false" synchronized="false"
  42474. static="true" final="false" visibility="public"
  42475. deprecated="not deprecated">
  42476. <param name="file" type="org.apache.hadoop.fs.Path"/>
  42477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42478. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  42479. <exception name="IOException" type="java.io.IOException"/>
  42480. <doc>
  42481. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  42482. to cache as well. Intended to be used by user code.
  42483. @param file Path of the file to be added
  42484. @param conf Configuration that contains the classpath setting
  42485. @param fs FileSystem with respect to which {@code archivefile} should
  42486. be interpreted.]]>
  42487. </doc>
  42488. </method>
  42489. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  42490. abstract="false" native="false" synchronized="false"
  42491. static="true" final="false" visibility="public"
  42492. deprecated="not deprecated">
  42493. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42494. <doc>
  42495. <![CDATA[Get the file entries in classpath as an array of Path.
  42496. Used by internal DistributedCache code.
  42497. @param conf Configuration that contains the classpath setting]]>
  42498. </doc>
  42499. </method>
  42500. <method name="addArchiveToClassPath"
  42501. abstract="false" native="false" synchronized="false"
  42502. static="true" final="false" visibility="public"
  42503. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  42504. instead. The {@code FileSystem} should be obtained within an
  42505. appropriate {@code doAs}.">
  42506. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  42507. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42508. <exception name="IOException" type="java.io.IOException"/>
  42509. <doc>
  42510. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  42511. archive to cache as well. Intended to be used by user code.
  42512. @deprecated
  42513. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  42514. instead. The {@code FileSystem} should be obtained within an
  42515. appropriate {@code doAs}.
  42516. @param archive Path of the archive to be added
  42517. @param conf Configuration that contains the classpath setting]]>
  42518. </doc>
  42519. </method>
  42520. <method name="addArchiveToClassPath"
  42521. abstract="false" native="false" synchronized="false"
  42522. static="true" final="false" visibility="public"
  42523. deprecated="not deprecated">
  42524. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  42525. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42526. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  42527. <exception name="IOException" type="java.io.IOException"/>
  42528. <doc>
  42529. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  42530. archive to cache as well. Intended to be used by user code.
  42531. @param archive Path of the archive to be added
  42532. @param conf Configuration that contains the classpath setting
  42533. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  42534. </doc>
  42535. </method>
  42536. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  42537. abstract="false" native="false" synchronized="false"
  42538. static="true" final="false" visibility="public"
  42539. deprecated="not deprecated">
  42540. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42541. <doc>
  42542. <![CDATA[Get the archive entries in classpath as an array of Path.
  42543. Used by internal DistributedCache code.
  42544. @param conf Configuration that contains the classpath setting]]>
  42545. </doc>
  42546. </method>
  42547. <method name="createSymlink"
  42548. abstract="false" native="false" synchronized="false"
  42549. static="true" final="false" visibility="public"
  42550. deprecated="not deprecated">
  42551. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42552. <doc>
  42553. <![CDATA[This method allows you to create symlinks in the current working directory
  42554. of the task to all the cache files/archives.
  42555. Intended to be used by user code.
  42556. @param conf the jobconf]]>
  42557. </doc>
  42558. </method>
  42559. <method name="getSymlink" return="boolean"
  42560. abstract="false" native="false" synchronized="false"
  42561. static="true" final="false" visibility="public"
  42562. deprecated="not deprecated">
  42563. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42564. <doc>
  42565. <![CDATA[This method checks to see if symlinks are to be create for the
  42566. localized cache files in the current working directory
  42567. Used by internal DistributedCache code.
  42568. @param conf the jobconf
  42569. @return true if symlinks are to be created- else return false]]>
  42570. </doc>
  42571. </method>
  42572. <method name="checkURIs" return="boolean"
  42573. abstract="false" native="false" synchronized="false"
  42574. static="true" final="false" visibility="public"
  42575. deprecated="not deprecated">
  42576. <param name="uriFiles" type="java.net.URI[]"/>
  42577. <param name="uriArchives" type="java.net.URI[]"/>
  42578. <doc>
  42579. <![CDATA[This method checks if there is a conflict in the fragment names
  42580. of the uris. Also makes sure that each uri has a fragment. It
  42581. is only to be called if you want to create symlinks for
  42582. the various archives and files. May be used by user code.
  42583. @param uriFiles The uri array of urifiles
  42584. @param uriArchives the uri array of uri archives]]>
  42585. </doc>
  42586. </method>
  42587. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  42588. transient="false" volatile="false"
  42589. static="true" final="true" visibility="public"
  42590. deprecated="not deprecated">
  42591. <doc>
  42592. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  42593. </doc>
  42594. </field>
  42595. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  42596. transient="false" volatile="false"
  42597. static="true" final="true" visibility="public"
  42598. deprecated="not deprecated">
  42599. <doc>
  42600. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  42601. </doc>
  42602. </field>
  42603. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  42604. transient="false" volatile="false"
  42605. static="true" final="true" visibility="public"
  42606. deprecated="not deprecated">
  42607. <doc>
  42608. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  42609. </doc>
  42610. </field>
  42611. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  42612. transient="false" volatile="false"
  42613. static="true" final="true" visibility="public"
  42614. deprecated="not deprecated">
  42615. <doc>
  42616. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  42617. </doc>
  42618. </field>
  42619. <field name="CACHE_ARCHIVES" type="java.lang.String"
  42620. transient="false" volatile="false"
  42621. static="true" final="true" visibility="public"
  42622. deprecated="not deprecated">
  42623. <doc>
  42624. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  42625. </doc>
  42626. </field>
  42627. <field name="CACHE_FILES" type="java.lang.String"
  42628. transient="false" volatile="false"
  42629. static="true" final="true" visibility="public"
  42630. deprecated="not deprecated">
  42631. <doc>
  42632. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  42633. </doc>
  42634. </field>
  42635. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  42636. transient="false" volatile="false"
  42637. static="true" final="true" visibility="public"
  42638. deprecated="not deprecated">
  42639. <doc>
  42640. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  42641. </doc>
  42642. </field>
  42643. <field name="CACHE_LOCALFILES" type="java.lang.String"
  42644. transient="false" volatile="false"
  42645. static="true" final="true" visibility="public"
  42646. deprecated="not deprecated">
  42647. <doc>
  42648. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  42649. </doc>
  42650. </field>
  42651. <field name="CACHE_SYMLINK" type="java.lang.String"
  42652. transient="false" volatile="false"
  42653. static="true" final="true" visibility="public"
  42654. deprecated="not deprecated">
  42655. <doc>
  42656. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  42657. </doc>
  42658. </field>
  42659. <doc>
  42660. <![CDATA[Distribute application-specific large, read-only files efficiently.
  42661. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  42662. framework to cache files (text, archives, jars etc.) needed by applications.
  42663. </p>
  42664. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  42665. via the {@link org.apache.hadoop.mapred.JobConf}.
  42666. The <code>DistributedCache</code> assumes that the
  42667. files specified via hdfs:// urls are already present on the
  42668. {@link FileSystem} at the path specified by the url.</p>
  42669. <p>The framework will copy the necessary files on to the slave node before
  42670. any tasks for the job are executed on that node. Its efficiency stems from
  42671. the fact that the files are only copied once per job and the ability to
  42672. cache archives which are un-archived on the slaves.</p>
  42673. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  42674. data/text files and/or more complex types such as archives, jars etc.
  42675. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  42676. Jars may be optionally added to the classpath of the tasks, a rudimentary
  42677. software distribution mechanism. Files have execution permissions.
  42678. Optionally users can also direct it to symlink the distributed cache file(s)
  42679. into the working directory of the task.</p>
  42680. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  42681. files. Clearly the cache files should not be modified by the application
  42682. or externally while the job is executing.</p>
  42683. <p>Here is an illustrative example on how to use the
  42684. <code>DistributedCache</code>:</p>
  42685. <p><blockquote><pre>
  42686. // Setting up the cache for the application
  42687. 1. Copy the requisite files to the <code>FileSystem</code>:
  42688. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  42689. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  42690. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  42691. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  42692. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  42693. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  42694. 2. Setup the application's <code>JobConf</code>:
  42695. JobConf job = new JobConf();
  42696. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  42697. job);
  42698. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  42699. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  42700. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  42701. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  42702. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  42703. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  42704. or {@link org.apache.hadoop.mapred.Reducer}:
  42705. public static class MapClass extends MapReduceBase
  42706. implements Mapper&lt;K, V, K, V&gt; {
  42707. private Path[] localArchives;
  42708. private Path[] localFiles;
  42709. public void configure(JobConf job) {
  42710. // Get the cached archives/files
  42711. localArchives = DistributedCache.getLocalCacheArchives(job);
  42712. localFiles = DistributedCache.getLocalCacheFiles(job);
  42713. }
  42714. public void map(K key, V value,
  42715. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  42716. throws IOException {
  42717. // Use data from the cached archives/files here
  42718. // ...
  42719. // ...
  42720. output.collect(k, v);
  42721. }
  42722. }
  42723. </pre></blockquote></p>
  42724. It is also very common to use the DistributedCache by using
  42725. {@link org.apache.hadoop.util.GenericOptionsParser}.
  42726. This class includes methods that should be used by users
  42727. (specifically those mentioned in the example above, as well
  42728. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  42729. as well as methods intended for use by the MapReduce framework
  42730. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  42731. details, see {@link TrackerDistributedCacheManager} and
  42732. {@link TaskDistributedCacheManager}.
  42733. @see TrackerDistributedCacheManager
  42734. @see TaskDistributedCacheManager
  42735. @see org.apache.hadoop.mapred.JobConf
  42736. @see org.apache.hadoop.mapred.JobClient]]>
  42737. </doc>
  42738. </class>
  42739. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  42740. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  42741. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  42742. abstract="false"
  42743. static="false" final="false" visibility="public"
  42744. deprecated="not deprecated">
  42745. <method name="setupCache"
  42746. abstract="false" native="false" synchronized="false"
  42747. static="false" final="false" visibility="public"
  42748. deprecated="not deprecated">
  42749. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  42750. <param name="publicCacheSubdir" type="java.lang.String"/>
  42751. <param name="privateCacheSubdir" type="java.lang.String"/>
  42752. <exception name="IOException" type="java.io.IOException"/>
  42753. <doc>
  42754. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  42755. the task configuration (which has been passed in via the constructor).
  42756. The private distributed cache is just looked at and the paths where the
  42757. files/archives should go to is decided here. The actual localization is
  42758. done by {@link JobLocalizer}.
  42759. It is the caller's responsibility to re-write the task configuration XML
  42760. file, if necessary.]]>
  42761. </doc>
  42762. </method>
  42763. <method name="getClassPaths" return="java.util.List"
  42764. abstract="false" native="false" synchronized="false"
  42765. static="false" final="false" visibility="public"
  42766. deprecated="not deprecated">
  42767. <exception name="IOException" type="java.io.IOException"/>
  42768. <doc>
  42769. <![CDATA[Retrieves class paths (as local references) to add.
  42770. Should be called after setup().]]>
  42771. </doc>
  42772. </method>
  42773. <method name="release"
  42774. abstract="false" native="false" synchronized="false"
  42775. static="false" final="false" visibility="public"
  42776. deprecated="not deprecated">
  42777. <exception name="IOException" type="java.io.IOException"/>
  42778. <doc>
  42779. <![CDATA[Releases the cached files/archives, so that space
  42780. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  42781. </doc>
  42782. </method>
  42783. <method name="setSizes"
  42784. abstract="false" native="false" synchronized="false"
  42785. static="false" final="false" visibility="public"
  42786. deprecated="not deprecated">
  42787. <param name="sizes" type="long[]"/>
  42788. <exception name="IOException" type="java.io.IOException"/>
  42789. </method>
  42790. <method name="makeClassLoader" return="java.lang.ClassLoader"
  42791. abstract="false" native="false" synchronized="false"
  42792. static="false" final="false" visibility="public"
  42793. deprecated="not deprecated">
  42794. <param name="parent" type="java.lang.ClassLoader"/>
  42795. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  42796. <doc>
  42797. <![CDATA[Creates a class loader that includes the designated
  42798. files and archives.]]>
  42799. </doc>
  42800. </method>
  42801. <doc>
  42802. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  42803. the cached files of a single job.
  42804. <b>This class is internal to Hadoop, and should not be treated as a public
  42805. interface.</b>]]>
  42806. </doc>
  42807. </class>
  42808. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  42809. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  42810. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  42811. abstract="false"
  42812. static="false" final="false" visibility="public"
  42813. deprecated="not deprecated">
  42814. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  42815. static="false" final="false" visibility="public"
  42816. deprecated="not deprecated">
  42817. <exception name="IOException" type="java.io.IOException"/>
  42818. </constructor>
  42819. <method name="downloadCacheObject" return="long"
  42820. abstract="false" native="false" synchronized="false"
  42821. static="true" final="false" visibility="public"
  42822. deprecated="not deprecated">
  42823. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42824. <param name="source" type="java.net.URI"/>
  42825. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  42826. <param name="desiredTimestamp" type="long"/>
  42827. <param name="isArchive" type="boolean"/>
  42828. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  42829. <exception name="IOException" type="java.io.IOException"/>
  42830. <doc>
  42831. <![CDATA[Download a given path to the local file system.
  42832. @param conf the job's configuration
  42833. @param source the source to copy from
  42834. @param destination where to copy the file. must be local fs
  42835. @param desiredTimestamp the required modification timestamp of the source
  42836. @param isArchive is this an archive that should be expanded
  42837. @param permission the desired permissions of the file.
  42838. @return for archives, the number of bytes in the unpacked directory
  42839. @throws IOException]]>
  42840. </doc>
  42841. </method>
  42842. <method name="createAllSymlink"
  42843. abstract="false" native="false" synchronized="false"
  42844. static="true" final="false" visibility="public"
  42845. deprecated="not deprecated">
  42846. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42847. <param name="jobCacheDir" type="java.io.File"/>
  42848. <param name="workDir" type="java.io.File"/>
  42849. <exception name="IOException" type="java.io.IOException"/>
  42850. <doc>
  42851. <![CDATA[This method create symlinks for all files in a given dir in another
  42852. directory.
  42853. Should not be used outside of DistributedCache code.
  42854. @param conf the configuration
  42855. @param jobCacheDir the target directory for creating symlinks
  42856. @param workDir the directory in which the symlinks are created
  42857. @throws IOException]]>
  42858. </doc>
  42859. </method>
  42860. <method name="purgeCache"
  42861. abstract="false" native="false" synchronized="false"
  42862. static="false" final="false" visibility="public"
  42863. deprecated="not deprecated">
  42864. <doc>
  42865. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  42866. should only be used when the server is reinitializing, because the users
  42867. are going to lose their files.]]>
  42868. </doc>
  42869. </method>
  42870. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  42871. abstract="false" native="false" synchronized="false"
  42872. static="false" final="false" visibility="public"
  42873. deprecated="not deprecated">
  42874. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  42875. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  42876. <exception name="IOException" type="java.io.IOException"/>
  42877. </method>
  42878. <method name="setArchiveSizes"
  42879. abstract="false" native="false" synchronized="false"
  42880. static="false" final="false" visibility="public"
  42881. deprecated="not deprecated">
  42882. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  42883. <param name="sizes" type="long[]"/>
  42884. <exception name="IOException" type="java.io.IOException"/>
  42885. </method>
  42886. <method name="determineTimestamps"
  42887. abstract="false" native="false" synchronized="false"
  42888. static="true" final="false" visibility="public"
  42889. deprecated="not deprecated">
  42890. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42891. <exception name="IOException" type="java.io.IOException"/>
  42892. <doc>
  42893. <![CDATA[Determines timestamps of files to be cached, and stores those
  42894. in the configuration. This is intended to be used internally by JobClient
  42895. after all cache files have been added.
  42896. This is an internal method!
  42897. @param job Configuration of a job.
  42898. @throws IOException]]>
  42899. </doc>
  42900. </method>
  42901. <method name="determineCacheVisibilities"
  42902. abstract="false" native="false" synchronized="false"
  42903. static="true" final="false" visibility="public"
  42904. deprecated="not deprecated">
  42905. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42906. <exception name="IOException" type="java.io.IOException"/>
  42907. <doc>
  42908. <![CDATA[Determines the visibilities of the distributed cache files and
  42909. archives. The visibility of a cache path is "public" if the leaf component
  42910. has READ permissions for others, and the parent subdirs have
  42911. EXECUTE permissions for others
  42912. @param job
  42913. @throws IOException]]>
  42914. </doc>
  42915. </method>
  42916. <method name="getFileVisibilities" return="boolean[]"
  42917. abstract="false" native="false" synchronized="false"
  42918. static="true" final="false" visibility="public"
  42919. deprecated="not deprecated">
  42920. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42921. <doc>
  42922. <![CDATA[Get the booleans on whether the files are public or not. Used by
  42923. internal DistributedCache and MapReduce code.
  42924. @param conf The configuration which stored the timestamps
  42925. @return array of booleans
  42926. @throws IOException]]>
  42927. </doc>
  42928. </method>
  42929. <method name="getArchiveVisibilities" return="boolean[]"
  42930. abstract="false" native="false" synchronized="false"
  42931. static="true" final="false" visibility="public"
  42932. deprecated="not deprecated">
  42933. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42934. <doc>
  42935. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  42936. internal DistributedCache and MapReduce code.
  42937. @param conf The configuration which stored the timestamps
  42938. @return array of booleans]]>
  42939. </doc>
  42940. </method>
  42941. <method name="getDelegationTokens"
  42942. abstract="false" native="false" synchronized="false"
  42943. static="true" final="false" visibility="public"
  42944. deprecated="not deprecated">
  42945. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  42946. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  42947. <exception name="IOException" type="java.io.IOException"/>
  42948. <doc>
  42949. <![CDATA[For each archive or cache file - get the corresponding delegation token
  42950. @param job
  42951. @param credentials
  42952. @throws IOException]]>
  42953. </doc>
  42954. </method>
  42955. <method name="validate"
  42956. abstract="false" native="false" synchronized="false"
  42957. static="true" final="false" visibility="public"
  42958. deprecated="not deprecated">
  42959. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42960. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  42961. <doc>
  42962. <![CDATA[This is part of the framework API. It's called within the job
  42963. submission code only, not by users. In the non-error case it has
  42964. no side effects and returns normally. If there's a URI in both
  42965. mapred.cache.files and mapred.cache.archives, it throws its
  42966. exception.
  42967. @param conf a {@link Configuration} to be cheked for duplication
  42968. in cached URIs
  42969. @throws InvalidJobConfException]]>
  42970. </doc>
  42971. </method>
  42972. <method name="startCleanupThread"
  42973. abstract="false" native="false" synchronized="false"
  42974. static="false" final="false" visibility="public"
  42975. deprecated="not deprecated">
  42976. <doc>
  42977. <![CDATA[Start the background thread]]>
  42978. </doc>
  42979. </method>
  42980. <method name="stopCleanupThread"
  42981. abstract="false" native="false" synchronized="false"
  42982. static="false" final="false" visibility="public"
  42983. deprecated="not deprecated">
  42984. <doc>
  42985. <![CDATA[Stop the background thread]]>
  42986. </doc>
  42987. </method>
  42988. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  42989. transient="false" volatile="false"
  42990. static="false" final="false" visibility="protected"
  42991. deprecated="not deprecated">
  42992. </field>
  42993. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  42994. transient="false" volatile="false"
  42995. static="false" final="false" visibility="protected"
  42996. deprecated="not deprecated">
  42997. </field>
  42998. <doc>
  42999. <![CDATA[Manages a single machine's instance of a cross-job
  43000. cache. This class would typically be instantiated
  43001. by a TaskTracker (or something that emulates it,
  43002. like LocalJobRunner).
  43003. <b>This class is internal to Hadoop, and should not be treated as a public
  43004. interface.</b>]]>
  43005. </doc>
  43006. </class>
  43007. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  43008. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  43009. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  43010. abstract="false"
  43011. static="false" final="false" visibility="protected"
  43012. deprecated="not deprecated">
  43013. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  43014. static="false" final="false" visibility="protected"
  43015. deprecated="not deprecated">
  43016. </constructor>
  43017. <method name="deleteCacheInfoUpdate"
  43018. abstract="false" native="false" synchronized="false"
  43019. static="false" final="false" visibility="public"
  43020. deprecated="not deprecated">
  43021. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  43022. <doc>
  43023. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  43024. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  43025. @param cacheStatus cache status of the cache is deleted]]>
  43026. </doc>
  43027. </method>
  43028. <method name="addCacheInfoUpdate"
  43029. abstract="false" native="false" synchronized="false"
  43030. static="false" final="false" visibility="public"
  43031. deprecated="not deprecated">
  43032. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  43033. <doc>
  43034. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  43035. Increase the size and sub directory count of the cache from baseDirSize
  43036. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  43037. @param cacheStatus cache status of the cache is added]]>
  43038. </doc>
  43039. </method>
  43040. <doc>
  43041. <![CDATA[This class holds properties of each base directories and is responsible
  43042. for clean up unused cache files in base directories.]]>
  43043. </doc>
  43044. </class>
  43045. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  43046. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  43047. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  43048. abstract="false"
  43049. static="false" final="false" visibility="protected"
  43050. deprecated="not deprecated">
  43051. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  43052. static="false" final="false" visibility="public"
  43053. deprecated="not deprecated">
  43054. </constructor>
  43055. <method name="stopRunning"
  43056. abstract="false" native="false" synchronized="false"
  43057. static="false" final="false" visibility="public"
  43058. deprecated="not deprecated">
  43059. </method>
  43060. <method name="run"
  43061. abstract="false" native="false" synchronized="false"
  43062. static="false" final="false" visibility="public"
  43063. deprecated="not deprecated">
  43064. </method>
  43065. <method name="exitTaskTracker"
  43066. abstract="false" native="false" synchronized="false"
  43067. static="false" final="false" visibility="protected"
  43068. deprecated="not deprecated">
  43069. <param name="t" type="java.lang.Throwable"/>
  43070. <doc>
  43071. <![CDATA[Exit the task tracker because of a fatal error.]]>
  43072. </doc>
  43073. </method>
  43074. <doc>
  43075. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  43076. </doc>
  43077. </class>
  43078. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  43079. </package>
  43080. <package name="org.apache.hadoop.mapred">
  43081. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  43082. <interface name="AdminOperationsProtocol" abstract="true"
  43083. static="false" final="false" visibility="public"
  43084. deprecated="not deprecated">
  43085. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  43086. <method name="refreshQueues"
  43087. abstract="false" native="false" synchronized="false"
  43088. static="false" final="false" visibility="public"
  43089. deprecated="not deprecated">
  43090. <exception name="IOException" type="java.io.IOException"/>
  43091. <doc>
  43092. <![CDATA[Refresh the queue acls in use currently.
  43093. Refresh the queues used by the jobtracker and scheduler.
  43094. Access control lists and queue states are refreshed.]]>
  43095. </doc>
  43096. </method>
  43097. <method name="refreshNodes"
  43098. abstract="false" native="false" synchronized="false"
  43099. static="false" final="false" visibility="public"
  43100. deprecated="not deprecated">
  43101. <exception name="IOException" type="java.io.IOException"/>
  43102. <doc>
  43103. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  43104. </doc>
  43105. </method>
  43106. <field name="versionID" type="long"
  43107. transient="false" volatile="false"
  43108. static="true" final="true" visibility="public"
  43109. deprecated="not deprecated">
  43110. <doc>
  43111. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  43112. Version 2: Added node refresh facility
  43113. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  43114. </doc>
  43115. </field>
  43116. <doc>
  43117. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  43118. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  43119. </doc>
  43120. </interface>
  43121. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  43122. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  43123. <class name="ClusterStatus" extends="java.lang.Object"
  43124. abstract="false"
  43125. static="false" final="false" visibility="public"
  43126. deprecated="not deprecated">
  43127. <implements name="org.apache.hadoop.io.Writable"/>
  43128. <method name="getTaskTrackers" return="int"
  43129. abstract="false" native="false" synchronized="false"
  43130. static="false" final="false" visibility="public"
  43131. deprecated="not deprecated">
  43132. <doc>
  43133. <![CDATA[Get the number of active task trackers in the cluster. Includes
  43134. graylisted but not blacklisted trackers.
  43135. @return the number of active task trackers in the cluster.]]>
  43136. </doc>
  43137. </method>
  43138. <method name="getActiveTrackerNames" return="java.util.Collection"
  43139. abstract="false" native="false" synchronized="false"
  43140. static="false" final="false" visibility="public"
  43141. deprecated="not deprecated">
  43142. <doc>
  43143. <![CDATA[Get the names of active task trackers in the cluster. Includes
  43144. graylisted but not blacklisted trackers.
  43145. @return the active task trackers in the cluster.]]>
  43146. </doc>
  43147. </method>
  43148. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  43149. abstract="false" native="false" synchronized="false"
  43150. static="false" final="false" visibility="public"
  43151. deprecated="not deprecated">
  43152. <doc>
  43153. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  43154. @return the blacklisted task trackers in the cluster.]]>
  43155. </doc>
  43156. </method>
  43157. <method name="getBlacklistedTrackers" return="int"
  43158. abstract="false" native="false" synchronized="false"
  43159. static="false" final="false" visibility="public"
  43160. deprecated="not deprecated">
  43161. <doc>
  43162. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  43163. @return the number of blacklisted task trackers in the cluster.]]>
  43164. </doc>
  43165. </method>
  43166. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  43167. abstract="false" native="false" synchronized="false"
  43168. static="false" final="false" visibility="public"
  43169. deprecated="not deprecated">
  43170. <doc>
  43171. <![CDATA[Get the names of graylisted task trackers in the cluster.
  43172. @return the graylisted task trackers in the cluster.]]>
  43173. </doc>
  43174. </method>
  43175. <method name="getGraylistedTrackers" return="int"
  43176. abstract="false" native="false" synchronized="false"
  43177. static="false" final="false" visibility="public"
  43178. deprecated="not deprecated">
  43179. <doc>
  43180. <![CDATA[Get the number of graylisted task trackers in the cluster.
  43181. @return the number of graylisted task trackers in the cluster.]]>
  43182. </doc>
  43183. </method>
  43184. <method name="getNumExcludedNodes" return="int"
  43185. abstract="false" native="false" synchronized="false"
  43186. static="false" final="false" visibility="public"
  43187. deprecated="not deprecated">
  43188. <doc>
  43189. <![CDATA[Get the number of excluded hosts in the cluster.
  43190. @return the number of excluded hosts in the cluster.]]>
  43191. </doc>
  43192. </method>
  43193. <method name="getTTExpiryInterval" return="long"
  43194. abstract="false" native="false" synchronized="false"
  43195. static="false" final="false" visibility="public"
  43196. deprecated="not deprecated">
  43197. <doc>
  43198. <![CDATA[Get the tasktracker expiry interval for the cluster
  43199. @return the expiry interval in msec]]>
  43200. </doc>
  43201. </method>
  43202. <method name="getMapTasks" return="int"
  43203. abstract="false" native="false" synchronized="false"
  43204. static="false" final="false" visibility="public"
  43205. deprecated="not deprecated">
  43206. <doc>
  43207. <![CDATA[Get the number of currently running map tasks in the cluster.
  43208. @return the number of currently running map tasks in the cluster.]]>
  43209. </doc>
  43210. </method>
  43211. <method name="getReduceTasks" return="int"
  43212. abstract="false" native="false" synchronized="false"
  43213. static="false" final="false" visibility="public"
  43214. deprecated="not deprecated">
  43215. <doc>
  43216. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  43217. @return the number of currently running reduce tasks in the cluster.]]>
  43218. </doc>
  43219. </method>
  43220. <method name="getMaxMapTasks" return="int"
  43221. abstract="false" native="false" synchronized="false"
  43222. static="false" final="false" visibility="public"
  43223. deprecated="not deprecated">
  43224. <doc>
  43225. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  43226. @return the maximum capacity for running map tasks in the cluster.]]>
  43227. </doc>
  43228. </method>
  43229. <method name="getMaxReduceTasks" return="int"
  43230. abstract="false" native="false" synchronized="false"
  43231. static="false" final="false" visibility="public"
  43232. deprecated="not deprecated">
  43233. <doc>
  43234. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  43235. @return the maximum capacity for running reduce tasks in the cluster.]]>
  43236. </doc>
  43237. </method>
  43238. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  43239. abstract="false" native="false" synchronized="false"
  43240. static="false" final="false" visibility="public"
  43241. deprecated="not deprecated">
  43242. <doc>
  43243. <![CDATA[Get the current state of the <code>JobTracker</code>,
  43244. as {@link JobTracker.State}
  43245. @return the current state of the <code>JobTracker</code>.]]>
  43246. </doc>
  43247. </method>
  43248. <method name="getUsedMemory" return="long"
  43249. abstract="false" native="false" synchronized="false"
  43250. static="false" final="false" visibility="public"
  43251. deprecated="not deprecated">
  43252. <doc>
  43253. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  43254. @return the size of heap memory used by the <code>JobTracker</code>]]>
  43255. </doc>
  43256. </method>
  43257. <method name="getMaxMemory" return="long"
  43258. abstract="false" native="false" synchronized="false"
  43259. static="false" final="false" visibility="public"
  43260. deprecated="not deprecated">
  43261. <doc>
  43262. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  43263. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  43264. </doc>
  43265. </method>
  43266. <method name="write"
  43267. abstract="false" native="false" synchronized="false"
  43268. static="false" final="false" visibility="public"
  43269. deprecated="not deprecated">
  43270. <param name="out" type="java.io.DataOutput"/>
  43271. <exception name="IOException" type="java.io.IOException"/>
  43272. </method>
  43273. <method name="readFields"
  43274. abstract="false" native="false" synchronized="false"
  43275. static="false" final="false" visibility="public"
  43276. deprecated="not deprecated">
  43277. <param name="in" type="java.io.DataInput"/>
  43278. <exception name="IOException" type="java.io.IOException"/>
  43279. </method>
  43280. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  43281. transient="false" volatile="false"
  43282. static="true" final="true" visibility="public"
  43283. deprecated="not deprecated">
  43284. </field>
  43285. <doc>
  43286. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  43287. <p><code>ClusterStatus</code> provides clients with information such as:
  43288. <ol>
  43289. <li>
  43290. Size of the cluster.
  43291. </li>
  43292. <li>
  43293. Name of the trackers.
  43294. </li>
  43295. <li>
  43296. Task capacity of the cluster.
  43297. </li>
  43298. <li>
  43299. The number of currently running map & reduce tasks.
  43300. </li>
  43301. <li>
  43302. State of the <code>JobTracker</code>.
  43303. </li>
  43304. </ol></p>
  43305. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  43306. {@link JobClient#getClusterStatus()}.</p>
  43307. @see JobClient]]>
  43308. </doc>
  43309. </class>
  43310. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  43311. <!-- start class org.apache.hadoop.mapred.Counters -->
  43312. <class name="Counters" extends="java.lang.Object"
  43313. abstract="false"
  43314. static="false" final="false" visibility="public"
  43315. deprecated="not deprecated">
  43316. <implements name="org.apache.hadoop.io.Writable"/>
  43317. <implements name="java.lang.Iterable"/>
  43318. <constructor name="Counters"
  43319. static="false" final="false" visibility="public"
  43320. deprecated="not deprecated">
  43321. </constructor>
  43322. <method name="getGroupNames" return="java.util.Collection"
  43323. abstract="false" native="false" synchronized="true"
  43324. static="false" final="false" visibility="public"
  43325. deprecated="not deprecated">
  43326. <doc>
  43327. <![CDATA[Returns the names of all counter classes.
  43328. @return Set of counter names.]]>
  43329. </doc>
  43330. </method>
  43331. <method name="iterator" return="java.util.Iterator"
  43332. abstract="false" native="false" synchronized="true"
  43333. static="false" final="false" visibility="public"
  43334. deprecated="not deprecated">
  43335. </method>
  43336. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  43337. abstract="false" native="false" synchronized="true"
  43338. static="false" final="false" visibility="public"
  43339. deprecated="not deprecated">
  43340. <param name="groupName" type="java.lang.String"/>
  43341. <doc>
  43342. <![CDATA[Returns the named counter group, or an empty group if there is none
  43343. with the specified name.]]>
  43344. </doc>
  43345. </method>
  43346. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43347. abstract="false" native="false" synchronized="true"
  43348. static="false" final="false" visibility="public"
  43349. deprecated="not deprecated">
  43350. <param name="key" type="java.lang.Enum"/>
  43351. <doc>
  43352. <![CDATA[Find the counter for the given enum. The same enum will always return the
  43353. same counter.
  43354. @param key the counter key
  43355. @return the matching counter object]]>
  43356. </doc>
  43357. </method>
  43358. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43359. abstract="false" native="false" synchronized="true"
  43360. static="false" final="false" visibility="public"
  43361. deprecated="not deprecated">
  43362. <param name="group" type="java.lang.String"/>
  43363. <param name="name" type="java.lang.String"/>
  43364. <doc>
  43365. <![CDATA[Find a counter given the group and the name.
  43366. @param group the name of the group
  43367. @param name the internal name of the counter
  43368. @return the counter for that name]]>
  43369. </doc>
  43370. </method>
  43371. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43372. abstract="false" native="false" synchronized="true"
  43373. static="false" final="false" visibility="public"
  43374. deprecated="deprecated, no comment">
  43375. <param name="group" type="java.lang.String"/>
  43376. <param name="id" type="int"/>
  43377. <param name="name" type="java.lang.String"/>
  43378. <doc>
  43379. <![CDATA[Find a counter by using strings
  43380. @param group the name of the group
  43381. @param id the id of the counter within the group (0 to N-1)
  43382. @param name the internal name of the counter
  43383. @return the counter for that name
  43384. @deprecated]]>
  43385. </doc>
  43386. </method>
  43387. <method name="incrCounter"
  43388. abstract="false" native="false" synchronized="true"
  43389. static="false" final="false" visibility="public"
  43390. deprecated="not deprecated">
  43391. <param name="key" type="java.lang.Enum"/>
  43392. <param name="amount" type="long"/>
  43393. <doc>
  43394. <![CDATA[Increments the specified counter by the specified amount, creating it if
  43395. it didn't already exist.
  43396. @param key identifies a counter
  43397. @param amount amount by which counter is to be incremented]]>
  43398. </doc>
  43399. </method>
  43400. <method name="incrCounter"
  43401. abstract="false" native="false" synchronized="true"
  43402. static="false" final="false" visibility="public"
  43403. deprecated="not deprecated">
  43404. <param name="group" type="java.lang.String"/>
  43405. <param name="counter" type="java.lang.String"/>
  43406. <param name="amount" type="long"/>
  43407. <doc>
  43408. <![CDATA[Increments the specified counter by the specified amount, creating it if
  43409. it didn't already exist.
  43410. @param group the name of the group
  43411. @param counter the internal name of the counter
  43412. @param amount amount by which counter is to be incremented]]>
  43413. </doc>
  43414. </method>
  43415. <method name="getCounter" return="long"
  43416. abstract="false" native="false" synchronized="true"
  43417. static="false" final="false" visibility="public"
  43418. deprecated="not deprecated">
  43419. <param name="key" type="java.lang.Enum"/>
  43420. <doc>
  43421. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  43422. does not exist.]]>
  43423. </doc>
  43424. </method>
  43425. <method name="incrAllCounters"
  43426. abstract="false" native="false" synchronized="true"
  43427. static="false" final="false" visibility="public"
  43428. deprecated="not deprecated">
  43429. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  43430. <doc>
  43431. <![CDATA[Increments multiple counters by their amounts in another Counters
  43432. instance.
  43433. @param other the other Counters instance]]>
  43434. </doc>
  43435. </method>
  43436. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  43437. abstract="false" native="false" synchronized="false"
  43438. static="true" final="false" visibility="public"
  43439. deprecated="not deprecated">
  43440. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  43441. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  43442. <doc>
  43443. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  43444. </doc>
  43445. </method>
  43446. <method name="size" return="int"
  43447. abstract="false" native="false" synchronized="true"
  43448. static="false" final="false" visibility="public"
  43449. deprecated="not deprecated">
  43450. <doc>
  43451. <![CDATA[Returns the total number of counters, by summing the number of counters
  43452. in each group.]]>
  43453. </doc>
  43454. </method>
  43455. <method name="write"
  43456. abstract="false" native="false" synchronized="true"
  43457. static="false" final="false" visibility="public"
  43458. deprecated="not deprecated">
  43459. <param name="out" type="java.io.DataOutput"/>
  43460. <exception name="IOException" type="java.io.IOException"/>
  43461. <doc>
  43462. <![CDATA[Write the set of groups.
  43463. The external format is:
  43464. #groups (groupName group)*
  43465. i.e. the number of groups followed by 0 or more groups, where each
  43466. group is of the form:
  43467. groupDisplayName #counters (false | true counter)*
  43468. where each counter is of the form:
  43469. name (false | true displayName) value]]>
  43470. </doc>
  43471. </method>
  43472. <method name="readFields"
  43473. abstract="false" native="false" synchronized="true"
  43474. static="false" final="false" visibility="public"
  43475. deprecated="not deprecated">
  43476. <param name="in" type="java.io.DataInput"/>
  43477. <exception name="IOException" type="java.io.IOException"/>
  43478. <doc>
  43479. <![CDATA[Read a set of groups.]]>
  43480. </doc>
  43481. </method>
  43482. <method name="log"
  43483. abstract="false" native="false" synchronized="false"
  43484. static="false" final="false" visibility="public"
  43485. deprecated="not deprecated">
  43486. <param name="log" type="org.apache.commons.logging.Log"/>
  43487. <doc>
  43488. <![CDATA[Logs the current counter values.
  43489. @param log The log to use.]]>
  43490. </doc>
  43491. </method>
  43492. <method name="toString" return="java.lang.String"
  43493. abstract="false" native="false" synchronized="true"
  43494. static="false" final="false" visibility="public"
  43495. deprecated="not deprecated">
  43496. <doc>
  43497. <![CDATA[Return textual representation of the counter values.]]>
  43498. </doc>
  43499. </method>
  43500. <method name="makeCompactString" return="java.lang.String"
  43501. abstract="false" native="false" synchronized="true"
  43502. static="false" final="false" visibility="public"
  43503. deprecated="not deprecated">
  43504. <doc>
  43505. <![CDATA[Convert a counters object into a single line that is easy to parse.
  43506. @return the string with "name=value" for each counter and separated by ","]]>
  43507. </doc>
  43508. </method>
  43509. <method name="makeEscapedCompactString" return="java.lang.String"
  43510. abstract="false" native="false" synchronized="true"
  43511. static="false" final="false" visibility="public"
  43512. deprecated="not deprecated">
  43513. <doc>
  43514. <![CDATA[Represent the counter in a textual format that can be converted back to
  43515. its object form
  43516. @return the string in the following format
  43517. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  43518. </doc>
  43519. </method>
  43520. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  43521. abstract="false" native="false" synchronized="false"
  43522. static="true" final="false" visibility="public"
  43523. deprecated="not deprecated">
  43524. <param name="compactString" type="java.lang.String"/>
  43525. <exception name="ParseException" type="java.text.ParseException"/>
  43526. <doc>
  43527. <![CDATA[Convert a stringified counter representation into a counter object. Note
  43528. that the counter can be recovered if its stringified using
  43529. {@link #makeEscapedCompactString()}.
  43530. @return a Counter]]>
  43531. </doc>
  43532. </method>
  43533. <method name="hashCode" return="int"
  43534. abstract="false" native="false" synchronized="true"
  43535. static="false" final="false" visibility="public"
  43536. deprecated="not deprecated">
  43537. </method>
  43538. <method name="equals" return="boolean"
  43539. abstract="false" native="false" synchronized="true"
  43540. static="false" final="false" visibility="public"
  43541. deprecated="not deprecated">
  43542. <param name="obj" type="java.lang.Object"/>
  43543. </method>
  43544. <field name="MAX_COUNTER_LIMIT" type="int"
  43545. transient="false" volatile="false"
  43546. static="true" final="false" visibility="public"
  43547. deprecated="not deprecated">
  43548. <doc>
  43549. <![CDATA[limit on counters]]>
  43550. </doc>
  43551. </field>
  43552. <doc>
  43553. <![CDATA[A set of named counters.
  43554. <p><code>Counters</code> represent global counters, defined either by the
  43555. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  43556. any {@link Enum} type.</p>
  43557. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  43558. counters from a particular <code>Enum</code> class.]]>
  43559. </doc>
  43560. </class>
  43561. <!-- end class org.apache.hadoop.mapred.Counters -->
  43562. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  43563. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  43564. abstract="false"
  43565. static="true" final="false" visibility="public"
  43566. deprecated="not deprecated">
  43567. <method name="setDisplayName"
  43568. abstract="false" native="false" synchronized="false"
  43569. static="false" final="false" visibility="public"
  43570. deprecated="not deprecated">
  43571. <param name="newName" type="java.lang.String"/>
  43572. </method>
  43573. <method name="makeEscapedCompactString" return="java.lang.String"
  43574. abstract="false" native="false" synchronized="true"
  43575. static="false" final="false" visibility="public"
  43576. deprecated="not deprecated">
  43577. <doc>
  43578. <![CDATA[Returns the compact stringified version of the counter in the format
  43579. [(actual-name)(display-name)(value)]]]>
  43580. </doc>
  43581. </method>
  43582. <method name="getCounter" return="long"
  43583. abstract="false" native="false" synchronized="true"
  43584. static="false" final="false" visibility="public"
  43585. deprecated="not deprecated">
  43586. <doc>
  43587. <![CDATA[What is the current value of this counter?
  43588. @return the current value]]>
  43589. </doc>
  43590. </method>
  43591. <doc>
  43592. <![CDATA[A counter record, comprising its name and value.]]>
  43593. </doc>
  43594. </class>
  43595. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  43596. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  43597. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  43598. abstract="false"
  43599. static="true" final="false" visibility="public"
  43600. deprecated="not deprecated">
  43601. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  43602. static="false" final="false" visibility="public"
  43603. deprecated="not deprecated">
  43604. </constructor>
  43605. <doc>
  43606. <![CDATA[Counter exception thrown when the number of counters exceed
  43607. the limit]]>
  43608. </doc>
  43609. </class>
  43610. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  43611. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  43612. <class name="Counters.Group" extends="java.lang.Object"
  43613. abstract="false"
  43614. static="false" final="false" visibility="public"
  43615. deprecated="not deprecated">
  43616. <implements name="org.apache.hadoop.io.Writable"/>
  43617. <implements name="java.lang.Iterable"/>
  43618. <method name="getName" return="java.lang.String"
  43619. abstract="false" native="false" synchronized="false"
  43620. static="false" final="false" visibility="public"
  43621. deprecated="not deprecated">
  43622. <doc>
  43623. <![CDATA[Returns raw name of the group. This is the name of the enum class
  43624. for this group of counters.]]>
  43625. </doc>
  43626. </method>
  43627. <method name="getDisplayName" return="java.lang.String"
  43628. abstract="false" native="false" synchronized="false"
  43629. static="false" final="false" visibility="public"
  43630. deprecated="not deprecated">
  43631. <doc>
  43632. <![CDATA[Returns localized name of the group. This is the same as getName() by
  43633. default, but different if an appropriate ResourceBundle is found.]]>
  43634. </doc>
  43635. </method>
  43636. <method name="setDisplayName"
  43637. abstract="false" native="false" synchronized="false"
  43638. static="false" final="false" visibility="public"
  43639. deprecated="not deprecated">
  43640. <param name="displayName" type="java.lang.String"/>
  43641. <doc>
  43642. <![CDATA[Set the display name]]>
  43643. </doc>
  43644. </method>
  43645. <method name="makeEscapedCompactString" return="java.lang.String"
  43646. abstract="false" native="false" synchronized="false"
  43647. static="false" final="false" visibility="public"
  43648. deprecated="not deprecated">
  43649. <doc>
  43650. <![CDATA[Returns the compact stringified version of the group in the format
  43651. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  43652. counters within.]]>
  43653. </doc>
  43654. </method>
  43655. <method name="hashCode" return="int"
  43656. abstract="false" native="false" synchronized="false"
  43657. static="false" final="false" visibility="public"
  43658. deprecated="not deprecated">
  43659. </method>
  43660. <method name="equals" return="boolean"
  43661. abstract="false" native="false" synchronized="true"
  43662. static="false" final="false" visibility="public"
  43663. deprecated="not deprecated">
  43664. <param name="obj" type="java.lang.Object"/>
  43665. <doc>
  43666. <![CDATA[Checks for (content) equality of Groups]]>
  43667. </doc>
  43668. </method>
  43669. <method name="getCounter" return="long"
  43670. abstract="false" native="false" synchronized="true"
  43671. static="false" final="false" visibility="public"
  43672. deprecated="not deprecated">
  43673. <param name="counterName" type="java.lang.String"/>
  43674. <doc>
  43675. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  43676. not exist.]]>
  43677. </doc>
  43678. </method>
  43679. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  43680. abstract="false" native="false" synchronized="true"
  43681. static="false" final="false" visibility="public"
  43682. deprecated="use {@link #getCounter(String)} instead">
  43683. <param name="id" type="int"/>
  43684. <param name="name" type="java.lang.String"/>
  43685. <doc>
  43686. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  43687. @param id the numeric id of the counter within the group
  43688. @param name the internal counter name
  43689. @return the counter
  43690. @deprecated use {@link #getCounter(String)} instead]]>
  43691. </doc>
  43692. </method>
  43693. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  43694. abstract="false" native="false" synchronized="true"
  43695. static="false" final="false" visibility="public"
  43696. deprecated="not deprecated">
  43697. <param name="name" type="java.lang.String"/>
  43698. <doc>
  43699. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  43700. @param name the internal counter name
  43701. @return the counter]]>
  43702. </doc>
  43703. </method>
  43704. <method name="size" return="int"
  43705. abstract="false" native="false" synchronized="true"
  43706. static="false" final="false" visibility="public"
  43707. deprecated="not deprecated">
  43708. <doc>
  43709. <![CDATA[Returns the number of counters in this group.]]>
  43710. </doc>
  43711. </method>
  43712. <method name="write"
  43713. abstract="false" native="false" synchronized="true"
  43714. static="false" final="false" visibility="public"
  43715. deprecated="not deprecated">
  43716. <param name="out" type="java.io.DataOutput"/>
  43717. <exception name="IOException" type="java.io.IOException"/>
  43718. </method>
  43719. <method name="readFields"
  43720. abstract="false" native="false" synchronized="true"
  43721. static="false" final="false" visibility="public"
  43722. deprecated="not deprecated">
  43723. <param name="in" type="java.io.DataInput"/>
  43724. <exception name="IOException" type="java.io.IOException"/>
  43725. </method>
  43726. <method name="iterator" return="java.util.Iterator"
  43727. abstract="false" native="false" synchronized="true"
  43728. static="false" final="false" visibility="public"
  43729. deprecated="not deprecated">
  43730. </method>
  43731. <doc>
  43732. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  43733. counter {@link Enum} class.
  43734. <p><code>Group</code>handles localization of the class name and the
  43735. counter names.</p>]]>
  43736. </doc>
  43737. </class>
  43738. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  43739. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  43740. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  43741. abstract="false"
  43742. static="false" final="false" visibility="public"
  43743. deprecated="not deprecated">
  43744. <constructor name="DefaultJobHistoryParser"
  43745. static="false" final="false" visibility="public"
  43746. deprecated="not deprecated">
  43747. </constructor>
  43748. <method name="parseJobTasks"
  43749. abstract="false" native="false" synchronized="false"
  43750. static="true" final="false" visibility="public"
  43751. deprecated="not deprecated">
  43752. <param name="jobHistoryFile" type="java.lang.String"/>
  43753. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  43754. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43755. <exception name="IOException" type="java.io.IOException"/>
  43756. <doc>
  43757. <![CDATA[Populates a JobInfo object from the job's history log file.
  43758. @param jobHistoryFile history file for this job.
  43759. @param job a precreated JobInfo object, should be non-null.
  43760. @param fs FileSystem where historyFile is present.
  43761. @throws IOException]]>
  43762. </doc>
  43763. </method>
  43764. <doc>
  43765. <![CDATA[Default parser for job history files. It creates object model from
  43766. job history file.]]>
  43767. </doc>
  43768. </class>
  43769. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  43770. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  43771. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  43772. abstract="false"
  43773. static="false" final="false" visibility="public"
  43774. deprecated="not deprecated">
  43775. <constructor name="DefaultTaskController"
  43776. static="false" final="false" visibility="public"
  43777. deprecated="not deprecated">
  43778. </constructor>
  43779. <method name="setConf"
  43780. abstract="false" native="false" synchronized="false"
  43781. static="false" final="false" visibility="public"
  43782. deprecated="not deprecated">
  43783. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43784. </method>
  43785. <method name="createLogDir"
  43786. abstract="false" native="false" synchronized="false"
  43787. static="false" final="false" visibility="public"
  43788. deprecated="not deprecated">
  43789. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  43790. <param name="isCleanup" type="boolean"/>
  43791. <exception name="IOException" type="java.io.IOException"/>
  43792. </method>
  43793. <method name="launchTask" return="int"
  43794. abstract="false" native="false" synchronized="false"
  43795. static="false" final="false" visibility="public"
  43796. deprecated="not deprecated">
  43797. <param name="user" type="java.lang.String"/>
  43798. <param name="jobId" type="java.lang.String"/>
  43799. <param name="attemptId" type="java.lang.String"/>
  43800. <param name="setup" type="java.util.List"/>
  43801. <param name="jvmArguments" type="java.util.List"/>
  43802. <param name="currentWorkDirectory" type="java.io.File"/>
  43803. <param name="stdout" type="java.lang.String"/>
  43804. <param name="stderr" type="java.lang.String"/>
  43805. <exception name="IOException" type="java.io.IOException"/>
  43806. <doc>
  43807. <![CDATA[Create all of the directories for the task and launches the child jvm.
  43808. @param user the user name
  43809. @param attemptId the attempt id
  43810. @throws IOException]]>
  43811. </doc>
  43812. </method>
  43813. <method name="initializeJob"
  43814. abstract="false" native="false" synchronized="false"
  43815. static="false" final="false" visibility="public"
  43816. deprecated="not deprecated">
  43817. <param name="user" type="java.lang.String"/>
  43818. <param name="jobid" type="java.lang.String"/>
  43819. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  43820. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  43821. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  43822. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  43823. <exception name="IOException" type="java.io.IOException"/>
  43824. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  43825. <doc>
  43826. <![CDATA[This routine initializes the local file system for running a job.
  43827. Details:
  43828. <ul>
  43829. <li>Copies the credentials file from the TaskTracker's private space to
  43830. the job's private space </li>
  43831. <li>Creates the job work directory and set
  43832. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  43833. <li>Downloads the job.jar, unjars it, and updates the configuration to
  43834. reflect the localized path of the job.jar</li>
  43835. <li>Creates a base JobConf in the job's private space</li>
  43836. <li>Sets up the distributed cache</li>
  43837. <li>Sets up the user logs directory for the job</li>
  43838. </ul>
  43839. This method must be invoked in the access control context of the job owner
  43840. user. This is because the distributed cache is also setup here and the
  43841. access to the hdfs files requires authentication tokens in case where
  43842. security is enabled.
  43843. @param user the user in question (the job owner)
  43844. @param jobid the ID of the job in question
  43845. @param credentials the path to the credentials file that the TaskTracker
  43846. downloaded
  43847. @param jobConf the path to the job configuration file that the TaskTracker
  43848. downloaded
  43849. @param taskTracker the connection to the task tracker
  43850. @throws IOException
  43851. @throws InterruptedException]]>
  43852. </doc>
  43853. </method>
  43854. <method name="signalTask"
  43855. abstract="false" native="false" synchronized="false"
  43856. static="false" final="false" visibility="public"
  43857. deprecated="not deprecated">
  43858. <param name="user" type="java.lang.String"/>
  43859. <param name="taskPid" type="int"/>
  43860. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  43861. </method>
  43862. <method name="deleteAsUser"
  43863. abstract="false" native="false" synchronized="false"
  43864. static="false" final="false" visibility="public"
  43865. deprecated="not deprecated">
  43866. <param name="user" type="java.lang.String"/>
  43867. <param name="subDir" type="java.lang.String"/>
  43868. <exception name="IOException" type="java.io.IOException"/>
  43869. <doc>
  43870. <![CDATA[Delete the user's files under all of the task tracker root directories.
  43871. @param user the user name
  43872. @param subDir the path relative to the user's subdirectory under
  43873. the task tracker root directories.
  43874. @throws IOException]]>
  43875. </doc>
  43876. </method>
  43877. <method name="deleteLogAsUser"
  43878. abstract="false" native="false" synchronized="false"
  43879. static="false" final="false" visibility="public"
  43880. deprecated="not deprecated">
  43881. <param name="user" type="java.lang.String"/>
  43882. <param name="subDir" type="java.lang.String"/>
  43883. <exception name="IOException" type="java.io.IOException"/>
  43884. <doc>
  43885. <![CDATA[Delete the user's files under the userlogs directory.
  43886. @param user the user to work as
  43887. @param subDir the path under the userlogs directory.
  43888. @throws IOException]]>
  43889. </doc>
  43890. </method>
  43891. <method name="truncateLogsAsUser"
  43892. abstract="false" native="false" synchronized="false"
  43893. static="false" final="false" visibility="public"
  43894. deprecated="not deprecated">
  43895. <param name="user" type="java.lang.String"/>
  43896. <param name="allAttempts" type="java.util.List"/>
  43897. <exception name="IOException" type="java.io.IOException"/>
  43898. </method>
  43899. <method name="setup"
  43900. abstract="false" native="false" synchronized="false"
  43901. static="false" final="false" visibility="public"
  43902. deprecated="not deprecated">
  43903. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  43904. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  43905. </method>
  43906. <doc>
  43907. <![CDATA[The default implementation for controlling tasks.
  43908. This class provides an implementation for launching and killing
  43909. tasks that need to be run as the tasktracker itself. Hence,
  43910. many of the initializing or cleanup methods are not required here.
  43911. <br/>
  43912. NOTE: This class is internal only class and not intended for users!!]]>
  43913. </doc>
  43914. </class>
  43915. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  43916. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  43917. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  43918. abstract="false"
  43919. static="false" final="false" visibility="public"
  43920. deprecated="not deprecated">
  43921. <constructor name="FileAlreadyExistsException"
  43922. static="false" final="false" visibility="public"
  43923. deprecated="not deprecated">
  43924. </constructor>
  43925. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  43926. static="false" final="false" visibility="public"
  43927. deprecated="not deprecated">
  43928. </constructor>
  43929. <doc>
  43930. <![CDATA[Used when target file already exists for any operation and
  43931. is not configured to be overwritten.]]>
  43932. </doc>
  43933. </class>
  43934. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  43935. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  43936. <class name="FileInputFormat" extends="java.lang.Object"
  43937. abstract="true"
  43938. static="false" final="false" visibility="public"
  43939. deprecated="not deprecated">
  43940. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  43941. <constructor name="FileInputFormat"
  43942. static="false" final="false" visibility="public"
  43943. deprecated="not deprecated">
  43944. </constructor>
  43945. <method name="setMinSplitSize"
  43946. abstract="false" native="false" synchronized="false"
  43947. static="false" final="false" visibility="protected"
  43948. deprecated="not deprecated">
  43949. <param name="minSplitSize" type="long"/>
  43950. </method>
  43951. <method name="isSplitable" return="boolean"
  43952. abstract="false" native="false" synchronized="false"
  43953. static="false" final="false" visibility="protected"
  43954. deprecated="not deprecated">
  43955. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  43956. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  43957. <doc>
  43958. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  43959. stream compressed, it will not be.
  43960. <code>FileInputFormat</code> implementations can override this and return
  43961. <code>false</code> to ensure that individual input files are never split-up
  43962. so that {@link Mapper}s process entire files.
  43963. @param fs the file system that the file is on
  43964. @param filename the file name to check
  43965. @return is this file splitable?]]>
  43966. </doc>
  43967. </method>
  43968. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  43969. abstract="true" native="false" synchronized="false"
  43970. static="false" final="false" visibility="public"
  43971. deprecated="not deprecated">
  43972. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  43973. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43974. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  43975. <exception name="IOException" type="java.io.IOException"/>
  43976. </method>
  43977. <method name="setInputPathFilter"
  43978. abstract="false" native="false" synchronized="false"
  43979. static="true" final="false" visibility="public"
  43980. deprecated="not deprecated">
  43981. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43982. <param name="filter" type="java.lang.Class"/>
  43983. <doc>
  43984. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  43985. @param filter the PathFilter class use for filtering the input paths.]]>
  43986. </doc>
  43987. </method>
  43988. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  43989. abstract="false" native="false" synchronized="false"
  43990. static="true" final="false" visibility="public"
  43991. deprecated="not deprecated">
  43992. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  43993. <doc>
  43994. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  43995. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  43996. </doc>
  43997. </method>
  43998. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  43999. abstract="false" native="false" synchronized="false"
  44000. static="false" final="false" visibility="protected"
  44001. deprecated="not deprecated">
  44002. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44003. <exception name="IOException" type="java.io.IOException"/>
  44004. <doc>
  44005. <![CDATA[List input directories.
  44006. Subclasses may override to, e.g., select only files matching a regular
  44007. expression.
  44008. @param job the job to list input paths for
  44009. @return array of FileStatus objects
  44010. @throws IOException if zero items.]]>
  44011. </doc>
  44012. </method>
  44013. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  44014. abstract="false" native="false" synchronized="false"
  44015. static="false" final="false" visibility="public"
  44016. deprecated="not deprecated">
  44017. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44018. <param name="numSplits" type="int"/>
  44019. <exception name="IOException" type="java.io.IOException"/>
  44020. <doc>
  44021. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  44022. they're too big.]]>
  44023. </doc>
  44024. </method>
  44025. <method name="computeSplitSize" return="long"
  44026. abstract="false" native="false" synchronized="false"
  44027. static="false" final="false" visibility="protected"
  44028. deprecated="not deprecated">
  44029. <param name="goalSize" type="long"/>
  44030. <param name="minSize" type="long"/>
  44031. <param name="blockSize" type="long"/>
  44032. </method>
  44033. <method name="getBlockIndex" return="int"
  44034. abstract="false" native="false" synchronized="false"
  44035. static="false" final="false" visibility="protected"
  44036. deprecated="not deprecated">
  44037. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  44038. <param name="offset" type="long"/>
  44039. </method>
  44040. <method name="setInputPaths"
  44041. abstract="false" native="false" synchronized="false"
  44042. static="true" final="false" visibility="public"
  44043. deprecated="not deprecated">
  44044. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44045. <param name="commaSeparatedPaths" type="java.lang.String"/>
  44046. <doc>
  44047. <![CDATA[Sets the given comma separated paths as the list of inputs
  44048. for the map-reduce job.
  44049. @param conf Configuration of the job
  44050. @param commaSeparatedPaths Comma separated paths to be set as
  44051. the list of inputs for the map-reduce job.]]>
  44052. </doc>
  44053. </method>
  44054. <method name="addInputPaths"
  44055. abstract="false" native="false" synchronized="false"
  44056. static="true" final="false" visibility="public"
  44057. deprecated="not deprecated">
  44058. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44059. <param name="commaSeparatedPaths" type="java.lang.String"/>
  44060. <doc>
  44061. <![CDATA[Add the given comma separated paths to the list of inputs for
  44062. the map-reduce job.
  44063. @param conf The configuration of the job
  44064. @param commaSeparatedPaths Comma separated paths to be added to
  44065. the list of inputs for the map-reduce job.]]>
  44066. </doc>
  44067. </method>
  44068. <method name="setInputPaths"
  44069. abstract="false" native="false" synchronized="false"
  44070. static="true" final="false" visibility="public"
  44071. deprecated="not deprecated">
  44072. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44073. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  44074. <doc>
  44075. <![CDATA[Set the array of {@link Path}s as the list of inputs
  44076. for the map-reduce job.
  44077. @param conf Configuration of the job.
  44078. @param inputPaths the {@link Path}s of the input directories/files
  44079. for the map-reduce job.]]>
  44080. </doc>
  44081. </method>
  44082. <method name="addInputPath"
  44083. abstract="false" native="false" synchronized="false"
  44084. static="true" final="false" visibility="public"
  44085. deprecated="not deprecated">
  44086. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44087. <param name="path" type="org.apache.hadoop.fs.Path"/>
  44088. <doc>
  44089. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  44090. @param conf The configuration of the job
  44091. @param path {@link Path} to be added to the list of inputs for
  44092. the map-reduce job.]]>
  44093. </doc>
  44094. </method>
  44095. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  44096. abstract="false" native="false" synchronized="false"
  44097. static="true" final="false" visibility="public"
  44098. deprecated="not deprecated">
  44099. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44100. <doc>
  44101. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  44102. @param conf The configuration of the job
  44103. @return the list of input {@link Path}s for the map-reduce job.]]>
  44104. </doc>
  44105. </method>
  44106. <method name="getSplitHosts" return="java.lang.String[]"
  44107. abstract="false" native="false" synchronized="false"
  44108. static="false" final="false" visibility="protected"
  44109. deprecated="not deprecated">
  44110. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  44111. <param name="offset" type="long"/>
  44112. <param name="splitSize" type="long"/>
  44113. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  44114. <exception name="IOException" type="java.io.IOException"/>
  44115. <doc>
  44116. <![CDATA[This function identifies and returns the hosts that contribute
  44117. most for a given split. For calculating the contribution, rack
  44118. locality is treated on par with host locality, so hosts from racks
  44119. that contribute the most are preferred over hosts on racks that
  44120. contribute less
  44121. @param blkLocations The list of block locations
  44122. @param offset
  44123. @param splitSize
  44124. @return array of hosts that contribute most to this split
  44125. @throws IOException]]>
  44126. </doc>
  44127. </method>
  44128. <field name="LOG" type="org.apache.commons.logging.Log"
  44129. transient="false" volatile="false"
  44130. static="true" final="true" visibility="public"
  44131. deprecated="not deprecated">
  44132. </field>
  44133. <doc>
  44134. <![CDATA[A base class for file-based {@link InputFormat}.
  44135. <p><code>FileInputFormat</code> is the base class for all file-based
  44136. <code>InputFormat</code>s. This provides a generic implementation of
  44137. {@link #getSplits(JobConf, int)}.
  44138. Subclasses of <code>FileInputFormat</code> can also override the
  44139. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  44140. not split-up and are processed as a whole by {@link Mapper}s.]]>
  44141. </doc>
  44142. </class>
  44143. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  44144. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  44145. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  44146. abstract="false"
  44147. static="true" final="true" visibility="public"
  44148. deprecated="not deprecated">
  44149. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  44150. abstract="false" native="false" synchronized="false"
  44151. static="true" final="false" visibility="public"
  44152. deprecated="not deprecated">
  44153. </method>
  44154. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  44155. abstract="false" native="false" synchronized="false"
  44156. static="true" final="false" visibility="public"
  44157. deprecated="not deprecated">
  44158. <param name="name" type="java.lang.String"/>
  44159. </method>
  44160. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  44161. transient="false" volatile="false"
  44162. static="true" final="true" visibility="public"
  44163. deprecated="not deprecated">
  44164. </field>
  44165. </class>
  44166. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  44167. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  44168. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  44169. abstract="false"
  44170. static="false" final="false" visibility="public"
  44171. deprecated="not deprecated">
  44172. <constructor name="FileOutputCommitter"
  44173. static="false" final="false" visibility="public"
  44174. deprecated="not deprecated">
  44175. </constructor>
  44176. <method name="setupJob"
  44177. abstract="false" native="false" synchronized="false"
  44178. static="false" final="false" visibility="public"
  44179. deprecated="not deprecated">
  44180. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44181. <exception name="IOException" type="java.io.IOException"/>
  44182. </method>
  44183. <method name="commitJob"
  44184. abstract="false" native="false" synchronized="false"
  44185. static="false" final="false" visibility="public"
  44186. deprecated="not deprecated">
  44187. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44188. <exception name="IOException" type="java.io.IOException"/>
  44189. </method>
  44190. <method name="cleanupJob"
  44191. abstract="false" native="false" synchronized="false"
  44192. static="false" final="false" visibility="public"
  44193. deprecated="not deprecated">
  44194. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44195. <exception name="IOException" type="java.io.IOException"/>
  44196. </method>
  44197. <method name="abortJob"
  44198. abstract="false" native="false" synchronized="false"
  44199. static="false" final="false" visibility="public"
  44200. deprecated="not deprecated">
  44201. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  44202. <param name="runState" type="int"/>
  44203. <exception name="IOException" type="java.io.IOException"/>
  44204. <doc>
  44205. <![CDATA[Delete the temporary directory, including all of the work directories.
  44206. @param context the job's context
  44207. @param runState final run state of the job, should be
  44208. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  44209. </doc>
  44210. </method>
  44211. <method name="setupTask"
  44212. abstract="false" native="false" synchronized="false"
  44213. static="false" final="false" visibility="public"
  44214. deprecated="not deprecated">
  44215. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44216. <exception name="IOException" type="java.io.IOException"/>
  44217. </method>
  44218. <method name="commitTask"
  44219. abstract="false" native="false" synchronized="false"
  44220. static="false" final="false" visibility="public"
  44221. deprecated="not deprecated">
  44222. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44223. <exception name="IOException" type="java.io.IOException"/>
  44224. </method>
  44225. <method name="abortTask"
  44226. abstract="false" native="false" synchronized="false"
  44227. static="false" final="false" visibility="public"
  44228. deprecated="not deprecated">
  44229. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44230. <exception name="IOException" type="java.io.IOException"/>
  44231. </method>
  44232. <method name="needsTaskCommit" return="boolean"
  44233. abstract="false" native="false" synchronized="false"
  44234. static="false" final="false" visibility="public"
  44235. deprecated="not deprecated">
  44236. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  44237. <exception name="IOException" type="java.io.IOException"/>
  44238. </method>
  44239. <field name="LOG" type="org.apache.commons.logging.Log"
  44240. transient="false" volatile="false"
  44241. static="true" final="true" visibility="public"
  44242. deprecated="not deprecated">
  44243. </field>
  44244. <field name="TEMP_DIR_NAME" type="java.lang.String"
  44245. transient="false" volatile="false"
  44246. static="true" final="true" visibility="public"
  44247. deprecated="not deprecated">
  44248. <doc>
  44249. <![CDATA[Temporary directory name]]>
  44250. </doc>
  44251. </field>
  44252. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  44253. transient="false" volatile="false"
  44254. static="true" final="true" visibility="public"
  44255. deprecated="not deprecated">
  44256. </field>
  44257. <doc>
  44258. <![CDATA[An {@link OutputCommitter} that commits files specified
  44259. in job output directory i.e. ${mapred.output.dir}.]]>
  44260. </doc>
  44261. </class>
  44262. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  44263. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  44264. <class name="FileOutputFormat" extends="java.lang.Object"
  44265. abstract="true"
  44266. static="false" final="false" visibility="public"
  44267. deprecated="not deprecated">
  44268. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  44269. <constructor name="FileOutputFormat"
  44270. static="false" final="false" visibility="public"
  44271. deprecated="not deprecated">
  44272. </constructor>
  44273. <method name="setCompressOutput"
  44274. abstract="false" native="false" synchronized="false"
  44275. static="true" final="false" visibility="public"
  44276. deprecated="not deprecated">
  44277. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44278. <param name="compress" type="boolean"/>
  44279. <doc>
  44280. <![CDATA[Set whether the output of the job is compressed.
  44281. @param conf the {@link JobConf} to modify
  44282. @param compress should the output of the job be compressed?]]>
  44283. </doc>
  44284. </method>
  44285. <method name="getCompressOutput" return="boolean"
  44286. abstract="false" native="false" synchronized="false"
  44287. static="true" final="false" visibility="public"
  44288. deprecated="not deprecated">
  44289. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44290. <doc>
  44291. <![CDATA[Is the job output compressed?
  44292. @param conf the {@link JobConf} to look in
  44293. @return <code>true</code> if the job output should be compressed,
  44294. <code>false</code> otherwise]]>
  44295. </doc>
  44296. </method>
  44297. <method name="setOutputCompressorClass"
  44298. abstract="false" native="false" synchronized="false"
  44299. static="true" final="false" visibility="public"
  44300. deprecated="not deprecated">
  44301. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44302. <param name="codecClass" type="java.lang.Class"/>
  44303. <doc>
  44304. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  44305. @param conf the {@link JobConf} to modify
  44306. @param codecClass the {@link CompressionCodec} to be used to
  44307. compress the job outputs]]>
  44308. </doc>
  44309. </method>
  44310. <method name="getOutputCompressorClass" return="java.lang.Class"
  44311. abstract="false" native="false" synchronized="false"
  44312. static="true" final="false" visibility="public"
  44313. deprecated="not deprecated">
  44314. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44315. <param name="defaultValue" type="java.lang.Class"/>
  44316. <doc>
  44317. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  44318. @param conf the {@link JobConf} to look in
  44319. @param defaultValue the {@link CompressionCodec} to return if not set
  44320. @return the {@link CompressionCodec} to be used to compress the
  44321. job outputs
  44322. @throws IllegalArgumentException if the class was specified, but not found]]>
  44323. </doc>
  44324. </method>
  44325. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  44326. abstract="true" native="false" synchronized="false"
  44327. static="false" final="false" visibility="public"
  44328. deprecated="not deprecated">
  44329. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44330. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44331. <param name="name" type="java.lang.String"/>
  44332. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  44333. <exception name="IOException" type="java.io.IOException"/>
  44334. </method>
  44335. <method name="checkOutputSpecs"
  44336. abstract="false" native="false" synchronized="false"
  44337. static="false" final="false" visibility="public"
  44338. deprecated="not deprecated">
  44339. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  44340. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44341. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  44342. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44343. <exception name="IOException" type="java.io.IOException"/>
  44344. </method>
  44345. <method name="setOutputPath"
  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.mapred.JobConf"/>
  44350. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  44351. <doc>
  44352. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  44353. @param conf The configuration of the job.
  44354. @param outputDir the {@link Path} of the output directory for
  44355. the map-reduce job.]]>
  44356. </doc>
  44357. </method>
  44358. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  44359. abstract="false" native="false" synchronized="false"
  44360. static="true" final="false" visibility="public"
  44361. deprecated="not deprecated">
  44362. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44363. <doc>
  44364. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  44365. @return the {@link Path} to the output directory for the map-reduce job.
  44366. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  44367. </doc>
  44368. </method>
  44369. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  44370. abstract="false" native="false" synchronized="false"
  44371. static="true" final="false" visibility="public"
  44372. deprecated="not deprecated">
  44373. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44374. <doc>
  44375. <![CDATA[Get the {@link Path} to the task's temporary output directory
  44376. for the map-reduce job
  44377. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  44378. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  44379. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  44380. a <code>FileOutputCommitter</code>, the task's temporary output
  44381. directory is same as {@link #getOutputPath(JobConf)} i.e.
  44382. <tt>${mapred.output.dir}$</tt></p>
  44383. <p>Some applications need to create/write-to side-files, which differ from
  44384. the actual job-outputs.
  44385. <p>In such cases there could be issues with 2 instances of the same TIP
  44386. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  44387. same file (path) on HDFS. Hence the application-writer will have to pick
  44388. unique names per task-attempt (e.g. using the attemptid, say
  44389. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  44390. <p>To get around this the Map-Reduce framework helps the application-writer
  44391. out by maintaining a special
  44392. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  44393. sub-directory for each task-attempt on HDFS where the output of the
  44394. task-attempt goes. On successful completion of the task-attempt the files
  44395. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  44396. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  44397. framework discards the sub-directory of unsuccessful task-attempts. This
  44398. is completely transparent to the application.</p>
  44399. <p>The application-writer can take advantage of this by creating any
  44400. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  44401. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  44402. framework will move them out similarly - thus she doesn't have to pick
  44403. unique paths per task-attempt.</p>
  44404. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  44405. execution of a particular task-attempt is actually
  44406. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  44407. set by the map-reduce framework. So, just create any side-files in the
  44408. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  44409. task to take advantage of this feature.</p>
  44410. <p>The entire discussion holds true for maps of jobs with
  44411. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  44412. goes directly to HDFS.</p>
  44413. @return the {@link Path} to the task's temporary output directory
  44414. for the map-reduce job.]]>
  44415. </doc>
  44416. </method>
  44417. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  44418. abstract="false" native="false" synchronized="false"
  44419. static="true" final="false" visibility="public"
  44420. deprecated="not deprecated">
  44421. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44422. <param name="name" type="java.lang.String"/>
  44423. <exception name="IOException" type="java.io.IOException"/>
  44424. <doc>
  44425. <![CDATA[Helper function to create the task's temporary output directory and
  44426. return the path to the task's output file.
  44427. @param conf job-configuration
  44428. @param name temporary task-output filename
  44429. @return path to the task's temporary output file
  44430. @throws IOException]]>
  44431. </doc>
  44432. </method>
  44433. <method name="getUniqueName" return="java.lang.String"
  44434. abstract="false" native="false" synchronized="false"
  44435. static="true" final="false" visibility="public"
  44436. deprecated="not deprecated">
  44437. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44438. <param name="name" type="java.lang.String"/>
  44439. <doc>
  44440. <![CDATA[Helper function to generate a name that is unique for the task.
  44441. <p>The generated name can be used to create custom files from within the
  44442. different tasks for the job, the names for different tasks will not collide
  44443. with each other.</p>
  44444. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  44445. reduces and the task partition number. For example, give a name 'test'
  44446. running on the first map o the job the generated name will be
  44447. 'test-m-00000'.</p>
  44448. @param conf the configuration for the job.
  44449. @param name the name to make unique.
  44450. @return a unique name accross all tasks of the job.]]>
  44451. </doc>
  44452. </method>
  44453. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  44454. abstract="false" native="false" synchronized="false"
  44455. static="true" final="false" visibility="public"
  44456. deprecated="not deprecated">
  44457. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44458. <param name="name" type="java.lang.String"/>
  44459. <doc>
  44460. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  44461. the task within the job output directory.
  44462. <p>The path can be used to create custom files from within the map and
  44463. reduce tasks. The path name will be unique for each task. The path parent
  44464. will be the job output directory.</p>ls
  44465. <p>This method uses the {@link #getUniqueName} method to make the file name
  44466. unique for the task.</p>
  44467. @param conf the configuration for the job.
  44468. @param name the name for the file.
  44469. @return a unique path accross all tasks of the job.]]>
  44470. </doc>
  44471. </method>
  44472. <doc>
  44473. <![CDATA[A base class for {@link OutputFormat}.]]>
  44474. </doc>
  44475. </class>
  44476. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  44477. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  44478. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  44479. abstract="false"
  44480. static="true" final="true" visibility="public"
  44481. deprecated="not deprecated">
  44482. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  44483. abstract="false" native="false" synchronized="false"
  44484. static="true" final="false" visibility="public"
  44485. deprecated="not deprecated">
  44486. </method>
  44487. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  44488. abstract="false" native="false" synchronized="false"
  44489. static="true" final="false" visibility="public"
  44490. deprecated="not deprecated">
  44491. <param name="name" type="java.lang.String"/>
  44492. </method>
  44493. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  44494. transient="false" volatile="false"
  44495. static="true" final="true" visibility="public"
  44496. deprecated="not deprecated">
  44497. </field>
  44498. </class>
  44499. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  44500. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  44501. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  44502. abstract="false"
  44503. static="false" final="false" visibility="public"
  44504. deprecated="not deprecated">
  44505. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  44506. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  44507. static="false" final="false" visibility="public"
  44508. deprecated="deprecated, no comment">
  44509. <doc>
  44510. <![CDATA[Constructs a split.
  44511. @deprecated
  44512. @param file the file name
  44513. @param start the position of the first byte in the file to process
  44514. @param length the number of bytes in the file to process]]>
  44515. </doc>
  44516. </constructor>
  44517. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  44518. static="false" final="false" visibility="public"
  44519. deprecated="not deprecated">
  44520. <doc>
  44521. <![CDATA[Constructs a split with host information
  44522. @param file the file name
  44523. @param start the position of the first byte in the file to process
  44524. @param length the number of bytes in the file to process
  44525. @param hosts the list of hosts containing the block, possibly null]]>
  44526. </doc>
  44527. </constructor>
  44528. <method name="getPath" return="org.apache.hadoop.fs.Path"
  44529. abstract="false" native="false" synchronized="false"
  44530. static="false" final="false" visibility="public"
  44531. deprecated="not deprecated">
  44532. <doc>
  44533. <![CDATA[The file containing this split's data.]]>
  44534. </doc>
  44535. </method>
  44536. <method name="getStart" return="long"
  44537. abstract="false" native="false" synchronized="false"
  44538. static="false" final="false" visibility="public"
  44539. deprecated="not deprecated">
  44540. <doc>
  44541. <![CDATA[The position of the first byte in the file to process.]]>
  44542. </doc>
  44543. </method>
  44544. <method name="getLength" return="long"
  44545. abstract="false" native="false" synchronized="false"
  44546. static="false" final="false" visibility="public"
  44547. deprecated="not deprecated">
  44548. <doc>
  44549. <![CDATA[The number of bytes in the file to process.]]>
  44550. </doc>
  44551. </method>
  44552. <method name="toString" return="java.lang.String"
  44553. abstract="false" native="false" synchronized="false"
  44554. static="false" final="false" visibility="public"
  44555. deprecated="not deprecated">
  44556. </method>
  44557. <method name="write"
  44558. abstract="false" native="false" synchronized="false"
  44559. static="false" final="false" visibility="public"
  44560. deprecated="not deprecated">
  44561. <param name="out" type="java.io.DataOutput"/>
  44562. <exception name="IOException" type="java.io.IOException"/>
  44563. </method>
  44564. <method name="readFields"
  44565. abstract="false" native="false" synchronized="false"
  44566. static="false" final="false" visibility="public"
  44567. deprecated="not deprecated">
  44568. <param name="in" type="java.io.DataInput"/>
  44569. <exception name="IOException" type="java.io.IOException"/>
  44570. </method>
  44571. <method name="getLocations" return="java.lang.String[]"
  44572. abstract="false" native="false" synchronized="false"
  44573. static="false" final="false" visibility="public"
  44574. deprecated="not deprecated">
  44575. <exception name="IOException" type="java.io.IOException"/>
  44576. </method>
  44577. <doc>
  44578. <![CDATA[A section of an input file. Returned by {@link
  44579. InputFormat#getSplits(JobConf, int)} and passed to
  44580. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  44581. </doc>
  44582. </class>
  44583. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  44584. <!-- start class org.apache.hadoop.mapred.ID -->
  44585. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  44586. abstract="true"
  44587. static="false" final="false" visibility="public"
  44588. deprecated="not deprecated">
  44589. <constructor name="ID" type="int"
  44590. static="false" final="false" visibility="public"
  44591. deprecated="not deprecated">
  44592. <doc>
  44593. <![CDATA[constructs an ID object from the given int]]>
  44594. </doc>
  44595. </constructor>
  44596. <constructor name="ID"
  44597. static="false" final="false" visibility="protected"
  44598. deprecated="not deprecated">
  44599. </constructor>
  44600. <doc>
  44601. <![CDATA[A general identifier, which internally stores the id
  44602. as an integer. This is the super class of {@link JobID},
  44603. {@link TaskID} and {@link TaskAttemptID}.
  44604. @see JobID
  44605. @see TaskID
  44606. @see TaskAttemptID]]>
  44607. </doc>
  44608. </class>
  44609. <!-- end class org.apache.hadoop.mapred.ID -->
  44610. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  44611. <interface name="InputFormat" abstract="true"
  44612. static="false" final="false" visibility="public"
  44613. deprecated="not deprecated">
  44614. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  44615. abstract="false" native="false" synchronized="false"
  44616. static="false" final="false" visibility="public"
  44617. deprecated="not deprecated">
  44618. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44619. <param name="numSplits" type="int"/>
  44620. <exception name="IOException" type="java.io.IOException"/>
  44621. <doc>
  44622. <![CDATA[Logically split the set of input files for the job.
  44623. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  44624. for processing.</p>
  44625. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  44626. input files are not physically split into chunks. For e.g. a split could
  44627. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  44628. @param job job configuration.
  44629. @param numSplits the desired number of splits, a hint.
  44630. @return an array of {@link InputSplit}s for the job.]]>
  44631. </doc>
  44632. </method>
  44633. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  44634. abstract="false" native="false" synchronized="false"
  44635. static="false" final="false" visibility="public"
  44636. deprecated="not deprecated">
  44637. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  44638. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44639. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  44640. <exception name="IOException" type="java.io.IOException"/>
  44641. <doc>
  44642. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  44643. <p>It is the responsibility of the <code>RecordReader</code> to respect
  44644. record boundaries while processing the logical split to present a
  44645. record-oriented view to the individual task.</p>
  44646. @param split the {@link InputSplit}
  44647. @param job the job that this split belongs to
  44648. @return a {@link RecordReader}]]>
  44649. </doc>
  44650. </method>
  44651. <doc>
  44652. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  44653. Map-Reduce job.
  44654. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  44655. job to:<p>
  44656. <ol>
  44657. <li>
  44658. Validate the input-specification of the job.
  44659. <li>
  44660. Split-up the input file(s) into logical {@link InputSplit}s, each of
  44661. which is then assigned to an individual {@link Mapper}.
  44662. </li>
  44663. <li>
  44664. Provide the {@link RecordReader} implementation to be used to glean
  44665. input records from the logical <code>InputSplit</code> for processing by
  44666. the {@link Mapper}.
  44667. </li>
  44668. </ol>
  44669. <p>The default behavior of file-based {@link InputFormat}s, typically
  44670. sub-classes of {@link FileInputFormat}, is to split the
  44671. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  44672. bytes, of the input files. However, the {@link FileSystem} blocksize of
  44673. the input files is treated as an upper bound for input splits. A lower bound
  44674. on the split size can be set via
  44675. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  44676. mapred.min.split.size</a>.</p>
  44677. <p>Clearly, logical splits based on input-size is insufficient for many
  44678. applications since record boundaries are to respected. In such cases, the
  44679. application has to also implement a {@link RecordReader} on whom lies the
  44680. responsibilty to respect record-boundaries and present a record-oriented
  44681. view of the logical <code>InputSplit</code> to the individual task.
  44682. @see InputSplit
  44683. @see RecordReader
  44684. @see JobClient
  44685. @see FileInputFormat]]>
  44686. </doc>
  44687. </interface>
  44688. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  44689. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  44690. <interface name="InputSplit" abstract="true"
  44691. static="false" final="false" visibility="public"
  44692. deprecated="not deprecated">
  44693. <implements name="org.apache.hadoop.io.Writable"/>
  44694. <method name="getLength" return="long"
  44695. abstract="false" native="false" synchronized="false"
  44696. static="false" final="false" visibility="public"
  44697. deprecated="not deprecated">
  44698. <exception name="IOException" type="java.io.IOException"/>
  44699. <doc>
  44700. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  44701. @return the number of bytes in the input split.
  44702. @throws IOException]]>
  44703. </doc>
  44704. </method>
  44705. <method name="getLocations" return="java.lang.String[]"
  44706. abstract="false" native="false" synchronized="false"
  44707. static="false" final="false" visibility="public"
  44708. deprecated="not deprecated">
  44709. <exception name="IOException" type="java.io.IOException"/>
  44710. <doc>
  44711. <![CDATA[Get the list of hostnames where the input split is located.
  44712. @return list of hostnames where data of the <code>InputSplit</code> is
  44713. located as an array of <code>String</code>s.
  44714. @throws IOException]]>
  44715. </doc>
  44716. </method>
  44717. <doc>
  44718. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  44719. individual {@link Mapper}.
  44720. <p>Typically, it presents a byte-oriented view on the input and is the
  44721. responsibility of {@link RecordReader} of the job to process this and present
  44722. a record-oriented view.
  44723. @see InputFormat
  44724. @see RecordReader]]>
  44725. </doc>
  44726. </interface>
  44727. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  44728. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  44729. <class name="InvalidFileTypeException" extends="java.io.IOException"
  44730. abstract="false"
  44731. static="false" final="false" visibility="public"
  44732. deprecated="not deprecated">
  44733. <constructor name="InvalidFileTypeException"
  44734. static="false" final="false" visibility="public"
  44735. deprecated="not deprecated">
  44736. </constructor>
  44737. <constructor name="InvalidFileTypeException" type="java.lang.String"
  44738. static="false" final="false" visibility="public"
  44739. deprecated="not deprecated">
  44740. </constructor>
  44741. <doc>
  44742. <![CDATA[Used when file type differs from the desired file type. like
  44743. getting a file when a directory is expected. Or a wrong file type.]]>
  44744. </doc>
  44745. </class>
  44746. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  44747. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  44748. <class name="InvalidInputException" extends="java.io.IOException"
  44749. abstract="false"
  44750. static="false" final="false" visibility="public"
  44751. deprecated="not deprecated">
  44752. <constructor name="InvalidInputException" type="java.util.List"
  44753. static="false" final="false" visibility="public"
  44754. deprecated="not deprecated">
  44755. <doc>
  44756. <![CDATA[Create the exception with the given list.
  44757. @param probs the list of problems to report. this list is not copied.]]>
  44758. </doc>
  44759. </constructor>
  44760. <method name="getProblems" return="java.util.List"
  44761. abstract="false" native="false" synchronized="false"
  44762. static="false" final="false" visibility="public"
  44763. deprecated="not deprecated">
  44764. <doc>
  44765. <![CDATA[Get the complete list of the problems reported.
  44766. @return the list of problems, which must not be modified]]>
  44767. </doc>
  44768. </method>
  44769. <method name="getMessage" return="java.lang.String"
  44770. abstract="false" native="false" synchronized="false"
  44771. static="false" final="false" visibility="public"
  44772. deprecated="not deprecated">
  44773. <doc>
  44774. <![CDATA[Get a summary message of the problems found.
  44775. @return the concatenated messages from all of the problems.]]>
  44776. </doc>
  44777. </method>
  44778. <doc>
  44779. <![CDATA[This class wraps a list of problems with the input, so that the user
  44780. can get a list of problems together instead of finding and fixing them one
  44781. by one.]]>
  44782. </doc>
  44783. </class>
  44784. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  44785. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  44786. <class name="InvalidJobConfException" extends="java.io.IOException"
  44787. abstract="false"
  44788. static="false" final="false" visibility="public"
  44789. deprecated="not deprecated">
  44790. <constructor name="InvalidJobConfException"
  44791. static="false" final="false" visibility="public"
  44792. deprecated="not deprecated">
  44793. </constructor>
  44794. <constructor name="InvalidJobConfException" type="java.lang.String"
  44795. static="false" final="false" visibility="public"
  44796. deprecated="not deprecated">
  44797. </constructor>
  44798. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  44799. static="false" final="false" visibility="public"
  44800. deprecated="not deprecated">
  44801. </constructor>
  44802. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  44803. static="false" final="false" visibility="public"
  44804. deprecated="not deprecated">
  44805. </constructor>
  44806. <doc>
  44807. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  44808. or value of some attributes is invalid.]]>
  44809. </doc>
  44810. </class>
  44811. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  44812. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  44813. <class name="IsolationRunner" extends="java.lang.Object"
  44814. abstract="false"
  44815. static="false" final="false" visibility="public"
  44816. deprecated="not deprecated">
  44817. <constructor name="IsolationRunner"
  44818. static="false" final="false" visibility="public"
  44819. deprecated="not deprecated">
  44820. </constructor>
  44821. <method name="main"
  44822. abstract="false" native="false" synchronized="false"
  44823. static="true" final="false" visibility="public"
  44824. deprecated="not deprecated">
  44825. <param name="args" type="java.lang.String[]"/>
  44826. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  44827. <exception name="IOException" type="java.io.IOException"/>
  44828. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44829. <doc>
  44830. <![CDATA[Run a single task.
  44831. @param args the first argument is the task directory]]>
  44832. </doc>
  44833. </method>
  44834. <doc>
  44835. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  44836. task, given left-over task files for a (typically failed) past job.
  44837. Currently, it is limited to re-running map tasks.
  44838. Users may coerce MapReduce to keep task files around by setting
  44839. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  44840. </doc>
  44841. </class>
  44842. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  44843. <!-- start class org.apache.hadoop.mapred.JobClient -->
  44844. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  44845. abstract="false"
  44846. static="false" final="false" visibility="public"
  44847. deprecated="not deprecated">
  44848. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  44849. <implements name="org.apache.hadoop.util.Tool"/>
  44850. <constructor name="JobClient"
  44851. static="false" final="false" visibility="public"
  44852. deprecated="not deprecated">
  44853. <doc>
  44854. <![CDATA[Create a job client.]]>
  44855. </doc>
  44856. </constructor>
  44857. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  44858. static="false" final="false" visibility="public"
  44859. deprecated="not deprecated">
  44860. <exception name="IOException" type="java.io.IOException"/>
  44861. <doc>
  44862. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  44863. default {@link JobTracker}.
  44864. @param conf the job configuration.
  44865. @throws IOException]]>
  44866. </doc>
  44867. </constructor>
  44868. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  44869. static="false" final="false" visibility="public"
  44870. deprecated="not deprecated">
  44871. <exception name="IOException" type="java.io.IOException"/>
  44872. <doc>
  44873. <![CDATA[Build a job client, connect to the indicated job tracker.
  44874. @param jobTrackAddr the job tracker to connect to.
  44875. @param conf configuration.]]>
  44876. </doc>
  44877. </constructor>
  44878. <method name="init"
  44879. abstract="false" native="false" synchronized="false"
  44880. static="false" final="false" visibility="public"
  44881. deprecated="not deprecated">
  44882. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  44883. <exception name="IOException" type="java.io.IOException"/>
  44884. <doc>
  44885. <![CDATA[Connect to the default {@link JobTracker}.
  44886. @param conf the job configuration.
  44887. @throws IOException]]>
  44888. </doc>
  44889. </method>
  44890. <method name="close"
  44891. abstract="false" native="false" synchronized="true"
  44892. static="false" final="false" visibility="public"
  44893. deprecated="not deprecated">
  44894. <exception name="IOException" type="java.io.IOException"/>
  44895. <doc>
  44896. <![CDATA[Close the <code>JobClient</code>.]]>
  44897. </doc>
  44898. </method>
  44899. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  44900. abstract="false" native="false" synchronized="true"
  44901. static="false" final="false" visibility="public"
  44902. deprecated="not deprecated">
  44903. <exception name="IOException" type="java.io.IOException"/>
  44904. <doc>
  44905. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  44906. for submission to the MapReduce system.
  44907. @return the filesystem handle.
  44908. @throws IOException]]>
  44909. </doc>
  44910. </method>
  44911. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  44912. abstract="false" native="false" synchronized="false"
  44913. static="false" final="false" visibility="public"
  44914. deprecated="not deprecated">
  44915. <param name="jobFile" type="java.lang.String"/>
  44916. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44917. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  44918. <exception name="IOException" type="java.io.IOException"/>
  44919. <doc>
  44920. <![CDATA[Submit a job to the MR system.
  44921. This returns a handle to the {@link RunningJob} which can be used to track
  44922. the running-job.
  44923. @param jobFile the job configuration.
  44924. @return a handle to the {@link RunningJob} which can be used to track the
  44925. running-job.
  44926. @throws FileNotFoundException
  44927. @throws InvalidJobConfException
  44928. @throws IOException]]>
  44929. </doc>
  44930. </method>
  44931. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  44932. abstract="false" native="false" synchronized="false"
  44933. static="false" final="false" visibility="public"
  44934. deprecated="not deprecated">
  44935. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44936. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44937. <exception name="IOException" type="java.io.IOException"/>
  44938. <doc>
  44939. <![CDATA[Submit a job to the MR system.
  44940. This returns a handle to the {@link RunningJob} which can be used to track
  44941. the running-job.
  44942. @param job the job configuration.
  44943. @return a handle to the {@link RunningJob} which can be used to track the
  44944. running-job.
  44945. @throws FileNotFoundException
  44946. @throws IOException]]>
  44947. </doc>
  44948. </method>
  44949. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  44950. abstract="false" native="false" synchronized="false"
  44951. static="false" final="false" visibility="public"
  44952. deprecated="not deprecated">
  44953. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  44954. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  44955. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  44956. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  44957. <exception name="IOException" type="java.io.IOException"/>
  44958. <doc>
  44959. <![CDATA[Internal method for submitting jobs to the system.
  44960. @param job the configuration to submit
  44961. @return a proxy object for the running job
  44962. @throws FileNotFoundException
  44963. @throws ClassNotFoundException
  44964. @throws InterruptedException
  44965. @throws IOException]]>
  44966. </doc>
  44967. </method>
  44968. <method name="isJobDirValid" return="boolean"
  44969. abstract="false" native="false" synchronized="false"
  44970. static="true" final="false" visibility="public"
  44971. deprecated="not deprecated">
  44972. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  44973. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44974. <exception name="IOException" type="java.io.IOException"/>
  44975. <doc>
  44976. <![CDATA[Checks if the job directory is clean and has all the required components
  44977. for (re) starting the job]]>
  44978. </doc>
  44979. </method>
  44980. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  44981. abstract="false" native="false" synchronized="false"
  44982. static="false" final="false" visibility="public"
  44983. deprecated="not deprecated">
  44984. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  44985. <exception name="IOException" type="java.io.IOException"/>
  44986. <doc>
  44987. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  44988. null if the id does not correspond to any known job.
  44989. @param jobid the jobid of the job.
  44990. @return the {@link RunningJob} handle to track the job, null if the
  44991. <code>jobid</code> doesn't correspond to any known job.
  44992. @throws IOException]]>
  44993. </doc>
  44994. </method>
  44995. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  44996. abstract="false" native="false" synchronized="false"
  44997. static="false" final="false" visibility="public"
  44998. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  44999. <param name="jobid" type="java.lang.String"/>
  45000. <exception name="IOException" type="java.io.IOException"/>
  45001. <doc>
  45002. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  45003. </doc>
  45004. </method>
  45005. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45006. abstract="false" native="false" synchronized="false"
  45007. static="false" final="false" visibility="public"
  45008. deprecated="not deprecated">
  45009. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45010. <exception name="IOException" type="java.io.IOException"/>
  45011. <doc>
  45012. <![CDATA[Get the information of the current state of the map tasks of a job.
  45013. @param jobId the job to query.
  45014. @return the list of all of the map tips.
  45015. @throws IOException]]>
  45016. </doc>
  45017. </method>
  45018. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45019. abstract="false" native="false" synchronized="false"
  45020. static="false" final="false" visibility="public"
  45021. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  45022. <param name="jobId" type="java.lang.String"/>
  45023. <exception name="IOException" type="java.io.IOException"/>
  45024. <doc>
  45025. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  45026. </doc>
  45027. </method>
  45028. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45029. abstract="false" native="false" synchronized="false"
  45030. static="false" final="false" visibility="public"
  45031. deprecated="not deprecated">
  45032. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45033. <exception name="IOException" type="java.io.IOException"/>
  45034. <doc>
  45035. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  45036. @param jobId the job to query.
  45037. @return the list of all of the reduce tips.
  45038. @throws IOException]]>
  45039. </doc>
  45040. </method>
  45041. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45042. abstract="false" native="false" synchronized="false"
  45043. static="false" final="false" visibility="public"
  45044. deprecated="not deprecated">
  45045. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45046. <exception name="IOException" type="java.io.IOException"/>
  45047. <doc>
  45048. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  45049. @param jobId the job to query.
  45050. @return the list of all of the cleanup tips.
  45051. @throws IOException]]>
  45052. </doc>
  45053. </method>
  45054. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45055. abstract="false" native="false" synchronized="false"
  45056. static="false" final="false" visibility="public"
  45057. deprecated="not deprecated">
  45058. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45059. <exception name="IOException" type="java.io.IOException"/>
  45060. <doc>
  45061. <![CDATA[Get the information of the current state of the setup tasks of a job.
  45062. @param jobId the job to query.
  45063. @return the list of all of the setup tips.
  45064. @throws IOException]]>
  45065. </doc>
  45066. </method>
  45067. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  45068. abstract="false" native="false" synchronized="false"
  45069. static="false" final="false" visibility="public"
  45070. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  45071. <param name="jobId" type="java.lang.String"/>
  45072. <exception name="IOException" type="java.io.IOException"/>
  45073. <doc>
  45074. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  45075. </doc>
  45076. </method>
  45077. <method name="displayTasks"
  45078. abstract="false" native="false" synchronized="false"
  45079. static="false" final="false" visibility="public"
  45080. deprecated="not deprecated">
  45081. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  45082. <param name="type" type="java.lang.String"/>
  45083. <param name="state" type="java.lang.String"/>
  45084. <exception name="IOException" type="java.io.IOException"/>
  45085. <doc>
  45086. <![CDATA[Display the information about a job's tasks, of a particular type and
  45087. in a particular state
  45088. @param jobId the ID of the job
  45089. @param type the type of the task (map/reduce/setup/cleanup)
  45090. @param state the state of the task
  45091. (pending/running/completed/failed/killed)]]>
  45092. </doc>
  45093. </method>
  45094. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  45095. abstract="false" native="false" synchronized="false"
  45096. static="false" final="false" visibility="public"
  45097. deprecated="not deprecated">
  45098. <exception name="IOException" type="java.io.IOException"/>
  45099. <doc>
  45100. <![CDATA[Get status information about the Map-Reduce cluster.
  45101. @return the status information about the Map-Reduce cluster as an object
  45102. of {@link ClusterStatus}.
  45103. @throws IOException]]>
  45104. </doc>
  45105. </method>
  45106. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  45107. abstract="false" native="false" synchronized="false"
  45108. static="false" final="false" visibility="public"
  45109. deprecated="not deprecated">
  45110. <param name="detailed" type="boolean"/>
  45111. <exception name="IOException" type="java.io.IOException"/>
  45112. <doc>
  45113. <![CDATA[Get status information about the Map-Reduce cluster.
  45114. @param detailed if true then get a detailed status including the
  45115. tracker names and memory usage of the JobTracker
  45116. @return the status information about the Map-Reduce cluster as an object
  45117. of {@link ClusterStatus}.
  45118. @throws IOException]]>
  45119. </doc>
  45120. </method>
  45121. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  45122. abstract="false" native="false" synchronized="false"
  45123. static="false" final="false" visibility="public"
  45124. deprecated="not deprecated">
  45125. <exception name="IOException" type="java.io.IOException"/>
  45126. <doc>
  45127. <![CDATA[Grab the jobtracker's view of the staging directory path where
  45128. job-specific files will be placed.
  45129. @return the staging directory where job-specific files are to be placed.]]>
  45130. </doc>
  45131. </method>
  45132. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  45133. abstract="false" native="false" synchronized="false"
  45134. static="false" final="false" visibility="public"
  45135. deprecated="not deprecated">
  45136. <exception name="IOException" type="java.io.IOException"/>
  45137. <doc>
  45138. <![CDATA[Get the jobs that are not completed and not failed.
  45139. @return array of {@link JobStatus} for the running/to-be-run jobs.
  45140. @throws IOException]]>
  45141. </doc>
  45142. </method>
  45143. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  45144. abstract="false" native="false" synchronized="false"
  45145. static="false" final="false" visibility="public"
  45146. deprecated="not deprecated">
  45147. <exception name="IOException" type="java.io.IOException"/>
  45148. <doc>
  45149. <![CDATA[Get the jobs that are submitted.
  45150. @return array of {@link JobStatus} for the submitted jobs.
  45151. @throws IOException]]>
  45152. </doc>
  45153. </method>
  45154. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  45155. abstract="false" native="false" synchronized="false"
  45156. static="true" final="false" visibility="public"
  45157. deprecated="not deprecated">
  45158. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45159. <exception name="IOException" type="java.io.IOException"/>
  45160. <doc>
  45161. <![CDATA[Utility that submits a job, then polls for progress until the job is
  45162. complete.
  45163. @param job the job configuration.
  45164. @throws IOException if the job fails]]>
  45165. </doc>
  45166. </method>
  45167. <method name="monitorAndPrintJob" return="boolean"
  45168. abstract="false" native="false" synchronized="false"
  45169. static="false" final="false" visibility="public"
  45170. deprecated="not deprecated">
  45171. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  45172. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  45173. <exception name="IOException" type="java.io.IOException"/>
  45174. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45175. <doc>
  45176. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  45177. fail.
  45178. @param conf the job's configuration
  45179. @param job the job to track
  45180. @return true if the job succeeded
  45181. @throws IOException if communication to the JobTracker fails]]>
  45182. </doc>
  45183. </method>
  45184. <method name="setTaskOutputFilter"
  45185. abstract="false" native="false" synchronized="false"
  45186. static="false" final="false" visibility="public"
  45187. deprecated="not deprecated">
  45188. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  45189. <doc>
  45190. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  45191. output matches the filter.
  45192. @param newValue task filter.]]>
  45193. </doc>
  45194. </method>
  45195. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45196. abstract="false" native="false" synchronized="false"
  45197. static="true" final="false" visibility="public"
  45198. deprecated="not deprecated">
  45199. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45200. <doc>
  45201. <![CDATA[Get the task output filter out of the JobConf.
  45202. @param job the JobConf to examine.
  45203. @return the filter level.]]>
  45204. </doc>
  45205. </method>
  45206. <method name="setTaskOutputFilter"
  45207. abstract="false" native="false" synchronized="false"
  45208. static="true" final="false" visibility="public"
  45209. deprecated="not deprecated">
  45210. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  45211. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  45212. <doc>
  45213. <![CDATA[Modify the JobConf to set the task output filter.
  45214. @param job the JobConf to modify.
  45215. @param newValue the value to set.]]>
  45216. </doc>
  45217. </method>
  45218. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45219. abstract="false" native="false" synchronized="false"
  45220. static="false" final="false" visibility="public"
  45221. deprecated="not deprecated">
  45222. <doc>
  45223. <![CDATA[Returns task output filter.
  45224. @return task filter.]]>
  45225. </doc>
  45226. </method>
  45227. <method name="run" return="int"
  45228. abstract="false" native="false" synchronized="false"
  45229. static="false" final="false" visibility="public"
  45230. deprecated="not deprecated">
  45231. <param name="argv" type="java.lang.String[]"/>
  45232. <exception name="Exception" type="java.lang.Exception"/>
  45233. </method>
  45234. <method name="getDefaultMaps" return="int"
  45235. abstract="false" native="false" synchronized="false"
  45236. static="false" final="false" visibility="public"
  45237. deprecated="not deprecated">
  45238. <exception name="IOException" type="java.io.IOException"/>
  45239. <doc>
  45240. <![CDATA[Get status information about the max available Maps in the cluster.
  45241. @return the max available Maps in the cluster
  45242. @throws IOException]]>
  45243. </doc>
  45244. </method>
  45245. <method name="getDefaultReduces" return="int"
  45246. abstract="false" native="false" synchronized="false"
  45247. static="false" final="false" visibility="public"
  45248. deprecated="not deprecated">
  45249. <exception name="IOException" type="java.io.IOException"/>
  45250. <doc>
  45251. <![CDATA[Get status information about the max available Reduces in the cluster.
  45252. @return the max available Reduces in the cluster
  45253. @throws IOException]]>
  45254. </doc>
  45255. </method>
  45256. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  45257. abstract="false" native="false" synchronized="false"
  45258. static="false" final="false" visibility="public"
  45259. deprecated="not deprecated">
  45260. <doc>
  45261. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  45262. @return the system directory where job-specific files are to be placed.]]>
  45263. </doc>
  45264. </method>
  45265. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  45266. abstract="false" native="false" synchronized="false"
  45267. static="false" final="false" visibility="public"
  45268. deprecated="not deprecated">
  45269. <exception name="IOException" type="java.io.IOException"/>
  45270. <doc>
  45271. <![CDATA[Return an array of queue information objects about all the Job Queues
  45272. configured.
  45273. @return Array of JobQueueInfo objects
  45274. @throws IOException]]>
  45275. </doc>
  45276. </method>
  45277. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  45278. abstract="false" native="false" synchronized="false"
  45279. static="false" final="false" visibility="public"
  45280. deprecated="not deprecated">
  45281. <param name="queueName" type="java.lang.String"/>
  45282. <exception name="IOException" type="java.io.IOException"/>
  45283. <doc>
  45284. <![CDATA[Gets all the jobs which were added to particular Job Queue
  45285. @param queueName name of the Job Queue
  45286. @return Array of jobs present in the job queue
  45287. @throws IOException]]>
  45288. </doc>
  45289. </method>
  45290. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  45291. abstract="false" native="false" synchronized="false"
  45292. static="false" final="false" visibility="public"
  45293. deprecated="not deprecated">
  45294. <param name="queueName" type="java.lang.String"/>
  45295. <exception name="IOException" type="java.io.IOException"/>
  45296. <doc>
  45297. <![CDATA[Gets the queue information associated to a particular Job Queue
  45298. @param queueName name of the job queue.
  45299. @return Queue information associated to particular queue.
  45300. @throws IOException]]>
  45301. </doc>
  45302. </method>
  45303. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  45304. abstract="false" native="false" synchronized="false"
  45305. static="false" final="false" visibility="public"
  45306. deprecated="not deprecated">
  45307. <exception name="IOException" type="java.io.IOException"/>
  45308. <doc>
  45309. <![CDATA[Gets the Queue ACLs for current user
  45310. @return array of QueueAclsInfo object for current user.
  45311. @throws IOException]]>
  45312. </doc>
  45313. </method>
  45314. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  45315. abstract="false" native="false" synchronized="false"
  45316. static="false" final="false" visibility="public"
  45317. deprecated="not deprecated">
  45318. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  45319. <exception name="IOException" type="java.io.IOException"/>
  45320. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45321. </method>
  45322. <method name="renewDelegationToken" return="long"
  45323. abstract="false" native="false" synchronized="false"
  45324. static="false" final="false" visibility="public"
  45325. deprecated="not deprecated">
  45326. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45327. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  45328. <exception name="IOException" type="java.io.IOException"/>
  45329. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45330. <doc>
  45331. <![CDATA[Renew a delegation token
  45332. @param token the token to renew
  45333. @return the new expiration time
  45334. @throws InvalidToken
  45335. @throws IOException]]>
  45336. </doc>
  45337. </method>
  45338. <method name="cancelDelegationToken"
  45339. abstract="false" native="false" synchronized="false"
  45340. static="false" final="false" visibility="public"
  45341. deprecated="not deprecated">
  45342. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45343. <exception name="IOException" type="java.io.IOException"/>
  45344. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45345. <doc>
  45346. <![CDATA[Cancel a delegation token from the JobTracker
  45347. @param token the token to cancel
  45348. @throws IOException]]>
  45349. </doc>
  45350. </method>
  45351. <method name="main"
  45352. abstract="false" native="false" synchronized="false"
  45353. static="true" final="false" visibility="public"
  45354. deprecated="not deprecated">
  45355. <param name="argv" type="java.lang.String[]"/>
  45356. <exception name="Exception" type="java.lang.Exception"/>
  45357. </method>
  45358. <doc>
  45359. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  45360. with the {@link JobTracker}.
  45361. <code>JobClient</code> provides facilities to submit jobs, track their
  45362. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  45363. status information etc.
  45364. <p>The job submission process involves:
  45365. <ol>
  45366. <li>
  45367. Checking the input and output specifications of the job.
  45368. </li>
  45369. <li>
  45370. Computing the {@link InputSplit}s for the job.
  45371. </li>
  45372. <li>
  45373. Setup the requisite accounting information for the {@link DistributedCache}
  45374. of the job, if necessary.
  45375. </li>
  45376. <li>
  45377. Copying the job's jar and configuration to the map-reduce system directory
  45378. on the distributed file-system.
  45379. </li>
  45380. <li>
  45381. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  45382. it's status.
  45383. </li>
  45384. </ol></p>
  45385. Normally the user creates the application, describes various facets of the
  45386. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  45387. the job and monitor its progress.
  45388. <p>Here is an example on how to use <code>JobClient</code>:</p>
  45389. <p><blockquote><pre>
  45390. // Create a new JobConf
  45391. JobConf job = new JobConf(new Configuration(), MyJob.class);
  45392. // Specify various job-specific parameters
  45393. job.setJobName("myjob");
  45394. job.setInputPath(new Path("in"));
  45395. job.setOutputPath(new Path("out"));
  45396. job.setMapperClass(MyJob.MyMapper.class);
  45397. job.setReducerClass(MyJob.MyReducer.class);
  45398. // Submit the job, then poll for progress until the job is complete
  45399. JobClient.runJob(job);
  45400. </pre></blockquote></p>
  45401. <h4 id="JobControl">Job Control</h4>
  45402. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  45403. which cannot be done via a single map-reduce job. This is fairly easy since
  45404. the output of the job, typically, goes to distributed file-system and that
  45405. can be used as the input for the next job.</p>
  45406. <p>However, this also means that the onus on ensuring jobs are complete
  45407. (success/failure) lies squarely on the clients. In such situations the
  45408. various job-control options are:
  45409. <ol>
  45410. <li>
  45411. {@link #runJob(JobConf)} : submits the job and returns only after
  45412. the job has completed.
  45413. </li>
  45414. <li>
  45415. {@link #submitJob(JobConf)} : only submits the job, then poll the
  45416. returned handle to the {@link RunningJob} to query status and make
  45417. scheduling decisions.
  45418. </li>
  45419. <li>
  45420. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  45421. on job-completion, thus avoiding polling.
  45422. </li>
  45423. </ol></p>
  45424. @see JobConf
  45425. @see ClusterStatus
  45426. @see Tool
  45427. @see DistributedCache]]>
  45428. </doc>
  45429. </class>
  45430. <!-- end class org.apache.hadoop.mapred.JobClient -->
  45431. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  45432. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  45433. abstract="false"
  45434. static="true" final="false" visibility="public"
  45435. deprecated="not deprecated">
  45436. <constructor name="JobClient.Renewer"
  45437. static="false" final="false" visibility="public"
  45438. deprecated="not deprecated">
  45439. </constructor>
  45440. <method name="handleKind" return="boolean"
  45441. abstract="false" native="false" synchronized="false"
  45442. static="false" final="false" visibility="public"
  45443. deprecated="not deprecated">
  45444. <param name="kind" type="org.apache.hadoop.io.Text"/>
  45445. </method>
  45446. <method name="renew" return="long"
  45447. abstract="false" native="false" synchronized="false"
  45448. static="false" final="false" visibility="public"
  45449. deprecated="not deprecated">
  45450. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45451. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45452. <exception name="IOException" type="java.io.IOException"/>
  45453. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45454. </method>
  45455. <method name="cancel"
  45456. abstract="false" native="false" synchronized="false"
  45457. static="false" final="false" visibility="public"
  45458. deprecated="not deprecated">
  45459. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45460. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45461. <exception name="IOException" type="java.io.IOException"/>
  45462. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  45463. </method>
  45464. <method name="isManaged" return="boolean"
  45465. abstract="false" native="false" synchronized="false"
  45466. static="false" final="false" visibility="public"
  45467. deprecated="not deprecated">
  45468. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  45469. <exception name="IOException" type="java.io.IOException"/>
  45470. </method>
  45471. </class>
  45472. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  45473. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  45474. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  45475. abstract="false"
  45476. static="true" final="true" visibility="public"
  45477. deprecated="not deprecated">
  45478. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  45479. abstract="false" native="false" synchronized="false"
  45480. static="true" final="false" visibility="public"
  45481. deprecated="not deprecated">
  45482. </method>
  45483. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45484. abstract="false" native="false" synchronized="false"
  45485. static="true" final="false" visibility="public"
  45486. deprecated="not deprecated">
  45487. <param name="name" type="java.lang.String"/>
  45488. </method>
  45489. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45490. transient="false" volatile="false"
  45491. static="true" final="true" visibility="public"
  45492. deprecated="not deprecated">
  45493. </field>
  45494. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45495. transient="false" volatile="false"
  45496. static="true" final="true" visibility="public"
  45497. deprecated="not deprecated">
  45498. </field>
  45499. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45500. transient="false" volatile="false"
  45501. static="true" final="true" visibility="public"
  45502. deprecated="not deprecated">
  45503. </field>
  45504. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45505. transient="false" volatile="false"
  45506. static="true" final="true" visibility="public"
  45507. deprecated="not deprecated">
  45508. </field>
  45509. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  45510. transient="false" volatile="false"
  45511. static="true" final="true" visibility="public"
  45512. deprecated="not deprecated">
  45513. </field>
  45514. </class>
  45515. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  45516. <!-- start class org.apache.hadoop.mapred.JobConf -->
  45517. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  45518. abstract="false"
  45519. static="false" final="false" visibility="public"
  45520. deprecated="not deprecated">
  45521. <constructor name="JobConf"
  45522. static="false" final="false" visibility="public"
  45523. deprecated="not deprecated">
  45524. <doc>
  45525. <![CDATA[Construct a map/reduce job configuration.]]>
  45526. </doc>
  45527. </constructor>
  45528. <constructor name="JobConf" type="java.lang.Class"
  45529. static="false" final="false" visibility="public"
  45530. deprecated="not deprecated">
  45531. <doc>
  45532. <![CDATA[Construct a map/reduce job configuration.
  45533. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  45534. </doc>
  45535. </constructor>
  45536. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  45537. static="false" final="false" visibility="public"
  45538. deprecated="not deprecated">
  45539. <doc>
  45540. <![CDATA[Construct a map/reduce job configuration.
  45541. @param conf a Configuration whose settings will be inherited.]]>
  45542. </doc>
  45543. </constructor>
  45544. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  45545. static="false" final="false" visibility="public"
  45546. deprecated="not deprecated">
  45547. <doc>
  45548. <![CDATA[Construct a map/reduce job configuration.
  45549. @param conf a Configuration whose settings will be inherited.
  45550. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  45551. </doc>
  45552. </constructor>
  45553. <constructor name="JobConf" type="java.lang.String"
  45554. static="false" final="false" visibility="public"
  45555. deprecated="not deprecated">
  45556. <doc>
  45557. <![CDATA[Construct a map/reduce configuration.
  45558. @param config a Configuration-format XML job description file.]]>
  45559. </doc>
  45560. </constructor>
  45561. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  45562. static="false" final="false" visibility="public"
  45563. deprecated="not deprecated">
  45564. <doc>
  45565. <![CDATA[Construct a map/reduce configuration.
  45566. @param config a Configuration-format XML job description file.]]>
  45567. </doc>
  45568. </constructor>
  45569. <constructor name="JobConf" type="boolean"
  45570. static="false" final="false" visibility="public"
  45571. deprecated="not deprecated">
  45572. <doc>
  45573. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  45574. default resources can be turned off.
  45575. <p/>
  45576. If the parameter {@code loadDefaults} is false, the new instance
  45577. will not load resources from the default files.
  45578. @param loadDefaults specifies whether to load from the default files]]>
  45579. </doc>
  45580. </constructor>
  45581. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  45582. abstract="false" native="false" synchronized="false"
  45583. static="false" final="false" visibility="public"
  45584. deprecated="not deprecated">
  45585. <doc>
  45586. <![CDATA[Get credentials for the job.
  45587. @return credentials for the job]]>
  45588. </doc>
  45589. </method>
  45590. <method name="getJar" return="java.lang.String"
  45591. abstract="false" native="false" synchronized="false"
  45592. static="false" final="false" visibility="public"
  45593. deprecated="not deprecated">
  45594. <doc>
  45595. <![CDATA[Get the user jar for the map-reduce job.
  45596. @return the user jar for the map-reduce job.]]>
  45597. </doc>
  45598. </method>
  45599. <method name="setJar"
  45600. abstract="false" native="false" synchronized="false"
  45601. static="false" final="false" visibility="public"
  45602. deprecated="not deprecated">
  45603. <param name="jar" type="java.lang.String"/>
  45604. <doc>
  45605. <![CDATA[Set the user jar for the map-reduce job.
  45606. @param jar the user jar for the map-reduce job.]]>
  45607. </doc>
  45608. </method>
  45609. <method name="setJarByClass"
  45610. abstract="false" native="false" synchronized="false"
  45611. static="false" final="false" visibility="public"
  45612. deprecated="not deprecated">
  45613. <param name="cls" type="java.lang.Class"/>
  45614. <doc>
  45615. <![CDATA[Set the job's jar file by finding an example class location.
  45616. @param cls the example class.]]>
  45617. </doc>
  45618. </method>
  45619. <method name="getLocalDirs" return="java.lang.String[]"
  45620. abstract="false" native="false" synchronized="false"
  45621. static="false" final="false" visibility="public"
  45622. deprecated="not deprecated">
  45623. <exception name="IOException" type="java.io.IOException"/>
  45624. </method>
  45625. <method name="deleteLocalFiles"
  45626. abstract="false" native="false" synchronized="false"
  45627. static="false" final="false" visibility="public"
  45628. deprecated="not deprecated">
  45629. <exception name="IOException" type="java.io.IOException"/>
  45630. </method>
  45631. <method name="deleteLocalFiles"
  45632. abstract="false" native="false" synchronized="false"
  45633. static="false" final="false" visibility="public"
  45634. deprecated="not deprecated">
  45635. <param name="subdir" type="java.lang.String"/>
  45636. <exception name="IOException" type="java.io.IOException"/>
  45637. </method>
  45638. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  45639. abstract="false" native="false" synchronized="false"
  45640. static="false" final="false" visibility="public"
  45641. deprecated="not deprecated">
  45642. <param name="pathString" type="java.lang.String"/>
  45643. <exception name="IOException" type="java.io.IOException"/>
  45644. <doc>
  45645. <![CDATA[Constructs a local file name. Files are distributed among configured
  45646. local directories.]]>
  45647. </doc>
  45648. </method>
  45649. <method name="getUser" return="java.lang.String"
  45650. abstract="false" native="false" synchronized="false"
  45651. static="false" final="false" visibility="public"
  45652. deprecated="not deprecated">
  45653. <doc>
  45654. <![CDATA[Get the reported username for this job.
  45655. @return the username]]>
  45656. </doc>
  45657. </method>
  45658. <method name="setUser"
  45659. abstract="false" native="false" synchronized="false"
  45660. static="false" final="false" visibility="public"
  45661. deprecated="not deprecated">
  45662. <param name="user" type="java.lang.String"/>
  45663. <doc>
  45664. <![CDATA[Set the reported username for this job.
  45665. @param user the username for this job.]]>
  45666. </doc>
  45667. </method>
  45668. <method name="setKeepFailedTaskFiles"
  45669. abstract="false" native="false" synchronized="false"
  45670. static="false" final="false" visibility="public"
  45671. deprecated="not deprecated">
  45672. <param name="keep" type="boolean"/>
  45673. <doc>
  45674. <![CDATA[Set whether the framework should keep the intermediate files for
  45675. failed tasks.
  45676. @param keep <code>true</code> if framework should keep the intermediate files
  45677. for failed tasks, <code>false</code> otherwise.]]>
  45678. </doc>
  45679. </method>
  45680. <method name="getKeepFailedTaskFiles" return="boolean"
  45681. abstract="false" native="false" synchronized="false"
  45682. static="false" final="false" visibility="public"
  45683. deprecated="not deprecated">
  45684. <doc>
  45685. <![CDATA[Should the temporary files for failed tasks be kept?
  45686. @return should the files be kept?]]>
  45687. </doc>
  45688. </method>
  45689. <method name="setKeepTaskFilesPattern"
  45690. abstract="false" native="false" synchronized="false"
  45691. static="false" final="false" visibility="public"
  45692. deprecated="not deprecated">
  45693. <param name="pattern" type="java.lang.String"/>
  45694. <doc>
  45695. <![CDATA[Set a regular expression for task names that should be kept.
  45696. The regular expression ".*_m_000123_0" would keep the files
  45697. for the first instance of map 123 that ran.
  45698. @param pattern the java.util.regex.Pattern to match against the
  45699. task names.]]>
  45700. </doc>
  45701. </method>
  45702. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  45703. abstract="false" native="false" synchronized="false"
  45704. static="false" final="false" visibility="public"
  45705. deprecated="not deprecated">
  45706. <doc>
  45707. <![CDATA[Get the regular expression that is matched against the task names
  45708. to see if we need to keep the files.
  45709. @return the pattern as a string, if it was set, othewise null.]]>
  45710. </doc>
  45711. </method>
  45712. <method name="setWorkingDirectory"
  45713. abstract="false" native="false" synchronized="false"
  45714. static="false" final="false" visibility="public"
  45715. deprecated="not deprecated">
  45716. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  45717. <doc>
  45718. <![CDATA[Set the current working directory for the default file system.
  45719. @param dir the new current working directory.]]>
  45720. </doc>
  45721. </method>
  45722. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  45723. abstract="false" native="false" synchronized="false"
  45724. static="false" final="false" visibility="public"
  45725. deprecated="not deprecated">
  45726. <doc>
  45727. <![CDATA[Get the current working directory for the default file system.
  45728. @return the directory name.]]>
  45729. </doc>
  45730. </method>
  45731. <method name="setNumTasksToExecutePerJvm"
  45732. abstract="false" native="false" synchronized="false"
  45733. static="false" final="false" visibility="public"
  45734. deprecated="not deprecated">
  45735. <param name="numTasks" type="int"/>
  45736. <doc>
  45737. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  45738. before it exits
  45739. @param numTasks the number of tasks to execute; defaults to 1;
  45740. -1 signifies no limit]]>
  45741. </doc>
  45742. </method>
  45743. <method name="getNumTasksToExecutePerJvm" return="int"
  45744. abstract="false" native="false" synchronized="false"
  45745. static="false" final="false" visibility="public"
  45746. deprecated="not deprecated">
  45747. <doc>
  45748. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  45749. </doc>
  45750. </method>
  45751. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  45752. abstract="false" native="false" synchronized="false"
  45753. static="false" final="false" visibility="public"
  45754. deprecated="not deprecated">
  45755. <doc>
  45756. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  45757. defaults to {@link TextInputFormat} if not specified explicity.
  45758. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  45759. </doc>
  45760. </method>
  45761. <method name="setInputFormat"
  45762. abstract="false" native="false" synchronized="false"
  45763. static="false" final="false" visibility="public"
  45764. deprecated="not deprecated">
  45765. <param name="theClass" type="java.lang.Class"/>
  45766. <doc>
  45767. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  45768. @param theClass the {@link InputFormat} implementation for the map-reduce
  45769. job.]]>
  45770. </doc>
  45771. </method>
  45772. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  45773. abstract="false" native="false" synchronized="false"
  45774. static="false" final="false" visibility="public"
  45775. deprecated="not deprecated">
  45776. <doc>
  45777. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  45778. defaults to {@link TextOutputFormat} if not specified explicity.
  45779. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  45780. </doc>
  45781. </method>
  45782. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  45783. abstract="false" native="false" synchronized="false"
  45784. static="false" final="false" visibility="public"
  45785. deprecated="not deprecated">
  45786. <doc>
  45787. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  45788. defaults to {@link FileOutputCommitter} if not specified explicitly.
  45789. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  45790. </doc>
  45791. </method>
  45792. <method name="setOutputCommitter"
  45793. abstract="false" native="false" synchronized="false"
  45794. static="false" final="false" visibility="public"
  45795. deprecated="not deprecated">
  45796. <param name="theClass" type="java.lang.Class"/>
  45797. <doc>
  45798. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  45799. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  45800. job.]]>
  45801. </doc>
  45802. </method>
  45803. <method name="setOutputFormat"
  45804. abstract="false" native="false" synchronized="false"
  45805. static="false" final="false" visibility="public"
  45806. deprecated="not deprecated">
  45807. <param name="theClass" type="java.lang.Class"/>
  45808. <doc>
  45809. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  45810. @param theClass the {@link OutputFormat} implementation for the map-reduce
  45811. job.]]>
  45812. </doc>
  45813. </method>
  45814. <method name="setCompressMapOutput"
  45815. abstract="false" native="false" synchronized="false"
  45816. static="false" final="false" visibility="public"
  45817. deprecated="not deprecated">
  45818. <param name="compress" type="boolean"/>
  45819. <doc>
  45820. <![CDATA[Should the map outputs be compressed before transfer?
  45821. Uses the SequenceFile compression.
  45822. @param compress should the map outputs be compressed?]]>
  45823. </doc>
  45824. </method>
  45825. <method name="getCompressMapOutput" return="boolean"
  45826. abstract="false" native="false" synchronized="false"
  45827. static="false" final="false" visibility="public"
  45828. deprecated="not deprecated">
  45829. <doc>
  45830. <![CDATA[Are the outputs of the maps be compressed?
  45831. @return <code>true</code> if the outputs of the maps are to be compressed,
  45832. <code>false</code> otherwise.]]>
  45833. </doc>
  45834. </method>
  45835. <method name="setMapOutputCompressorClass"
  45836. abstract="false" native="false" synchronized="false"
  45837. static="false" final="false" visibility="public"
  45838. deprecated="not deprecated">
  45839. <param name="codecClass" type="java.lang.Class"/>
  45840. <doc>
  45841. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  45842. @param codecClass the {@link CompressionCodec} class that will compress
  45843. the map outputs.]]>
  45844. </doc>
  45845. </method>
  45846. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  45847. abstract="false" native="false" synchronized="false"
  45848. static="false" final="false" visibility="public"
  45849. deprecated="not deprecated">
  45850. <param name="defaultValue" type="java.lang.Class"/>
  45851. <doc>
  45852. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  45853. @param defaultValue the {@link CompressionCodec} to return if not set
  45854. @return the {@link CompressionCodec} class that should be used to compress the
  45855. map outputs.
  45856. @throws IllegalArgumentException if the class was specified, but not found]]>
  45857. </doc>
  45858. </method>
  45859. <method name="getMapOutputKeyClass" return="java.lang.Class"
  45860. abstract="false" native="false" synchronized="false"
  45861. static="false" final="false" visibility="public"
  45862. deprecated="not deprecated">
  45863. <doc>
  45864. <![CDATA[Get the key class for the map output data. If it is not set, use the
  45865. (final) output key class. This allows the map output key class to be
  45866. different than the final output key class.
  45867. @return the map output key class.]]>
  45868. </doc>
  45869. </method>
  45870. <method name="setMapOutputKeyClass"
  45871. abstract="false" native="false" synchronized="false"
  45872. static="false" final="false" visibility="public"
  45873. deprecated="not deprecated">
  45874. <param name="theClass" type="java.lang.Class"/>
  45875. <doc>
  45876. <![CDATA[Set the key class for the map output data. This allows the user to
  45877. specify the map output key class to be different than the final output
  45878. value class.
  45879. @param theClass the map output key class.]]>
  45880. </doc>
  45881. </method>
  45882. <method name="getMapOutputValueClass" return="java.lang.Class"
  45883. abstract="false" native="false" synchronized="false"
  45884. static="false" final="false" visibility="public"
  45885. deprecated="not deprecated">
  45886. <doc>
  45887. <![CDATA[Get the value class for the map output data. If it is not set, use the
  45888. (final) output value class This allows the map output value class to be
  45889. different than the final output value class.
  45890. @return the map output value class.]]>
  45891. </doc>
  45892. </method>
  45893. <method name="setMapOutputValueClass"
  45894. abstract="false" native="false" synchronized="false"
  45895. static="false" final="false" visibility="public"
  45896. deprecated="not deprecated">
  45897. <param name="theClass" type="java.lang.Class"/>
  45898. <doc>
  45899. <![CDATA[Set the value class for the map output data. This allows the user to
  45900. specify the map output value class to be different than the final output
  45901. value class.
  45902. @param theClass the map output value class.]]>
  45903. </doc>
  45904. </method>
  45905. <method name="getOutputKeyClass" return="java.lang.Class"
  45906. abstract="false" native="false" synchronized="false"
  45907. static="false" final="false" visibility="public"
  45908. deprecated="not deprecated">
  45909. <doc>
  45910. <![CDATA[Get the key class for the job output data.
  45911. @return the key class for the job output data.]]>
  45912. </doc>
  45913. </method>
  45914. <method name="setOutputKeyClass"
  45915. abstract="false" native="false" synchronized="false"
  45916. static="false" final="false" visibility="public"
  45917. deprecated="not deprecated">
  45918. <param name="theClass" type="java.lang.Class"/>
  45919. <doc>
  45920. <![CDATA[Set the key class for the job output data.
  45921. @param theClass the key class for the job output data.]]>
  45922. </doc>
  45923. </method>
  45924. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  45925. abstract="false" native="false" synchronized="false"
  45926. static="false" final="false" visibility="public"
  45927. deprecated="not deprecated">
  45928. <doc>
  45929. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  45930. @return the {@link RawComparator} comparator used to compare keys.]]>
  45931. </doc>
  45932. </method>
  45933. <method name="setOutputKeyComparatorClass"
  45934. abstract="false" native="false" synchronized="false"
  45935. static="false" final="false" visibility="public"
  45936. deprecated="not deprecated">
  45937. <param name="theClass" type="java.lang.Class"/>
  45938. <doc>
  45939. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  45940. @param theClass the {@link RawComparator} comparator used to
  45941. compare keys.
  45942. @see #setOutputValueGroupingComparator(Class)]]>
  45943. </doc>
  45944. </method>
  45945. <method name="setKeyFieldComparatorOptions"
  45946. abstract="false" native="false" synchronized="false"
  45947. static="false" final="false" visibility="public"
  45948. deprecated="not deprecated">
  45949. <param name="keySpec" type="java.lang.String"/>
  45950. <doc>
  45951. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  45952. @param keySpec the key specification of the form -k pos1[,pos2], where,
  45953. pos is of the form f[.c][opts], where f is the number
  45954. of the key field to use, and c is the number of the first character from
  45955. the beginning of the field. Fields and character posns are numbered
  45956. starting with 1; a character position of zero in pos2 indicates the
  45957. field's last character. If '.c' is omitted from pos1, it defaults to 1
  45958. (the beginning of the field); if omitted from pos2, it defaults to 0
  45959. (the end of the field). opts are ordering options. The supported options
  45960. are:
  45961. -n, (Sort numerically)
  45962. -r, (Reverse the result of comparison)]]>
  45963. </doc>
  45964. </method>
  45965. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  45966. abstract="false" native="false" synchronized="false"
  45967. static="false" final="false" visibility="public"
  45968. deprecated="not deprecated">
  45969. <doc>
  45970. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  45971. </doc>
  45972. </method>
  45973. <method name="setKeyFieldPartitionerOptions"
  45974. abstract="false" native="false" synchronized="false"
  45975. static="false" final="false" visibility="public"
  45976. deprecated="not deprecated">
  45977. <param name="keySpec" type="java.lang.String"/>
  45978. <doc>
  45979. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  45980. {@link Partitioner}
  45981. @param keySpec the key specification of the form -k pos1[,pos2], where,
  45982. pos is of the form f[.c][opts], where f is the number
  45983. of the key field to use, and c is the number of the first character from
  45984. the beginning of the field. Fields and character posns are numbered
  45985. starting with 1; a character position of zero in pos2 indicates the
  45986. field's last character. If '.c' is omitted from pos1, it defaults to 1
  45987. (the beginning of the field); if omitted from pos2, it defaults to 0
  45988. (the end of the field).]]>
  45989. </doc>
  45990. </method>
  45991. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  45992. abstract="false" native="false" synchronized="false"
  45993. static="false" final="false" visibility="public"
  45994. deprecated="not deprecated">
  45995. <doc>
  45996. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  45997. </doc>
  45998. </method>
  45999. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  46000. abstract="false" native="false" synchronized="false"
  46001. static="false" final="false" visibility="public"
  46002. deprecated="not deprecated">
  46003. <doc>
  46004. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  46005. grouping keys of inputs to the reduce.
  46006. @return comparator set by the user for grouping values.
  46007. @see #setOutputValueGroupingComparator(Class) for details.]]>
  46008. </doc>
  46009. </method>
  46010. <method name="setOutputValueGroupingComparator"
  46011. abstract="false" native="false" synchronized="false"
  46012. static="false" final="false" visibility="public"
  46013. deprecated="not deprecated">
  46014. <param name="theClass" type="java.lang.Class"/>
  46015. <doc>
  46016. <![CDATA[Set the user defined {@link RawComparator} comparator for
  46017. grouping keys in the input to the reduce.
  46018. <p>This comparator should be provided if the equivalence rules for keys
  46019. for sorting the intermediates are different from those for grouping keys
  46020. before each call to
  46021. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  46022. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  46023. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  46024. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  46025. how keys are sorted, this can be used in conjunction to simulate
  46026. <i>secondary sort on values</i>.</p>
  46027. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  46028. <i>stable</i> in any sense. (In any case, with the order of available
  46029. map-outputs to the reduce being non-deterministic, it wouldn't make
  46030. that much sense.)</p>
  46031. @param theClass the comparator class to be used for grouping keys.
  46032. It should implement <code>RawComparator</code>.
  46033. @see #setOutputKeyComparatorClass(Class)]]>
  46034. </doc>
  46035. </method>
  46036. <method name="getUseNewMapper" return="boolean"
  46037. abstract="false" native="false" synchronized="false"
  46038. static="false" final="false" visibility="public"
  46039. deprecated="not deprecated">
  46040. <doc>
  46041. <![CDATA[Should the framework use the new context-object code for running
  46042. the mapper?
  46043. @return true, if the new api should be used]]>
  46044. </doc>
  46045. </method>
  46046. <method name="setUseNewMapper"
  46047. abstract="false" native="false" synchronized="false"
  46048. static="false" final="false" visibility="public"
  46049. deprecated="not deprecated">
  46050. <param name="flag" type="boolean"/>
  46051. <doc>
  46052. <![CDATA[Set whether the framework should use the new api for the mapper.
  46053. This is the default for jobs submitted with the new Job api.
  46054. @param flag true, if the new api should be used]]>
  46055. </doc>
  46056. </method>
  46057. <method name="getUseNewReducer" return="boolean"
  46058. abstract="false" native="false" synchronized="false"
  46059. static="false" final="false" visibility="public"
  46060. deprecated="not deprecated">
  46061. <doc>
  46062. <![CDATA[Should the framework use the new context-object code for running
  46063. the reducer?
  46064. @return true, if the new api should be used]]>
  46065. </doc>
  46066. </method>
  46067. <method name="setUseNewReducer"
  46068. abstract="false" native="false" synchronized="false"
  46069. static="false" final="false" visibility="public"
  46070. deprecated="not deprecated">
  46071. <param name="flag" type="boolean"/>
  46072. <doc>
  46073. <![CDATA[Set whether the framework should use the new api for the reducer.
  46074. This is the default for jobs submitted with the new Job api.
  46075. @param flag true, if the new api should be used]]>
  46076. </doc>
  46077. </method>
  46078. <method name="getOutputValueClass" return="java.lang.Class"
  46079. abstract="false" native="false" synchronized="false"
  46080. static="false" final="false" visibility="public"
  46081. deprecated="not deprecated">
  46082. <doc>
  46083. <![CDATA[Get the value class for job outputs.
  46084. @return the value class for job outputs.]]>
  46085. </doc>
  46086. </method>
  46087. <method name="setOutputValueClass"
  46088. abstract="false" native="false" synchronized="false"
  46089. static="false" final="false" visibility="public"
  46090. deprecated="not deprecated">
  46091. <param name="theClass" type="java.lang.Class"/>
  46092. <doc>
  46093. <![CDATA[Set the value class for job outputs.
  46094. @param theClass the value class for job outputs.]]>
  46095. </doc>
  46096. </method>
  46097. <method name="getMapperClass" return="java.lang.Class"
  46098. abstract="false" native="false" synchronized="false"
  46099. static="false" final="false" visibility="public"
  46100. deprecated="not deprecated">
  46101. <doc>
  46102. <![CDATA[Get the {@link Mapper} class for the job.
  46103. @return the {@link Mapper} class for the job.]]>
  46104. </doc>
  46105. </method>
  46106. <method name="setMapperClass"
  46107. abstract="false" native="false" synchronized="false"
  46108. static="false" final="false" visibility="public"
  46109. deprecated="not deprecated">
  46110. <param name="theClass" type="java.lang.Class"/>
  46111. <doc>
  46112. <![CDATA[Set the {@link Mapper} class for the job.
  46113. @param theClass the {@link Mapper} class for the job.]]>
  46114. </doc>
  46115. </method>
  46116. <method name="getMapRunnerClass" return="java.lang.Class"
  46117. abstract="false" native="false" synchronized="false"
  46118. static="false" final="false" visibility="public"
  46119. deprecated="not deprecated">
  46120. <doc>
  46121. <![CDATA[Get the {@link MapRunnable} class for the job.
  46122. @return the {@link MapRunnable} class for the job.]]>
  46123. </doc>
  46124. </method>
  46125. <method name="setMapRunnerClass"
  46126. abstract="false" native="false" synchronized="false"
  46127. static="false" final="false" visibility="public"
  46128. deprecated="not deprecated">
  46129. <param name="theClass" type="java.lang.Class"/>
  46130. <doc>
  46131. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  46132. Typically used to exert greater control on {@link Mapper}s.
  46133. @param theClass the {@link MapRunnable} class for the job.]]>
  46134. </doc>
  46135. </method>
  46136. <method name="getPartitionerClass" return="java.lang.Class"
  46137. abstract="false" native="false" synchronized="false"
  46138. static="false" final="false" visibility="public"
  46139. deprecated="not deprecated">
  46140. <doc>
  46141. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  46142. to be sent to the {@link Reducer}s.
  46143. @return the {@link Partitioner} used to partition map-outputs.]]>
  46144. </doc>
  46145. </method>
  46146. <method name="setPartitionerClass"
  46147. abstract="false" native="false" synchronized="false"
  46148. static="false" final="false" visibility="public"
  46149. deprecated="not deprecated">
  46150. <param name="theClass" type="java.lang.Class"/>
  46151. <doc>
  46152. <![CDATA[Set the {@link Partitioner} class used to partition
  46153. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  46154. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  46155. </doc>
  46156. </method>
  46157. <method name="getReducerClass" return="java.lang.Class"
  46158. abstract="false" native="false" synchronized="false"
  46159. static="false" final="false" visibility="public"
  46160. deprecated="not deprecated">
  46161. <doc>
  46162. <![CDATA[Get the {@link Reducer} class for the job.
  46163. @return the {@link Reducer} class for the job.]]>
  46164. </doc>
  46165. </method>
  46166. <method name="setReducerClass"
  46167. abstract="false" native="false" synchronized="false"
  46168. static="false" final="false" visibility="public"
  46169. deprecated="not deprecated">
  46170. <param name="theClass" type="java.lang.Class"/>
  46171. <doc>
  46172. <![CDATA[Set the {@link Reducer} class for the job.
  46173. @param theClass the {@link Reducer} class for the job.]]>
  46174. </doc>
  46175. </method>
  46176. <method name="getCombinerClass" return="java.lang.Class"
  46177. abstract="false" native="false" synchronized="false"
  46178. static="false" final="false" visibility="public"
  46179. deprecated="not deprecated">
  46180. <doc>
  46181. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  46182. before being sent to the reducers. Typically the combiner is same as the
  46183. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  46184. @return the user-defined combiner class used to combine map-outputs.]]>
  46185. </doc>
  46186. </method>
  46187. <method name="setCombinerClass"
  46188. abstract="false" native="false" synchronized="false"
  46189. static="false" final="false" visibility="public"
  46190. deprecated="not deprecated">
  46191. <param name="theClass" type="java.lang.Class"/>
  46192. <doc>
  46193. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  46194. before being sent to the reducers.
  46195. <p>The combiner is an application-specified aggregation operation, which
  46196. can help cut down the amount of data transferred between the
  46197. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  46198. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  46199. the mapper and reducer tasks. In general, the combiner is called as the
  46200. sort/merge result is written to disk. The combiner must:
  46201. <ul>
  46202. <li> be side-effect free</li>
  46203. <li> have the same input and output key types and the same input and
  46204. output value types</li>
  46205. </ul></p>
  46206. <p>Typically the combiner is same as the <code>Reducer</code> for the
  46207. job i.e. {@link #setReducerClass(Class)}.</p>
  46208. @param theClass the user-defined combiner class used to combine
  46209. map-outputs.]]>
  46210. </doc>
  46211. </method>
  46212. <method name="getSpeculativeExecution" return="boolean"
  46213. abstract="false" native="false" synchronized="false"
  46214. static="false" final="false" visibility="public"
  46215. deprecated="not deprecated">
  46216. <doc>
  46217. <![CDATA[Should speculative execution be used for this job?
  46218. Defaults to <code>true</code>.
  46219. @return <code>true</code> if speculative execution be used for this job,
  46220. <code>false</code> otherwise.]]>
  46221. </doc>
  46222. </method>
  46223. <method name="setSpeculativeExecution"
  46224. abstract="false" native="false" synchronized="false"
  46225. static="false" final="false" visibility="public"
  46226. deprecated="not deprecated">
  46227. <param name="speculativeExecution" type="boolean"/>
  46228. <doc>
  46229. <![CDATA[Turn speculative execution on or off for this job.
  46230. @param speculativeExecution <code>true</code> if speculative execution
  46231. should be turned on, else <code>false</code>.]]>
  46232. </doc>
  46233. </method>
  46234. <method name="getMapSpeculativeExecution" return="boolean"
  46235. abstract="false" native="false" synchronized="false"
  46236. static="false" final="false" visibility="public"
  46237. deprecated="not deprecated">
  46238. <doc>
  46239. <![CDATA[Should speculative execution be used for this job for map tasks?
  46240. Defaults to <code>true</code>.
  46241. @return <code>true</code> if speculative execution be
  46242. used for this job for map tasks,
  46243. <code>false</code> otherwise.]]>
  46244. </doc>
  46245. </method>
  46246. <method name="setMapSpeculativeExecution"
  46247. abstract="false" native="false" synchronized="false"
  46248. static="false" final="false" visibility="public"
  46249. deprecated="not deprecated">
  46250. <param name="speculativeExecution" type="boolean"/>
  46251. <doc>
  46252. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  46253. @param speculativeExecution <code>true</code> if speculative execution
  46254. should be turned on for map tasks,
  46255. else <code>false</code>.]]>
  46256. </doc>
  46257. </method>
  46258. <method name="getReduceSpeculativeExecution" return="boolean"
  46259. abstract="false" native="false" synchronized="false"
  46260. static="false" final="false" visibility="public"
  46261. deprecated="not deprecated">
  46262. <doc>
  46263. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  46264. Defaults to <code>true</code>.
  46265. @return <code>true</code> if speculative execution be used
  46266. for reduce tasks for this job,
  46267. <code>false</code> otherwise.]]>
  46268. </doc>
  46269. </method>
  46270. <method name="setReduceSpeculativeExecution"
  46271. abstract="false" native="false" synchronized="false"
  46272. static="false" final="false" visibility="public"
  46273. deprecated="not deprecated">
  46274. <param name="speculativeExecution" type="boolean"/>
  46275. <doc>
  46276. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  46277. @param speculativeExecution <code>true</code> if speculative execution
  46278. should be turned on for reduce tasks,
  46279. else <code>false</code>.]]>
  46280. </doc>
  46281. </method>
  46282. <method name="getNumMapTasks" return="int"
  46283. abstract="false" native="false" synchronized="false"
  46284. static="false" final="false" visibility="public"
  46285. deprecated="not deprecated">
  46286. <doc>
  46287. <![CDATA[Get configured the number of reduce tasks for this job.
  46288. Defaults to <code>1</code>.
  46289. @return the number of reduce tasks for this job.]]>
  46290. </doc>
  46291. </method>
  46292. <method name="setNumMapTasks"
  46293. abstract="false" native="false" synchronized="false"
  46294. static="false" final="false" visibility="public"
  46295. deprecated="not deprecated">
  46296. <param name="n" type="int"/>
  46297. <doc>
  46298. <![CDATA[Set the number of map tasks for this job.
  46299. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  46300. number of spawned map tasks depends on the number of {@link InputSplit}s
  46301. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  46302. A custom {@link InputFormat} is typically used to accurately control
  46303. the number of map tasks for the job.</p>
  46304. <h4 id="NoOfMaps">How many maps?</h4>
  46305. <p>The number of maps is usually driven by the total size of the inputs
  46306. i.e. total number of blocks of the input files.</p>
  46307. <p>The right level of parallelism for maps seems to be around 10-100 maps
  46308. per-node, although it has been set up to 300 or so for very cpu-light map
  46309. tasks. Task setup takes awhile, so it is best if the maps take at least a
  46310. minute to execute.</p>
  46311. <p>The default behavior of file-based {@link InputFormat}s is to split the
  46312. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  46313. bytes, of input files. However, the {@link FileSystem} blocksize of the
  46314. input files is treated as an upper bound for input splits. A lower bound
  46315. on the split size can be set via
  46316. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  46317. mapred.min.split.size</a>.</p>
  46318. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  46319. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  46320. used to set it even higher.</p>
  46321. @param n the number of map tasks for this job.
  46322. @see InputFormat#getSplits(JobConf, int)
  46323. @see FileInputFormat
  46324. @see FileSystem#getDefaultBlockSize()
  46325. @see FileStatus#getBlockSize()]]>
  46326. </doc>
  46327. </method>
  46328. <method name="getNumReduceTasks" return="int"
  46329. abstract="false" native="false" synchronized="false"
  46330. static="false" final="false" visibility="public"
  46331. deprecated="not deprecated">
  46332. <doc>
  46333. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  46334. <code>1</code>.
  46335. @return the number of reduce tasks for this job.]]>
  46336. </doc>
  46337. </method>
  46338. <method name="setNumReduceTasks"
  46339. abstract="false" native="false" synchronized="false"
  46340. static="false" final="false" visibility="public"
  46341. deprecated="not deprecated">
  46342. <param name="n" type="int"/>
  46343. <doc>
  46344. <![CDATA[Set the requisite number of reduce tasks for this job.
  46345. <h4 id="NoOfReduces">How many reduces?</h4>
  46346. <p>The right number of reduces seems to be <code>0.95</code> or
  46347. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  46348. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  46349. mapred.tasktracker.reduce.tasks.maximum</a>).
  46350. </p>
  46351. <p>With <code>0.95</code> all of the reduces can launch immediately and
  46352. start transfering map outputs as the maps finish. With <code>1.75</code>
  46353. the faster nodes will finish their first round of reduces and launch a
  46354. second wave of reduces doing a much better job of load balancing.</p>
  46355. <p>Increasing the number of reduces increases the framework overhead, but
  46356. increases load balancing and lowers the cost of failures.</p>
  46357. <p>The scaling factors above are slightly less than whole numbers to
  46358. reserve a few reduce slots in the framework for speculative-tasks, failures
  46359. etc.</p>
  46360. <h4 id="ReducerNone">Reducer NONE</h4>
  46361. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  46362. <p>In this case the output of the map-tasks directly go to distributed
  46363. file-system, to the path set by
  46364. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  46365. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  46366. @param n the number of reduce tasks for this job.]]>
  46367. </doc>
  46368. </method>
  46369. <method name="getMaxMapAttempts" return="int"
  46370. abstract="false" native="false" synchronized="false"
  46371. static="false" final="false" visibility="public"
  46372. deprecated="not deprecated">
  46373. <doc>
  46374. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  46375. map task, as specified by the <code>mapred.map.max.attempts</code>
  46376. property. If this property is not already set, the default is 4 attempts.
  46377. @return the max number of attempts per map task.]]>
  46378. </doc>
  46379. </method>
  46380. <method name="setMaxMapAttempts"
  46381. abstract="false" native="false" synchronized="false"
  46382. static="false" final="false" visibility="public"
  46383. deprecated="not deprecated">
  46384. <param name="n" type="int"/>
  46385. <doc>
  46386. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  46387. map task.
  46388. @param n the number of attempts per map task.]]>
  46389. </doc>
  46390. </method>
  46391. <method name="getMaxReduceAttempts" return="int"
  46392. abstract="false" native="false" synchronized="false"
  46393. static="false" final="false" visibility="public"
  46394. deprecated="not deprecated">
  46395. <doc>
  46396. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  46397. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  46398. property. If this property is not already set, the default is 4 attempts.
  46399. @return the max number of attempts per reduce task.]]>
  46400. </doc>
  46401. </method>
  46402. <method name="setMaxReduceAttempts"
  46403. abstract="false" native="false" synchronized="false"
  46404. static="false" final="false" visibility="public"
  46405. deprecated="not deprecated">
  46406. <param name="n" type="int"/>
  46407. <doc>
  46408. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  46409. reduce task.
  46410. @param n the number of attempts per reduce task.]]>
  46411. </doc>
  46412. </method>
  46413. <method name="getJobName" return="java.lang.String"
  46414. abstract="false" native="false" synchronized="false"
  46415. static="false" final="false" visibility="public"
  46416. deprecated="not deprecated">
  46417. <doc>
  46418. <![CDATA[Get the user-specified job name. This is only used to identify the
  46419. job to the user.
  46420. @return the job's name, defaulting to "".]]>
  46421. </doc>
  46422. </method>
  46423. <method name="setJobName"
  46424. abstract="false" native="false" synchronized="false"
  46425. static="false" final="false" visibility="public"
  46426. deprecated="not deprecated">
  46427. <param name="name" type="java.lang.String"/>
  46428. <doc>
  46429. <![CDATA[Set the user-specified job name.
  46430. @param name the job's new name.]]>
  46431. </doc>
  46432. </method>
  46433. <method name="getSessionId" return="java.lang.String"
  46434. abstract="false" native="false" synchronized="false"
  46435. static="false" final="false" visibility="public"
  46436. deprecated="not deprecated">
  46437. <doc>
  46438. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  46439. The session identifier is used to tag metric data that is reported to some
  46440. performance metrics system via the org.apache.hadoop.metrics API. The
  46441. session identifier is intended, in particular, for use by Hadoop-On-Demand
  46442. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  46443. HOD will set the session identifier by modifying the mapred-site.xml file
  46444. before starting the cluster.
  46445. When not running under HOD, this identifer is expected to remain set to
  46446. the empty string.
  46447. @return the session identifier, defaulting to "".]]>
  46448. </doc>
  46449. </method>
  46450. <method name="setSessionId"
  46451. abstract="false" native="false" synchronized="false"
  46452. static="false" final="false" visibility="public"
  46453. deprecated="not deprecated">
  46454. <param name="sessionId" type="java.lang.String"/>
  46455. <doc>
  46456. <![CDATA[Set the user-specified session identifier.
  46457. @param sessionId the new session id.]]>
  46458. </doc>
  46459. </method>
  46460. <method name="setMaxTaskFailuresPerTracker"
  46461. abstract="false" native="false" synchronized="false"
  46462. static="false" final="false" visibility="public"
  46463. deprecated="not deprecated">
  46464. <param name="noFailures" type="int"/>
  46465. <doc>
  46466. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  46467. If the no. of task failures exceeds <code>noFailures</code>, the
  46468. tasktracker is <i>blacklisted</i> for this job.
  46469. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  46470. </doc>
  46471. </method>
  46472. <method name="getMaxTaskFailuresPerTracker" return="int"
  46473. abstract="false" native="false" synchronized="false"
  46474. static="false" final="false" visibility="public"
  46475. deprecated="not deprecated">
  46476. <doc>
  46477. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  46478. If the no. of task failures exceeds this, the tasktracker is
  46479. <i>blacklisted</i> for this job.
  46480. @return the maximum no. of failures of a given job per tasktracker.]]>
  46481. </doc>
  46482. </method>
  46483. <method name="getMaxMapTaskFailuresPercent" return="int"
  46484. abstract="false" native="false" synchronized="false"
  46485. static="false" final="false" visibility="public"
  46486. deprecated="not deprecated">
  46487. <doc>
  46488. <![CDATA[Get the maximum percentage of map tasks that can fail without
  46489. the job being aborted.
  46490. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  46491. attempts before being declared as <i>failed</i>.
  46492. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  46493. the job being declared as {@link JobStatus#FAILED}.
  46494. @return the maximum percentage of map tasks that can fail without
  46495. the job being aborted.]]>
  46496. </doc>
  46497. </method>
  46498. <method name="setMaxMapTaskFailuresPercent"
  46499. abstract="false" native="false" synchronized="false"
  46500. static="false" final="false" visibility="public"
  46501. deprecated="not deprecated">
  46502. <param name="percent" type="int"/>
  46503. <doc>
  46504. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  46505. job being aborted.
  46506. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  46507. before being declared as <i>failed</i>.
  46508. @param percent the maximum percentage of map tasks that can fail without
  46509. the job being aborted.]]>
  46510. </doc>
  46511. </method>
  46512. <method name="getMaxReduceTaskFailuresPercent" return="int"
  46513. abstract="false" native="false" synchronized="false"
  46514. static="false" final="false" visibility="public"
  46515. deprecated="not deprecated">
  46516. <doc>
  46517. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  46518. the job being aborted.
  46519. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  46520. attempts before being declared as <i>failed</i>.
  46521. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  46522. in the job being declared as {@link JobStatus#FAILED}.
  46523. @return the maximum percentage of reduce tasks that can fail without
  46524. the job being aborted.]]>
  46525. </doc>
  46526. </method>
  46527. <method name="setMaxReduceTaskFailuresPercent"
  46528. abstract="false" native="false" synchronized="false"
  46529. static="false" final="false" visibility="public"
  46530. deprecated="not deprecated">
  46531. <param name="percent" type="int"/>
  46532. <doc>
  46533. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  46534. being aborted.
  46535. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  46536. attempts before being declared as <i>failed</i>.
  46537. @param percent the maximum percentage of reduce tasks that can fail without
  46538. the job being aborted.]]>
  46539. </doc>
  46540. </method>
  46541. <method name="setJobPriority"
  46542. abstract="false" native="false" synchronized="false"
  46543. static="false" final="false" visibility="public"
  46544. deprecated="not deprecated">
  46545. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  46546. <doc>
  46547. <![CDATA[Set {@link JobPriority} for this job.
  46548. @param prio the {@link JobPriority} for this job.]]>
  46549. </doc>
  46550. </method>
  46551. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  46552. abstract="false" native="false" synchronized="false"
  46553. static="false" final="false" visibility="public"
  46554. deprecated="not deprecated">
  46555. <doc>
  46556. <![CDATA[Get the {@link JobPriority} for this job.
  46557. @return the {@link JobPriority} for this job.]]>
  46558. </doc>
  46559. </method>
  46560. <method name="getProfileEnabled" return="boolean"
  46561. abstract="false" native="false" synchronized="false"
  46562. static="false" final="false" visibility="public"
  46563. deprecated="not deprecated">
  46564. <doc>
  46565. <![CDATA[Get whether the task profiling is enabled.
  46566. @return true if some tasks will be profiled]]>
  46567. </doc>
  46568. </method>
  46569. <method name="setProfileEnabled"
  46570. abstract="false" native="false" synchronized="false"
  46571. static="false" final="false" visibility="public"
  46572. deprecated="not deprecated">
  46573. <param name="newValue" type="boolean"/>
  46574. <doc>
  46575. <![CDATA[Set whether the system should collect profiler information for some of
  46576. the tasks in this job? The information is stored in the user log
  46577. directory.
  46578. @param newValue true means it should be gathered]]>
  46579. </doc>
  46580. </method>
  46581. <method name="getProfileParams" return="java.lang.String"
  46582. abstract="false" native="false" synchronized="false"
  46583. static="false" final="false" visibility="public"
  46584. deprecated="not deprecated">
  46585. <doc>
  46586. <![CDATA[Get the profiler configuration arguments.
  46587. The default value for this property is
  46588. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  46589. @return the parameters to pass to the task child to configure profiling]]>
  46590. </doc>
  46591. </method>
  46592. <method name="setProfileParams"
  46593. abstract="false" native="false" synchronized="false"
  46594. static="false" final="false" visibility="public"
  46595. deprecated="not deprecated">
  46596. <param name="value" type="java.lang.String"/>
  46597. <doc>
  46598. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  46599. will be replaced with the name of the profiling output file when the task
  46600. runs.
  46601. This value is passed to the task child JVM on the command line.
  46602. @param value the configuration string]]>
  46603. </doc>
  46604. </method>
  46605. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  46606. abstract="false" native="false" synchronized="false"
  46607. static="false" final="false" visibility="public"
  46608. deprecated="not deprecated">
  46609. <param name="isMap" type="boolean"/>
  46610. <doc>
  46611. <![CDATA[Get the range of maps or reduces to profile.
  46612. @param isMap is the task a map?
  46613. @return the task ranges]]>
  46614. </doc>
  46615. </method>
  46616. <method name="setProfileTaskRange"
  46617. abstract="false" native="false" synchronized="false"
  46618. static="false" final="false" visibility="public"
  46619. deprecated="not deprecated">
  46620. <param name="isMap" type="boolean"/>
  46621. <param name="newValue" type="java.lang.String"/>
  46622. <doc>
  46623. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  46624. must also be called.
  46625. @param newValue a set of integer ranges of the map ids]]>
  46626. </doc>
  46627. </method>
  46628. <method name="setMapDebugScript"
  46629. abstract="false" native="false" synchronized="false"
  46630. static="false" final="false" visibility="public"
  46631. deprecated="not deprecated">
  46632. <param name="mDbgScript" type="java.lang.String"/>
  46633. <doc>
  46634. <![CDATA[Set the debug script to run when the map tasks fail.
  46635. <p>The debug script can aid debugging of failed map tasks. The script is
  46636. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  46637. <p>The debug command, run on the node where the map failed, is:</p>
  46638. <p><pre><blockquote>
  46639. $script $stdout $stderr $syslog $jobconf.
  46640. </blockquote></pre></p>
  46641. <p> The script file is distributed through {@link DistributedCache}
  46642. APIs. The script needs to be symlinked. </p>
  46643. <p>Here is an example on how to submit a script
  46644. <p><blockquote><pre>
  46645. job.setMapDebugScript("./myscript");
  46646. DistributedCache.createSymlink(job);
  46647. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  46648. </pre></blockquote></p>
  46649. @param mDbgScript the script name]]>
  46650. </doc>
  46651. </method>
  46652. <method name="getMapDebugScript" return="java.lang.String"
  46653. abstract="false" native="false" synchronized="false"
  46654. static="false" final="false" visibility="public"
  46655. deprecated="not deprecated">
  46656. <doc>
  46657. <![CDATA[Get the map task's debug script.
  46658. @return the debug Script for the mapred job for failed map tasks.
  46659. @see #setMapDebugScript(String)]]>
  46660. </doc>
  46661. </method>
  46662. <method name="setReduceDebugScript"
  46663. abstract="false" native="false" synchronized="false"
  46664. static="false" final="false" visibility="public"
  46665. deprecated="not deprecated">
  46666. <param name="rDbgScript" type="java.lang.String"/>
  46667. <doc>
  46668. <![CDATA[Set the debug script to run when the reduce tasks fail.
  46669. <p>The debug script can aid debugging of failed reduce tasks. The script
  46670. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  46671. <p>The debug command, run on the node where the map failed, is:</p>
  46672. <p><pre><blockquote>
  46673. $script $stdout $stderr $syslog $jobconf.
  46674. </blockquote></pre></p>
  46675. <p> The script file is distributed through {@link DistributedCache}
  46676. APIs. The script file needs to be symlinked </p>
  46677. <p>Here is an example on how to submit a script
  46678. <p><blockquote><pre>
  46679. job.setReduceDebugScript("./myscript");
  46680. DistributedCache.createSymlink(job);
  46681. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  46682. </pre></blockquote></p>
  46683. @param rDbgScript the script name]]>
  46684. </doc>
  46685. </method>
  46686. <method name="getReduceDebugScript" return="java.lang.String"
  46687. abstract="false" native="false" synchronized="false"
  46688. static="false" final="false" visibility="public"
  46689. deprecated="not deprecated">
  46690. <doc>
  46691. <![CDATA[Get the reduce task's debug Script
  46692. @return the debug script for the mapred job for failed reduce tasks.
  46693. @see #setReduceDebugScript(String)]]>
  46694. </doc>
  46695. </method>
  46696. <method name="getJobEndNotificationURI" return="java.lang.String"
  46697. abstract="false" native="false" synchronized="false"
  46698. static="false" final="false" visibility="public"
  46699. deprecated="not deprecated">
  46700. <doc>
  46701. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  46702. has completed (success/failure).
  46703. @return the job end notification uri, <code>null</code> if it hasn't
  46704. been set.
  46705. @see #setJobEndNotificationURI(String)]]>
  46706. </doc>
  46707. </method>
  46708. <method name="setJobEndNotificationURI"
  46709. abstract="false" native="false" synchronized="false"
  46710. static="false" final="false" visibility="public"
  46711. deprecated="not deprecated">
  46712. <param name="uri" type="java.lang.String"/>
  46713. <doc>
  46714. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  46715. has completed (success/failure).
  46716. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  46717. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  46718. identifier and completion-status respectively.</p>
  46719. <p>This is typically used by application-writers to implement chaining of
  46720. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  46721. @param uri the job end notification uri
  46722. @see JobStatus
  46723. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  46724. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  46725. </doc>
  46726. </method>
  46727. <method name="getJobLocalDir" return="java.lang.String"
  46728. abstract="false" native="false" synchronized="false"
  46729. static="false" final="false" visibility="public"
  46730. deprecated="not deprecated">
  46731. <doc>
  46732. <![CDATA[Get job-specific shared directory for use as scratch space
  46733. <p>
  46734. When a job starts, a shared directory is created at location
  46735. <code>
  46736. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  46737. This directory is exposed to the users through
  46738. <code>job.local.dir </code>.
  46739. So, the tasks can use this space
  46740. as scratch space and share files among them. </p>
  46741. This value is available as System property also.
  46742. @return The localized job specific shared directory]]>
  46743. </doc>
  46744. </method>
  46745. <method name="getMemoryForMapTask" return="long"
  46746. abstract="false" native="false" synchronized="false"
  46747. static="false" final="false" visibility="public"
  46748. deprecated="not deprecated">
  46749. <doc>
  46750. <![CDATA[Get memory required to run a map task of the job, in MB.
  46751. If a value is specified in the configuration, it is returned.
  46752. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  46753. <p/>
  46754. For backward compatibility, if the job configuration sets the
  46755. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46756. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  46757. after converting it from bytes to MB.
  46758. @return memory required to run a map task of the job, in MB,
  46759. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  46760. </doc>
  46761. </method>
  46762. <method name="setMemoryForMapTask"
  46763. abstract="false" native="false" synchronized="false"
  46764. static="false" final="false" visibility="public"
  46765. deprecated="not deprecated">
  46766. <param name="mem" type="long"/>
  46767. </method>
  46768. <method name="getMemoryForReduceTask" return="long"
  46769. abstract="false" native="false" synchronized="false"
  46770. static="false" final="false" visibility="public"
  46771. deprecated="not deprecated">
  46772. <doc>
  46773. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  46774. If a value is specified in the configuration, it is returned.
  46775. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  46776. <p/>
  46777. For backward compatibility, if the job configuration sets the
  46778. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46779. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  46780. after converting it from bytes to MB.
  46781. @return memory required to run a reduce task of the job, in MB,
  46782. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  46783. </doc>
  46784. </method>
  46785. <method name="setMemoryForReduceTask"
  46786. abstract="false" native="false" synchronized="false"
  46787. static="false" final="false" visibility="public"
  46788. deprecated="not deprecated">
  46789. <param name="mem" type="long"/>
  46790. </method>
  46791. <method name="getQueueName" return="java.lang.String"
  46792. abstract="false" native="false" synchronized="false"
  46793. static="false" final="false" visibility="public"
  46794. deprecated="not deprecated">
  46795. <doc>
  46796. <![CDATA[Return the name of the queue to which this job is submitted.
  46797. Defaults to 'default'.
  46798. @return name of the queue]]>
  46799. </doc>
  46800. </method>
  46801. <method name="setQueueName"
  46802. abstract="false" native="false" synchronized="false"
  46803. static="false" final="false" visibility="public"
  46804. deprecated="not deprecated">
  46805. <param name="queueName" type="java.lang.String"/>
  46806. <doc>
  46807. <![CDATA[Set the name of the queue to which this job should be submitted.
  46808. @param queueName Name of the queue]]>
  46809. </doc>
  46810. </method>
  46811. <method name="normalizeMemoryConfigValue" return="long"
  46812. abstract="false" native="false" synchronized="false"
  46813. static="true" final="false" visibility="public"
  46814. deprecated="not deprecated">
  46815. <param name="val" type="long"/>
  46816. <doc>
  46817. <![CDATA[Normalize the negative values in configuration
  46818. @param val
  46819. @return normalized value]]>
  46820. </doc>
  46821. </method>
  46822. <method name="getMaxVirtualMemoryForTask" return="long"
  46823. abstract="false" native="false" synchronized="false"
  46824. static="false" final="false" visibility="public"
  46825. deprecated="Use {@link #getMemoryForMapTask()} and
  46826. {@link #getMemoryForReduceTask()}">
  46827. <doc>
  46828. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  46829. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  46830. <p/>
  46831. This method is deprecated. Now, different memory limits can be
  46832. set for map and reduce tasks of a job, in MB.
  46833. <p/>
  46834. For backward compatibility, if the job configuration sets the
  46835. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  46836. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  46837. Otherwise, this method will return the larger of the values returned by
  46838. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  46839. after converting them into bytes.
  46840. @return Memory required to run a task of this job, in bytes,
  46841. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  46842. @see #setMaxVirtualMemoryForTask(long)
  46843. @deprecated Use {@link #getMemoryForMapTask()} and
  46844. {@link #getMemoryForReduceTask()}]]>
  46845. </doc>
  46846. </method>
  46847. <method name="setMaxVirtualMemoryForTask"
  46848. abstract="false" native="false" synchronized="false"
  46849. static="false" final="false" visibility="public"
  46850. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  46851. Use {@link #setMemoryForReduceTask(long mem)}">
  46852. <param name="vmem" type="long"/>
  46853. <doc>
  46854. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  46855. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  46856. <p/>
  46857. mapred.task.maxvmem is split into
  46858. mapred.job.map.memory.mb
  46859. and mapred.job.map.memory.mb,mapred
  46860. each of the new key are set
  46861. as mapred.task.maxvmem / 1024
  46862. as new values are in MB
  46863. @param vmem Maximum amount of virtual memory in bytes any task of this job
  46864. can use.
  46865. @see #getMaxVirtualMemoryForTask()
  46866. @deprecated
  46867. Use {@link #setMemoryForMapTask(long mem)} and
  46868. Use {@link #setMemoryForReduceTask(long mem)}]]>
  46869. </doc>
  46870. </method>
  46871. <method name="getMaxPhysicalMemoryForTask" return="long"
  46872. abstract="false" native="false" synchronized="false"
  46873. static="false" final="false" visibility="public"
  46874. deprecated="this variable is deprecated and nolonger in use.">
  46875. <doc>
  46876. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  46877. </doc>
  46878. </method>
  46879. <method name="setMaxPhysicalMemoryForTask"
  46880. abstract="false" native="false" synchronized="false"
  46881. static="false" final="false" visibility="public"
  46882. deprecated="not deprecated">
  46883. <param name="mem" type="long"/>
  46884. </method>
  46885. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  46886. transient="false" volatile="false"
  46887. static="true" final="true" visibility="public"
  46888. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  46889. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  46890. <doc>
  46891. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  46892. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  46893. </doc>
  46894. </field>
  46895. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  46896. transient="false" volatile="false"
  46897. static="true" final="true" visibility="public"
  46898. deprecated="deprecated, no comment">
  46899. <doc>
  46900. <![CDATA[@deprecated]]>
  46901. </doc>
  46902. </field>
  46903. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  46904. transient="false" volatile="false"
  46905. static="true" final="true" visibility="public"
  46906. deprecated="deprecated, no comment">
  46907. <doc>
  46908. <![CDATA[@deprecated]]>
  46909. </doc>
  46910. </field>
  46911. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  46912. transient="false" volatile="false"
  46913. static="true" final="true" visibility="public"
  46914. deprecated="deprecated, no comment">
  46915. <doc>
  46916. <![CDATA[@deprecated]]>
  46917. </doc>
  46918. </field>
  46919. <field name="DISABLED_MEMORY_LIMIT" type="long"
  46920. transient="false" volatile="false"
  46921. static="true" final="true" visibility="public"
  46922. deprecated="not deprecated">
  46923. <doc>
  46924. <![CDATA[A value which if set for memory related configuration options,
  46925. indicates that the options are turned off.]]>
  46926. </doc>
  46927. </field>
  46928. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  46929. transient="false" volatile="false"
  46930. static="true" final="true" visibility="public"
  46931. deprecated="not deprecated">
  46932. <doc>
  46933. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  46934. </doc>
  46935. </field>
  46936. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  46937. transient="false" volatile="false"
  46938. static="true" final="true" visibility="public"
  46939. deprecated="not deprecated">
  46940. <doc>
  46941. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  46942. name is mentioned.]]>
  46943. </doc>
  46944. </field>
  46945. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  46946. transient="false" volatile="false"
  46947. static="true" final="true" visibility="public"
  46948. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  46949. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  46950. <doc>
  46951. <![CDATA[Configuration key to set the java command line options for the child
  46952. map and reduce tasks.
  46953. Java opts for the task tracker child processes.
  46954. The following symbol, if present, will be interpolated: @taskid@.
  46955. It is replaced by current TaskID. Any other occurrences of '@' will go
  46956. unchanged.
  46957. For example, to enable verbose gc logging to a file named for the taskid in
  46958. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  46959. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  46960. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  46961. control the maximum virtual memory of the child processes.
  46962. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  46963. other environment variables to the child processes.
  46964. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  46965. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  46966. </doc>
  46967. </field>
  46968. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  46969. transient="false" volatile="false"
  46970. static="true" final="true" visibility="public"
  46971. deprecated="not deprecated">
  46972. <doc>
  46973. <![CDATA[Configuration key to set the java command line options for the map tasks.
  46974. Java opts for the task tracker child map processes.
  46975. The following symbol, if present, will be interpolated: @taskid@.
  46976. It is replaced by current TaskID. Any other occurrences of '@' will go
  46977. unchanged.
  46978. For example, to enable verbose gc logging to a file named for the taskid in
  46979. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  46980. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  46981. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  46982. control the maximum virtual memory of the map processes.
  46983. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  46984. other environment variables to the map processes.]]>
  46985. </doc>
  46986. </field>
  46987. <field name="MAPRED_REDUCE_TASK_JAVA_OPTS" type="java.lang.String"
  46988. transient="false" volatile="false"
  46989. static="true" final="true" visibility="public"
  46990. deprecated="not deprecated">
  46991. <doc>
  46992. <![CDATA[Configuration key to set the java command line options for the reduce tasks.
  46993. Java opts for the task tracker child reduce processes.
  46994. The following symbol, if present, will be interpolated: @taskid@.
  46995. It is replaced by current TaskID. Any other occurrences of '@' will go
  46996. unchanged.
  46997. For example, to enable verbose gc logging to a file named for the taskid in
  46998. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  46999. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  47000. The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
  47001. to control the maximum virtual memory of the reduce processes.
  47002. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  47003. pass process environment variables to the reduce processes.]]>
  47004. </doc>
  47005. </field>
  47006. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  47007. transient="false" volatile="false"
  47008. static="true" final="true" visibility="public"
  47009. deprecated="not deprecated">
  47010. </field>
  47011. <field name="MAPRED_TASK_ULIMIT" type="java.lang.String"
  47012. transient="false" volatile="false"
  47013. static="true" final="true" visibility="public"
  47014. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  47015. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  47016. <doc>
  47017. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  47018. map and reduce tasks (in kilo-bytes).
  47019. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47020. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  47021. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  47022. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  47023. </doc>
  47024. </field>
  47025. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  47026. transient="false" volatile="false"
  47027. static="true" final="true" visibility="public"
  47028. deprecated="not deprecated">
  47029. <doc>
  47030. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47031. map tasks (in kilo-bytes).
  47032. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47033. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  47034. </doc>
  47035. </field>
  47036. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  47037. transient="false" volatile="false"
  47038. static="true" final="true" visibility="public"
  47039. deprecated="not deprecated">
  47040. <doc>
  47041. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47042. reduce tasks (in kilo-bytes).
  47043. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  47044. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  47045. </doc>
  47046. </field>
  47047. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  47048. transient="false" volatile="false"
  47049. static="true" final="true" visibility="public"
  47050. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  47051. {@link #MAPRED_REDUCE_TASK_ENV}">
  47052. <doc>
  47053. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  47054. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47055. reference existing environment variables via <code>$key</code>.
  47056. Example:
  47057. <ul>
  47058. <li> A=foo - This will set the env variable A to foo. </li>
  47059. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47060. </ul>
  47061. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  47062. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  47063. </doc>
  47064. </field>
  47065. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  47066. transient="false" volatile="false"
  47067. static="true" final="true" visibility="public"
  47068. deprecated="not deprecated">
  47069. <doc>
  47070. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47071. map tasks.
  47072. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47073. reference existing environment variables via <code>$key</code>.
  47074. Example:
  47075. <ul>
  47076. <li> A=foo - This will set the env variable A to foo. </li>
  47077. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47078. </ul>]]>
  47079. </doc>
  47080. </field>
  47081. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  47082. transient="false" volatile="false"
  47083. static="true" final="true" visibility="public"
  47084. deprecated="not deprecated">
  47085. <doc>
  47086. <![CDATA[Configuration key to set the maximum virutal memory available to the
  47087. reduce tasks.
  47088. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  47089. reference existing environment variables via <code>$key</code>.
  47090. Example:
  47091. <ul>
  47092. <li> A=foo - This will set the env variable A to foo. </li>
  47093. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  47094. </ul>]]>
  47095. </doc>
  47096. </field>
  47097. <doc>
  47098. <![CDATA[A map/reduce job configuration.
  47099. <p><code>JobConf</code> is the primary interface for a user to describe a
  47100. map-reduce job to the Hadoop framework for execution. The framework tries to
  47101. faithfully execute the job as-is described by <code>JobConf</code>, however:
  47102. <ol>
  47103. <li>
  47104. Some configuration parameters might have been marked as
  47105. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  47106. final</a> by administrators and hence cannot be altered.
  47107. </li>
  47108. <li>
  47109. While some job parameters are straight-forward to set
  47110. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  47111. rest of the framework and/or job-configuration and is relatively more
  47112. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  47113. </li>
  47114. </ol></p>
  47115. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  47116. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  47117. {@link OutputFormat} implementations to be used etc.
  47118. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  47119. of the job such as <code>Comparator</code>s to be used, files to be put in
  47120. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  47121. are to be compressed (and how), debugability via user-provided scripts
  47122. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  47123. for doing post-processing on task logs, task's stdout, stderr, syslog.
  47124. and etc.</p>
  47125. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  47126. <p><blockquote><pre>
  47127. // Create a new JobConf
  47128. JobConf job = new JobConf(new Configuration(), MyJob.class);
  47129. // Specify various job-specific parameters
  47130. job.setJobName("myjob");
  47131. FileInputFormat.setInputPaths(job, new Path("in"));
  47132. FileOutputFormat.setOutputPath(job, new Path("out"));
  47133. job.setMapperClass(MyJob.MyMapper.class);
  47134. job.setCombinerClass(MyJob.MyReducer.class);
  47135. job.setReducerClass(MyJob.MyReducer.class);
  47136. job.setInputFormat(SequenceFileInputFormat.class);
  47137. job.setOutputFormat(SequenceFileOutputFormat.class);
  47138. </pre></blockquote></p>
  47139. @see JobClient
  47140. @see ClusterStatus
  47141. @see Tool
  47142. @see DistributedCache]]>
  47143. </doc>
  47144. </class>
  47145. <!-- end class org.apache.hadoop.mapred.JobConf -->
  47146. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  47147. <interface name="JobConfigurable" abstract="true"
  47148. static="false" final="false" visibility="public"
  47149. deprecated="not deprecated">
  47150. <method name="configure"
  47151. abstract="false" native="false" synchronized="false"
  47152. static="false" final="false" visibility="public"
  47153. deprecated="not deprecated">
  47154. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47155. <doc>
  47156. <![CDATA[Initializes a new instance from a {@link JobConf}.
  47157. @param job the configuration]]>
  47158. </doc>
  47159. </method>
  47160. <doc>
  47161. <![CDATA[That what may be configured.]]>
  47162. </doc>
  47163. </interface>
  47164. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  47165. <!-- start class org.apache.hadoop.mapred.JobContext -->
  47166. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  47167. abstract="false"
  47168. static="false" final="false" visibility="public"
  47169. deprecated="not deprecated">
  47170. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  47171. abstract="false" native="false" synchronized="false"
  47172. static="false" final="false" visibility="public"
  47173. deprecated="not deprecated">
  47174. <doc>
  47175. <![CDATA[Get the job Configuration
  47176. @return JobConf]]>
  47177. </doc>
  47178. </method>
  47179. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  47180. abstract="false" native="false" synchronized="false"
  47181. static="false" final="false" visibility="public"
  47182. deprecated="not deprecated">
  47183. <doc>
  47184. <![CDATA[Get the progress mechanism for reporting progress.
  47185. @return progress mechanism]]>
  47186. </doc>
  47187. </method>
  47188. </class>
  47189. <!-- end class org.apache.hadoop.mapred.JobContext -->
  47190. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  47191. <class name="JobEndNotifier" extends="java.lang.Object"
  47192. abstract="false"
  47193. static="false" final="false" visibility="public"
  47194. deprecated="not deprecated">
  47195. <constructor name="JobEndNotifier"
  47196. static="false" final="false" visibility="public"
  47197. deprecated="not deprecated">
  47198. </constructor>
  47199. <method name="startNotifier"
  47200. abstract="false" native="false" synchronized="false"
  47201. static="true" final="false" visibility="public"
  47202. deprecated="not deprecated">
  47203. </method>
  47204. <method name="stopNotifier"
  47205. abstract="false" native="false" synchronized="false"
  47206. static="true" final="false" visibility="public"
  47207. deprecated="not deprecated">
  47208. </method>
  47209. <method name="registerNotification"
  47210. abstract="false" native="false" synchronized="false"
  47211. static="true" final="false" visibility="public"
  47212. deprecated="not deprecated">
  47213. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47214. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  47215. </method>
  47216. <method name="localRunnerNotification"
  47217. abstract="false" native="false" synchronized="false"
  47218. static="true" final="false" visibility="public"
  47219. deprecated="not deprecated">
  47220. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47221. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  47222. </method>
  47223. </class>
  47224. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  47225. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  47226. <class name="JobHistory" extends="java.lang.Object"
  47227. abstract="false"
  47228. static="false" final="false" visibility="public"
  47229. deprecated="not deprecated">
  47230. <constructor name="JobHistory"
  47231. static="false" final="false" visibility="public"
  47232. deprecated="not deprecated">
  47233. </constructor>
  47234. <method name="getHistoryFilePath" return="java.lang.String"
  47235. abstract="false" native="false" synchronized="false"
  47236. static="true" final="false" visibility="public"
  47237. deprecated="not deprecated">
  47238. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47239. <doc>
  47240. <![CDATA[Given the job id, return the history file path from the cache]]>
  47241. </doc>
  47242. </method>
  47243. <method name="init"
  47244. abstract="false" native="false" synchronized="false"
  47245. static="true" final="false" visibility="public"
  47246. deprecated="not deprecated">
  47247. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  47248. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47249. <param name="hostname" type="java.lang.String"/>
  47250. <param name="jobTrackerStartTime" type="long"/>
  47251. <exception name="IOException" type="java.io.IOException"/>
  47252. <doc>
  47253. <![CDATA[Initialize JobHistory files.
  47254. @param conf Jobconf of the job tracker.
  47255. @param hostname jobtracker's hostname
  47256. @param jobTrackerStartTime jobtracker's start time]]>
  47257. </doc>
  47258. </method>
  47259. <method name="parseHistoryFromFS"
  47260. abstract="false" native="false" synchronized="false"
  47261. static="true" final="false" visibility="public"
  47262. deprecated="not deprecated">
  47263. <param name="path" type="java.lang.String"/>
  47264. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  47265. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  47266. <exception name="IOException" type="java.io.IOException"/>
  47267. <doc>
  47268. <![CDATA[Parses history file and invokes Listener.handle() for
  47269. each line of history. It can be used for looking through history
  47270. files for specific items without having to keep whole history in memory.
  47271. @param path path to history file
  47272. @param l Listener for history events
  47273. @param fs FileSystem where history file is present
  47274. @throws IOException]]>
  47275. </doc>
  47276. </method>
  47277. <method name="getTaskLogsUrl" return="java.lang.String"
  47278. abstract="false" native="false" synchronized="false"
  47279. static="true" final="false" visibility="public"
  47280. deprecated="not deprecated">
  47281. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  47282. <doc>
  47283. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  47284. @param attempt
  47285. @return the taskLogsUrl. null if http-port or tracker-name or
  47286. task-attempt-id are unavailable.]]>
  47287. </doc>
  47288. </method>
  47289. <field name="LOG" type="org.apache.commons.logging.Log"
  47290. transient="false" volatile="false"
  47291. static="true" final="true" visibility="public"
  47292. deprecated="not deprecated">
  47293. </field>
  47294. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  47295. transient="false" volatile="false"
  47296. static="true" final="true" visibility="public"
  47297. deprecated="not deprecated">
  47298. </field>
  47299. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  47300. transient="false" volatile="false"
  47301. static="true" final="true" visibility="public"
  47302. deprecated="not deprecated">
  47303. </field>
  47304. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  47305. transient="false" volatile="false"
  47306. static="true" final="true" visibility="public"
  47307. deprecated="not deprecated">
  47308. </field>
  47309. <doc>
  47310. <![CDATA[Provides methods for writing to and reading from job history.
  47311. Job History works in an append mode, JobHistory and its inner classes provide methods
  47312. to log job events.
  47313. JobHistory is split into multiple files, format of each file is plain text where each line
  47314. is of the format [type (key=value)*], where type identifies the type of the record.
  47315. Type maps to UID of one of the inner classes of this class.
  47316. Job history is maintained in a master index which contains star/stop times of all jobs with
  47317. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  47318. file. name of job history files follows the format jobtrackerId_jobid
  47319. For parsing the job history it supports a listener based interface where each line is parsed
  47320. and passed to listener. The listener can create an object model of history or look for specific
  47321. events and discard rest of the history.
  47322. CHANGE LOG :
  47323. Version 0 : The history has the following format :
  47324. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  47325. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  47326. Note that a '"' is the line delimiter.
  47327. Version 1 : Changes the line delimiter to '.'
  47328. Values are now escaped for unambiguous parsing.
  47329. Added the Meta tag to store version info.]]>
  47330. </doc>
  47331. </class>
  47332. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  47333. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  47334. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  47335. abstract="false"
  47336. static="true" final="false" visibility="public"
  47337. deprecated="not deprecated">
  47338. <implements name="java.lang.Runnable"/>
  47339. <constructor name="JobHistory.HistoryCleaner"
  47340. static="false" final="false" visibility="public"
  47341. deprecated="not deprecated">
  47342. </constructor>
  47343. <method name="run"
  47344. abstract="false" native="false" synchronized="false"
  47345. static="false" final="false" visibility="public"
  47346. deprecated="not deprecated">
  47347. <doc>
  47348. <![CDATA[Cleans up history data.]]>
  47349. </doc>
  47350. </method>
  47351. <doc>
  47352. <![CDATA[Delete history files older than one month. Update master index and remove all
  47353. jobs older than one month. Also if a job tracker has no jobs in last one month
  47354. remove reference to the job tracker.]]>
  47355. </doc>
  47356. </class>
  47357. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  47358. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  47359. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  47360. abstract="false"
  47361. static="true" final="false" visibility="public"
  47362. deprecated="not deprecated">
  47363. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  47364. static="false" final="false" visibility="public"
  47365. deprecated="not deprecated">
  47366. <doc>
  47367. <![CDATA[Create new JobInfo]]>
  47368. </doc>
  47369. </constructor>
  47370. <method name="getAllTasks" return="java.util.Map"
  47371. abstract="false" native="false" synchronized="false"
  47372. static="false" final="false" visibility="public"
  47373. deprecated="not deprecated">
  47374. <doc>
  47375. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  47376. </doc>
  47377. </method>
  47378. <method name="getJobACLs" return="java.util.Map"
  47379. abstract="false" native="false" synchronized="false"
  47380. static="false" final="false" visibility="public"
  47381. deprecated="not deprecated">
  47382. <doc>
  47383. <![CDATA[Get the job acls.
  47384. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  47385. </doc>
  47386. </method>
  47387. <method name="handle"
  47388. abstract="false" native="false" synchronized="true"
  47389. static="false" final="false" visibility="public"
  47390. deprecated="not deprecated">
  47391. <param name="values" type="java.util.Map"/>
  47392. </method>
  47393. <method name="getLocalJobFilePath" return="java.lang.String"
  47394. abstract="false" native="false" synchronized="false"
  47395. static="true" final="false" visibility="public"
  47396. deprecated="not deprecated">
  47397. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47398. <doc>
  47399. <![CDATA[Get the path of the locally stored job file
  47400. @param jobId id of the job
  47401. @return the path of the job file on the local file system]]>
  47402. </doc>
  47403. </method>
  47404. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  47405. abstract="false" native="false" synchronized="false"
  47406. static="true" final="false" visibility="public"
  47407. deprecated="not deprecated">
  47408. <param name="logFile" type="java.lang.String"/>
  47409. <exception name="IOException" type="java.io.IOException"/>
  47410. <doc>
  47411. <![CDATA[Helper function to encode the URL of the path of the job-history
  47412. log file.
  47413. @param logFile path of the job-history file
  47414. @return URL encoded path
  47415. @throws IOException]]>
  47416. </doc>
  47417. </method>
  47418. <method name="encodeJobHistoryFileName" return="java.lang.String"
  47419. abstract="false" native="false" synchronized="false"
  47420. static="true" final="false" visibility="public"
  47421. deprecated="not deprecated">
  47422. <param name="logFileName" type="java.lang.String"/>
  47423. <exception name="IOException" type="java.io.IOException"/>
  47424. <doc>
  47425. <![CDATA[Helper function to encode the URL of the filename of the job-history
  47426. log file.
  47427. @param logFileName file name of the job-history file
  47428. @return URL encoded filename
  47429. @throws IOException]]>
  47430. </doc>
  47431. </method>
  47432. <method name="decodeJobHistoryFileName" return="java.lang.String"
  47433. abstract="false" native="false" synchronized="false"
  47434. static="true" final="false" visibility="public"
  47435. deprecated="not deprecated">
  47436. <param name="logFileName" type="java.lang.String"/>
  47437. <exception name="IOException" type="java.io.IOException"/>
  47438. <doc>
  47439. <![CDATA[Helper function to decode the URL of the filename of the job-history
  47440. log file.
  47441. @param logFileName file name of the job-history file
  47442. @return URL decoded filename
  47443. @throws IOException]]>
  47444. </doc>
  47445. </method>
  47446. <method name="getUserName" return="java.lang.String"
  47447. abstract="false" native="false" synchronized="false"
  47448. static="true" final="false" visibility="public"
  47449. deprecated="not deprecated">
  47450. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47451. <doc>
  47452. <![CDATA[Get the user name from the job conf]]>
  47453. </doc>
  47454. </method>
  47455. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  47456. abstract="false" native="false" synchronized="false"
  47457. static="true" final="false" visibility="public"
  47458. deprecated="not deprecated">
  47459. <param name="logFileName" type="java.lang.String"/>
  47460. <doc>
  47461. <![CDATA[Get the job history file path given the history filename]]>
  47462. </doc>
  47463. </method>
  47464. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  47465. abstract="false" native="false" synchronized="false"
  47466. static="true" final="false" visibility="public"
  47467. deprecated="not deprecated">
  47468. <param name="logFileName" type="java.lang.String"/>
  47469. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47470. <doc>
  47471. <![CDATA[Get the user job history file path]]>
  47472. </doc>
  47473. </method>
  47474. <method name="getJobHistoryFileName" return="java.lang.String"
  47475. abstract="false" native="false" synchronized="true"
  47476. static="true" final="false" visibility="public"
  47477. deprecated="not deprecated">
  47478. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47479. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  47480. <exception name="IOException" type="java.io.IOException"/>
  47481. <doc>
  47482. <![CDATA[Recover the job history filename from the history folder.
  47483. Uses the following pattern
  47484. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  47485. @param jobConf the job conf
  47486. @param id job id]]>
  47487. </doc>
  47488. </method>
  47489. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  47490. abstract="false" native="false" synchronized="true"
  47491. static="true" final="false" visibility="public"
  47492. deprecated="not deprecated">
  47493. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47494. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  47495. <exception name="IOException" type="java.io.IOException"/>
  47496. <doc>
  47497. <![CDATA[Selects one of the two files generated as a part of recovery.
  47498. The thumb rule is that always select the oldest file.
  47499. This call makes sure that only one file is left in the end.
  47500. @param conf job conf
  47501. @param logFilePath Path of the log file
  47502. @throws IOException]]>
  47503. </doc>
  47504. </method>
  47505. <method name="logSubmitted"
  47506. abstract="false" native="false" synchronized="false"
  47507. static="true" final="false" visibility="public"
  47508. deprecated="Use
  47509. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  47510. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47511. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47512. <param name="jobConfPath" type="java.lang.String"/>
  47513. <param name="submitTime" type="long"/>
  47514. <exception name="IOException" type="java.io.IOException"/>
  47515. <doc>
  47516. <![CDATA[Log job submitted event to history. Creates a new file in history
  47517. for the job. if history file creation fails, it disables history
  47518. for all other events.
  47519. @param jobId job id assigned by job tracker.
  47520. @param jobConf job conf of the job
  47521. @param jobConfPath path to job conf xml file in HDFS.
  47522. @param submitTime time when job tracker received the job
  47523. @throws IOException
  47524. @deprecated Use
  47525. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  47526. </doc>
  47527. </method>
  47528. <method name="logSubmitted"
  47529. abstract="false" native="false" synchronized="false"
  47530. static="true" final="false" visibility="public"
  47531. deprecated="not deprecated">
  47532. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47533. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  47534. <param name="jobConfPath" type="java.lang.String"/>
  47535. <param name="submitTime" type="long"/>
  47536. <param name="restarted" type="boolean"/>
  47537. <exception name="IOException" type="java.io.IOException"/>
  47538. </method>
  47539. <method name="logInited"
  47540. abstract="false" native="false" synchronized="false"
  47541. static="true" final="false" visibility="public"
  47542. deprecated="not deprecated">
  47543. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47544. <param name="startTime" type="long"/>
  47545. <param name="totalMaps" type="int"/>
  47546. <param name="totalReduces" type="int"/>
  47547. <doc>
  47548. <![CDATA[Logs launch time of job.
  47549. @param jobId job id, assigned by jobtracker.
  47550. @param startTime start time of job.
  47551. @param totalMaps total maps assigned by jobtracker.
  47552. @param totalReduces total reduces.]]>
  47553. </doc>
  47554. </method>
  47555. <method name="logStarted"
  47556. abstract="false" native="false" synchronized="false"
  47557. static="true" final="false" visibility="public"
  47558. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  47559. {@link #logStarted(JobID)}">
  47560. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47561. <param name="startTime" type="long"/>
  47562. <param name="totalMaps" type="int"/>
  47563. <param name="totalReduces" type="int"/>
  47564. <doc>
  47565. <![CDATA[Logs the job as RUNNING.
  47566. @param jobId job id, assigned by jobtracker.
  47567. @param startTime start time of job.
  47568. @param totalMaps total maps assigned by jobtracker.
  47569. @param totalReduces total reduces.
  47570. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  47571. {@link #logStarted(JobID)}]]>
  47572. </doc>
  47573. </method>
  47574. <method name="logStarted"
  47575. abstract="false" native="false" synchronized="false"
  47576. static="true" final="false" visibility="public"
  47577. deprecated="not deprecated">
  47578. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47579. <doc>
  47580. <![CDATA[Logs job as running
  47581. @param jobId job id, assigned by jobtracker.]]>
  47582. </doc>
  47583. </method>
  47584. <method name="logFinished"
  47585. abstract="false" native="false" synchronized="false"
  47586. static="true" final="false" visibility="public"
  47587. deprecated="not deprecated">
  47588. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47589. <param name="finishTime" type="long"/>
  47590. <param name="finishedMaps" type="int"/>
  47591. <param name="finishedReduces" type="int"/>
  47592. <param name="failedMaps" type="int"/>
  47593. <param name="failedReduces" type="int"/>
  47594. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  47595. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  47596. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  47597. <doc>
  47598. <![CDATA[Log job finished. closes the job file in history.
  47599. @param jobId job id, assigned by jobtracker.
  47600. @param finishTime finish time of job in ms.
  47601. @param finishedMaps no of maps successfully finished.
  47602. @param finishedReduces no of reduces finished sucessfully.
  47603. @param failedMaps no of failed map tasks.
  47604. @param failedReduces no of failed reduce tasks.
  47605. @param counters the counters from the job]]>
  47606. </doc>
  47607. </method>
  47608. <method name="logFailed"
  47609. abstract="false" native="false" synchronized="false"
  47610. static="true" final="false" visibility="public"
  47611. deprecated="not deprecated">
  47612. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47613. <param name="timestamp" type="long"/>
  47614. <param name="finishedMaps" type="int"/>
  47615. <param name="finishedReduces" type="int"/>
  47616. <param name="failReason" type="java.lang.String"/>
  47617. <doc>
  47618. <![CDATA[Logs job failed event. Closes the job history log file.
  47619. @param jobid job id
  47620. @param timestamp time when job failure was detected in ms.
  47621. @param finishedMaps no finished map tasks.
  47622. @param finishedReduces no of finished reduce tasks.]]>
  47623. </doc>
  47624. </method>
  47625. <method name="logKilled"
  47626. abstract="false" native="false" synchronized="false"
  47627. static="true" final="false" visibility="public"
  47628. deprecated="not deprecated">
  47629. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47630. <param name="timestamp" type="long"/>
  47631. <param name="finishedMaps" type="int"/>
  47632. <param name="finishedReduces" type="int"/>
  47633. <doc>
  47634. <![CDATA[Logs job killed event. Closes the job history log file.
  47635. @param jobid
  47636. job id
  47637. @param timestamp
  47638. time when job killed was issued in ms.
  47639. @param finishedMaps
  47640. no finished map tasks.
  47641. @param finishedReduces
  47642. no of finished reduce tasks.]]>
  47643. </doc>
  47644. </method>
  47645. <method name="logJobPriority"
  47646. abstract="false" native="false" synchronized="false"
  47647. static="true" final="false" visibility="public"
  47648. deprecated="not deprecated">
  47649. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47650. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  47651. <doc>
  47652. <![CDATA[Log job's priority.
  47653. @param jobid job id
  47654. @param priority Jobs priority]]>
  47655. </doc>
  47656. </method>
  47657. <method name="logJobInfo"
  47658. abstract="false" native="false" synchronized="false"
  47659. static="true" final="false" visibility="public"
  47660. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  47661. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47662. <param name="submitTime" type="long"/>
  47663. <param name="launchTime" type="long"/>
  47664. <param name="restartCount" type="int"/>
  47665. <doc>
  47666. <![CDATA[Log job's submit-time/launch-time
  47667. @param jobid job id
  47668. @param submitTime job's submit time
  47669. @param launchTime job's launch time
  47670. @param restartCount number of times the job got restarted
  47671. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  47672. </doc>
  47673. </method>
  47674. <method name="logJobInfo"
  47675. abstract="false" native="false" synchronized="false"
  47676. static="true" final="false" visibility="public"
  47677. deprecated="not deprecated">
  47678. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47679. <param name="submitTime" type="long"/>
  47680. <param name="launchTime" type="long"/>
  47681. </method>
  47682. <doc>
  47683. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  47684. </doc>
  47685. </class>
  47686. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  47687. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  47688. <class name="JobHistory.Keys" extends="java.lang.Enum"
  47689. abstract="false"
  47690. static="true" final="true" visibility="public"
  47691. deprecated="not deprecated">
  47692. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  47693. abstract="false" native="false" synchronized="false"
  47694. static="true" final="false" visibility="public"
  47695. deprecated="not deprecated">
  47696. </method>
  47697. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  47698. abstract="false" native="false" synchronized="false"
  47699. static="true" final="false" visibility="public"
  47700. deprecated="not deprecated">
  47701. <param name="name" type="java.lang.String"/>
  47702. </method>
  47703. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47704. transient="false" volatile="false"
  47705. static="true" final="true" visibility="public"
  47706. deprecated="not deprecated">
  47707. </field>
  47708. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47709. transient="false" volatile="false"
  47710. static="true" final="true" visibility="public"
  47711. deprecated="not deprecated">
  47712. </field>
  47713. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47714. transient="false" volatile="false"
  47715. static="true" final="true" visibility="public"
  47716. deprecated="not deprecated">
  47717. </field>
  47718. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47719. transient="false" volatile="false"
  47720. static="true" final="true" visibility="public"
  47721. deprecated="not deprecated">
  47722. </field>
  47723. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47724. transient="false" volatile="false"
  47725. static="true" final="true" visibility="public"
  47726. deprecated="not deprecated">
  47727. </field>
  47728. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47729. transient="false" volatile="false"
  47730. static="true" final="true" visibility="public"
  47731. deprecated="not deprecated">
  47732. </field>
  47733. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47734. transient="false" volatile="false"
  47735. static="true" final="true" visibility="public"
  47736. deprecated="not deprecated">
  47737. </field>
  47738. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47739. transient="false" volatile="false"
  47740. static="true" final="true" visibility="public"
  47741. deprecated="not deprecated">
  47742. </field>
  47743. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47744. transient="false" volatile="false"
  47745. static="true" final="true" visibility="public"
  47746. deprecated="not deprecated">
  47747. </field>
  47748. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47749. transient="false" volatile="false"
  47750. static="true" final="true" visibility="public"
  47751. deprecated="not deprecated">
  47752. </field>
  47753. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47754. transient="false" volatile="false"
  47755. static="true" final="true" visibility="public"
  47756. deprecated="not deprecated">
  47757. </field>
  47758. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47759. transient="false" volatile="false"
  47760. static="true" final="true" visibility="public"
  47761. deprecated="not deprecated">
  47762. </field>
  47763. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47764. transient="false" volatile="false"
  47765. static="true" final="true" visibility="public"
  47766. deprecated="not deprecated">
  47767. </field>
  47768. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47769. transient="false" volatile="false"
  47770. static="true" final="true" visibility="public"
  47771. deprecated="not deprecated">
  47772. </field>
  47773. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47774. transient="false" volatile="false"
  47775. static="true" final="true" visibility="public"
  47776. deprecated="not deprecated">
  47777. </field>
  47778. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47779. transient="false" volatile="false"
  47780. static="true" final="true" visibility="public"
  47781. deprecated="not deprecated">
  47782. </field>
  47783. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47784. transient="false" volatile="false"
  47785. static="true" final="true" visibility="public"
  47786. deprecated="not deprecated">
  47787. </field>
  47788. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47789. transient="false" volatile="false"
  47790. static="true" final="true" visibility="public"
  47791. deprecated="not deprecated">
  47792. </field>
  47793. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47794. transient="false" volatile="false"
  47795. static="true" final="true" visibility="public"
  47796. deprecated="not deprecated">
  47797. </field>
  47798. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47799. transient="false" volatile="false"
  47800. static="true" final="true" visibility="public"
  47801. deprecated="not deprecated">
  47802. </field>
  47803. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47804. transient="false" volatile="false"
  47805. static="true" final="true" visibility="public"
  47806. deprecated="not deprecated">
  47807. </field>
  47808. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47809. transient="false" volatile="false"
  47810. static="true" final="true" visibility="public"
  47811. deprecated="not deprecated">
  47812. </field>
  47813. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47814. transient="false" volatile="false"
  47815. static="true" final="true" visibility="public"
  47816. deprecated="not deprecated">
  47817. </field>
  47818. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47819. transient="false" volatile="false"
  47820. static="true" final="true" visibility="public"
  47821. deprecated="not deprecated">
  47822. </field>
  47823. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47824. transient="false" volatile="false"
  47825. static="true" final="true" visibility="public"
  47826. deprecated="not deprecated">
  47827. </field>
  47828. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47829. transient="false" volatile="false"
  47830. static="true" final="true" visibility="public"
  47831. deprecated="not deprecated">
  47832. </field>
  47833. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47834. transient="false" volatile="false"
  47835. static="true" final="true" visibility="public"
  47836. deprecated="not deprecated">
  47837. </field>
  47838. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47839. transient="false" volatile="false"
  47840. static="true" final="true" visibility="public"
  47841. deprecated="not deprecated">
  47842. </field>
  47843. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47844. transient="false" volatile="false"
  47845. static="true" final="true" visibility="public"
  47846. deprecated="not deprecated">
  47847. </field>
  47848. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47849. transient="false" volatile="false"
  47850. static="true" final="true" visibility="public"
  47851. deprecated="not deprecated">
  47852. </field>
  47853. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47854. transient="false" volatile="false"
  47855. static="true" final="true" visibility="public"
  47856. deprecated="not deprecated">
  47857. </field>
  47858. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47859. transient="false" volatile="false"
  47860. static="true" final="true" visibility="public"
  47861. deprecated="not deprecated">
  47862. </field>
  47863. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47864. transient="false" volatile="false"
  47865. static="true" final="true" visibility="public"
  47866. deprecated="not deprecated">
  47867. </field>
  47868. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47869. transient="false" volatile="false"
  47870. static="true" final="true" visibility="public"
  47871. deprecated="not deprecated">
  47872. </field>
  47873. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47874. transient="false" volatile="false"
  47875. static="true" final="true" visibility="public"
  47876. deprecated="not deprecated">
  47877. </field>
  47878. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47879. transient="false" volatile="false"
  47880. static="true" final="true" visibility="public"
  47881. deprecated="not deprecated">
  47882. </field>
  47883. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47884. transient="false" volatile="false"
  47885. static="true" final="true" visibility="public"
  47886. deprecated="not deprecated">
  47887. </field>
  47888. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47889. transient="false" volatile="false"
  47890. static="true" final="true" visibility="public"
  47891. deprecated="not deprecated">
  47892. </field>
  47893. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47894. transient="false" volatile="false"
  47895. static="true" final="true" visibility="public"
  47896. deprecated="not deprecated">
  47897. </field>
  47898. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  47899. transient="false" volatile="false"
  47900. static="true" final="true" visibility="public"
  47901. deprecated="not deprecated">
  47902. </field>
  47903. <doc>
  47904. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  47905. It acts as a global namespace for all keys.]]>
  47906. </doc>
  47907. </class>
  47908. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  47909. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  47910. <interface name="JobHistory.Listener" abstract="true"
  47911. static="true" final="false" visibility="public"
  47912. deprecated="not deprecated">
  47913. <method name="handle"
  47914. abstract="false" native="false" synchronized="false"
  47915. static="false" final="false" visibility="public"
  47916. deprecated="not deprecated">
  47917. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  47918. <param name="values" type="java.util.Map"/>
  47919. <exception name="IOException" type="java.io.IOException"/>
  47920. <doc>
  47921. <![CDATA[Callback method for history parser.
  47922. @param recType type of record, which is the first entry in the line.
  47923. @param values a map of key-value pairs as thry appear in history.
  47924. @throws IOException]]>
  47925. </doc>
  47926. </method>
  47927. <doc>
  47928. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  47929. should be implemented and passed to JobHistory.parseHistory()]]>
  47930. </doc>
  47931. </interface>
  47932. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  47933. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  47934. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  47935. abstract="false"
  47936. static="true" final="false" visibility="public"
  47937. deprecated="not deprecated">
  47938. <constructor name="JobHistory.MapAttempt"
  47939. static="false" final="false" visibility="public"
  47940. deprecated="not deprecated">
  47941. </constructor>
  47942. <method name="logStarted"
  47943. abstract="false" native="false" synchronized="false"
  47944. static="true" final="false" visibility="public"
  47945. deprecated="Use
  47946. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  47947. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47948. <param name="startTime" type="long"/>
  47949. <param name="hostName" type="java.lang.String"/>
  47950. <doc>
  47951. <![CDATA[Log start time of this map task attempt.
  47952. @param taskAttemptId task attempt id
  47953. @param startTime start time of task attempt as reported by task tracker.
  47954. @param hostName host name of the task attempt.
  47955. @deprecated Use
  47956. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  47957. </doc>
  47958. </method>
  47959. <method name="logStarted"
  47960. abstract="false" native="false" synchronized="false"
  47961. static="true" final="false" visibility="public"
  47962. deprecated="not deprecated">
  47963. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47964. <param name="startTime" type="long"/>
  47965. <param name="trackerName" type="java.lang.String"/>
  47966. <param name="httpPort" type="int"/>
  47967. <param name="taskType" type="java.lang.String"/>
  47968. <doc>
  47969. <![CDATA[Log start time of this map task attempt.
  47970. @param taskAttemptId task attempt id
  47971. @param startTime start time of task attempt as reported by task tracker.
  47972. @param trackerName name of the tracker executing the task attempt.
  47973. @param httpPort http port of the task tracker executing the task attempt
  47974. @param taskType Whether the attempt is cleanup or setup or map]]>
  47975. </doc>
  47976. </method>
  47977. <method name="logFinished"
  47978. abstract="false" native="false" synchronized="false"
  47979. static="true" final="false" visibility="public"
  47980. deprecated="Use
  47981. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  47982. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47983. <param name="finishTime" type="long"/>
  47984. <param name="hostName" type="java.lang.String"/>
  47985. <doc>
  47986. <![CDATA[Log finish time of map task attempt.
  47987. @param taskAttemptId task attempt id
  47988. @param finishTime finish time
  47989. @param hostName host name
  47990. @deprecated Use
  47991. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  47992. </doc>
  47993. </method>
  47994. <method name="logFinished"
  47995. abstract="false" native="false" synchronized="false"
  47996. static="true" final="false" visibility="public"
  47997. deprecated="not deprecated">
  47998. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  47999. <param name="finishTime" type="long"/>
  48000. <param name="hostName" type="java.lang.String"/>
  48001. <param name="taskType" type="java.lang.String"/>
  48002. <param name="stateString" type="java.lang.String"/>
  48003. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  48004. <doc>
  48005. <![CDATA[Log finish time of map task attempt.
  48006. @param taskAttemptId task attempt id
  48007. @param finishTime finish time
  48008. @param hostName host name
  48009. @param taskType Whether the attempt is cleanup or setup or map
  48010. @param stateString state string of the task attempt
  48011. @param counter counters of the task attempt]]>
  48012. </doc>
  48013. </method>
  48014. <method name="logFailed"
  48015. abstract="false" native="false" synchronized="false"
  48016. static="true" final="false" visibility="public"
  48017. deprecated="Use
  48018. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  48019. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48020. <param name="timestamp" type="long"/>
  48021. <param name="hostName" type="java.lang.String"/>
  48022. <param name="error" type="java.lang.String"/>
  48023. <doc>
  48024. <![CDATA[Log task attempt failed event.
  48025. @param taskAttemptId task attempt id
  48026. @param timestamp timestamp
  48027. @param hostName hostname of this task attempt.
  48028. @param error error message if any for this task attempt.
  48029. @deprecated Use
  48030. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  48031. </doc>
  48032. </method>
  48033. <method name="logFailed"
  48034. abstract="false" native="false" synchronized="false"
  48035. static="true" final="false" visibility="public"
  48036. deprecated="not deprecated">
  48037. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48038. <param name="timestamp" type="long"/>
  48039. <param name="hostName" type="java.lang.String"/>
  48040. <param name="error" type="java.lang.String"/>
  48041. <param name="taskType" type="java.lang.String"/>
  48042. <doc>
  48043. <![CDATA[Log task attempt failed event.
  48044. @param taskAttemptId task attempt id
  48045. @param timestamp timestamp
  48046. @param hostName hostname of this task attempt.
  48047. @param error error message if any for this task attempt.
  48048. @param taskType Whether the attempt is cleanup or setup or map]]>
  48049. </doc>
  48050. </method>
  48051. <method name="logKilled"
  48052. abstract="false" native="false" synchronized="false"
  48053. static="true" final="false" visibility="public"
  48054. deprecated="Use
  48055. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  48056. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48057. <param name="timestamp" type="long"/>
  48058. <param name="hostName" type="java.lang.String"/>
  48059. <param name="error" type="java.lang.String"/>
  48060. <doc>
  48061. <![CDATA[Log task attempt killed event.
  48062. @param taskAttemptId task attempt id
  48063. @param timestamp timestamp
  48064. @param hostName hostname of this task attempt.
  48065. @param error error message if any for this task attempt.
  48066. @deprecated Use
  48067. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  48068. </doc>
  48069. </method>
  48070. <method name="logKilled"
  48071. abstract="false" native="false" synchronized="false"
  48072. static="true" final="false" visibility="public"
  48073. deprecated="not deprecated">
  48074. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48075. <param name="timestamp" type="long"/>
  48076. <param name="hostName" type="java.lang.String"/>
  48077. <param name="error" type="java.lang.String"/>
  48078. <param name="taskType" type="java.lang.String"/>
  48079. <doc>
  48080. <![CDATA[Log task attempt killed event.
  48081. @param taskAttemptId task attempt id
  48082. @param timestamp timestamp
  48083. @param hostName hostname of this task attempt.
  48084. @param error error message if any for this task attempt.
  48085. @param taskType Whether the attempt is cleanup or setup or map]]>
  48086. </doc>
  48087. </method>
  48088. <doc>
  48089. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  48090. a Map Attempt on a node.]]>
  48091. </doc>
  48092. </class>
  48093. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  48094. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  48095. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  48096. abstract="false"
  48097. static="true" final="true" visibility="public"
  48098. deprecated="not deprecated">
  48099. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  48100. abstract="false" native="false" synchronized="false"
  48101. static="true" final="false" visibility="public"
  48102. deprecated="not deprecated">
  48103. </method>
  48104. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48105. abstract="false" native="false" synchronized="false"
  48106. static="true" final="false" visibility="public"
  48107. deprecated="not deprecated">
  48108. <param name="name" type="java.lang.String"/>
  48109. </method>
  48110. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48111. transient="false" volatile="false"
  48112. static="true" final="true" visibility="public"
  48113. deprecated="not deprecated">
  48114. </field>
  48115. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48116. transient="false" volatile="false"
  48117. static="true" final="true" visibility="public"
  48118. deprecated="not deprecated">
  48119. </field>
  48120. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48121. transient="false" volatile="false"
  48122. static="true" final="true" visibility="public"
  48123. deprecated="not deprecated">
  48124. </field>
  48125. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48126. transient="false" volatile="false"
  48127. static="true" final="true" visibility="public"
  48128. deprecated="not deprecated">
  48129. </field>
  48130. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48131. transient="false" volatile="false"
  48132. static="true" final="true" visibility="public"
  48133. deprecated="not deprecated">
  48134. </field>
  48135. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  48136. transient="false" volatile="false"
  48137. static="true" final="true" visibility="public"
  48138. deprecated="not deprecated">
  48139. </field>
  48140. <doc>
  48141. <![CDATA[Record types are identifiers for each line of log in history files.
  48142. A record type appears as the first token in a single line of log.]]>
  48143. </doc>
  48144. </class>
  48145. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  48146. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  48147. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  48148. abstract="false"
  48149. static="true" final="false" visibility="public"
  48150. deprecated="not deprecated">
  48151. <constructor name="JobHistory.ReduceAttempt"
  48152. static="false" final="false" visibility="public"
  48153. deprecated="not deprecated">
  48154. </constructor>
  48155. <method name="logStarted"
  48156. abstract="false" native="false" synchronized="false"
  48157. static="true" final="false" visibility="public"
  48158. deprecated="Use
  48159. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  48160. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48161. <param name="startTime" type="long"/>
  48162. <param name="hostName" type="java.lang.String"/>
  48163. <doc>
  48164. <![CDATA[Log start time of Reduce task attempt.
  48165. @param taskAttemptId task attempt id
  48166. @param startTime start time
  48167. @param hostName host name
  48168. @deprecated Use
  48169. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  48170. </doc>
  48171. </method>
  48172. <method name="logStarted"
  48173. abstract="false" native="false" synchronized="false"
  48174. static="true" final="false" visibility="public"
  48175. deprecated="not deprecated">
  48176. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48177. <param name="startTime" type="long"/>
  48178. <param name="trackerName" type="java.lang.String"/>
  48179. <param name="httpPort" type="int"/>
  48180. <param name="taskType" type="java.lang.String"/>
  48181. <doc>
  48182. <![CDATA[Log start time of Reduce task attempt.
  48183. @param taskAttemptId task attempt id
  48184. @param startTime start time
  48185. @param trackerName tracker name
  48186. @param httpPort the http port of the tracker executing the task attempt
  48187. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48188. </doc>
  48189. </method>
  48190. <method name="logFinished"
  48191. abstract="false" native="false" synchronized="false"
  48192. static="true" final="false" visibility="public"
  48193. deprecated="Use
  48194. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  48195. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48196. <param name="shuffleFinished" type="long"/>
  48197. <param name="sortFinished" type="long"/>
  48198. <param name="finishTime" type="long"/>
  48199. <param name="hostName" type="java.lang.String"/>
  48200. <doc>
  48201. <![CDATA[Log finished event of this task.
  48202. @param taskAttemptId task attempt id
  48203. @param shuffleFinished shuffle finish time
  48204. @param sortFinished sort finish time
  48205. @param finishTime finish time of task
  48206. @param hostName host name where task attempt executed
  48207. @deprecated Use
  48208. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  48209. </doc>
  48210. </method>
  48211. <method name="logFinished"
  48212. abstract="false" native="false" synchronized="false"
  48213. static="true" final="false" visibility="public"
  48214. deprecated="not deprecated">
  48215. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48216. <param name="shuffleFinished" type="long"/>
  48217. <param name="sortFinished" type="long"/>
  48218. <param name="finishTime" type="long"/>
  48219. <param name="hostName" type="java.lang.String"/>
  48220. <param name="taskType" type="java.lang.String"/>
  48221. <param name="stateString" type="java.lang.String"/>
  48222. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  48223. <doc>
  48224. <![CDATA[Log finished event of this task.
  48225. @param taskAttemptId task attempt id
  48226. @param shuffleFinished shuffle finish time
  48227. @param sortFinished sort finish time
  48228. @param finishTime finish time of task
  48229. @param hostName host name where task attempt executed
  48230. @param taskType Whether the attempt is cleanup or setup or reduce
  48231. @param stateString the state string of the attempt
  48232. @param counter counters of the attempt]]>
  48233. </doc>
  48234. </method>
  48235. <method name="logFailed"
  48236. abstract="false" native="false" synchronized="false"
  48237. static="true" final="false" visibility="public"
  48238. deprecated="Use
  48239. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  48240. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48241. <param name="timestamp" type="long"/>
  48242. <param name="hostName" type="java.lang.String"/>
  48243. <param name="error" type="java.lang.String"/>
  48244. <doc>
  48245. <![CDATA[Log failed reduce task attempt.
  48246. @param taskAttemptId task attempt id
  48247. @param timestamp time stamp when task failed
  48248. @param hostName host name of the task attempt.
  48249. @param error error message of the task.
  48250. @deprecated Use
  48251. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  48252. </doc>
  48253. </method>
  48254. <method name="logFailed"
  48255. abstract="false" native="false" synchronized="false"
  48256. static="true" final="false" visibility="public"
  48257. deprecated="not deprecated">
  48258. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48259. <param name="timestamp" type="long"/>
  48260. <param name="hostName" type="java.lang.String"/>
  48261. <param name="error" type="java.lang.String"/>
  48262. <param name="taskType" type="java.lang.String"/>
  48263. <doc>
  48264. <![CDATA[Log failed reduce task attempt.
  48265. @param taskAttemptId task attempt id
  48266. @param timestamp time stamp when task failed
  48267. @param hostName host name of the task attempt.
  48268. @param error error message of the task.
  48269. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48270. </doc>
  48271. </method>
  48272. <method name="logKilled"
  48273. abstract="false" native="false" synchronized="false"
  48274. static="true" final="false" visibility="public"
  48275. deprecated="Use
  48276. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  48277. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48278. <param name="timestamp" type="long"/>
  48279. <param name="hostName" type="java.lang.String"/>
  48280. <param name="error" type="java.lang.String"/>
  48281. <doc>
  48282. <![CDATA[Log killed reduce task attempt.
  48283. @param taskAttemptId task attempt id
  48284. @param timestamp time stamp when task failed
  48285. @param hostName host name of the task attempt.
  48286. @param error error message of the task.
  48287. @deprecated Use
  48288. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  48289. </doc>
  48290. </method>
  48291. <method name="logKilled"
  48292. abstract="false" native="false" synchronized="false"
  48293. static="true" final="false" visibility="public"
  48294. deprecated="not deprecated">
  48295. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48296. <param name="timestamp" type="long"/>
  48297. <param name="hostName" type="java.lang.String"/>
  48298. <param name="error" type="java.lang.String"/>
  48299. <param name="taskType" type="java.lang.String"/>
  48300. <doc>
  48301. <![CDATA[Log killed reduce task attempt.
  48302. @param taskAttemptId task attempt id
  48303. @param timestamp time stamp when task failed
  48304. @param hostName host name of the task attempt.
  48305. @param error error message of the task.
  48306. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  48307. </doc>
  48308. </method>
  48309. <doc>
  48310. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  48311. a Map Attempt on a node.]]>
  48312. </doc>
  48313. </class>
  48314. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  48315. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  48316. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  48317. abstract="false"
  48318. static="true" final="false" visibility="public"
  48319. deprecated="not deprecated">
  48320. <constructor name="JobHistory.Task"
  48321. static="false" final="false" visibility="public"
  48322. deprecated="not deprecated">
  48323. </constructor>
  48324. <method name="logStarted"
  48325. abstract="false" native="false" synchronized="false"
  48326. static="true" final="false" visibility="public"
  48327. deprecated="not deprecated">
  48328. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48329. <param name="taskType" type="java.lang.String"/>
  48330. <param name="startTime" type="long"/>
  48331. <param name="splitLocations" type="java.lang.String"/>
  48332. <doc>
  48333. <![CDATA[Log start time of task (TIP).
  48334. @param taskId task id
  48335. @param taskType MAP or REDUCE
  48336. @param startTime startTime of tip.]]>
  48337. </doc>
  48338. </method>
  48339. <method name="logFinished"
  48340. abstract="false" native="false" synchronized="false"
  48341. static="true" final="false" visibility="public"
  48342. deprecated="not deprecated">
  48343. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48344. <param name="taskType" type="java.lang.String"/>
  48345. <param name="finishTime" type="long"/>
  48346. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48347. <doc>
  48348. <![CDATA[Log finish time of task.
  48349. @param taskId task id
  48350. @param taskType MAP or REDUCE
  48351. @param finishTime finish timeof task in ms]]>
  48352. </doc>
  48353. </method>
  48354. <method name="logUpdates"
  48355. abstract="false" native="false" synchronized="false"
  48356. static="true" final="false" visibility="public"
  48357. deprecated="not deprecated">
  48358. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48359. <param name="finishTime" type="long"/>
  48360. <doc>
  48361. <![CDATA[Update the finish time of task.
  48362. @param taskId task id
  48363. @param finishTime finish time of task in ms]]>
  48364. </doc>
  48365. </method>
  48366. <method name="logFailed"
  48367. abstract="false" native="false" synchronized="false"
  48368. static="true" final="false" visibility="public"
  48369. deprecated="not deprecated">
  48370. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48371. <param name="taskType" type="java.lang.String"/>
  48372. <param name="time" type="long"/>
  48373. <param name="error" type="java.lang.String"/>
  48374. <doc>
  48375. <![CDATA[Log job failed event.
  48376. @param taskId task id
  48377. @param taskType MAP or REDUCE.
  48378. @param time timestamp when job failed detected.
  48379. @param error error message for failure.]]>
  48380. </doc>
  48381. </method>
  48382. <method name="logFailed"
  48383. abstract="false" native="false" synchronized="false"
  48384. static="true" final="false" visibility="public"
  48385. deprecated="not deprecated">
  48386. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  48387. <param name="taskType" type="java.lang.String"/>
  48388. <param name="time" type="long"/>
  48389. <param name="error" type="java.lang.String"/>
  48390. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  48391. <doc>
  48392. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  48393. </doc>
  48394. </method>
  48395. <method name="getTaskAttempts" return="java.util.Map"
  48396. abstract="false" native="false" synchronized="false"
  48397. static="false" final="false" visibility="public"
  48398. deprecated="not deprecated">
  48399. <doc>
  48400. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  48401. </doc>
  48402. </method>
  48403. <doc>
  48404. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  48405. All events logged by this class are logged in a separate file per job in
  48406. job tracker history. These events map to TIPs in jobtracker.]]>
  48407. </doc>
  48408. </class>
  48409. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  48410. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  48411. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  48412. abstract="false"
  48413. static="true" final="false" visibility="public"
  48414. deprecated="not deprecated">
  48415. <constructor name="JobHistory.TaskAttempt"
  48416. static="false" final="false" visibility="public"
  48417. deprecated="not deprecated">
  48418. </constructor>
  48419. <doc>
  48420. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  48421. </doc>
  48422. </class>
  48423. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  48424. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  48425. <class name="JobHistory.Values" extends="java.lang.Enum"
  48426. abstract="false"
  48427. static="true" final="true" visibility="public"
  48428. deprecated="not deprecated">
  48429. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  48430. abstract="false" native="false" synchronized="false"
  48431. static="true" final="false" visibility="public"
  48432. deprecated="not deprecated">
  48433. </method>
  48434. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  48435. abstract="false" native="false" synchronized="false"
  48436. static="true" final="false" visibility="public"
  48437. deprecated="not deprecated">
  48438. <param name="name" type="java.lang.String"/>
  48439. </method>
  48440. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  48441. transient="false" volatile="false"
  48442. static="true" final="true" visibility="public"
  48443. deprecated="not deprecated">
  48444. </field>
  48445. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  48446. transient="false" volatile="false"
  48447. static="true" final="true" visibility="public"
  48448. deprecated="not deprecated">
  48449. </field>
  48450. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  48451. transient="false" volatile="false"
  48452. static="true" final="true" visibility="public"
  48453. deprecated="not deprecated">
  48454. </field>
  48455. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48456. transient="false" volatile="false"
  48457. static="true" final="true" visibility="public"
  48458. deprecated="not deprecated">
  48459. </field>
  48460. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  48461. transient="false" volatile="false"
  48462. static="true" final="true" visibility="public"
  48463. deprecated="not deprecated">
  48464. </field>
  48465. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48466. transient="false" volatile="false"
  48467. static="true" final="true" visibility="public"
  48468. deprecated="not deprecated">
  48469. </field>
  48470. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  48471. transient="false" volatile="false"
  48472. static="true" final="true" visibility="public"
  48473. deprecated="not deprecated">
  48474. </field>
  48475. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48476. transient="false" volatile="false"
  48477. static="true" final="true" visibility="public"
  48478. deprecated="not deprecated">
  48479. </field>
  48480. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  48481. transient="false" volatile="false"
  48482. static="true" final="true" visibility="public"
  48483. deprecated="not deprecated">
  48484. </field>
  48485. <doc>
  48486. <![CDATA[This enum contains some of the values commonly used by history log events.
  48487. since values in history can only be strings - Values.name() is used in
  48488. most places in history file.]]>
  48489. </doc>
  48490. </class>
  48491. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  48492. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  48493. <class name="JobHistoryServer" extends="java.lang.Object"
  48494. abstract="false"
  48495. static="false" final="false" visibility="public"
  48496. deprecated="not deprecated">
  48497. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  48498. static="false" final="false" visibility="public"
  48499. deprecated="not deprecated">
  48500. <exception name="IOException" type="java.io.IOException"/>
  48501. <doc>
  48502. <![CDATA[Starts job history server as a independent process
  48503. * Initializes ACL Manager
  48504. * Starts a webapp to service history requests
  48505. @param conf - Mr Cluster configuration
  48506. @throws IOException - any exception starting history server]]>
  48507. </doc>
  48508. </constructor>
  48509. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  48510. static="false" final="false" visibility="public"
  48511. deprecated="not deprecated">
  48512. <exception name="IOException" type="java.io.IOException"/>
  48513. <doc>
  48514. <![CDATA[Starts job history server as a embedded server within job tracker
  48515. * Starts a webapp to service history requests
  48516. @param conf - MR Cluster configuration
  48517. @param aclsManager - ACLs Manager for user authentication
  48518. @param httpServer - Http Server instance
  48519. @throws IOException - any exception starting history server]]>
  48520. </doc>
  48521. </constructor>
  48522. <method name="start"
  48523. abstract="false" native="false" synchronized="false"
  48524. static="false" final="false" visibility="public"
  48525. deprecated="not deprecated">
  48526. <exception name="IOException" type="java.io.IOException"/>
  48527. </method>
  48528. <method name="join"
  48529. abstract="false" native="false" synchronized="false"
  48530. static="false" final="false" visibility="public"
  48531. deprecated="not deprecated">
  48532. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  48533. </method>
  48534. <method name="shutdown"
  48535. abstract="false" native="false" synchronized="false"
  48536. static="false" final="false" visibility="public"
  48537. deprecated="not deprecated">
  48538. <exception name="Exception" type="java.lang.Exception"/>
  48539. <doc>
  48540. <![CDATA[Shutsdown the history server if already initialized
  48541. @throws Exception - Any exception during shutdown]]>
  48542. </doc>
  48543. </method>
  48544. <method name="main"
  48545. abstract="false" native="false" synchronized="false"
  48546. static="true" final="false" visibility="public"
  48547. deprecated="not deprecated">
  48548. <param name="args" type="java.lang.String[]"/>
  48549. <doc>
  48550. <![CDATA[Start job history server as an independent process
  48551. @param args - Command line arguments]]>
  48552. </doc>
  48553. </method>
  48554. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  48555. transient="false" volatile="false"
  48556. static="true" final="true" visibility="public"
  48557. deprecated="not deprecated">
  48558. </field>
  48559. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  48560. transient="false" volatile="false"
  48561. static="true" final="true" visibility="public"
  48562. deprecated="not deprecated">
  48563. </field>
  48564. <doc>
  48565. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  48566. related requests from client.
  48567. History Server can be initialized in one of two modes
  48568. * Emdedded within {@link JobTracker}
  48569. * External daemon, can either be run on the job tracker node or outside
  48570. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  48571. of the history server
  48572. mapred.job.history.server.http.address is address to which history web
  48573. server is bound to. If operating in embedded mode, the hostname on
  48574. history address has to be same as the job tracker host name
  48575. mapred.job.history.server.embedded (default is true) will cause job tracker
  48576. to init history server, else the server need to be started as a
  48577. separate daemon process]]>
  48578. </doc>
  48579. </class>
  48580. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  48581. <!-- start class org.apache.hadoop.mapred.JobID -->
  48582. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  48583. abstract="false"
  48584. static="false" final="false" visibility="public"
  48585. deprecated="not deprecated">
  48586. <constructor name="JobID" type="java.lang.String, int"
  48587. static="false" final="false" visibility="public"
  48588. deprecated="not deprecated">
  48589. <doc>
  48590. <![CDATA[Constructs a JobID object
  48591. @param jtIdentifier jobTracker identifier
  48592. @param id job number]]>
  48593. </doc>
  48594. </constructor>
  48595. <constructor name="JobID"
  48596. static="false" final="false" visibility="public"
  48597. deprecated="not deprecated">
  48598. </constructor>
  48599. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  48600. abstract="false" native="false" synchronized="false"
  48601. static="true" final="false" visibility="public"
  48602. deprecated="not deprecated">
  48603. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  48604. <doc>
  48605. <![CDATA[Downgrade a new JobID to an old one
  48606. @param old a new or old JobID
  48607. @return either old or a new JobID build to match old]]>
  48608. </doc>
  48609. </method>
  48610. <method name="read" return="org.apache.hadoop.mapred.JobID"
  48611. abstract="false" native="false" synchronized="false"
  48612. static="true" final="false" visibility="public"
  48613. deprecated="not deprecated">
  48614. <param name="in" type="java.io.DataInput"/>
  48615. <exception name="IOException" type="java.io.IOException"/>
  48616. </method>
  48617. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  48618. abstract="false" native="false" synchronized="false"
  48619. static="true" final="false" visibility="public"
  48620. deprecated="not deprecated">
  48621. <param name="str" type="java.lang.String"/>
  48622. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  48623. <doc>
  48624. <![CDATA[Construct a JobId object from given string
  48625. @return constructed JobId object or null if the given String is null
  48626. @throws IllegalArgumentException if the given string is malformed]]>
  48627. </doc>
  48628. </method>
  48629. <method name="getJobIDsPattern" return="java.lang.String"
  48630. abstract="false" native="false" synchronized="false"
  48631. static="true" final="false" visibility="public"
  48632. deprecated="not deprecated">
  48633. <param name="jtIdentifier" type="java.lang.String"/>
  48634. <param name="jobId" type="java.lang.Integer"/>
  48635. <doc>
  48636. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  48637. be given null, in which case that part of the regex will be generic.
  48638. For example to obtain a regex matching <i>any job</i>
  48639. run on the jobtracker started at <i>200707121733</i>, we would use :
  48640. <pre>
  48641. JobID.getTaskIDsPattern("200707121733", null);
  48642. </pre>
  48643. which will return :
  48644. <pre> "job_200707121733_[0-9]*" </pre>
  48645. @param jtIdentifier jobTracker identifier, or null
  48646. @param jobId job number, or null
  48647. @return a regex pattern matching JobIDs]]>
  48648. </doc>
  48649. </method>
  48650. <doc>
  48651. <![CDATA[JobID represents the immutable and unique identifier for
  48652. the job. JobID consists of two parts. First part
  48653. represents the jobtracker identifier, so that jobID to jobtracker map
  48654. is defined. For cluster setup this string is the jobtracker
  48655. start time, for local setting, it is "local".
  48656. Second part of the JobID is the job number. <br>
  48657. An example JobID is :
  48658. <code>job_200707121733_0003</code> , which represents the third job
  48659. running at the jobtracker started at <code>200707121733</code>.
  48660. <p>
  48661. Applications should never construct or parse JobID strings, but rather
  48662. use appropriate constructors or {@link #forName(String)} method.
  48663. @see TaskID
  48664. @see TaskAttemptID]]>
  48665. </doc>
  48666. </class>
  48667. <!-- end class org.apache.hadoop.mapred.JobID -->
  48668. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  48669. <class name="JobInProgress" extends="java.lang.Object"
  48670. abstract="false"
  48671. static="false" final="false" visibility="public"
  48672. deprecated="not deprecated">
  48673. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  48674. static="false" final="false" visibility="protected"
  48675. deprecated="not deprecated">
  48676. <exception name="IOException" type="java.io.IOException"/>
  48677. <doc>
  48678. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  48679. </doc>
  48680. </constructor>
  48681. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  48682. abstract="false" native="false" synchronized="false"
  48683. static="false" final="false" visibility="public"
  48684. deprecated="not deprecated">
  48685. <doc>
  48686. <![CDATA[Get the QueueMetrics object associated with this job
  48687. @return QueueMetrics]]>
  48688. </doc>
  48689. </method>
  48690. <method name="cleanUpMetrics"
  48691. abstract="false" native="false" synchronized="false"
  48692. static="false" final="false" visibility="public"
  48693. deprecated="not deprecated">
  48694. <doc>
  48695. <![CDATA[Called when the job is complete]]>
  48696. </doc>
  48697. </method>
  48698. <method name="inited" return="boolean"
  48699. abstract="false" native="false" synchronized="false"
  48700. static="false" final="false" visibility="public"
  48701. deprecated="not deprecated">
  48702. <doc>
  48703. <![CDATA[Check if the job has been initialized.
  48704. @return <code>true</code> if the job has been initialized,
  48705. <code>false</code> otherwise]]>
  48706. </doc>
  48707. </method>
  48708. <method name="getUser" return="java.lang.String"
  48709. abstract="false" native="false" synchronized="false"
  48710. static="false" final="false" visibility="public"
  48711. deprecated="not deprecated">
  48712. <doc>
  48713. <![CDATA[Get the user for the job]]>
  48714. </doc>
  48715. </method>
  48716. <method name="initTasks"
  48717. abstract="false" native="false" synchronized="true"
  48718. static="false" final="false" visibility="public"
  48719. deprecated="not deprecated">
  48720. <exception name="IOException" type="java.io.IOException"/>
  48721. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  48722. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  48723. <doc>
  48724. <![CDATA[Construct the splits, etc. This is invoked from an async
  48725. thread so that split-computation doesn't block anyone.]]>
  48726. </doc>
  48727. </method>
  48728. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  48729. abstract="false" native="false" synchronized="false"
  48730. static="false" final="false" visibility="public"
  48731. deprecated="not deprecated">
  48732. </method>
  48733. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  48734. abstract="false" native="false" synchronized="false"
  48735. static="false" final="false" visibility="public"
  48736. deprecated="not deprecated">
  48737. </method>
  48738. <method name="getLaunchTime" return="long"
  48739. abstract="false" native="false" synchronized="true"
  48740. static="false" final="false" visibility="public"
  48741. deprecated="not deprecated">
  48742. </method>
  48743. <method name="getStartTime" return="long"
  48744. abstract="false" native="false" synchronized="false"
  48745. static="false" final="false" visibility="public"
  48746. deprecated="not deprecated">
  48747. </method>
  48748. <method name="getFinishTime" return="long"
  48749. abstract="false" native="false" synchronized="false"
  48750. static="false" final="false" visibility="public"
  48751. deprecated="not deprecated">
  48752. </method>
  48753. <method name="desiredMaps" return="int"
  48754. abstract="false" native="false" synchronized="false"
  48755. static="false" final="false" visibility="public"
  48756. deprecated="not deprecated">
  48757. </method>
  48758. <method name="finishedMaps" return="int"
  48759. abstract="false" native="false" synchronized="true"
  48760. static="false" final="false" visibility="public"
  48761. deprecated="not deprecated">
  48762. </method>
  48763. <method name="desiredReduces" return="int"
  48764. abstract="false" native="false" synchronized="false"
  48765. static="false" final="false" visibility="public"
  48766. deprecated="not deprecated">
  48767. </method>
  48768. <method name="runningMaps" return="int"
  48769. abstract="false" native="false" synchronized="true"
  48770. static="false" final="false" visibility="public"
  48771. deprecated="not deprecated">
  48772. </method>
  48773. <method name="runningReduces" return="int"
  48774. abstract="false" native="false" synchronized="true"
  48775. static="false" final="false" visibility="public"
  48776. deprecated="not deprecated">
  48777. </method>
  48778. <method name="finishedReduces" return="int"
  48779. abstract="false" native="false" synchronized="true"
  48780. static="false" final="false" visibility="public"
  48781. deprecated="not deprecated">
  48782. </method>
  48783. <method name="pendingMaps" return="int"
  48784. abstract="false" native="false" synchronized="true"
  48785. static="false" final="false" visibility="public"
  48786. deprecated="not deprecated">
  48787. </method>
  48788. <method name="pendingReduces" return="int"
  48789. abstract="false" native="false" synchronized="true"
  48790. static="false" final="false" visibility="public"
  48791. deprecated="not deprecated">
  48792. </method>
  48793. <method name="desiredTasks" return="int"
  48794. abstract="false" native="false" synchronized="false"
  48795. static="false" final="false" visibility="public"
  48796. deprecated="not deprecated">
  48797. <doc>
  48798. <![CDATA[Return total number of map and reduce tasks desired by the job.
  48799. @return total number of map and reduce tasks desired by the job]]>
  48800. </doc>
  48801. </method>
  48802. <method name="getNumSlotsPerTask" return="int"
  48803. abstract="false" native="false" synchronized="false"
  48804. static="false" final="false" visibility="public"
  48805. deprecated="not deprecated">
  48806. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  48807. </method>
  48808. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  48809. abstract="false" native="false" synchronized="false"
  48810. static="false" final="false" visibility="public"
  48811. deprecated="not deprecated">
  48812. </method>
  48813. <method name="setPriority"
  48814. abstract="false" native="false" synchronized="false"
  48815. static="false" final="false" visibility="public"
  48816. deprecated="not deprecated">
  48817. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  48818. </method>
  48819. <method name="reportTasksInProgress" return="java.util.Vector"
  48820. abstract="false" native="false" synchronized="true"
  48821. static="false" final="false" visibility="public"
  48822. deprecated="not deprecated">
  48823. <param name="shouldBeMap" type="boolean"/>
  48824. <param name="shouldBeComplete" type="boolean"/>
  48825. <doc>
  48826. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  48827. </doc>
  48828. </method>
  48829. <method name="reportCleanupTIPs" return="java.util.Vector"
  48830. abstract="false" native="false" synchronized="true"
  48831. static="false" final="false" visibility="public"
  48832. deprecated="not deprecated">
  48833. <param name="shouldBeComplete" type="boolean"/>
  48834. <doc>
  48835. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  48836. </doc>
  48837. </method>
  48838. <method name="reportSetupTIPs" return="java.util.Vector"
  48839. abstract="false" native="false" synchronized="true"
  48840. static="false" final="false" visibility="public"
  48841. deprecated="not deprecated">
  48842. <param name="shouldBeComplete" type="boolean"/>
  48843. <doc>
  48844. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  48845. </doc>
  48846. </method>
  48847. <method name="updateTaskStatus"
  48848. abstract="false" native="false" synchronized="true"
  48849. static="false" final="false" visibility="public"
  48850. deprecated="not deprecated">
  48851. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  48852. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  48853. <doc>
  48854. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  48855. </doc>
  48856. </method>
  48857. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  48858. abstract="false" native="false" synchronized="true"
  48859. static="false" final="false" visibility="public"
  48860. deprecated="not deprecated">
  48861. <doc>
  48862. <![CDATA[Returns the job-level counters.
  48863. @return the job-level counters.]]>
  48864. </doc>
  48865. </method>
  48866. <method name="getMapCounters" return="boolean"
  48867. abstract="false" native="false" synchronized="true"
  48868. static="false" final="false" visibility="public"
  48869. deprecated="not deprecated">
  48870. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48871. <doc>
  48872. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  48873. This method returns true if counters are within limit or false.]]>
  48874. </doc>
  48875. </method>
  48876. <method name="getReduceCounters" return="boolean"
  48877. abstract="false" native="false" synchronized="true"
  48878. static="false" final="false" visibility="public"
  48879. deprecated="not deprecated">
  48880. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  48881. <doc>
  48882. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  48883. This method returns true if counters are within limits and false otherwise.]]>
  48884. </doc>
  48885. </method>
  48886. <method name="getCounters" return="boolean"
  48887. abstract="false" native="false" synchronized="true"
  48888. static="false" final="false" visibility="public"
  48889. deprecated="not deprecated">
  48890. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  48891. <doc>
  48892. <![CDATA[Returns the total job counters, by adding together the job,
  48893. the map and the reduce counters. This method returns true if
  48894. counters are within limits and false otherwise.]]>
  48895. </doc>
  48896. </method>
  48897. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  48898. abstract="false" native="false" synchronized="true"
  48899. static="false" final="false" visibility="public"
  48900. deprecated="not deprecated">
  48901. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48902. <param name="clusterSize" type="int"/>
  48903. <param name="numUniqueHosts" type="int"/>
  48904. <exception name="IOException" type="java.io.IOException"/>
  48905. <doc>
  48906. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  48907. </doc>
  48908. </method>
  48909. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  48910. abstract="false" native="false" synchronized="false"
  48911. static="false" final="false" visibility="public"
  48912. deprecated="not deprecated">
  48913. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48914. <param name="isMapSlot" type="boolean"/>
  48915. <exception name="IOException" type="java.io.IOException"/>
  48916. </method>
  48917. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48918. abstract="false" native="false" synchronized="true"
  48919. static="false" final="false" visibility="public"
  48920. deprecated="not deprecated">
  48921. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48922. <param name="clusterSize" type="int"/>
  48923. <param name="numUniqueHosts" type="int"/>
  48924. <exception name="IOException" type="java.io.IOException"/>
  48925. </method>
  48926. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48927. abstract="false" native="false" synchronized="true"
  48928. static="false" final="false" visibility="public"
  48929. deprecated="not deprecated">
  48930. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48931. <param name="clusterSize" type="int"/>
  48932. <param name="numUniqueHosts" type="int"/>
  48933. <exception name="IOException" type="java.io.IOException"/>
  48934. </method>
  48935. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  48936. abstract="false" native="false" synchronized="true"
  48937. static="false" final="false" visibility="public"
  48938. deprecated="not deprecated">
  48939. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48940. <param name="clusterSize" type="int"/>
  48941. <param name="numUniqueHosts" type="int"/>
  48942. <exception name="IOException" type="java.io.IOException"/>
  48943. </method>
  48944. <method name="schedulingOpportunity"
  48945. abstract="false" native="false" synchronized="false"
  48946. static="false" final="false" visibility="public"
  48947. deprecated="not deprecated">
  48948. </method>
  48949. <method name="resetSchedulingOpportunities"
  48950. abstract="false" native="false" synchronized="false"
  48951. static="false" final="false" visibility="public"
  48952. deprecated="not deprecated">
  48953. </method>
  48954. <method name="getNumSchedulingOpportunities" return="long"
  48955. abstract="false" native="false" synchronized="false"
  48956. static="false" final="false" visibility="public"
  48957. deprecated="not deprecated">
  48958. </method>
  48959. <method name="overrideSchedulingOpportunities"
  48960. abstract="false" native="false" synchronized="false"
  48961. static="false" final="false" visibility="public"
  48962. deprecated="not deprecated">
  48963. </method>
  48964. <method name="scheduleOffSwitch" return="boolean"
  48965. abstract="false" native="false" synchronized="false"
  48966. static="false" final="false" visibility="public"
  48967. deprecated="not deprecated">
  48968. <param name="numTaskTrackers" type="int"/>
  48969. <doc>
  48970. <![CDATA[Check if we can schedule an off-switch task for this job.
  48971. @param numTaskTrackers number of tasktrackers
  48972. @return <code>true</code> if we can schedule off-switch,
  48973. <code>false</code> otherwise
  48974. We check the number of missed opportunities for the job.
  48975. If it has 'waited' long enough we go ahead and schedule.]]>
  48976. </doc>
  48977. </method>
  48978. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  48979. abstract="false" native="false" synchronized="false"
  48980. static="false" final="false" visibility="public"
  48981. deprecated="not deprecated">
  48982. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48983. <param name="clusterSize" type="int"/>
  48984. <param name="numUniqueHosts" type="int"/>
  48985. <param name="isMapSlot" type="boolean"/>
  48986. <exception name="IOException" type="java.io.IOException"/>
  48987. <doc>
  48988. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  48989. </doc>
  48990. </method>
  48991. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  48992. abstract="false" native="false" synchronized="false"
  48993. static="false" final="false" visibility="public"
  48994. deprecated="not deprecated">
  48995. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  48996. <param name="clusterSize" type="int"/>
  48997. <param name="numUniqueHosts" type="int"/>
  48998. <param name="isMapSlot" type="boolean"/>
  48999. <exception name="IOException" type="java.io.IOException"/>
  49000. <doc>
  49001. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  49002. </doc>
  49003. </method>
  49004. <method name="scheduleReduces" return="boolean"
  49005. abstract="false" native="false" synchronized="true"
  49006. static="false" final="false" visibility="public"
  49007. deprecated="not deprecated">
  49008. </method>
  49009. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  49010. abstract="false" native="false" synchronized="true"
  49011. static="false" final="false" visibility="public"
  49012. deprecated="not deprecated">
  49013. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49014. <param name="clusterSize" type="int"/>
  49015. <param name="numUniqueHosts" type="int"/>
  49016. <exception name="IOException" type="java.io.IOException"/>
  49017. <doc>
  49018. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  49019. We don't have cache-sensitivity for reduce tasks, as they
  49020. work on temporary MapRed files.]]>
  49021. </doc>
  49022. </method>
  49023. <method name="reserveTaskTracker"
  49024. abstract="false" native="false" synchronized="true"
  49025. static="false" final="false" visibility="public"
  49026. deprecated="not deprecated">
  49027. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  49028. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  49029. <param name="numSlots" type="int"/>
  49030. </method>
  49031. <method name="unreserveTaskTracker"
  49032. abstract="false" native="false" synchronized="true"
  49033. static="false" final="false" visibility="public"
  49034. deprecated="not deprecated">
  49035. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  49036. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  49037. </method>
  49038. <method name="getNumReservedTaskTrackersForMaps" return="int"
  49039. abstract="false" native="false" synchronized="false"
  49040. static="false" final="false" visibility="public"
  49041. deprecated="not deprecated">
  49042. </method>
  49043. <method name="getNumReservedTaskTrackersForReduces" return="int"
  49044. abstract="false" native="false" synchronized="false"
  49045. static="false" final="false" visibility="public"
  49046. deprecated="not deprecated">
  49047. </method>
  49048. <method name="scheduleMap"
  49049. abstract="false" native="false" synchronized="true"
  49050. static="false" final="false" visibility="protected"
  49051. deprecated="not deprecated">
  49052. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49053. <doc>
  49054. <![CDATA[Adds a map tip to the list of running maps.
  49055. @param tip the tip that needs to be scheduled as running]]>
  49056. </doc>
  49057. </method>
  49058. <method name="scheduleReduce"
  49059. abstract="false" native="false" synchronized="true"
  49060. static="false" final="false" visibility="protected"
  49061. deprecated="not deprecated">
  49062. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49063. <doc>
  49064. <![CDATA[Adds a reduce tip to the list of running reduces
  49065. @param tip the tip that needs to be scheduled as running]]>
  49066. </doc>
  49067. </method>
  49068. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  49069. abstract="false" native="false" synchronized="true"
  49070. static="false" final="false" visibility="protected"
  49071. deprecated="not deprecated">
  49072. <param name="list" type="java.util.Collection"/>
  49073. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  49074. <param name="avgProgress" type="double"/>
  49075. <param name="currentTime" type="long"/>
  49076. <param name="shouldRemove" type="boolean"/>
  49077. <doc>
  49078. <![CDATA[Find a speculative task
  49079. @param list a list of tips
  49080. @param ttStatus status of the tracker that has requested a tip
  49081. @param avgProgress the average progress for speculation
  49082. @param currentTime current time in milliseconds
  49083. @param shouldRemove whether to remove the tips
  49084. @return a tip that can be speculated on the tracker]]>
  49085. </doc>
  49086. </method>
  49087. <method name="completedTask" return="boolean"
  49088. abstract="false" native="false" synchronized="true"
  49089. static="false" final="false" visibility="public"
  49090. deprecated="not deprecated">
  49091. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49092. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  49093. <doc>
  49094. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  49095. </doc>
  49096. </method>
  49097. <method name="kill"
  49098. abstract="false" native="false" synchronized="false"
  49099. static="false" final="false" visibility="public"
  49100. deprecated="not deprecated">
  49101. <doc>
  49102. <![CDATA[Kill the job and all its component tasks. This method should be called from
  49103. jobtracker and should return fast as it locks the jobtracker.]]>
  49104. </doc>
  49105. </method>
  49106. <method name="failedTask"
  49107. abstract="false" native="false" synchronized="false"
  49108. static="false" final="false" visibility="public"
  49109. deprecated="not deprecated">
  49110. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  49111. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  49112. <param name="reason" type="java.lang.String"/>
  49113. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  49114. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  49115. <param name="trackerName" type="java.lang.String"/>
  49116. <doc>
  49117. <![CDATA[Fail a task with a given reason, but without a status object.
  49118. Assuming {@link JobTracker} is locked on entry.
  49119. @param tip The task's tip
  49120. @param taskid The task id
  49121. @param reason The reason that the task failed
  49122. @param trackerName The task tracker the task failed on]]>
  49123. </doc>
  49124. </method>
  49125. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  49126. abstract="false" native="false" synchronized="true"
  49127. static="false" final="false" visibility="public"
  49128. deprecated="not deprecated">
  49129. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  49130. <doc>
  49131. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  49132. </doc>
  49133. </method>
  49134. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  49135. abstract="false" native="false" synchronized="true"
  49136. static="false" final="false" visibility="public"
  49137. deprecated="not deprecated">
  49138. <param name="mapId" type="int"/>
  49139. <doc>
  49140. <![CDATA[Find the details of someplace where a map has finished
  49141. @param mapId the id of the map
  49142. @return the task status of the completed task]]>
  49143. </doc>
  49144. </method>
  49145. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  49146. abstract="false" native="false" synchronized="true"
  49147. static="false" final="false" visibility="public"
  49148. deprecated="not deprecated">
  49149. <param name="fromEventId" type="int"/>
  49150. <param name="maxEvents" type="int"/>
  49151. </method>
  49152. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49153. abstract="false" native="false" synchronized="false"
  49154. static="false" final="false" visibility="public"
  49155. deprecated="not deprecated">
  49156. <doc>
  49157. <![CDATA[@return The JobID of this JobInProgress.]]>
  49158. </doc>
  49159. </method>
  49160. <method name="getJobSubmitHostName" return="java.lang.String"
  49161. abstract="false" native="false" synchronized="false"
  49162. static="false" final="false" visibility="public"
  49163. deprecated="not deprecated">
  49164. <doc>
  49165. <![CDATA[@return submitHostName of this JobInProgress.]]>
  49166. </doc>
  49167. </method>
  49168. <method name="getJobSubmitHostAddress" return="java.lang.String"
  49169. abstract="false" native="false" synchronized="false"
  49170. static="false" final="false" visibility="public"
  49171. deprecated="not deprecated">
  49172. <doc>
  49173. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  49174. </doc>
  49175. </method>
  49176. <method name="getSchedulingInfo" return="java.lang.Object"
  49177. abstract="false" native="false" synchronized="true"
  49178. static="false" final="false" visibility="public"
  49179. deprecated="not deprecated">
  49180. </method>
  49181. <method name="setSchedulingInfo"
  49182. abstract="false" native="false" synchronized="true"
  49183. static="false" final="false" visibility="public"
  49184. deprecated="not deprecated">
  49185. <param name="schedulingInfo" type="java.lang.Object"/>
  49186. </method>
  49187. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  49188. transient="false" volatile="false"
  49189. static="false" final="false" visibility="protected"
  49190. deprecated="not deprecated">
  49191. </field>
  49192. <doc>
  49193. <![CDATA[JobInProgress maintains all the info for keeping
  49194. a Job on the straight and narrow. It keeps its JobProfile
  49195. and its latest JobStatus, plus a set of tables for
  49196. doing bookkeeping of its Tasks.
  49197. ***********************************************************]]>
  49198. </doc>
  49199. </class>
  49200. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  49201. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  49202. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  49203. abstract="false"
  49204. static="true" final="true" visibility="public"
  49205. deprecated="not deprecated">
  49206. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  49207. abstract="false" native="false" synchronized="false"
  49208. static="true" final="false" visibility="public"
  49209. deprecated="not deprecated">
  49210. </method>
  49211. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  49212. abstract="false" native="false" synchronized="false"
  49213. static="true" final="false" visibility="public"
  49214. deprecated="not deprecated">
  49215. <param name="name" type="java.lang.String"/>
  49216. </method>
  49217. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49218. transient="false" volatile="false"
  49219. static="true" final="true" visibility="public"
  49220. deprecated="not deprecated">
  49221. </field>
  49222. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49223. transient="false" volatile="false"
  49224. static="true" final="true" visibility="public"
  49225. deprecated="not deprecated">
  49226. </field>
  49227. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49228. transient="false" volatile="false"
  49229. static="true" final="true" visibility="public"
  49230. deprecated="not deprecated">
  49231. </field>
  49232. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49233. transient="false" volatile="false"
  49234. static="true" final="true" visibility="public"
  49235. deprecated="not deprecated">
  49236. </field>
  49237. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49238. transient="false" volatile="false"
  49239. static="true" final="true" visibility="public"
  49240. deprecated="not deprecated">
  49241. </field>
  49242. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49243. transient="false" volatile="false"
  49244. static="true" final="true" visibility="public"
  49245. deprecated="not deprecated">
  49246. </field>
  49247. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49248. transient="false" volatile="false"
  49249. static="true" final="true" visibility="public"
  49250. deprecated="not deprecated">
  49251. </field>
  49252. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49253. transient="false" volatile="false"
  49254. static="true" final="true" visibility="public"
  49255. deprecated="not deprecated">
  49256. </field>
  49257. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49258. transient="false" volatile="false"
  49259. static="true" final="true" visibility="public"
  49260. deprecated="not deprecated">
  49261. </field>
  49262. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49263. transient="false" volatile="false"
  49264. static="true" final="true" visibility="public"
  49265. deprecated="not deprecated">
  49266. </field>
  49267. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  49268. transient="false" volatile="false"
  49269. static="true" final="true" visibility="public"
  49270. deprecated="not deprecated">
  49271. </field>
  49272. </class>
  49273. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  49274. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  49275. <class name="JobLocalizer" extends="java.lang.Object"
  49276. abstract="false"
  49277. static="false" final="false" visibility="public"
  49278. deprecated="not deprecated">
  49279. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  49280. static="false" final="false" visibility="public"
  49281. deprecated="not deprecated">
  49282. <exception name="IOException" type="java.io.IOException"/>
  49283. </constructor>
  49284. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  49285. static="false" final="false" visibility="public"
  49286. deprecated="not deprecated">
  49287. <exception name="IOException" type="java.io.IOException"/>
  49288. </constructor>
  49289. <method name="createLocalDirs"
  49290. abstract="false" native="false" synchronized="false"
  49291. static="false" final="false" visibility="public"
  49292. deprecated="not deprecated">
  49293. <exception name="IOException" type="java.io.IOException"/>
  49294. </method>
  49295. <method name="createUserDirs"
  49296. abstract="false" native="false" synchronized="false"
  49297. static="false" final="false" visibility="public"
  49298. deprecated="not deprecated">
  49299. <exception name="IOException" type="java.io.IOException"/>
  49300. <doc>
  49301. <![CDATA[Initialize the local directories for a particular user on this TT. This
  49302. involves creation and setting permissions of the following directories
  49303. <ul>
  49304. <li>$mapred.local.dir/taskTracker/$user</li>
  49305. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  49306. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  49307. </ul>]]>
  49308. </doc>
  49309. </method>
  49310. <method name="createJobDirs"
  49311. abstract="false" native="false" synchronized="false"
  49312. static="false" final="false" visibility="public"
  49313. deprecated="not deprecated">
  49314. <exception name="IOException" type="java.io.IOException"/>
  49315. <doc>
  49316. <![CDATA[Prepare the job directories for a given job. To be called by the job
  49317. localization code, only if the job is not already localized.
  49318. <br>
  49319. Here, we set 700 permissions on the job directories created on all disks.
  49320. This we do so as to avoid any misuse by other users till the time
  49321. {@link TaskController#initializeJob} is run at a
  49322. later time to set proper private permissions on the job directories. <br>]]>
  49323. </doc>
  49324. </method>
  49325. <method name="initializeJobLogDir"
  49326. abstract="false" native="false" synchronized="false"
  49327. static="false" final="false" visibility="public"
  49328. deprecated="not deprecated">
  49329. <exception name="IOException" type="java.io.IOException"/>
  49330. <doc>
  49331. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  49332. </doc>
  49333. </method>
  49334. <method name="downloadPrivateCache" return="long[]"
  49335. abstract="false" native="false" synchronized="false"
  49336. static="true" final="false" visibility="public"
  49337. deprecated="not deprecated">
  49338. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  49339. <exception name="IOException" type="java.io.IOException"/>
  49340. <doc>
  49341. <![CDATA[Download the parts of the distributed cache that are private.
  49342. @param conf the job's configuration
  49343. @throws IOException
  49344. @return the size of the archive objects]]>
  49345. </doc>
  49346. </method>
  49347. <method name="localizeJobFiles"
  49348. abstract="false" native="false" synchronized="false"
  49349. static="false" final="false" visibility="public"
  49350. deprecated="not deprecated">
  49351. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  49352. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49353. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49354. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49355. <exception name="IOException" type="java.io.IOException"/>
  49356. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49357. </method>
  49358. <method name="localizeJobFiles"
  49359. abstract="false" native="false" synchronized="false"
  49360. static="false" final="false" visibility="public"
  49361. deprecated="not deprecated">
  49362. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  49363. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49364. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  49365. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49366. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49367. <exception name="IOException" type="java.io.IOException"/>
  49368. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49369. </method>
  49370. <method name="createWorkDir"
  49371. abstract="false" native="false" synchronized="false"
  49372. static="false" final="false" visibility="public"
  49373. deprecated="not deprecated">
  49374. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  49375. <exception name="IOException" type="java.io.IOException"/>
  49376. </method>
  49377. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  49378. abstract="false" native="false" synchronized="false"
  49379. static="false" final="false" visibility="public"
  49380. deprecated="not deprecated">
  49381. <exception name="IOException" type="java.io.IOException"/>
  49382. </method>
  49383. <method name="runSetup" return="int"
  49384. abstract="false" native="false" synchronized="false"
  49385. static="false" final="false" visibility="public"
  49386. deprecated="not deprecated">
  49387. <param name="user" type="java.lang.String"/>
  49388. <param name="jobid" type="java.lang.String"/>
  49389. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  49390. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  49391. <exception name="IOException" type="java.io.IOException"/>
  49392. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49393. </method>
  49394. <method name="main"
  49395. abstract="false" native="false" synchronized="false"
  49396. static="true" final="false" visibility="public"
  49397. deprecated="not deprecated">
  49398. <param name="argv" type="java.lang.String[]"/>
  49399. <exception name="IOException" type="java.io.IOException"/>
  49400. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  49401. </method>
  49402. <method name="writeLocalJobFile"
  49403. abstract="false" native="false" synchronized="false"
  49404. static="true" final="false" visibility="public"
  49405. deprecated="not deprecated">
  49406. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  49407. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49408. <exception name="IOException" type="java.io.IOException"/>
  49409. <doc>
  49410. <![CDATA[Write the task specific job-configuration file.
  49411. @throws IOException]]>
  49412. </doc>
  49413. </method>
  49414. <doc>
  49415. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  49416. Creates the following hierarchy:
  49417. <li>$mapred.local.dir/taskTracker/$user</li>
  49418. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  49419. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  49420. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  49421. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  49422. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  49423. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  49424. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  49425. </doc>
  49426. </class>
  49427. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  49428. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  49429. <class name="JobPriority" extends="java.lang.Enum"
  49430. abstract="false"
  49431. static="false" final="true" visibility="public"
  49432. deprecated="not deprecated">
  49433. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  49434. abstract="false" native="false" synchronized="false"
  49435. static="true" final="false" visibility="public"
  49436. deprecated="not deprecated">
  49437. </method>
  49438. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  49439. abstract="false" native="false" synchronized="false"
  49440. static="true" final="false" visibility="public"
  49441. deprecated="not deprecated">
  49442. <param name="name" type="java.lang.String"/>
  49443. </method>
  49444. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  49445. transient="false" volatile="false"
  49446. static="true" final="true" visibility="public"
  49447. deprecated="not deprecated">
  49448. </field>
  49449. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  49450. transient="false" volatile="false"
  49451. static="true" final="true" visibility="public"
  49452. deprecated="not deprecated">
  49453. </field>
  49454. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  49455. transient="false" volatile="false"
  49456. static="true" final="true" visibility="public"
  49457. deprecated="not deprecated">
  49458. </field>
  49459. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  49460. transient="false" volatile="false"
  49461. static="true" final="true" visibility="public"
  49462. deprecated="not deprecated">
  49463. </field>
  49464. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  49465. transient="false" volatile="false"
  49466. static="true" final="true" visibility="public"
  49467. deprecated="not deprecated">
  49468. </field>
  49469. <doc>
  49470. <![CDATA[Used to describe the priority of the running job.]]>
  49471. </doc>
  49472. </class>
  49473. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  49474. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  49475. <class name="JobProfile" extends="java.lang.Object"
  49476. abstract="false"
  49477. static="false" final="false" visibility="public"
  49478. deprecated="not deprecated">
  49479. <implements name="org.apache.hadoop.io.Writable"/>
  49480. <constructor name="JobProfile"
  49481. static="false" final="false" visibility="public"
  49482. deprecated="not deprecated">
  49483. <doc>
  49484. <![CDATA[Construct an empty {@link JobProfile}.]]>
  49485. </doc>
  49486. </constructor>
  49487. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  49488. static="false" final="false" visibility="public"
  49489. deprecated="not deprecated">
  49490. <doc>
  49491. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  49492. job config-file, job-details url and job name.
  49493. @param user userid of the person who submitted the job.
  49494. @param jobid id of the job.
  49495. @param jobFile job configuration file.
  49496. @param url link to the web-ui for details of the job.
  49497. @param name user-specified job name.]]>
  49498. </doc>
  49499. </constructor>
  49500. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  49501. static="false" final="false" visibility="public"
  49502. deprecated="not deprecated">
  49503. <doc>
  49504. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  49505. job config-file, job-details url and job name.
  49506. @param user userid of the person who submitted the job.
  49507. @param jobid id of the job.
  49508. @param jobFile job configuration file.
  49509. @param url link to the web-ui for details of the job.
  49510. @param name user-specified job name.
  49511. @param queueName name of the queue to which the job is submitted]]>
  49512. </doc>
  49513. </constructor>
  49514. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  49515. static="false" final="false" visibility="public"
  49516. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  49517. <doc>
  49518. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  49519. </doc>
  49520. </constructor>
  49521. <method name="getUser" return="java.lang.String"
  49522. abstract="false" native="false" synchronized="false"
  49523. static="false" final="false" visibility="public"
  49524. deprecated="not deprecated">
  49525. <doc>
  49526. <![CDATA[Get the user id.]]>
  49527. </doc>
  49528. </method>
  49529. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49530. abstract="false" native="false" synchronized="false"
  49531. static="false" final="false" visibility="public"
  49532. deprecated="not deprecated">
  49533. <doc>
  49534. <![CDATA[Get the job id.]]>
  49535. </doc>
  49536. </method>
  49537. <method name="getJobId" return="java.lang.String"
  49538. abstract="false" native="false" synchronized="false"
  49539. static="false" final="false" visibility="public"
  49540. deprecated="use getJobID() instead">
  49541. <doc>
  49542. <![CDATA[@deprecated use getJobID() instead]]>
  49543. </doc>
  49544. </method>
  49545. <method name="getJobFile" return="java.lang.String"
  49546. abstract="false" native="false" synchronized="false"
  49547. static="false" final="false" visibility="public"
  49548. deprecated="not deprecated">
  49549. <doc>
  49550. <![CDATA[Get the configuration file for the job.]]>
  49551. </doc>
  49552. </method>
  49553. <method name="getURL" return="java.net.URL"
  49554. abstract="false" native="false" synchronized="false"
  49555. static="false" final="false" visibility="public"
  49556. deprecated="not deprecated">
  49557. <doc>
  49558. <![CDATA[Get the link to the web-ui for details of the job.]]>
  49559. </doc>
  49560. </method>
  49561. <method name="getJobName" return="java.lang.String"
  49562. abstract="false" native="false" synchronized="false"
  49563. static="false" final="false" visibility="public"
  49564. deprecated="not deprecated">
  49565. <doc>
  49566. <![CDATA[Get the user-specified job name.]]>
  49567. </doc>
  49568. </method>
  49569. <method name="getQueueName" return="java.lang.String"
  49570. abstract="false" native="false" synchronized="false"
  49571. static="false" final="false" visibility="public"
  49572. deprecated="not deprecated">
  49573. <doc>
  49574. <![CDATA[Get the name of the queue to which the job is submitted.
  49575. @return name of the queue.]]>
  49576. </doc>
  49577. </method>
  49578. <method name="write"
  49579. abstract="false" native="false" synchronized="false"
  49580. static="false" final="false" visibility="public"
  49581. deprecated="not deprecated">
  49582. <param name="out" type="java.io.DataOutput"/>
  49583. <exception name="IOException" type="java.io.IOException"/>
  49584. </method>
  49585. <method name="readFields"
  49586. abstract="false" native="false" synchronized="false"
  49587. static="false" final="false" visibility="public"
  49588. deprecated="not deprecated">
  49589. <param name="in" type="java.io.DataInput"/>
  49590. <exception name="IOException" type="java.io.IOException"/>
  49591. </method>
  49592. <doc>
  49593. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  49594. whether living or dead.]]>
  49595. </doc>
  49596. </class>
  49597. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  49598. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  49599. <class name="JobQueueInfo" extends="java.lang.Object"
  49600. abstract="false"
  49601. static="false" final="false" visibility="public"
  49602. deprecated="not deprecated">
  49603. <implements name="org.apache.hadoop.io.Writable"/>
  49604. <constructor name="JobQueueInfo"
  49605. static="false" final="false" visibility="public"
  49606. deprecated="not deprecated">
  49607. </constructor>
  49608. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  49609. static="false" final="false" visibility="public"
  49610. deprecated="not deprecated">
  49611. <doc>
  49612. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  49613. scheduling information passed.
  49614. @param queueName Name of the job queue
  49615. @param schedulingInfo Scheduling Information associated with the job
  49616. queue]]>
  49617. </doc>
  49618. </constructor>
  49619. <method name="setQueueName"
  49620. abstract="false" native="false" synchronized="false"
  49621. static="false" final="false" visibility="public"
  49622. deprecated="not deprecated">
  49623. <param name="queueName" type="java.lang.String"/>
  49624. <doc>
  49625. <![CDATA[Set the queue name of the JobQueueInfo
  49626. @param queueName Name of the job queue.]]>
  49627. </doc>
  49628. </method>
  49629. <method name="getQueueName" return="java.lang.String"
  49630. abstract="false" native="false" synchronized="false"
  49631. static="false" final="false" visibility="public"
  49632. deprecated="not deprecated">
  49633. <doc>
  49634. <![CDATA[Get the queue name from JobQueueInfo
  49635. @return queue name]]>
  49636. </doc>
  49637. </method>
  49638. <method name="setSchedulingInfo"
  49639. abstract="false" native="false" synchronized="false"
  49640. static="false" final="false" visibility="public"
  49641. deprecated="not deprecated">
  49642. <param name="schedulingInfo" type="java.lang.String"/>
  49643. <doc>
  49644. <![CDATA[Set the scheduling information associated to particular job queue
  49645. @param schedulingInfo]]>
  49646. </doc>
  49647. </method>
  49648. <method name="getSchedulingInfo" return="java.lang.String"
  49649. abstract="false" native="false" synchronized="false"
  49650. static="false" final="false" visibility="public"
  49651. deprecated="not deprecated">
  49652. <doc>
  49653. <![CDATA[Gets the scheduling information associated to particular job queue.
  49654. If nothing is set would return <b>"N/A"</b>
  49655. @return Scheduling information associated to particular Job Queue]]>
  49656. </doc>
  49657. </method>
  49658. <method name="setQueueState"
  49659. abstract="false" native="false" synchronized="false"
  49660. static="false" final="false" visibility="public"
  49661. deprecated="not deprecated">
  49662. <param name="state" type="java.lang.String"/>
  49663. <doc>
  49664. <![CDATA[Set the state of the queue
  49665. @param state state of the queue.]]>
  49666. </doc>
  49667. </method>
  49668. <method name="getQueueState" return="java.lang.String"
  49669. abstract="false" native="false" synchronized="false"
  49670. static="false" final="false" visibility="public"
  49671. deprecated="not deprecated">
  49672. <doc>
  49673. <![CDATA[Return the queue state
  49674. @return the queue state.]]>
  49675. </doc>
  49676. </method>
  49677. <method name="readFields"
  49678. abstract="false" native="false" synchronized="false"
  49679. static="false" final="false" visibility="public"
  49680. deprecated="not deprecated">
  49681. <param name="in" type="java.io.DataInput"/>
  49682. <exception name="IOException" type="java.io.IOException"/>
  49683. </method>
  49684. <method name="write"
  49685. abstract="false" native="false" synchronized="false"
  49686. static="false" final="false" visibility="public"
  49687. deprecated="not deprecated">
  49688. <param name="out" type="java.io.DataOutput"/>
  49689. <exception name="IOException" type="java.io.IOException"/>
  49690. </method>
  49691. <doc>
  49692. <![CDATA[Class that contains the information regarding the Job Queues which are
  49693. maintained by the Hadoop Map/Reduce framework.]]>
  49694. </doc>
  49695. </class>
  49696. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  49697. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  49698. <class name="JobStatus" extends="java.lang.Object"
  49699. abstract="false"
  49700. static="false" final="false" visibility="public"
  49701. deprecated="not deprecated">
  49702. <implements name="org.apache.hadoop.io.Writable"/>
  49703. <implements name="java.lang.Cloneable"/>
  49704. <constructor name="JobStatus"
  49705. static="false" final="false" visibility="public"
  49706. deprecated="not deprecated">
  49707. </constructor>
  49708. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  49709. static="false" final="false" visibility="public"
  49710. deprecated="not deprecated">
  49711. <doc>
  49712. <![CDATA[Create a job status object for a given jobid.
  49713. @param jobid The jobid of the job
  49714. @param mapProgress The progress made on the maps
  49715. @param reduceProgress The progress made on the reduces
  49716. @param cleanupProgress The progress made on cleanup
  49717. @param runState The current state of the job]]>
  49718. </doc>
  49719. </constructor>
  49720. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  49721. static="false" final="false" visibility="public"
  49722. deprecated="not deprecated">
  49723. <doc>
  49724. <![CDATA[Create a job status object for a given jobid.
  49725. @param jobid The jobid of the job
  49726. @param mapProgress The progress made on the maps
  49727. @param reduceProgress The progress made on the reduces
  49728. @param runState The current state of the job]]>
  49729. </doc>
  49730. </constructor>
  49731. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  49732. static="false" final="false" visibility="public"
  49733. deprecated="not deprecated">
  49734. <doc>
  49735. <![CDATA[Create a job status object for a given jobid.
  49736. @param jobid The jobid of the job
  49737. @param mapProgress The progress made on the maps
  49738. @param reduceProgress The progress made on the reduces
  49739. @param runState The current state of the job
  49740. @param jp Priority of the job.]]>
  49741. </doc>
  49742. </constructor>
  49743. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  49744. static="false" final="false" visibility="public"
  49745. deprecated="not deprecated">
  49746. <doc>
  49747. <![CDATA[Create a job status object for a given jobid.
  49748. @param jobid The jobid of the job
  49749. @param setupProgress The progress made on the setup
  49750. @param mapProgress The progress made on the maps
  49751. @param reduceProgress The progress made on the reduces
  49752. @param cleanupProgress The progress made on the cleanup
  49753. @param runState The current state of the job
  49754. @param jp Priority of the job.]]>
  49755. </doc>
  49756. </constructor>
  49757. <method name="getJobRunState" return="java.lang.String"
  49758. abstract="false" native="false" synchronized="false"
  49759. static="true" final="false" visibility="public"
  49760. deprecated="not deprecated">
  49761. <param name="state" type="int"/>
  49762. <doc>
  49763. <![CDATA[Helper method to get human-readable state of the job.
  49764. @param state job state
  49765. @return human-readable state of the job]]>
  49766. </doc>
  49767. </method>
  49768. <method name="getJobId" return="java.lang.String"
  49769. abstract="false" native="false" synchronized="false"
  49770. static="false" final="false" visibility="public"
  49771. deprecated="use getJobID instead">
  49772. <doc>
  49773. <![CDATA[@deprecated use getJobID instead]]>
  49774. </doc>
  49775. </method>
  49776. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  49777. abstract="false" native="false" synchronized="false"
  49778. static="false" final="false" visibility="public"
  49779. deprecated="not deprecated">
  49780. <doc>
  49781. <![CDATA[@return The jobid of the Job]]>
  49782. </doc>
  49783. </method>
  49784. <method name="mapProgress" return="float"
  49785. abstract="false" native="false" synchronized="true"
  49786. static="false" final="false" visibility="public"
  49787. deprecated="not deprecated">
  49788. <doc>
  49789. <![CDATA[@return Percentage of progress in maps]]>
  49790. </doc>
  49791. </method>
  49792. <method name="setJobACLs"
  49793. abstract="false" native="false" synchronized="true"
  49794. static="false" final="false" visibility="protected"
  49795. deprecated="not deprecated">
  49796. <param name="acls" type="java.util.Map"/>
  49797. <doc>
  49798. <![CDATA[Set the job acls
  49799. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49800. </doc>
  49801. </method>
  49802. <method name="cleanupProgress" return="float"
  49803. abstract="false" native="false" synchronized="true"
  49804. static="false" final="false" visibility="public"
  49805. deprecated="not deprecated">
  49806. <doc>
  49807. <![CDATA[@return Percentage of progress in cleanup]]>
  49808. </doc>
  49809. </method>
  49810. <method name="setupProgress" return="float"
  49811. abstract="false" native="false" synchronized="true"
  49812. static="false" final="false" visibility="public"
  49813. deprecated="not deprecated">
  49814. <doc>
  49815. <![CDATA[@return Percentage of progress in setup]]>
  49816. </doc>
  49817. </method>
  49818. <method name="reduceProgress" return="float"
  49819. abstract="false" native="false" synchronized="true"
  49820. static="false" final="false" visibility="public"
  49821. deprecated="not deprecated">
  49822. <doc>
  49823. <![CDATA[@return Percentage of progress in reduce]]>
  49824. </doc>
  49825. </method>
  49826. <method name="getRunState" return="int"
  49827. abstract="false" native="false" synchronized="true"
  49828. static="false" final="false" visibility="public"
  49829. deprecated="not deprecated">
  49830. <doc>
  49831. <![CDATA[@return running state of the job]]>
  49832. </doc>
  49833. </method>
  49834. <method name="setRunState"
  49835. abstract="false" native="false" synchronized="true"
  49836. static="false" final="false" visibility="public"
  49837. deprecated="not deprecated">
  49838. <param name="state" type="int"/>
  49839. <doc>
  49840. <![CDATA[Change the current run state of the job.]]>
  49841. </doc>
  49842. </method>
  49843. <method name="getStartTime" return="long"
  49844. abstract="false" native="false" synchronized="true"
  49845. static="false" final="false" visibility="public"
  49846. deprecated="not deprecated">
  49847. <doc>
  49848. <![CDATA[@return start time of the job]]>
  49849. </doc>
  49850. </method>
  49851. <method name="clone" return="java.lang.Object"
  49852. abstract="false" native="false" synchronized="false"
  49853. static="false" final="false" visibility="public"
  49854. deprecated="not deprecated">
  49855. </method>
  49856. <method name="getUsername" return="java.lang.String"
  49857. abstract="false" native="false" synchronized="true"
  49858. static="false" final="false" visibility="public"
  49859. deprecated="not deprecated">
  49860. <doc>
  49861. <![CDATA[@return the username of the job]]>
  49862. </doc>
  49863. </method>
  49864. <method name="getSchedulingInfo" return="java.lang.String"
  49865. abstract="false" native="false" synchronized="true"
  49866. static="false" final="false" visibility="public"
  49867. deprecated="not deprecated">
  49868. <doc>
  49869. <![CDATA[Gets the Scheduling information associated to a particular Job.
  49870. @return the scheduling information of the job]]>
  49871. </doc>
  49872. </method>
  49873. <method name="getFailureInfo" return="java.lang.String"
  49874. abstract="false" native="false" synchronized="true"
  49875. static="false" final="false" visibility="public"
  49876. deprecated="not deprecated">
  49877. <doc>
  49878. <![CDATA[gets any available info on the reason of failure of the job.
  49879. @return diagnostic information on why a job might have failed.]]>
  49880. </doc>
  49881. </method>
  49882. <method name="setFailureInfo"
  49883. abstract="false" native="false" synchronized="true"
  49884. static="false" final="false" visibility="public"
  49885. deprecated="not deprecated">
  49886. <param name="failureInfo" type="java.lang.String"/>
  49887. <doc>
  49888. <![CDATA[set the reason for failuire of this job
  49889. @param failureInfo the reason for failure of this job.]]>
  49890. </doc>
  49891. </method>
  49892. <method name="setSchedulingInfo"
  49893. abstract="false" native="false" synchronized="true"
  49894. static="false" final="false" visibility="public"
  49895. deprecated="not deprecated">
  49896. <param name="schedulingInfo" type="java.lang.String"/>
  49897. <doc>
  49898. <![CDATA[Used to set the scheduling information associated to a particular Job.
  49899. @param schedulingInfo Scheduling information of the job]]>
  49900. </doc>
  49901. </method>
  49902. <method name="getJobACLs" return="java.util.Map"
  49903. abstract="false" native="false" synchronized="true"
  49904. static="false" final="false" visibility="public"
  49905. deprecated="not deprecated">
  49906. <doc>
  49907. <![CDATA[Get the acls for Job.
  49908. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49909. </doc>
  49910. </method>
  49911. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  49912. abstract="false" native="false" synchronized="true"
  49913. static="false" final="false" visibility="public"
  49914. deprecated="not deprecated">
  49915. <doc>
  49916. <![CDATA[Return the priority of the job
  49917. @return job priority]]>
  49918. </doc>
  49919. </method>
  49920. <method name="setJobPriority"
  49921. abstract="false" native="false" synchronized="true"
  49922. static="false" final="false" visibility="public"
  49923. deprecated="not deprecated">
  49924. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  49925. <doc>
  49926. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  49927. @param jp new job priority]]>
  49928. </doc>
  49929. </method>
  49930. <method name="isJobComplete" return="boolean"
  49931. abstract="false" native="false" synchronized="true"
  49932. static="false" final="false" visibility="public"
  49933. deprecated="not deprecated">
  49934. <doc>
  49935. <![CDATA[Returns true if the status is for a completed job.]]>
  49936. </doc>
  49937. </method>
  49938. <method name="write"
  49939. abstract="false" native="false" synchronized="true"
  49940. static="false" final="false" visibility="public"
  49941. deprecated="not deprecated">
  49942. <param name="out" type="java.io.DataOutput"/>
  49943. <exception name="IOException" type="java.io.IOException"/>
  49944. </method>
  49945. <method name="readFields"
  49946. abstract="false" native="false" synchronized="true"
  49947. static="false" final="false" visibility="public"
  49948. deprecated="not deprecated">
  49949. <param name="in" type="java.io.DataInput"/>
  49950. <exception name="IOException" type="java.io.IOException"/>
  49951. </method>
  49952. <field name="RUNNING" type="int"
  49953. transient="false" volatile="false"
  49954. static="true" final="true" visibility="public"
  49955. deprecated="not deprecated">
  49956. </field>
  49957. <field name="SUCCEEDED" type="int"
  49958. transient="false" volatile="false"
  49959. static="true" final="true" visibility="public"
  49960. deprecated="not deprecated">
  49961. </field>
  49962. <field name="FAILED" type="int"
  49963. transient="false" volatile="false"
  49964. static="true" final="true" visibility="public"
  49965. deprecated="not deprecated">
  49966. </field>
  49967. <field name="PREP" type="int"
  49968. transient="false" volatile="false"
  49969. static="true" final="true" visibility="public"
  49970. deprecated="not deprecated">
  49971. </field>
  49972. <field name="KILLED" type="int"
  49973. transient="false" volatile="false"
  49974. static="true" final="true" visibility="public"
  49975. deprecated="not deprecated">
  49976. </field>
  49977. <doc>
  49978. <![CDATA[Describes the current status of a job.
  49979. @see JobProfile for some more information.]]>
  49980. </doc>
  49981. </class>
  49982. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  49983. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  49984. <class name="JobTracker" extends="java.lang.Object"
  49985. abstract="false"
  49986. static="false" final="false" visibility="public"
  49987. deprecated="not deprecated">
  49988. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  49989. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  49990. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  49991. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  49992. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  49993. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  49994. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  49995. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  49996. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  49997. abstract="false" native="false" synchronized="false"
  49998. static="false" final="false" visibility="public"
  49999. deprecated="not deprecated">
  50000. </method>
  50001. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  50002. abstract="false" native="false" synchronized="false"
  50003. static="true" final="false" visibility="public"
  50004. deprecated="not deprecated">
  50005. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50006. <exception name="IOException" type="java.io.IOException"/>
  50007. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50008. <doc>
  50009. <![CDATA[Start the JobTracker with given configuration.
  50010. The conf will be modified to reflect the actual ports on which
  50011. the JobTracker is up and running if the user passes the port as
  50012. <code>zero</code>.
  50013. @param conf configuration for the JobTracker.
  50014. @throws IOException]]>
  50015. </doc>
  50016. </method>
  50017. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  50018. abstract="false" native="false" synchronized="false"
  50019. static="true" final="false" visibility="public"
  50020. deprecated="not deprecated">
  50021. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50022. <param name="identifier" type="java.lang.String"/>
  50023. <exception name="IOException" type="java.io.IOException"/>
  50024. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50025. </method>
  50026. <method name="stopTracker"
  50027. abstract="false" native="false" synchronized="false"
  50028. static="false" final="false" visibility="public"
  50029. deprecated="not deprecated">
  50030. <exception name="IOException" type="java.io.IOException"/>
  50031. </method>
  50032. <method name="getProtocolVersion" return="long"
  50033. abstract="false" native="false" synchronized="false"
  50034. static="false" final="false" visibility="public"
  50035. deprecated="not deprecated">
  50036. <param name="protocol" type="java.lang.String"/>
  50037. <param name="clientVersion" type="long"/>
  50038. <exception name="IOException" type="java.io.IOException"/>
  50039. </method>
  50040. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  50041. abstract="false" native="false" synchronized="false"
  50042. static="false" final="false" visibility="public"
  50043. deprecated="not deprecated">
  50044. </method>
  50045. <method name="hasRestarted" return="boolean"
  50046. abstract="false" native="false" synchronized="false"
  50047. static="false" final="false" visibility="public"
  50048. deprecated="not deprecated">
  50049. <doc>
  50050. <![CDATA[Whether the JT has restarted]]>
  50051. </doc>
  50052. </method>
  50053. <method name="hasRecovered" return="boolean"
  50054. abstract="false" native="false" synchronized="false"
  50055. static="false" final="false" visibility="public"
  50056. deprecated="not deprecated">
  50057. <doc>
  50058. <![CDATA[Whether the JT has recovered upon restart]]>
  50059. </doc>
  50060. </method>
  50061. <method name="getRecoveryDuration" return="long"
  50062. abstract="false" native="false" synchronized="false"
  50063. static="false" final="false" visibility="public"
  50064. deprecated="not deprecated">
  50065. <doc>
  50066. <![CDATA[How long the jobtracker took to recover from restart.]]>
  50067. </doc>
  50068. </method>
  50069. <method name="getAddress" return="java.net.InetSocketAddress"
  50070. abstract="false" native="false" synchronized="false"
  50071. static="true" final="false" visibility="public"
  50072. deprecated="not deprecated">
  50073. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50074. </method>
  50075. <method name="offerService"
  50076. abstract="false" native="false" synchronized="false"
  50077. static="false" final="false" visibility="public"
  50078. deprecated="not deprecated">
  50079. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50080. <exception name="IOException" type="java.io.IOException"/>
  50081. <doc>
  50082. <![CDATA[Run forever]]>
  50083. </doc>
  50084. </method>
  50085. <method name="getTotalSubmissions" return="int"
  50086. abstract="false" native="false" synchronized="false"
  50087. static="false" final="false" visibility="public"
  50088. deprecated="not deprecated">
  50089. </method>
  50090. <method name="getJobTrackerMachine" return="java.lang.String"
  50091. abstract="false" native="false" synchronized="false"
  50092. static="false" final="false" visibility="public"
  50093. deprecated="not deprecated">
  50094. </method>
  50095. <method name="getTrackerIdentifier" return="java.lang.String"
  50096. abstract="false" native="false" synchronized="false"
  50097. static="false" final="false" visibility="public"
  50098. deprecated="not deprecated">
  50099. <doc>
  50100. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  50101. @return a string with a unique identifier]]>
  50102. </doc>
  50103. </method>
  50104. <method name="getTrackerPort" return="int"
  50105. abstract="false" native="false" synchronized="false"
  50106. static="false" final="false" visibility="public"
  50107. deprecated="not deprecated">
  50108. </method>
  50109. <method name="getInfoPort" return="int"
  50110. abstract="false" native="false" synchronized="false"
  50111. static="false" final="false" visibility="public"
  50112. deprecated="not deprecated">
  50113. </method>
  50114. <method name="getStartTime" return="long"
  50115. abstract="false" native="false" synchronized="false"
  50116. static="false" final="false" visibility="public"
  50117. deprecated="not deprecated">
  50118. </method>
  50119. <method name="runningJobs" return="java.util.Vector"
  50120. abstract="false" native="false" synchronized="false"
  50121. static="false" final="false" visibility="public"
  50122. deprecated="not deprecated">
  50123. </method>
  50124. <method name="getRunningJobs" return="java.util.List"
  50125. abstract="false" native="false" synchronized="true"
  50126. static="false" final="false" visibility="public"
  50127. deprecated="not deprecated">
  50128. <doc>
  50129. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  50130. careful to synchronize.]]>
  50131. </doc>
  50132. </method>
  50133. <method name="failedJobs" return="java.util.Vector"
  50134. abstract="false" native="false" synchronized="false"
  50135. static="false" final="false" visibility="public"
  50136. deprecated="not deprecated">
  50137. </method>
  50138. <method name="completedJobs" return="java.util.Vector"
  50139. abstract="false" native="false" synchronized="false"
  50140. static="false" final="false" visibility="public"
  50141. deprecated="not deprecated">
  50142. </method>
  50143. <method name="taskTrackers" return="java.util.Collection"
  50144. abstract="false" native="false" synchronized="true"
  50145. static="false" final="false" visibility="public"
  50146. deprecated="not deprecated">
  50147. <doc>
  50148. <![CDATA[Get all the task trackers in the cluster
  50149. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  50150. </doc>
  50151. </method>
  50152. <method name="activeTaskTrackers" return="java.util.Collection"
  50153. abstract="false" native="false" synchronized="true"
  50154. static="false" final="false" visibility="public"
  50155. deprecated="not deprecated">
  50156. <doc>
  50157. <![CDATA[Get the active task tracker statuses in the cluster
  50158. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  50159. </doc>
  50160. </method>
  50161. <method name="taskTrackerNames" return="java.util.List"
  50162. abstract="false" native="false" synchronized="true"
  50163. static="false" final="false" visibility="public"
  50164. deprecated="not deprecated">
  50165. <doc>
  50166. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  50167. cluster. The first element in the returned list contains the list of
  50168. active tracker names; the second element in the returned list contains
  50169. the list of blacklisted tracker names; and the third contains the list
  50170. of graylisted tracker names. Note that the blacklist is disjoint
  50171. from the active list, but the graylist is not: initially, graylisted
  50172. trackers are still active and therefore will appear in both lists.
  50173. (Graylisted trackers can later be blacklisted, in which case they'll
  50174. be removed from the active list and added to the blacklist, but they
  50175. remain on the graylist in this case. Blacklisting comes about via the
  50176. health-check script, while graylisting is heuristically based on the
  50177. number of per-job blacklistings in a specified time interval.)]]>
  50178. </doc>
  50179. </method>
  50180. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  50181. abstract="false" native="false" synchronized="false"
  50182. static="false" final="false" visibility="public"
  50183. deprecated="not deprecated">
  50184. <doc>
  50185. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  50186. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  50187. </doc>
  50188. </method>
  50189. <method name="graylistedTaskTrackers" return="java.util.Collection"
  50190. abstract="false" native="false" synchronized="false"
  50191. static="false" final="false" visibility="public"
  50192. deprecated="not deprecated">
  50193. <doc>
  50194. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  50195. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  50196. </doc>
  50197. </method>
  50198. <method name="isBlacklisted" return="boolean"
  50199. abstract="false" native="false" synchronized="true"
  50200. static="false" final="false" visibility="public"
  50201. deprecated="not deprecated">
  50202. <param name="trackerID" type="java.lang.String"/>
  50203. <doc>
  50204. <![CDATA[Whether the tracker is blacklisted or not
  50205. @param trackerID
  50206. @return true if blacklisted, false otherwise]]>
  50207. </doc>
  50208. </method>
  50209. <method name="isGraylisted" return="boolean"
  50210. abstract="false" native="false" synchronized="true"
  50211. static="false" final="false" visibility="public"
  50212. deprecated="not deprecated">
  50213. <param name="trackerID" type="java.lang.String"/>
  50214. <doc>
  50215. <![CDATA[Whether the tracker is graylisted or not
  50216. @param trackerID
  50217. @return true if graylisted, false otherwise]]>
  50218. </doc>
  50219. </method>
  50220. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  50221. abstract="false" native="false" synchronized="true"
  50222. static="false" final="false" visibility="public"
  50223. deprecated="not deprecated">
  50224. <param name="trackerID" type="java.lang.String"/>
  50225. </method>
  50226. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  50227. abstract="false" native="false" synchronized="true"
  50228. static="false" final="false" visibility="public"
  50229. deprecated="not deprecated">
  50230. <param name="trackerID" type="java.lang.String"/>
  50231. </method>
  50232. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  50233. abstract="false" native="false" synchronized="false"
  50234. static="false" final="false" visibility="public"
  50235. deprecated="not deprecated">
  50236. <param name="name" type="java.lang.String"/>
  50237. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  50238. </method>
  50239. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  50240. abstract="false" native="false" synchronized="false"
  50241. static="false" final="false" visibility="public"
  50242. deprecated="not deprecated">
  50243. <doc>
  50244. <![CDATA[Returns a collection of nodes at the max level]]>
  50245. </doc>
  50246. </method>
  50247. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  50248. abstract="false" native="false" synchronized="false"
  50249. static="true" final="false" visibility="public"
  50250. deprecated="not deprecated">
  50251. <param name="node" type="org.apache.hadoop.net.Node"/>
  50252. <param name="level" type="int"/>
  50253. </method>
  50254. <method name="getNode" return="org.apache.hadoop.net.Node"
  50255. abstract="false" native="false" synchronized="false"
  50256. static="false" final="false" visibility="public"
  50257. deprecated="not deprecated">
  50258. <param name="name" type="java.lang.String"/>
  50259. <doc>
  50260. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  50261. </doc>
  50262. </method>
  50263. <method name="getNumTaskCacheLevels" return="int"
  50264. abstract="false" native="false" synchronized="false"
  50265. static="false" final="false" visibility="public"
  50266. deprecated="not deprecated">
  50267. </method>
  50268. <method name="getNumResolvedTaskTrackers" return="int"
  50269. abstract="false" native="false" synchronized="false"
  50270. static="false" final="false" visibility="public"
  50271. deprecated="not deprecated">
  50272. </method>
  50273. <method name="getNumberOfUniqueHosts" return="int"
  50274. abstract="false" native="false" synchronized="false"
  50275. static="false" final="false" visibility="public"
  50276. deprecated="not deprecated">
  50277. </method>
  50278. <method name="addJobInProgressListener"
  50279. abstract="false" native="false" synchronized="false"
  50280. static="false" final="false" visibility="public"
  50281. deprecated="not deprecated">
  50282. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  50283. </method>
  50284. <method name="removeJobInProgressListener"
  50285. abstract="false" native="false" synchronized="false"
  50286. static="false" final="false" visibility="public"
  50287. deprecated="not deprecated">
  50288. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  50289. </method>
  50290. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  50291. abstract="false" native="false" synchronized="false"
  50292. static="false" final="false" visibility="public"
  50293. deprecated="not deprecated">
  50294. <doc>
  50295. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  50296. </doc>
  50297. </method>
  50298. <method name="getBuildVersion" return="java.lang.String"
  50299. abstract="false" native="false" synchronized="false"
  50300. static="false" final="false" visibility="public"
  50301. deprecated="not deprecated">
  50302. <exception name="IOException" type="java.io.IOException"/>
  50303. </method>
  50304. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  50305. abstract="false" native="false" synchronized="true"
  50306. static="false" final="false" visibility="public"
  50307. deprecated="not deprecated">
  50308. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  50309. <param name="restarted" type="boolean"/>
  50310. <param name="initialContact" type="boolean"/>
  50311. <param name="acceptNewTasks" type="boolean"/>
  50312. <param name="responseId" type="short"/>
  50313. <exception name="IOException" type="java.io.IOException"/>
  50314. <doc>
  50315. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  50316. the {@link JobTracker}.
  50317. The {@link JobTracker} processes the status information sent by the
  50318. {@link TaskTracker} and responds with instructions to start/stop
  50319. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  50320. </doc>
  50321. </method>
  50322. <method name="getNextHeartbeatInterval" return="int"
  50323. abstract="false" native="false" synchronized="false"
  50324. static="false" final="false" visibility="public"
  50325. deprecated="not deprecated">
  50326. <doc>
  50327. <![CDATA[Calculates next heartbeat interval using cluster size.
  50328. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  50329. @return next heartbeat interval.]]>
  50330. </doc>
  50331. </method>
  50332. <method name="getFilesystemName" return="java.lang.String"
  50333. abstract="false" native="false" synchronized="true"
  50334. static="false" final="false" visibility="public"
  50335. deprecated="not deprecated">
  50336. <exception name="IOException" type="java.io.IOException"/>
  50337. <doc>
  50338. <![CDATA[Grab the local fs name]]>
  50339. </doc>
  50340. </method>
  50341. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  50342. abstract="false" native="false" synchronized="false"
  50343. static="false" final="false" visibility="public"
  50344. deprecated="not deprecated">
  50345. <doc>
  50346. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  50347. </doc>
  50348. </method>
  50349. <method name="reportTaskTrackerError"
  50350. abstract="false" native="false" synchronized="false"
  50351. static="false" final="false" visibility="public"
  50352. deprecated="not deprecated">
  50353. <param name="taskTracker" type="java.lang.String"/>
  50354. <param name="errorClass" type="java.lang.String"/>
  50355. <param name="errorMessage" type="java.lang.String"/>
  50356. <exception name="IOException" type="java.io.IOException"/>
  50357. </method>
  50358. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  50359. abstract="false" native="false" synchronized="true"
  50360. static="false" final="false" visibility="public"
  50361. deprecated="not deprecated">
  50362. <exception name="IOException" type="java.io.IOException"/>
  50363. <doc>
  50364. <![CDATA[Allocates a new JobId string.]]>
  50365. </doc>
  50366. </method>
  50367. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  50368. abstract="false" native="false" synchronized="false"
  50369. static="false" final="false" visibility="public"
  50370. deprecated="not deprecated">
  50371. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50372. <param name="jobSubmitDir" type="java.lang.String"/>
  50373. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  50374. <exception name="IOException" type="java.io.IOException"/>
  50375. <doc>
  50376. <![CDATA[JobTracker.submitJob() kicks off a new job.
  50377. Create a 'JobInProgress' object, which contains both JobProfile
  50378. and JobStatus. Those two sub-objects are sometimes shipped outside
  50379. of the JobTracker. But JobInProgress adds info that's useful for
  50380. the JobTracker alone.]]>
  50381. </doc>
  50382. </method>
  50383. <method name="getStagingAreaDir" return="java.lang.String"
  50384. abstract="false" native="false" synchronized="false"
  50385. static="false" final="false" visibility="public"
  50386. deprecated="not deprecated">
  50387. <exception name="IOException" type="java.io.IOException"/>
  50388. <doc>
  50389. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  50390. </doc>
  50391. </method>
  50392. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  50393. abstract="false" native="false" synchronized="true"
  50394. static="false" final="false" visibility="public"
  50395. deprecated="use {@link #getClusterStatus(boolean)}">
  50396. <doc>
  50397. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  50398. </doc>
  50399. </method>
  50400. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  50401. abstract="false" native="false" synchronized="true"
  50402. static="false" final="false" visibility="public"
  50403. deprecated="not deprecated">
  50404. <param name="detailed" type="boolean"/>
  50405. </method>
  50406. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  50407. abstract="false" native="false" synchronized="true"
  50408. static="false" final="false" visibility="public"
  50409. deprecated="not deprecated">
  50410. </method>
  50411. <method name="killJob"
  50412. abstract="false" native="false" synchronized="true"
  50413. static="false" final="false" visibility="public"
  50414. deprecated="not deprecated">
  50415. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50416. <exception name="IOException" type="java.io.IOException"/>
  50417. <doc>
  50418. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  50419. </doc>
  50420. </method>
  50421. <method name="cancelDelegationToken"
  50422. abstract="false" native="false" synchronized="false"
  50423. static="false" final="false" visibility="public"
  50424. deprecated="not deprecated">
  50425. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  50426. <exception name="IOException" type="java.io.IOException"/>
  50427. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50428. <doc>
  50429. <![CDATA[Discard a current delegation token.]]>
  50430. </doc>
  50431. </method>
  50432. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  50433. abstract="false" native="false" synchronized="false"
  50434. static="false" final="false" visibility="public"
  50435. deprecated="not deprecated">
  50436. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  50437. <exception name="IOException" type="java.io.IOException"/>
  50438. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50439. <doc>
  50440. <![CDATA[Get a new delegation token.]]>
  50441. </doc>
  50442. </method>
  50443. <method name="renewDelegationToken" return="long"
  50444. abstract="false" native="false" synchronized="false"
  50445. static="false" final="false" visibility="public"
  50446. deprecated="not deprecated">
  50447. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  50448. <exception name="IOException" type="java.io.IOException"/>
  50449. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50450. <doc>
  50451. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  50452. </doc>
  50453. </method>
  50454. <method name="initJob"
  50455. abstract="false" native="false" synchronized="false"
  50456. static="false" final="false" visibility="public"
  50457. deprecated="not deprecated">
  50458. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  50459. </method>
  50460. <method name="failJob"
  50461. abstract="false" native="false" synchronized="true"
  50462. static="false" final="false" visibility="public"
  50463. deprecated="not deprecated">
  50464. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  50465. <doc>
  50466. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  50467. should use this to fail a job.]]>
  50468. </doc>
  50469. </method>
  50470. <method name="setJobPriority"
  50471. abstract="false" native="false" synchronized="true"
  50472. static="false" final="false" visibility="public"
  50473. deprecated="not deprecated">
  50474. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50475. <param name="priority" type="java.lang.String"/>
  50476. <exception name="IOException" type="java.io.IOException"/>
  50477. </method>
  50478. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  50479. abstract="false" native="false" synchronized="false"
  50480. static="false" final="false" visibility="public"
  50481. deprecated="not deprecated">
  50482. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50483. </method>
  50484. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  50485. abstract="false" native="false" synchronized="false"
  50486. static="false" final="false" visibility="public"
  50487. deprecated="not deprecated">
  50488. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50489. </method>
  50490. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  50491. abstract="false" native="false" synchronized="false"
  50492. static="false" final="false" visibility="public"
  50493. deprecated="not deprecated">
  50494. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50495. <exception name="IOException" type="java.io.IOException"/>
  50496. </method>
  50497. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50498. abstract="false" native="false" synchronized="true"
  50499. static="false" final="false" visibility="public"
  50500. deprecated="not deprecated">
  50501. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50502. <exception name="IOException" type="java.io.IOException"/>
  50503. </method>
  50504. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50505. abstract="false" native="false" synchronized="true"
  50506. static="false" final="false" visibility="public"
  50507. deprecated="not deprecated">
  50508. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50509. <exception name="IOException" type="java.io.IOException"/>
  50510. </method>
  50511. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50512. abstract="false" native="false" synchronized="true"
  50513. static="false" final="false" visibility="public"
  50514. deprecated="not deprecated">
  50515. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50516. <exception name="IOException" type="java.io.IOException"/>
  50517. </method>
  50518. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  50519. abstract="false" native="false" synchronized="true"
  50520. static="false" final="false" visibility="public"
  50521. deprecated="not deprecated">
  50522. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50523. <exception name="IOException" type="java.io.IOException"/>
  50524. </method>
  50525. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  50526. abstract="false" native="false" synchronized="false"
  50527. static="false" final="false" visibility="public"
  50528. deprecated="not deprecated">
  50529. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50530. <param name="fromEventId" type="int"/>
  50531. <param name="maxEvents" type="int"/>
  50532. <exception name="IOException" type="java.io.IOException"/>
  50533. </method>
  50534. <method name="getTaskDiagnostics" return="java.lang.String[]"
  50535. abstract="false" native="false" synchronized="true"
  50536. static="false" final="false" visibility="public"
  50537. deprecated="not deprecated">
  50538. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50539. <exception name="IOException" type="java.io.IOException"/>
  50540. <doc>
  50541. <![CDATA[Get the diagnostics for a given task
  50542. @param taskId the id of the task
  50543. @return an array of the diagnostic messages]]>
  50544. </doc>
  50545. </method>
  50546. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  50547. abstract="false" native="false" synchronized="false"
  50548. static="false" final="false" visibility="public"
  50549. deprecated="not deprecated">
  50550. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  50551. <doc>
  50552. <![CDATA[Returns specified TaskInProgress, or null.]]>
  50553. </doc>
  50554. </method>
  50555. <method name="killTask" return="boolean"
  50556. abstract="false" native="false" synchronized="true"
  50557. static="false" final="false" visibility="public"
  50558. deprecated="not deprecated">
  50559. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50560. <param name="shouldFail" type="boolean"/>
  50561. <exception name="IOException" type="java.io.IOException"/>
  50562. <doc>
  50563. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  50564. </doc>
  50565. </method>
  50566. <method name="getAssignedTracker" return="java.lang.String"
  50567. abstract="false" native="false" synchronized="true"
  50568. static="false" final="false" visibility="public"
  50569. deprecated="not deprecated">
  50570. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50571. <doc>
  50572. <![CDATA[Get tracker name for a given task id.
  50573. @param taskId the name of the task
  50574. @return The name of the task tracker]]>
  50575. </doc>
  50576. </method>
  50577. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  50578. abstract="false" native="false" synchronized="false"
  50579. static="false" final="false" visibility="public"
  50580. deprecated="not deprecated">
  50581. </method>
  50582. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  50583. abstract="false" native="false" synchronized="false"
  50584. static="false" final="false" visibility="public"
  50585. deprecated="not deprecated">
  50586. <doc>
  50587. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  50588. </doc>
  50589. </method>
  50590. <method name="getSystemDir" return="java.lang.String"
  50591. abstract="false" native="false" synchronized="false"
  50592. static="false" final="false" visibility="public"
  50593. deprecated="not deprecated">
  50594. <doc>
  50595. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  50596. </doc>
  50597. </method>
  50598. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  50599. abstract="false" native="false" synchronized="false"
  50600. static="false" final="false" visibility="public"
  50601. deprecated="not deprecated">
  50602. <param name="queueName" type="java.lang.String"/>
  50603. <exception name="IOException" type="java.io.IOException"/>
  50604. <doc>
  50605. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  50606. </doc>
  50607. </method>
  50608. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  50609. abstract="false" native="false" synchronized="false"
  50610. static="false" final="false" visibility="public"
  50611. deprecated="not deprecated">
  50612. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50613. </method>
  50614. <method name="refreshNodes"
  50615. abstract="false" native="false" synchronized="true"
  50616. static="false" final="false" visibility="public"
  50617. deprecated="not deprecated">
  50618. <exception name="IOException" type="java.io.IOException"/>
  50619. <doc>
  50620. <![CDATA[Rereads the config to get hosts and exclude list file names.
  50621. Rereads the files to update the hosts and exclude lists.]]>
  50622. </doc>
  50623. </method>
  50624. <method name="getLocalJobFilePath" return="java.lang.String"
  50625. abstract="false" native="false" synchronized="false"
  50626. static="true" final="false" visibility="public"
  50627. deprecated="not deprecated">
  50628. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50629. <doc>
  50630. <![CDATA[Get the localized job file path on the job trackers local file system
  50631. @param jobId id of the job
  50632. @return the path of the job conf file on the local file system]]>
  50633. </doc>
  50634. </method>
  50635. <method name="main"
  50636. abstract="false" native="false" synchronized="false"
  50637. static="true" final="false" visibility="public"
  50638. deprecated="not deprecated">
  50639. <param name="argv" type="java.lang.String[]"/>
  50640. <exception name="IOException" type="java.io.IOException"/>
  50641. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  50642. <doc>
  50643. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  50644. JobTracker should be run as part of the DFS Namenode process.]]>
  50645. </doc>
  50646. </method>
  50647. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  50648. abstract="false" native="false" synchronized="false"
  50649. static="false" final="false" visibility="public"
  50650. deprecated="not deprecated">
  50651. <exception name="IOException" type="java.io.IOException"/>
  50652. </method>
  50653. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  50654. abstract="false" native="false" synchronized="false"
  50655. static="false" final="false" visibility="public"
  50656. deprecated="not deprecated">
  50657. <param name="queue" type="java.lang.String"/>
  50658. <exception name="IOException" type="java.io.IOException"/>
  50659. </method>
  50660. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  50661. abstract="false" native="false" synchronized="false"
  50662. static="false" final="false" visibility="public"
  50663. deprecated="not deprecated">
  50664. <param name="queue" type="java.lang.String"/>
  50665. <exception name="IOException" type="java.io.IOException"/>
  50666. </method>
  50667. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  50668. abstract="false" native="false" synchronized="false"
  50669. static="false" final="false" visibility="public"
  50670. deprecated="not deprecated">
  50671. <exception name="IOException" type="java.io.IOException"/>
  50672. </method>
  50673. <method name="refreshServiceAcl"
  50674. abstract="false" native="false" synchronized="false"
  50675. static="false" final="false" visibility="public"
  50676. deprecated="not deprecated">
  50677. <exception name="IOException" type="java.io.IOException"/>
  50678. </method>
  50679. <method name="refreshSuperUserGroupsConfiguration"
  50680. abstract="false" native="false" synchronized="false"
  50681. static="false" final="false" visibility="public"
  50682. deprecated="not deprecated">
  50683. </method>
  50684. <method name="refreshUserToGroupsMappings"
  50685. abstract="false" native="false" synchronized="false"
  50686. static="false" final="false" visibility="public"
  50687. deprecated="not deprecated">
  50688. <exception name="IOException" type="java.io.IOException"/>
  50689. </method>
  50690. <method name="refreshQueues"
  50691. abstract="false" native="false" synchronized="false"
  50692. static="false" final="false" visibility="public"
  50693. deprecated="not deprecated">
  50694. <exception name="IOException" type="java.io.IOException"/>
  50695. </method>
  50696. <method name="getReasonsForBlacklisting" return="java.lang.String"
  50697. abstract="false" native="false" synchronized="false"
  50698. static="false" final="false" visibility="public"
  50699. deprecated="not deprecated">
  50700. <param name="host" type="java.lang.String"/>
  50701. </method>
  50702. <method name="getReasonsForGraylisting" return="java.lang.String"
  50703. abstract="false" native="false" synchronized="false"
  50704. static="false" final="false" visibility="public"
  50705. deprecated="not deprecated">
  50706. <param name="host" type="java.lang.String"/>
  50707. </method>
  50708. <method name="getHostname" return="java.lang.String"
  50709. abstract="false" native="false" synchronized="false"
  50710. static="false" final="false" visibility="public"
  50711. deprecated="not deprecated">
  50712. </method>
  50713. <method name="getVersion" return="java.lang.String"
  50714. abstract="false" native="false" synchronized="false"
  50715. static="false" final="false" visibility="public"
  50716. deprecated="not deprecated">
  50717. </method>
  50718. <method name="getConfigVersion" return="java.lang.String"
  50719. abstract="false" native="false" synchronized="false"
  50720. static="false" final="false" visibility="public"
  50721. deprecated="not deprecated">
  50722. </method>
  50723. <method name="getThreadCount" return="int"
  50724. abstract="false" native="false" synchronized="false"
  50725. static="false" final="false" visibility="public"
  50726. deprecated="not deprecated">
  50727. </method>
  50728. <method name="getSummaryJson" return="java.lang.String"
  50729. abstract="false" native="false" synchronized="false"
  50730. static="false" final="false" visibility="public"
  50731. deprecated="not deprecated">
  50732. </method>
  50733. <method name="getAliveNodesInfoJson" return="java.lang.String"
  50734. abstract="false" native="false" synchronized="false"
  50735. static="false" final="false" visibility="public"
  50736. deprecated="not deprecated">
  50737. </method>
  50738. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  50739. abstract="false" native="false" synchronized="false"
  50740. static="false" final="false" visibility="public"
  50741. deprecated="not deprecated">
  50742. </method>
  50743. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  50744. abstract="false" native="false" synchronized="false"
  50745. static="false" final="false" visibility="public"
  50746. deprecated="not deprecated">
  50747. </method>
  50748. <method name="getQueueInfoJson" return="java.lang.String"
  50749. abstract="false" native="false" synchronized="false"
  50750. static="false" final="false" visibility="public"
  50751. deprecated="not deprecated">
  50752. </method>
  50753. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  50754. transient="false" volatile="false"
  50755. static="true" final="true" visibility="public"
  50756. deprecated="not deprecated">
  50757. <doc>
  50758. <![CDATA[the config key for max user jobconf size]]>
  50759. </doc>
  50760. </field>
  50761. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  50762. transient="false" volatile="false"
  50763. static="true" final="true" visibility="public"
  50764. deprecated="not deprecated">
  50765. </field>
  50766. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  50767. transient="false" volatile="false"
  50768. static="true" final="true" visibility="public"
  50769. deprecated="not deprecated">
  50770. </field>
  50771. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  50772. transient="false" volatile="false"
  50773. static="true" final="true" visibility="public"
  50774. deprecated="not deprecated">
  50775. </field>
  50776. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  50777. transient="false" volatile="false"
  50778. static="true" final="true" visibility="public"
  50779. deprecated="not deprecated">
  50780. </field>
  50781. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  50782. transient="false" volatile="false"
  50783. static="true" final="true" visibility="public"
  50784. deprecated="not deprecated">
  50785. </field>
  50786. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  50787. transient="false" volatile="false"
  50788. static="true" final="true" visibility="public"
  50789. deprecated="not deprecated">
  50790. </field>
  50791. <field name="LOG" type="org.apache.commons.logging.Log"
  50792. transient="false" volatile="false"
  50793. static="true" final="true" visibility="public"
  50794. deprecated="not deprecated">
  50795. </field>
  50796. <field name="JT_USER_NAME" type="java.lang.String"
  50797. transient="false" volatile="false"
  50798. static="true" final="true" visibility="public"
  50799. deprecated="not deprecated">
  50800. </field>
  50801. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  50802. transient="false" volatile="false"
  50803. static="true" final="true" visibility="public"
  50804. deprecated="not deprecated">
  50805. </field>
  50806. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  50807. transient="false" volatile="false"
  50808. static="true" final="true" visibility="public"
  50809. deprecated="not deprecated">
  50810. </field>
  50811. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  50812. transient="false" volatile="false"
  50813. static="true" final="true" visibility="public"
  50814. deprecated="not deprecated">
  50815. </field>
  50816. <doc>
  50817. <![CDATA[JobTracker is the central location for submitting and
  50818. tracking MR jobs in a network environment.]]>
  50819. </doc>
  50820. </class>
  50821. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  50822. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  50823. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  50824. abstract="false"
  50825. static="true" final="false" visibility="public"
  50826. deprecated="not deprecated">
  50827. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  50828. static="false" final="false" visibility="public"
  50829. deprecated="not deprecated">
  50830. </constructor>
  50831. <doc>
  50832. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  50833. </doc>
  50834. </class>
  50835. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  50836. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  50837. <class name="JobTracker.State" extends="java.lang.Enum"
  50838. abstract="false"
  50839. static="true" final="true" visibility="public"
  50840. deprecated="not deprecated">
  50841. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  50842. abstract="false" native="false" synchronized="false"
  50843. static="true" final="false" visibility="public"
  50844. deprecated="not deprecated">
  50845. </method>
  50846. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  50847. abstract="false" native="false" synchronized="false"
  50848. static="true" final="false" visibility="public"
  50849. deprecated="not deprecated">
  50850. <param name="name" type="java.lang.String"/>
  50851. </method>
  50852. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  50853. transient="false" volatile="false"
  50854. static="true" final="true" visibility="public"
  50855. deprecated="not deprecated">
  50856. </field>
  50857. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  50858. transient="false" volatile="false"
  50859. static="true" final="true" visibility="public"
  50860. deprecated="not deprecated">
  50861. </field>
  50862. </class>
  50863. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  50864. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  50865. <interface name="JobTrackerMXBean" abstract="true"
  50866. static="false" final="false" visibility="public"
  50867. deprecated="not deprecated">
  50868. <method name="getHostname" return="java.lang.String"
  50869. abstract="false" native="false" synchronized="false"
  50870. static="false" final="false" visibility="public"
  50871. deprecated="not deprecated">
  50872. <doc>
  50873. <![CDATA[@return hostname of the jobtracker]]>
  50874. </doc>
  50875. </method>
  50876. <method name="getVersion" return="java.lang.String"
  50877. abstract="false" native="false" synchronized="false"
  50878. static="false" final="false" visibility="public"
  50879. deprecated="not deprecated">
  50880. <doc>
  50881. <![CDATA[@return version of the code base]]>
  50882. </doc>
  50883. </method>
  50884. <method name="getConfigVersion" return="java.lang.String"
  50885. abstract="false" native="false" synchronized="false"
  50886. static="false" final="false" visibility="public"
  50887. deprecated="not deprecated">
  50888. <doc>
  50889. <![CDATA[@return the config version (from a config property)]]>
  50890. </doc>
  50891. </method>
  50892. <method name="getThreadCount" return="int"
  50893. abstract="false" native="false" synchronized="false"
  50894. static="false" final="false" visibility="public"
  50895. deprecated="not deprecated">
  50896. <doc>
  50897. <![CDATA[@return number of threads of the jobtracker jvm]]>
  50898. </doc>
  50899. </method>
  50900. <method name="getSummaryJson" return="java.lang.String"
  50901. abstract="false" native="false" synchronized="false"
  50902. static="false" final="false" visibility="public"
  50903. deprecated="not deprecated">
  50904. <doc>
  50905. <![CDATA[@return the summary info in json]]>
  50906. </doc>
  50907. </method>
  50908. <method name="getAliveNodesInfoJson" return="java.lang.String"
  50909. abstract="false" native="false" synchronized="false"
  50910. static="false" final="false" visibility="public"
  50911. deprecated="not deprecated">
  50912. <doc>
  50913. <![CDATA[@return the alive nodes info in json]]>
  50914. </doc>
  50915. </method>
  50916. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  50917. abstract="false" native="false" synchronized="false"
  50918. static="false" final="false" visibility="public"
  50919. deprecated="not deprecated">
  50920. <doc>
  50921. <![CDATA[@return the blacklisted nodes info in json]]>
  50922. </doc>
  50923. </method>
  50924. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  50925. abstract="false" native="false" synchronized="false"
  50926. static="false" final="false" visibility="public"
  50927. deprecated="not deprecated">
  50928. <doc>
  50929. <![CDATA[@return the graylisted nodes info in json]]>
  50930. </doc>
  50931. </method>
  50932. <method name="getQueueInfoJson" return="java.lang.String"
  50933. abstract="false" native="false" synchronized="false"
  50934. static="false" final="false" visibility="public"
  50935. deprecated="not deprecated">
  50936. <doc>
  50937. <![CDATA[@return the queue info json]]>
  50938. </doc>
  50939. </method>
  50940. <doc>
  50941. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  50942. </doc>
  50943. </interface>
  50944. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  50945. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  50946. <class name="JvmTask" extends="java.lang.Object"
  50947. abstract="false"
  50948. static="false" final="false" visibility="public"
  50949. deprecated="not deprecated">
  50950. <implements name="org.apache.hadoop.io.Writable"/>
  50951. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  50952. static="false" final="false" visibility="public"
  50953. deprecated="not deprecated">
  50954. </constructor>
  50955. <constructor name="JvmTask"
  50956. static="false" final="false" visibility="public"
  50957. deprecated="not deprecated">
  50958. </constructor>
  50959. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  50960. abstract="false" native="false" synchronized="false"
  50961. static="false" final="false" visibility="public"
  50962. deprecated="not deprecated">
  50963. </method>
  50964. <method name="shouldDie" return="boolean"
  50965. abstract="false" native="false" synchronized="false"
  50966. static="false" final="false" visibility="public"
  50967. deprecated="not deprecated">
  50968. </method>
  50969. <method name="write"
  50970. abstract="false" native="false" synchronized="false"
  50971. static="false" final="false" visibility="public"
  50972. deprecated="not deprecated">
  50973. <param name="out" type="java.io.DataOutput"/>
  50974. <exception name="IOException" type="java.io.IOException"/>
  50975. </method>
  50976. <method name="readFields"
  50977. abstract="false" native="false" synchronized="false"
  50978. static="false" final="false" visibility="public"
  50979. deprecated="not deprecated">
  50980. <param name="in" type="java.io.DataInput"/>
  50981. <exception name="IOException" type="java.io.IOException"/>
  50982. </method>
  50983. </class>
  50984. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  50985. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  50986. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  50987. abstract="false"
  50988. static="false" final="false" visibility="public"
  50989. deprecated="not deprecated">
  50990. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  50991. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  50992. static="false" final="false" visibility="public"
  50993. deprecated="not deprecated">
  50994. <exception name="IOException" type="java.io.IOException"/>
  50995. </constructor>
  50996. <method name="getKeyClass" return="java.lang.Class"
  50997. abstract="false" native="false" synchronized="false"
  50998. static="false" final="false" visibility="public"
  50999. deprecated="not deprecated">
  51000. </method>
  51001. <method name="createKey" return="org.apache.hadoop.io.Text"
  51002. abstract="false" native="false" synchronized="false"
  51003. static="false" final="false" visibility="public"
  51004. deprecated="not deprecated">
  51005. </method>
  51006. <method name="createValue" return="org.apache.hadoop.io.Text"
  51007. abstract="false" native="false" synchronized="false"
  51008. static="false" final="false" visibility="public"
  51009. deprecated="not deprecated">
  51010. </method>
  51011. <method name="findSeparator" return="int"
  51012. abstract="false" native="false" synchronized="false"
  51013. static="true" final="false" visibility="public"
  51014. deprecated="not deprecated">
  51015. <param name="utf" type="byte[]"/>
  51016. <param name="start" type="int"/>
  51017. <param name="length" type="int"/>
  51018. <param name="sep" type="byte"/>
  51019. </method>
  51020. <method name="next" return="boolean"
  51021. abstract="false" native="false" synchronized="true"
  51022. static="false" final="false" visibility="public"
  51023. deprecated="not deprecated">
  51024. <param name="key" type="org.apache.hadoop.io.Text"/>
  51025. <param name="value" type="org.apache.hadoop.io.Text"/>
  51026. <exception name="IOException" type="java.io.IOException"/>
  51027. <doc>
  51028. <![CDATA[Read key/value pair in a line.]]>
  51029. </doc>
  51030. </method>
  51031. <method name="getProgress" return="float"
  51032. abstract="false" native="false" synchronized="false"
  51033. static="false" final="false" visibility="public"
  51034. deprecated="not deprecated">
  51035. </method>
  51036. <method name="getPos" return="long"
  51037. abstract="false" native="false" synchronized="true"
  51038. static="false" final="false" visibility="public"
  51039. deprecated="not deprecated">
  51040. <exception name="IOException" type="java.io.IOException"/>
  51041. </method>
  51042. <method name="close"
  51043. abstract="false" native="false" synchronized="true"
  51044. static="false" final="false" visibility="public"
  51045. deprecated="not deprecated">
  51046. <exception name="IOException" type="java.io.IOException"/>
  51047. </method>
  51048. <doc>
  51049. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  51050. separator character. The separator can be specified in config file
  51051. under the attribute name key.value.separator.in.input.line. The default
  51052. separator is the tab character ('\t').]]>
  51053. </doc>
  51054. </class>
  51055. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  51056. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  51057. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  51058. abstract="false"
  51059. static="false" final="false" visibility="public"
  51060. deprecated="not deprecated">
  51061. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51062. <constructor name="KeyValueTextInputFormat"
  51063. static="false" final="false" visibility="public"
  51064. deprecated="not deprecated">
  51065. </constructor>
  51066. <method name="configure"
  51067. abstract="false" native="false" synchronized="false"
  51068. static="false" final="false" visibility="public"
  51069. deprecated="not deprecated">
  51070. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  51071. </method>
  51072. <method name="isSplitable" return="boolean"
  51073. abstract="false" native="false" synchronized="false"
  51074. static="false" final="false" visibility="protected"
  51075. deprecated="not deprecated">
  51076. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  51077. <param name="file" type="org.apache.hadoop.fs.Path"/>
  51078. </method>
  51079. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  51080. abstract="false" native="false" synchronized="false"
  51081. static="false" final="false" visibility="public"
  51082. deprecated="not deprecated">
  51083. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  51084. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51085. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51086. <exception name="IOException" type="java.io.IOException"/>
  51087. </method>
  51088. <doc>
  51089. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  51090. Either linefeed or carriage-return are used to signal end of line. Each line
  51091. is divided into key and value parts by a separator byte. If no such a byte
  51092. exists, the key will be the entire line and value will be empty.]]>
  51093. </doc>
  51094. </class>
  51095. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  51096. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  51097. <class name="LineRecordReader" extends="java.lang.Object"
  51098. abstract="false"
  51099. static="false" final="false" visibility="public"
  51100. deprecated="not deprecated">
  51101. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  51102. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  51103. static="false" final="false" visibility="public"
  51104. deprecated="not deprecated">
  51105. <exception name="IOException" type="java.io.IOException"/>
  51106. </constructor>
  51107. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  51108. static="false" final="false" visibility="public"
  51109. deprecated="not deprecated">
  51110. </constructor>
  51111. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  51112. static="false" final="false" visibility="public"
  51113. deprecated="not deprecated">
  51114. <exception name="IOException" type="java.io.IOException"/>
  51115. </constructor>
  51116. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  51117. abstract="false" native="false" synchronized="false"
  51118. static="false" final="false" visibility="public"
  51119. deprecated="not deprecated">
  51120. </method>
  51121. <method name="createValue" return="org.apache.hadoop.io.Text"
  51122. abstract="false" native="false" synchronized="false"
  51123. static="false" final="false" visibility="public"
  51124. deprecated="not deprecated">
  51125. </method>
  51126. <method name="next" return="boolean"
  51127. abstract="false" native="false" synchronized="true"
  51128. static="false" final="false" visibility="public"
  51129. deprecated="not deprecated">
  51130. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  51131. <param name="value" type="org.apache.hadoop.io.Text"/>
  51132. <exception name="IOException" type="java.io.IOException"/>
  51133. <doc>
  51134. <![CDATA[Read a line.]]>
  51135. </doc>
  51136. </method>
  51137. <method name="getProgress" return="float"
  51138. abstract="false" native="false" synchronized="false"
  51139. static="false" final="false" visibility="public"
  51140. deprecated="not deprecated">
  51141. <doc>
  51142. <![CDATA[Get the progress within the split]]>
  51143. </doc>
  51144. </method>
  51145. <method name="getPos" return="long"
  51146. abstract="false" native="false" synchronized="true"
  51147. static="false" final="false" visibility="public"
  51148. deprecated="not deprecated">
  51149. <exception name="IOException" type="java.io.IOException"/>
  51150. </method>
  51151. <method name="close"
  51152. abstract="false" native="false" synchronized="true"
  51153. static="false" final="false" visibility="public"
  51154. deprecated="not deprecated">
  51155. <exception name="IOException" type="java.io.IOException"/>
  51156. </method>
  51157. <doc>
  51158. <![CDATA[Treats keys as offset in file and value as line.]]>
  51159. </doc>
  51160. </class>
  51161. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  51162. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  51163. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  51164. abstract="false"
  51165. static="true" final="false" visibility="public"
  51166. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  51167. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  51168. static="false" final="false" visibility="public"
  51169. deprecated="not deprecated">
  51170. <exception name="IOException" type="java.io.IOException"/>
  51171. </constructor>
  51172. <doc>
  51173. <![CDATA[A class that provides a line reader from an input stream.
  51174. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  51175. </doc>
  51176. </class>
  51177. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  51178. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  51179. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  51180. abstract="false"
  51181. static="false" final="false" visibility="public"
  51182. deprecated="not deprecated">
  51183. <constructor name="MapFileOutputFormat"
  51184. static="false" final="false" visibility="public"
  51185. deprecated="not deprecated">
  51186. </constructor>
  51187. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  51188. abstract="false" native="false" synchronized="false"
  51189. static="false" final="false" visibility="public"
  51190. deprecated="not deprecated">
  51191. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51192. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51193. <param name="name" type="java.lang.String"/>
  51194. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  51195. <exception name="IOException" type="java.io.IOException"/>
  51196. </method>
  51197. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  51198. abstract="false" native="false" synchronized="false"
  51199. static="true" final="false" visibility="public"
  51200. deprecated="not deprecated">
  51201. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51202. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  51203. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  51204. <exception name="IOException" type="java.io.IOException"/>
  51205. <doc>
  51206. <![CDATA[Open the output generated by this format.]]>
  51207. </doc>
  51208. </method>
  51209. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  51210. abstract="false" native="false" synchronized="false"
  51211. static="true" final="false" visibility="public"
  51212. deprecated="not deprecated">
  51213. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  51214. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  51215. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  51216. <param name="value" type="org.apache.hadoop.io.Writable"/>
  51217. <exception name="IOException" type="java.io.IOException"/>
  51218. <doc>
  51219. <![CDATA[Get an entry from output generated by this class.]]>
  51220. </doc>
  51221. </method>
  51222. <doc>
  51223. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  51224. </doc>
  51225. </class>
  51226. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  51227. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  51228. <interface name="Mapper" abstract="true"
  51229. static="false" final="false" visibility="public"
  51230. deprecated="not deprecated">
  51231. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51232. <implements name="org.apache.hadoop.io.Closeable"/>
  51233. <method name="map"
  51234. abstract="false" native="false" synchronized="false"
  51235. static="false" final="false" visibility="public"
  51236. deprecated="not deprecated">
  51237. <param name="key" type="java.lang.Object"/>
  51238. <param name="value" type="java.lang.Object"/>
  51239. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51240. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51241. <exception name="IOException" type="java.io.IOException"/>
  51242. <doc>
  51243. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  51244. <p>Output pairs need not be of the same types as input pairs. A given
  51245. input pair may map to zero or many output pairs. Output pairs are
  51246. collected with calls to
  51247. {@link OutputCollector#collect(Object,Object)}.</p>
  51248. <p>Applications can use the {@link Reporter} provided to report progress
  51249. or just indicate that they are alive. In scenarios where the application
  51250. takes an insignificant amount of time to process individual key/value
  51251. pairs, this is crucial since the framework might assume that the task has
  51252. timed-out and kill that task. The other way of avoiding this is to set
  51253. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  51254. mapred.task.timeout</a> to a high-enough value (or even zero for no
  51255. time-outs).</p>
  51256. @param key the input key.
  51257. @param value the input value.
  51258. @param output collects mapped keys and values.
  51259. @param reporter facility to report progress.]]>
  51260. </doc>
  51261. </method>
  51262. <doc>
  51263. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  51264. <p>Maps are the individual tasks which transform input records into a
  51265. intermediate records. The transformed intermediate records need not be of
  51266. the same type as the input records. A given input pair may map to zero or
  51267. many output pairs.</p>
  51268. <p>The Hadoop Map-Reduce framework spawns one map task for each
  51269. {@link InputSplit} generated by the {@link InputFormat} for the job.
  51270. <code>Mapper</code> implementations can access the {@link JobConf} for the
  51271. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  51272. themselves. Similarly they can use the {@link Closeable#close()} method for
  51273. de-initialization.</p>
  51274. <p>The framework then calls
  51275. {@link #map(Object, Object, OutputCollector, Reporter)}
  51276. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  51277. <p>All intermediate values associated with a given output key are
  51278. subsequently grouped by the framework, and passed to a {@link Reducer} to
  51279. determine the final output. Users can control the grouping by specifying
  51280. a <code>Comparator</code> via
  51281. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  51282. <p>The grouped <code>Mapper</code> outputs are partitioned per
  51283. <code>Reducer</code>. Users can control which keys (and hence records) go to
  51284. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  51285. <p>Users can optionally specify a <code>combiner</code>, via
  51286. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  51287. intermediate outputs, which helps to cut down the amount of data transferred
  51288. from the <code>Mapper</code> to the <code>Reducer</code>.
  51289. <p>The intermediate, grouped outputs are always stored in
  51290. {@link SequenceFile}s. Applications can specify if and how the intermediate
  51291. outputs are to be compressed and which {@link CompressionCodec}s are to be
  51292. used via the <code>JobConf</code>.</p>
  51293. <p>If the job has
  51294. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  51295. reduces</a> then the output of the <code>Mapper</code> is directly written
  51296. to the {@link FileSystem} without grouping by keys.</p>
  51297. <p>Example:</p>
  51298. <p><blockquote><pre>
  51299. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  51300. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  51301. static enum MyCounters { NUM_RECORDS }
  51302. private String mapTaskId;
  51303. private String inputFile;
  51304. private int noRecords = 0;
  51305. public void configure(JobConf job) {
  51306. mapTaskId = job.get("mapred.task.id");
  51307. inputFile = job.get("map.input.file");
  51308. }
  51309. public void map(K key, V val,
  51310. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  51311. throws IOException {
  51312. // Process the &lt;key, value&gt; pair (assume this takes a while)
  51313. // ...
  51314. // ...
  51315. // Let the framework know that we are alive, and kicking!
  51316. // reporter.progress();
  51317. // Process some more
  51318. // ...
  51319. // ...
  51320. // Increment the no. of &lt;key, value&gt; pairs processed
  51321. ++noRecords;
  51322. // Increment counters
  51323. reporter.incrCounter(NUM_RECORDS, 1);
  51324. // Every 100 records update application-level status
  51325. if ((noRecords%100) == 0) {
  51326. reporter.setStatus(mapTaskId + " processed " + noRecords +
  51327. " from input-file: " + inputFile);
  51328. }
  51329. // Output the result
  51330. output.collect(key, val);
  51331. }
  51332. }
  51333. </pre></blockquote></p>
  51334. <p>Applications may write a custom {@link MapRunnable} to exert greater
  51335. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  51336. @see JobConf
  51337. @see InputFormat
  51338. @see Partitioner
  51339. @see Reducer
  51340. @see MapReduceBase
  51341. @see MapRunnable
  51342. @see SequenceFile]]>
  51343. </doc>
  51344. </interface>
  51345. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  51346. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  51347. <class name="MapReduceBase" extends="java.lang.Object"
  51348. abstract="false"
  51349. static="false" final="false" visibility="public"
  51350. deprecated="not deprecated">
  51351. <implements name="org.apache.hadoop.io.Closeable"/>
  51352. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51353. <constructor name="MapReduceBase"
  51354. static="false" final="false" visibility="public"
  51355. deprecated="not deprecated">
  51356. </constructor>
  51357. <method name="close"
  51358. abstract="false" native="false" synchronized="false"
  51359. static="false" final="false" visibility="public"
  51360. deprecated="not deprecated">
  51361. <exception name="IOException" type="java.io.IOException"/>
  51362. <doc>
  51363. <![CDATA[Default implementation that does nothing.]]>
  51364. </doc>
  51365. </method>
  51366. <method name="configure"
  51367. abstract="false" native="false" synchronized="false"
  51368. static="false" final="false" visibility="public"
  51369. deprecated="not deprecated">
  51370. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51371. <doc>
  51372. <![CDATA[Default implementation that does nothing.]]>
  51373. </doc>
  51374. </method>
  51375. <doc>
  51376. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  51377. <p>Provides default no-op implementations for a few methods, most non-trivial
  51378. applications need to override some of them.</p>]]>
  51379. </doc>
  51380. </class>
  51381. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  51382. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  51383. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  51384. abstract="false"
  51385. static="false" final="false" visibility="public"
  51386. deprecated="not deprecated">
  51387. <constructor name="MapReducePolicyProvider"
  51388. static="false" final="false" visibility="public"
  51389. deprecated="not deprecated">
  51390. </constructor>
  51391. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  51392. abstract="false" native="false" synchronized="false"
  51393. static="false" final="false" visibility="public"
  51394. deprecated="not deprecated">
  51395. </method>
  51396. <doc>
  51397. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  51398. </doc>
  51399. </class>
  51400. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  51401. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  51402. <interface name="MapRunnable" abstract="true"
  51403. static="false" final="false" visibility="public"
  51404. deprecated="not deprecated">
  51405. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  51406. <method name="run"
  51407. abstract="false" native="false" synchronized="false"
  51408. static="false" final="false" visibility="public"
  51409. deprecated="not deprecated">
  51410. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  51411. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51412. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51413. <exception name="IOException" type="java.io.IOException"/>
  51414. <doc>
  51415. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  51416. <p>Mapping of input records to output records is complete when this method
  51417. returns.</p>
  51418. @param input the {@link RecordReader} to read the input records.
  51419. @param output the {@link OutputCollector} to collect the outputrecords.
  51420. @param reporter {@link Reporter} to report progress, status-updates etc.
  51421. @throws IOException]]>
  51422. </doc>
  51423. </method>
  51424. <doc>
  51425. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  51426. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  51427. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  51428. @see Mapper]]>
  51429. </doc>
  51430. </interface>
  51431. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  51432. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  51433. <class name="MapRunner" extends="java.lang.Object"
  51434. abstract="false"
  51435. static="false" final="false" visibility="public"
  51436. deprecated="not deprecated">
  51437. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  51438. <constructor name="MapRunner"
  51439. static="false" final="false" visibility="public"
  51440. deprecated="not deprecated">
  51441. </constructor>
  51442. <method name="configure"
  51443. abstract="false" native="false" synchronized="false"
  51444. static="false" final="false" visibility="public"
  51445. deprecated="not deprecated">
  51446. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51447. </method>
  51448. <method name="run"
  51449. abstract="false" native="false" synchronized="false"
  51450. static="false" final="false" visibility="public"
  51451. deprecated="not deprecated">
  51452. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  51453. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  51454. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51455. <exception name="IOException" type="java.io.IOException"/>
  51456. </method>
  51457. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  51458. abstract="false" native="false" synchronized="false"
  51459. static="false" final="false" visibility="protected"
  51460. deprecated="not deprecated">
  51461. </method>
  51462. <doc>
  51463. <![CDATA[Default {@link MapRunnable} implementation.]]>
  51464. </doc>
  51465. </class>
  51466. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  51467. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  51468. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  51469. abstract="false"
  51470. static="false" final="false" visibility="public"
  51471. deprecated="not deprecated">
  51472. <implements name="org.apache.hadoop.io.Writable"/>
  51473. <constructor name="MapTaskCompletionEventsUpdate"
  51474. static="false" final="false" visibility="public"
  51475. deprecated="not deprecated">
  51476. </constructor>
  51477. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  51478. static="false" final="false" visibility="public"
  51479. deprecated="not deprecated">
  51480. </constructor>
  51481. <method name="shouldReset" return="boolean"
  51482. abstract="false" native="false" synchronized="false"
  51483. static="false" final="false" visibility="public"
  51484. deprecated="not deprecated">
  51485. </method>
  51486. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  51487. abstract="false" native="false" synchronized="false"
  51488. static="false" final="false" visibility="public"
  51489. deprecated="not deprecated">
  51490. </method>
  51491. <method name="write"
  51492. abstract="false" native="false" synchronized="false"
  51493. static="false" final="false" visibility="public"
  51494. deprecated="not deprecated">
  51495. <param name="out" type="java.io.DataOutput"/>
  51496. <exception name="IOException" type="java.io.IOException"/>
  51497. </method>
  51498. <method name="readFields"
  51499. abstract="false" native="false" synchronized="false"
  51500. static="false" final="false" visibility="public"
  51501. deprecated="not deprecated">
  51502. <param name="in" type="java.io.DataInput"/>
  51503. <exception name="IOException" type="java.io.IOException"/>
  51504. </method>
  51505. <doc>
  51506. <![CDATA[A class that represents the communication between the tasktracker and child
  51507. tasks w.r.t the map task completion events. It also indicates whether the
  51508. child task should reset its events index.]]>
  51509. </doc>
  51510. </class>
  51511. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  51512. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  51513. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  51514. abstract="true"
  51515. static="false" final="false" visibility="public"
  51516. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  51517. <constructor name="MultiFileInputFormat"
  51518. static="false" final="false" visibility="public"
  51519. deprecated="not deprecated">
  51520. </constructor>
  51521. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  51522. abstract="false" native="false" synchronized="false"
  51523. static="false" final="false" visibility="public"
  51524. deprecated="not deprecated">
  51525. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51526. <param name="numSplits" type="int"/>
  51527. <exception name="IOException" type="java.io.IOException"/>
  51528. </method>
  51529. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  51530. abstract="true" native="false" synchronized="false"
  51531. static="false" final="false" visibility="public"
  51532. deprecated="not deprecated">
  51533. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  51534. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51535. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  51536. <exception name="IOException" type="java.io.IOException"/>
  51537. </method>
  51538. <doc>
  51539. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  51540. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  51541. the files under the input paths. Each split returned contains <i>nearly</i>
  51542. equal content length. <br>
  51543. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  51544. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  51545. @see MultiFileSplit
  51546. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  51547. </doc>
  51548. </class>
  51549. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  51550. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  51551. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  51552. abstract="false"
  51553. static="false" final="false" visibility="public"
  51554. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  51555. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  51556. static="false" final="false" visibility="public"
  51557. deprecated="not deprecated">
  51558. </constructor>
  51559. <method name="getLocations" return="java.lang.String[]"
  51560. abstract="false" native="false" synchronized="false"
  51561. static="false" final="false" visibility="public"
  51562. deprecated="not deprecated">
  51563. <exception name="IOException" type="java.io.IOException"/>
  51564. </method>
  51565. <method name="toString" return="java.lang.String"
  51566. abstract="false" native="false" synchronized="false"
  51567. static="false" final="false" visibility="public"
  51568. deprecated="not deprecated">
  51569. </method>
  51570. <doc>
  51571. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  51572. class does not represent a split of a file, but a split of input files
  51573. into smaller sets. The atomic unit of split is a file. <br>
  51574. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  51575. reading one record per file.
  51576. @see FileSplit
  51577. @see MultiFileInputFormat
  51578. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  51579. </doc>
  51580. </class>
  51581. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  51582. <!-- start class org.apache.hadoop.mapred.Operation -->
  51583. <class name="Operation" extends="java.lang.Enum"
  51584. abstract="false"
  51585. static="false" final="true" visibility="public"
  51586. deprecated="not deprecated">
  51587. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  51588. abstract="false" native="false" synchronized="false"
  51589. static="true" final="false" visibility="public"
  51590. deprecated="not deprecated">
  51591. </method>
  51592. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  51593. abstract="false" native="false" synchronized="false"
  51594. static="true" final="false" visibility="public"
  51595. deprecated="not deprecated">
  51596. <param name="name" type="java.lang.String"/>
  51597. </method>
  51598. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  51599. transient="false" volatile="false"
  51600. static="true" final="true" visibility="public"
  51601. deprecated="not deprecated">
  51602. </field>
  51603. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  51604. transient="false" volatile="false"
  51605. static="true" final="true" visibility="public"
  51606. deprecated="not deprecated">
  51607. </field>
  51608. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  51609. transient="false" volatile="false"
  51610. static="true" final="true" visibility="public"
  51611. deprecated="not deprecated">
  51612. </field>
  51613. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  51614. transient="false" volatile="false"
  51615. static="true" final="true" visibility="public"
  51616. deprecated="not deprecated">
  51617. </field>
  51618. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  51619. transient="false" volatile="false"
  51620. static="true" final="true" visibility="public"
  51621. deprecated="not deprecated">
  51622. </field>
  51623. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  51624. transient="false" volatile="false"
  51625. static="true" final="true" visibility="public"
  51626. deprecated="not deprecated">
  51627. </field>
  51628. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  51629. transient="false" volatile="false"
  51630. static="true" final="true" visibility="public"
  51631. deprecated="not deprecated">
  51632. </field>
  51633. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  51634. transient="false" volatile="false"
  51635. static="true" final="true" visibility="public"
  51636. deprecated="not deprecated">
  51637. </field>
  51638. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  51639. transient="false" volatile="false"
  51640. static="false" final="false" visibility="public"
  51641. deprecated="not deprecated">
  51642. </field>
  51643. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  51644. transient="false" volatile="false"
  51645. static="false" final="false" visibility="public"
  51646. deprecated="not deprecated">
  51647. </field>
  51648. <doc>
  51649. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  51650. authorization of the operation.]]>
  51651. </doc>
  51652. </class>
  51653. <!-- end class org.apache.hadoop.mapred.Operation -->
  51654. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  51655. <interface name="OutputCollector" abstract="true"
  51656. static="false" final="false" visibility="public"
  51657. deprecated="not deprecated">
  51658. <method name="collect"
  51659. abstract="false" native="false" synchronized="false"
  51660. static="false" final="false" visibility="public"
  51661. deprecated="not deprecated">
  51662. <param name="key" type="java.lang.Object"/>
  51663. <param name="value" type="java.lang.Object"/>
  51664. <exception name="IOException" type="java.io.IOException"/>
  51665. <doc>
  51666. <![CDATA[Adds a key/value pair to the output.
  51667. @param key the key to collect.
  51668. @param value to value to collect.
  51669. @throws IOException]]>
  51670. </doc>
  51671. </method>
  51672. <doc>
  51673. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  51674. and {@link Reducer}s.
  51675. <p><code>OutputCollector</code> is the generalization of the facility
  51676. provided by the Map-Reduce framework to collect data output by either the
  51677. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  51678. or the output of the job.</p>]]>
  51679. </doc>
  51680. </interface>
  51681. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  51682. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  51683. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  51684. abstract="true"
  51685. static="false" final="false" visibility="public"
  51686. deprecated="not deprecated">
  51687. <constructor name="OutputCommitter"
  51688. static="false" final="false" visibility="public"
  51689. deprecated="not deprecated">
  51690. </constructor>
  51691. <method name="setupJob"
  51692. abstract="true" native="false" synchronized="false"
  51693. static="false" final="false" visibility="public"
  51694. deprecated="not deprecated">
  51695. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51696. <exception name="IOException" type="java.io.IOException"/>
  51697. <doc>
  51698. <![CDATA[For the framework to setup the job output during initialization
  51699. @param jobContext Context of the job whose output is being written.
  51700. @throws IOException if temporary output could not be created]]>
  51701. </doc>
  51702. </method>
  51703. <method name="cleanupJob"
  51704. abstract="false" native="false" synchronized="false"
  51705. static="false" final="false" visibility="public"
  51706. deprecated="use {@link #commitJob(JobContext)} or
  51707. {@link #abortJob(JobContext, int)} instead">
  51708. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51709. <exception name="IOException" type="java.io.IOException"/>
  51710. <doc>
  51711. <![CDATA[For cleaning up the job's output after job completion
  51712. @deprecated use {@link #commitJob(JobContext)} or
  51713. {@link #abortJob(JobContext, int)} instead]]>
  51714. </doc>
  51715. </method>
  51716. <method name="commitJob"
  51717. abstract="false" native="false" synchronized="false"
  51718. static="false" final="false" visibility="public"
  51719. deprecated="not deprecated">
  51720. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51721. <exception name="IOException" type="java.io.IOException"/>
  51722. <doc>
  51723. <![CDATA[For committing job's output after successful job completion. Note that this
  51724. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  51725. @param jobContext Context of the job whose output is being written.
  51726. @throws IOException]]>
  51727. </doc>
  51728. </method>
  51729. <method name="abortJob"
  51730. abstract="false" native="false" synchronized="false"
  51731. static="false" final="false" visibility="public"
  51732. deprecated="not deprecated">
  51733. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  51734. <param name="status" type="int"/>
  51735. <exception name="IOException" type="java.io.IOException"/>
  51736. <doc>
  51737. <![CDATA[For cleaning up the job's output after job failure.
  51738. @param jobContext Context of the job whose output is being written.
  51739. @param status Final run state of the job, should be
  51740. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  51741. @throws IOException]]>
  51742. </doc>
  51743. </method>
  51744. <method name="setupTask"
  51745. abstract="true" native="false" synchronized="false"
  51746. static="false" final="false" visibility="public"
  51747. deprecated="not deprecated">
  51748. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51749. <exception name="IOException" type="java.io.IOException"/>
  51750. <doc>
  51751. <![CDATA[Sets up output for the task.
  51752. @param taskContext Context of the task whose output is being written.
  51753. @throws IOException]]>
  51754. </doc>
  51755. </method>
  51756. <method name="needsTaskCommit" return="boolean"
  51757. abstract="true" native="false" synchronized="false"
  51758. static="false" final="false" visibility="public"
  51759. deprecated="not deprecated">
  51760. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51761. <exception name="IOException" type="java.io.IOException"/>
  51762. <doc>
  51763. <![CDATA[Check whether task needs a commit
  51764. @param taskContext
  51765. @return true/false
  51766. @throws IOException]]>
  51767. </doc>
  51768. </method>
  51769. <method name="commitTask"
  51770. abstract="true" native="false" synchronized="false"
  51771. static="false" final="false" visibility="public"
  51772. deprecated="not deprecated">
  51773. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51774. <exception name="IOException" type="java.io.IOException"/>
  51775. <doc>
  51776. <![CDATA[To promote the task's temporary output to final output location
  51777. The task's output is moved to the job's output directory.
  51778. @param taskContext Context of the task whose output is being written.
  51779. @throws IOException if commit is not]]>
  51780. </doc>
  51781. </method>
  51782. <method name="abortTask"
  51783. abstract="true" native="false" synchronized="false"
  51784. static="false" final="false" visibility="public"
  51785. deprecated="not deprecated">
  51786. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  51787. <exception name="IOException" type="java.io.IOException"/>
  51788. <doc>
  51789. <![CDATA[Discard the task output
  51790. @param taskContext
  51791. @throws IOException]]>
  51792. </doc>
  51793. </method>
  51794. <method name="setupJob"
  51795. abstract="false" native="false" synchronized="false"
  51796. static="false" final="true" visibility="public"
  51797. deprecated="not deprecated">
  51798. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  51799. <exception name="IOException" type="java.io.IOException"/>
  51800. <doc>
  51801. <![CDATA[This method implements the new interface by calling the old method. Note
  51802. that the input types are different between the new and old apis and this
  51803. is a bridge between the two.]]>
  51804. </doc>
  51805. </method>
  51806. <method name="cleanupJob"
  51807. abstract="false" native="false" synchronized="false"
  51808. static="false" final="true" visibility="public"
  51809. deprecated="not deprecated">
  51810. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51811. <exception name="IOException" type="java.io.IOException"/>
  51812. <doc>
  51813. <![CDATA[This method implements the new interface by calling the old method. Note
  51814. that the input types are different between the new and old apis and this
  51815. is a bridge between the two.]]>
  51816. </doc>
  51817. </method>
  51818. <method name="commitJob"
  51819. abstract="false" native="false" synchronized="false"
  51820. static="false" final="true" visibility="public"
  51821. deprecated="not deprecated">
  51822. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51823. <exception name="IOException" type="java.io.IOException"/>
  51824. <doc>
  51825. <![CDATA[This method implements the new interface by calling the old method. Note
  51826. that the input types are different between the new and old apis and this
  51827. is a bridge between the two.]]>
  51828. </doc>
  51829. </method>
  51830. <method name="abortJob"
  51831. abstract="false" native="false" synchronized="false"
  51832. static="false" final="true" visibility="public"
  51833. deprecated="not deprecated">
  51834. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  51835. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  51836. <exception name="IOException" type="java.io.IOException"/>
  51837. <doc>
  51838. <![CDATA[This method implements the new interface by calling the old method. Note
  51839. that the input types are different between the new and old apis and this
  51840. is a bridge between the two.]]>
  51841. </doc>
  51842. </method>
  51843. <method name="setupTask"
  51844. abstract="false" native="false" synchronized="false"
  51845. static="false" final="true" visibility="public"
  51846. deprecated="not deprecated">
  51847. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51848. <exception name="IOException" type="java.io.IOException"/>
  51849. <doc>
  51850. <![CDATA[This method implements the new interface by calling the old method. Note
  51851. that the input types are different between the new and old apis and this
  51852. is a bridge between the two.]]>
  51853. </doc>
  51854. </method>
  51855. <method name="needsTaskCommit" return="boolean"
  51856. abstract="false" native="false" synchronized="false"
  51857. static="false" final="true" visibility="public"
  51858. deprecated="not deprecated">
  51859. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51860. <exception name="IOException" type="java.io.IOException"/>
  51861. <doc>
  51862. <![CDATA[This method implements the new interface by calling the old method. Note
  51863. that the input types are different between the new and old apis and this
  51864. is a bridge between the two.]]>
  51865. </doc>
  51866. </method>
  51867. <method name="commitTask"
  51868. abstract="false" native="false" synchronized="false"
  51869. static="false" final="true" visibility="public"
  51870. deprecated="not deprecated">
  51871. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51872. <exception name="IOException" type="java.io.IOException"/>
  51873. <doc>
  51874. <![CDATA[This method implements the new interface by calling the old method. Note
  51875. that the input types are different between the new and old apis and this
  51876. is a bridge between the two.]]>
  51877. </doc>
  51878. </method>
  51879. <method name="abortTask"
  51880. abstract="false" native="false" synchronized="false"
  51881. static="false" final="true" visibility="public"
  51882. deprecated="not deprecated">
  51883. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  51884. <exception name="IOException" type="java.io.IOException"/>
  51885. <doc>
  51886. <![CDATA[This method implements the new interface by calling the old method. Note
  51887. that the input types are different between the new and old apis and this
  51888. is a bridge between the two.]]>
  51889. </doc>
  51890. </method>
  51891. <doc>
  51892. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  51893. Map-Reduce job.
  51894. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  51895. the job to:<p>
  51896. <ol>
  51897. <li>
  51898. Setup the job during initialization. For example, create the temporary
  51899. output directory for the job during the initialization of the job.
  51900. </li>
  51901. <li>
  51902. Cleanup the job after the job completion. For example, remove the
  51903. temporary output directory after the job completion.
  51904. </li>
  51905. <li>
  51906. Setup the task temporary output.
  51907. </li>
  51908. <li>
  51909. Check whether a task needs a commit. This is to avoid the commit
  51910. procedure if a task does not need commit.
  51911. </li>
  51912. <li>
  51913. Commit of the task output.
  51914. </li>
  51915. <li>
  51916. Discard the task commit.
  51917. </li>
  51918. </ol>
  51919. @see FileOutputCommitter
  51920. @see JobContext
  51921. @see TaskAttemptContext]]>
  51922. </doc>
  51923. </class>
  51924. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  51925. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  51926. <interface name="OutputFormat" abstract="true"
  51927. static="false" final="false" visibility="public"
  51928. deprecated="not deprecated">
  51929. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  51930. abstract="false" native="false" synchronized="false"
  51931. static="false" final="false" visibility="public"
  51932. deprecated="not deprecated">
  51933. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51934. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51935. <param name="name" type="java.lang.String"/>
  51936. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  51937. <exception name="IOException" type="java.io.IOException"/>
  51938. <doc>
  51939. <![CDATA[Get the {@link RecordWriter} for the given job.
  51940. @param ignored
  51941. @param job configuration for the job whose output is being written.
  51942. @param name the unique name for this part of the output.
  51943. @param progress mechanism for reporting progress while writing to file.
  51944. @return a {@link RecordWriter} to write the output for the job.
  51945. @throws IOException]]>
  51946. </doc>
  51947. </method>
  51948. <method name="checkOutputSpecs"
  51949. abstract="false" native="false" synchronized="false"
  51950. static="false" final="false" visibility="public"
  51951. deprecated="not deprecated">
  51952. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  51953. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  51954. <exception name="IOException" type="java.io.IOException"/>
  51955. <doc>
  51956. <![CDATA[Check for validity of the output-specification for the job.
  51957. <p>This is to validate the output specification for the job when it is
  51958. a job is submitted. Typically checks that it does not already exist,
  51959. throwing an exception when it already exists, so that output is not
  51960. overwritten.</p>
  51961. @param ignored
  51962. @param job job configuration.
  51963. @throws IOException when output should not be attempted]]>
  51964. </doc>
  51965. </method>
  51966. <doc>
  51967. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  51968. Map-Reduce job.
  51969. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  51970. job to:<p>
  51971. <ol>
  51972. <li>
  51973. Validate the output-specification of the job. For e.g. check that the
  51974. output directory doesn't already exist.
  51975. <li>
  51976. Provide the {@link RecordWriter} implementation to be used to write out
  51977. the output files of the job. Output files are stored in a
  51978. {@link FileSystem}.
  51979. </li>
  51980. </ol>
  51981. @see RecordWriter
  51982. @see JobConf]]>
  51983. </doc>
  51984. </interface>
  51985. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  51986. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  51987. <class name="OutputLogFilter" extends="java.lang.Object"
  51988. abstract="false"
  51989. static="false" final="false" visibility="public"
  51990. deprecated="Use
  51991. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  51992. instead.">
  51993. <implements name="org.apache.hadoop.fs.PathFilter"/>
  51994. <constructor name="OutputLogFilter"
  51995. static="false" final="false" visibility="public"
  51996. deprecated="not deprecated">
  51997. </constructor>
  51998. <method name="accept" return="boolean"
  51999. abstract="false" native="false" synchronized="false"
  52000. static="false" final="false" visibility="public"
  52001. deprecated="not deprecated">
  52002. <param name="path" type="org.apache.hadoop.fs.Path"/>
  52003. </method>
  52004. <doc>
  52005. <![CDATA[This class filters log files from directory given
  52006. It doesnt accept paths having _logs.
  52007. This can be used to list paths of output directory as follows:
  52008. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  52009. new OutputLogFilter()));
  52010. @deprecated Use
  52011. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  52012. instead.]]>
  52013. </doc>
  52014. </class>
  52015. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  52016. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  52017. <interface name="Partitioner" abstract="true"
  52018. static="false" final="false" visibility="public"
  52019. deprecated="not deprecated">
  52020. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52021. <method name="getPartition" return="int"
  52022. abstract="false" native="false" synchronized="false"
  52023. static="false" final="false" visibility="public"
  52024. deprecated="not deprecated">
  52025. <param name="key" type="java.lang.Object"/>
  52026. <param name="value" type="java.lang.Object"/>
  52027. <param name="numPartitions" type="int"/>
  52028. <doc>
  52029. <![CDATA[Get the paritition number for a given key (hence record) given the total
  52030. number of partitions i.e. number of reduce-tasks for the job.
  52031. <p>Typically a hash function on a all or a subset of the key.</p>
  52032. @param key the key to be paritioned.
  52033. @param value the entry value.
  52034. @param numPartitions the total number of partitions.
  52035. @return the partition number for the <code>key</code>.]]>
  52036. </doc>
  52037. </method>
  52038. <doc>
  52039. <![CDATA[Partitions the key space.
  52040. <p><code>Partitioner</code> controls the partitioning of the keys of the
  52041. intermediate map-outputs. The key (or a subset of the key) is used to derive
  52042. the partition, typically by a hash function. The total number of partitions
  52043. is the same as the number of reduce tasks for the job. Hence this controls
  52044. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  52045. record) is sent for reduction.</p>
  52046. @see Reducer]]>
  52047. </doc>
  52048. </interface>
  52049. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  52050. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  52051. <class name="QueueAclsInfo" extends="java.lang.Object"
  52052. abstract="false"
  52053. static="false" final="false" visibility="public"
  52054. deprecated="not deprecated">
  52055. <implements name="org.apache.hadoop.io.Writable"/>
  52056. <constructor name="QueueAclsInfo"
  52057. static="false" final="false" visibility="public"
  52058. deprecated="not deprecated">
  52059. <doc>
  52060. <![CDATA[Default constructor for QueueAclsInfo.]]>
  52061. </doc>
  52062. </constructor>
  52063. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  52064. static="false" final="false" visibility="public"
  52065. deprecated="not deprecated">
  52066. <doc>
  52067. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  52068. queue operations array
  52069. @param queueName Name of the job queue
  52070. @param queue operations]]>
  52071. </doc>
  52072. </constructor>
  52073. <method name="getQueueName" return="java.lang.String"
  52074. abstract="false" native="false" synchronized="false"
  52075. static="false" final="false" visibility="public"
  52076. deprecated="not deprecated">
  52077. </method>
  52078. <method name="setQueueName"
  52079. abstract="false" native="false" synchronized="false"
  52080. static="false" final="false" visibility="protected"
  52081. deprecated="not deprecated">
  52082. <param name="queueName" type="java.lang.String"/>
  52083. </method>
  52084. <method name="getOperations" return="java.lang.String[]"
  52085. abstract="false" native="false" synchronized="false"
  52086. static="false" final="false" visibility="public"
  52087. deprecated="not deprecated">
  52088. </method>
  52089. <method name="readFields"
  52090. abstract="false" native="false" synchronized="false"
  52091. static="false" final="false" visibility="public"
  52092. deprecated="not deprecated">
  52093. <param name="in" type="java.io.DataInput"/>
  52094. <exception name="IOException" type="java.io.IOException"/>
  52095. </method>
  52096. <method name="write"
  52097. abstract="false" native="false" synchronized="false"
  52098. static="false" final="false" visibility="public"
  52099. deprecated="not deprecated">
  52100. <param name="out" type="java.io.DataOutput"/>
  52101. <exception name="IOException" type="java.io.IOException"/>
  52102. </method>
  52103. <doc>
  52104. <![CDATA[Class to encapsulate Queue ACLs for a particular
  52105. user.]]>
  52106. </doc>
  52107. </class>
  52108. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  52109. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  52110. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  52111. abstract="false"
  52112. static="false" final="false" visibility="public"
  52113. deprecated="not deprecated">
  52114. <constructor name="RawHistoryFileServlet"
  52115. static="false" final="false" visibility="public"
  52116. deprecated="not deprecated">
  52117. </constructor>
  52118. <method name="init"
  52119. abstract="false" native="false" synchronized="false"
  52120. static="false" final="false" visibility="public"
  52121. deprecated="not deprecated">
  52122. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  52123. <exception name="ServletException" type="javax.servlet.ServletException"/>
  52124. </method>
  52125. <method name="doGet"
  52126. abstract="false" native="false" synchronized="false"
  52127. static="false" final="false" visibility="protected"
  52128. deprecated="not deprecated">
  52129. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  52130. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  52131. <exception name="ServletException" type="javax.servlet.ServletException"/>
  52132. <exception name="IOException" type="java.io.IOException"/>
  52133. </method>
  52134. </class>
  52135. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  52136. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  52137. <interface name="RawKeyValueIterator" abstract="true"
  52138. static="false" final="false" visibility="public"
  52139. deprecated="not deprecated">
  52140. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  52141. abstract="false" native="false" synchronized="false"
  52142. static="false" final="false" visibility="public"
  52143. deprecated="not deprecated">
  52144. <exception name="IOException" type="java.io.IOException"/>
  52145. <doc>
  52146. <![CDATA[Gets the current raw key.
  52147. @return Gets the current raw key as a DataInputBuffer
  52148. @throws IOException]]>
  52149. </doc>
  52150. </method>
  52151. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  52152. abstract="false" native="false" synchronized="false"
  52153. static="false" final="false" visibility="public"
  52154. deprecated="not deprecated">
  52155. <exception name="IOException" type="java.io.IOException"/>
  52156. <doc>
  52157. <![CDATA[Gets the current raw value.
  52158. @return Gets the current raw value as a DataInputBuffer
  52159. @throws IOException]]>
  52160. </doc>
  52161. </method>
  52162. <method name="next" return="boolean"
  52163. abstract="false" native="false" synchronized="false"
  52164. static="false" final="false" visibility="public"
  52165. deprecated="not deprecated">
  52166. <exception name="IOException" type="java.io.IOException"/>
  52167. <doc>
  52168. <![CDATA[Sets up the current key and value (for getKey and getValue).
  52169. @return <code>true</code> if there exists a key/value,
  52170. <code>false</code> otherwise.
  52171. @throws IOException]]>
  52172. </doc>
  52173. </method>
  52174. <method name="close"
  52175. abstract="false" native="false" synchronized="false"
  52176. static="false" final="false" visibility="public"
  52177. deprecated="not deprecated">
  52178. <exception name="IOException" type="java.io.IOException"/>
  52179. <doc>
  52180. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  52181. @throws IOException]]>
  52182. </doc>
  52183. </method>
  52184. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  52185. abstract="false" native="false" synchronized="false"
  52186. static="false" final="false" visibility="public"
  52187. deprecated="not deprecated">
  52188. <doc>
  52189. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  52190. indicating the bytes processed by the iterator so far]]>
  52191. </doc>
  52192. </method>
  52193. <doc>
  52194. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  52195. the raw keys and values during sort/merge of intermediate data.]]>
  52196. </doc>
  52197. </interface>
  52198. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  52199. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  52200. <interface name="RecordReader" abstract="true"
  52201. static="false" final="false" visibility="public"
  52202. deprecated="not deprecated">
  52203. <method name="next" return="boolean"
  52204. abstract="false" native="false" synchronized="false"
  52205. static="false" final="false" visibility="public"
  52206. deprecated="not deprecated">
  52207. <param name="key" type="java.lang.Object"/>
  52208. <param name="value" type="java.lang.Object"/>
  52209. <exception name="IOException" type="java.io.IOException"/>
  52210. <doc>
  52211. <![CDATA[Reads the next key/value pair from the input for processing.
  52212. @param key the key to read data into
  52213. @param value the value to read data into
  52214. @return true iff a key/value was read, false if at EOF]]>
  52215. </doc>
  52216. </method>
  52217. <method name="createKey" return="java.lang.Object"
  52218. abstract="false" native="false" synchronized="false"
  52219. static="false" final="false" visibility="public"
  52220. deprecated="not deprecated">
  52221. <doc>
  52222. <![CDATA[Create an object of the appropriate type to be used as a key.
  52223. @return a new key object.]]>
  52224. </doc>
  52225. </method>
  52226. <method name="createValue" return="java.lang.Object"
  52227. abstract="false" native="false" synchronized="false"
  52228. static="false" final="false" visibility="public"
  52229. deprecated="not deprecated">
  52230. <doc>
  52231. <![CDATA[Create an object of the appropriate type to be used as a value.
  52232. @return a new value object.]]>
  52233. </doc>
  52234. </method>
  52235. <method name="getPos" return="long"
  52236. abstract="false" native="false" synchronized="false"
  52237. static="false" final="false" visibility="public"
  52238. deprecated="not deprecated">
  52239. <exception name="IOException" type="java.io.IOException"/>
  52240. <doc>
  52241. <![CDATA[Returns the current position in the input.
  52242. @return the current position in the input.
  52243. @throws IOException]]>
  52244. </doc>
  52245. </method>
  52246. <method name="close"
  52247. abstract="false" native="false" synchronized="false"
  52248. static="false" final="false" visibility="public"
  52249. deprecated="not deprecated">
  52250. <exception name="IOException" type="java.io.IOException"/>
  52251. <doc>
  52252. <![CDATA[Close this {@link InputSplit} to future operations.
  52253. @throws IOException]]>
  52254. </doc>
  52255. </method>
  52256. <method name="getProgress" return="float"
  52257. abstract="false" native="false" synchronized="false"
  52258. static="false" final="false" visibility="public"
  52259. deprecated="not deprecated">
  52260. <exception name="IOException" type="java.io.IOException"/>
  52261. <doc>
  52262. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  52263. has been processed by?
  52264. @return progress from <code>0.0</code> to <code>1.0</code>.
  52265. @throws IOException]]>
  52266. </doc>
  52267. </method>
  52268. <doc>
  52269. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  52270. {@link InputSplit}.
  52271. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  52272. the input, provided by the <code>InputSplit</code>, and presents a
  52273. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  52274. processing. It thus assumes the responsibility of processing record
  52275. boundaries and presenting the tasks with keys and values.</p>
  52276. @see InputSplit
  52277. @see InputFormat]]>
  52278. </doc>
  52279. </interface>
  52280. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  52281. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  52282. <interface name="RecordWriter" abstract="true"
  52283. static="false" final="false" visibility="public"
  52284. deprecated="not deprecated">
  52285. <method name="write"
  52286. abstract="false" native="false" synchronized="false"
  52287. static="false" final="false" visibility="public"
  52288. deprecated="not deprecated">
  52289. <param name="key" type="java.lang.Object"/>
  52290. <param name="value" type="java.lang.Object"/>
  52291. <exception name="IOException" type="java.io.IOException"/>
  52292. <doc>
  52293. <![CDATA[Writes a key/value pair.
  52294. @param key the key to write.
  52295. @param value the value to write.
  52296. @throws IOException]]>
  52297. </doc>
  52298. </method>
  52299. <method name="close"
  52300. abstract="false" native="false" synchronized="false"
  52301. static="false" final="false" visibility="public"
  52302. deprecated="not deprecated">
  52303. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52304. <exception name="IOException" type="java.io.IOException"/>
  52305. <doc>
  52306. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  52307. @param reporter facility to report progress.
  52308. @throws IOException]]>
  52309. </doc>
  52310. </method>
  52311. <doc>
  52312. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  52313. to an output file.
  52314. <p><code>RecordWriter</code> implementations write the job outputs to the
  52315. {@link FileSystem}.
  52316. @see OutputFormat]]>
  52317. </doc>
  52318. </interface>
  52319. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  52320. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  52321. <interface name="Reducer" abstract="true"
  52322. static="false" final="false" visibility="public"
  52323. deprecated="not deprecated">
  52324. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  52325. <implements name="org.apache.hadoop.io.Closeable"/>
  52326. <method name="reduce"
  52327. abstract="false" native="false" synchronized="false"
  52328. static="false" final="false" visibility="public"
  52329. deprecated="not deprecated">
  52330. <param name="key" type="java.lang.Object"/>
  52331. <param name="values" type="java.util.Iterator"/>
  52332. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  52333. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52334. <exception name="IOException" type="java.io.IOException"/>
  52335. <doc>
  52336. <![CDATA[<i>Reduces</i> values for a given key.
  52337. <p>The framework calls this method for each
  52338. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  52339. Output values must be of the same type as input values. Input keys must
  52340. not be altered. The framework will <b>reuse</b> the key and value objects
  52341. that are passed into the reduce, therefore the application should clone
  52342. the objects they want to keep a copy of. In many cases, all values are
  52343. combined into zero or one value.
  52344. </p>
  52345. <p>Output pairs are collected with calls to
  52346. {@link OutputCollector#collect(Object,Object)}.</p>
  52347. <p>Applications can use the {@link Reporter} provided to report progress
  52348. or just indicate that they are alive. In scenarios where the application
  52349. takes an insignificant amount of time to process individual key/value
  52350. pairs, this is crucial since the framework might assume that the task has
  52351. timed-out and kill that task. The other way of avoiding this is to set
  52352. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  52353. mapred.task.timeout</a> to a high-enough value (or even zero for no
  52354. time-outs).</p>
  52355. @param key the key.
  52356. @param values the list of values to reduce.
  52357. @param output to collect keys and combined values.
  52358. @param reporter facility to report progress.]]>
  52359. </doc>
  52360. </method>
  52361. <doc>
  52362. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  52363. values.
  52364. <p>The number of <code>Reducer</code>s for the job is set by the user via
  52365. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  52366. can access the {@link JobConf} for the job via the
  52367. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  52368. Similarly they can use the {@link Closeable#close()} method for
  52369. de-initialization.</p>
  52370. <p><code>Reducer</code> has 3 primary phases:</p>
  52371. <ol>
  52372. <li>
  52373. <h4 id="Shuffle">Shuffle</h4>
  52374. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  52375. In the phase the framework, for each <code>Reducer</code>, fetches the
  52376. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  52377. </p>
  52378. </li>
  52379. <li>
  52380. <h4 id="Sort">Sort</h4>
  52381. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  52382. (since different <code>Mapper</code>s may have output the same key) in this
  52383. stage.</p>
  52384. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  52385. being fetched they are merged.</p>
  52386. <h5 id="SecondarySort">SecondarySort</h5>
  52387. <p>If equivalence rules for keys while grouping the intermediates are
  52388. different from those for grouping keys before reduction, then one may
  52389. specify a <code>Comparator</code> via
  52390. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  52391. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  52392. control how intermediate keys are grouped, these can be used in conjunction
  52393. to simulate <i>secondary sort on values</i>.</p>
  52394. For example, say that you want to find duplicate web pages and tag them
  52395. all with the url of the "best" known example. You would set up the job
  52396. like:
  52397. <ul>
  52398. <li>Map Input Key: url</li>
  52399. <li>Map Input Value: document</li>
  52400. <li>Map Output Key: document checksum, url pagerank</li>
  52401. <li>Map Output Value: url</li>
  52402. <li>Partitioner: by checksum</li>
  52403. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  52404. <li>OutputValueGroupingComparator: by checksum</li>
  52405. </ul>
  52406. </li>
  52407. <li>
  52408. <h4 id="Reduce">Reduce</h4>
  52409. <p>In this phase the
  52410. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  52411. method is called for each <code>&lt;key, (list of values)></code> pair in
  52412. the grouped inputs.</p>
  52413. <p>The output of the reduce task is typically written to the
  52414. {@link FileSystem} via
  52415. {@link OutputCollector#collect(Object, Object)}.</p>
  52416. </li>
  52417. </ol>
  52418. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  52419. <p>Example:</p>
  52420. <p><blockquote><pre>
  52421. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  52422. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  52423. static enum MyCounters { NUM_RECORDS }
  52424. private String reduceTaskId;
  52425. private int noKeys = 0;
  52426. public void configure(JobConf job) {
  52427. reduceTaskId = job.get("mapred.task.id");
  52428. }
  52429. public void reduce(K key, Iterator&lt;V&gt; values,
  52430. OutputCollector&lt;K, V&gt; output,
  52431. Reporter reporter)
  52432. throws IOException {
  52433. // Process
  52434. int noValues = 0;
  52435. while (values.hasNext()) {
  52436. V value = values.next();
  52437. // Increment the no. of values for this key
  52438. ++noValues;
  52439. // Process the &lt;key, value&gt; pair (assume this takes a while)
  52440. // ...
  52441. // ...
  52442. // Let the framework know that we are alive, and kicking!
  52443. if ((noValues%10) == 0) {
  52444. reporter.progress();
  52445. }
  52446. // Process some more
  52447. // ...
  52448. // ...
  52449. // Output the &lt;key, value&gt;
  52450. output.collect(key, value);
  52451. }
  52452. // Increment the no. of &lt;key, list of values&gt; pairs processed
  52453. ++noKeys;
  52454. // Increment counters
  52455. reporter.incrCounter(NUM_RECORDS, 1);
  52456. // Every 100 keys update application-level status
  52457. if ((noKeys%100) == 0) {
  52458. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  52459. }
  52460. }
  52461. }
  52462. </pre></blockquote></p>
  52463. @see Mapper
  52464. @see Partitioner
  52465. @see Reporter
  52466. @see MapReduceBase]]>
  52467. </doc>
  52468. </interface>
  52469. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  52470. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  52471. <interface name="Reporter" abstract="true"
  52472. static="false" final="false" visibility="public"
  52473. deprecated="not deprecated">
  52474. <implements name="org.apache.hadoop.util.Progressable"/>
  52475. <method name="setStatus"
  52476. abstract="false" native="false" synchronized="false"
  52477. static="false" final="false" visibility="public"
  52478. deprecated="not deprecated">
  52479. <param name="status" type="java.lang.String"/>
  52480. <doc>
  52481. <![CDATA[Set the status description for the task.
  52482. @param status brief description of the current status.]]>
  52483. </doc>
  52484. </method>
  52485. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  52486. abstract="false" native="false" synchronized="false"
  52487. static="false" final="false" visibility="public"
  52488. deprecated="not deprecated">
  52489. <param name="name" type="java.lang.Enum"/>
  52490. <doc>
  52491. <![CDATA[Get the {@link Counter} of the given group with the given name.
  52492. @param name counter name
  52493. @return the <code>Counter</code> of the given group/name.]]>
  52494. </doc>
  52495. </method>
  52496. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  52497. abstract="false" native="false" synchronized="false"
  52498. static="false" final="false" visibility="public"
  52499. deprecated="not deprecated">
  52500. <param name="group" type="java.lang.String"/>
  52501. <param name="name" type="java.lang.String"/>
  52502. <doc>
  52503. <![CDATA[Get the {@link Counter} of the given group with the given name.
  52504. @param group counter group
  52505. @param name counter name
  52506. @return the <code>Counter</code> of the given group/name.]]>
  52507. </doc>
  52508. </method>
  52509. <method name="incrCounter"
  52510. abstract="false" native="false" synchronized="false"
  52511. static="false" final="false" visibility="public"
  52512. deprecated="not deprecated">
  52513. <param name="key" type="java.lang.Enum"/>
  52514. <param name="amount" type="long"/>
  52515. <doc>
  52516. <![CDATA[Increments the counter identified by the key, which can be of
  52517. any {@link Enum} type, by the specified amount.
  52518. @param key key to identify the counter to be incremented. The key can be
  52519. be any <code>Enum</code>.
  52520. @param amount A non-negative amount by which the counter is to
  52521. be incremented.]]>
  52522. </doc>
  52523. </method>
  52524. <method name="incrCounter"
  52525. abstract="false" native="false" synchronized="false"
  52526. static="false" final="false" visibility="public"
  52527. deprecated="not deprecated">
  52528. <param name="group" type="java.lang.String"/>
  52529. <param name="counter" type="java.lang.String"/>
  52530. <param name="amount" type="long"/>
  52531. <doc>
  52532. <![CDATA[Increments the counter identified by the group and counter name
  52533. by the specified amount.
  52534. @param group name to identify the group of the counter to be incremented.
  52535. @param counter name to identify the counter within the group.
  52536. @param amount A non-negative amount by which the counter is to
  52537. be incremented.]]>
  52538. </doc>
  52539. </method>
  52540. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  52541. abstract="false" native="false" synchronized="false"
  52542. static="false" final="false" visibility="public"
  52543. deprecated="not deprecated">
  52544. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  52545. <doc>
  52546. <![CDATA[Get the {@link InputSplit} object for a map.
  52547. @return the <code>InputSplit</code> that the map is reading from.
  52548. @throws UnsupportedOperationException if called outside a mapper]]>
  52549. </doc>
  52550. </method>
  52551. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  52552. transient="false" volatile="false"
  52553. static="true" final="true" visibility="public"
  52554. deprecated="not deprecated">
  52555. <doc>
  52556. <![CDATA[A constant of Reporter type that does nothing.]]>
  52557. </doc>
  52558. </field>
  52559. <doc>
  52560. <![CDATA[A facility for Map-Reduce applications to report progress and update
  52561. counters, status information etc.
  52562. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  52563. provided to report progress or just indicate that they are alive. In
  52564. scenarios where the application takes an insignificant amount of time to
  52565. process individual key/value pairs, this is crucial since the framework
  52566. might assume that the task has timed-out and kill that task.
  52567. <p>Applications can also update {@link Counters} via the provided
  52568. <code>Reporter</code> .</p>
  52569. @see Progressable
  52570. @see Counters]]>
  52571. </doc>
  52572. </interface>
  52573. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  52574. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  52575. <interface name="RunningJob" abstract="true"
  52576. static="false" final="false" visibility="public"
  52577. deprecated="not deprecated">
  52578. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  52579. abstract="false" native="false" synchronized="false"
  52580. static="false" final="false" visibility="public"
  52581. deprecated="not deprecated">
  52582. <doc>
  52583. <![CDATA[Get the job identifier.
  52584. @return the job identifier.]]>
  52585. </doc>
  52586. </method>
  52587. <method name="getJobID" return="java.lang.String"
  52588. abstract="false" native="false" synchronized="false"
  52589. static="false" final="false" visibility="public"
  52590. deprecated="This method is deprecated and will be removed. Applications should
  52591. rather use {@link #getID()}.">
  52592. <doc>
  52593. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  52594. rather use {@link #getID()}.]]>
  52595. </doc>
  52596. </method>
  52597. <method name="getJobName" return="java.lang.String"
  52598. abstract="false" native="false" synchronized="false"
  52599. static="false" final="false" visibility="public"
  52600. deprecated="not deprecated">
  52601. <doc>
  52602. <![CDATA[Get the name of the job.
  52603. @return the name of the job.]]>
  52604. </doc>
  52605. </method>
  52606. <method name="getJobFile" return="java.lang.String"
  52607. abstract="false" native="false" synchronized="false"
  52608. static="false" final="false" visibility="public"
  52609. deprecated="not deprecated">
  52610. <doc>
  52611. <![CDATA[Get the path of the submitted job configuration.
  52612. @return the path of the submitted job configuration.]]>
  52613. </doc>
  52614. </method>
  52615. <method name="getTrackingURL" return="java.lang.String"
  52616. abstract="false" native="false" synchronized="false"
  52617. static="false" final="false" visibility="public"
  52618. deprecated="not deprecated">
  52619. <doc>
  52620. <![CDATA[Get the URL where some job progress information will be displayed.
  52621. @return the URL where some job progress information will be displayed.]]>
  52622. </doc>
  52623. </method>
  52624. <method name="mapProgress" return="float"
  52625. abstract="false" native="false" synchronized="false"
  52626. static="false" final="false" visibility="public"
  52627. deprecated="not deprecated">
  52628. <exception name="IOException" type="java.io.IOException"/>
  52629. <doc>
  52630. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  52631. and 1.0. When all map tasks have completed, the function returns 1.0.
  52632. @return the progress of the job's map-tasks.
  52633. @throws IOException]]>
  52634. </doc>
  52635. </method>
  52636. <method name="reduceProgress" return="float"
  52637. abstract="false" native="false" synchronized="false"
  52638. static="false" final="false" visibility="public"
  52639. deprecated="not deprecated">
  52640. <exception name="IOException" type="java.io.IOException"/>
  52641. <doc>
  52642. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  52643. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  52644. @return the progress of the job's reduce-tasks.
  52645. @throws IOException]]>
  52646. </doc>
  52647. </method>
  52648. <method name="cleanupProgress" return="float"
  52649. abstract="false" native="false" synchronized="false"
  52650. static="false" final="false" visibility="public"
  52651. deprecated="not deprecated">
  52652. <exception name="IOException" type="java.io.IOException"/>
  52653. <doc>
  52654. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  52655. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  52656. @return the progress of the job's cleanup-tasks.
  52657. @throws IOException]]>
  52658. </doc>
  52659. </method>
  52660. <method name="setupProgress" return="float"
  52661. abstract="false" native="false" synchronized="false"
  52662. static="false" final="false" visibility="public"
  52663. deprecated="not deprecated">
  52664. <exception name="IOException" type="java.io.IOException"/>
  52665. <doc>
  52666. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  52667. and 1.0. When all setup tasks have completed, the function returns 1.0.
  52668. @return the progress of the job's setup-tasks.
  52669. @throws IOException]]>
  52670. </doc>
  52671. </method>
  52672. <method name="isComplete" return="boolean"
  52673. abstract="false" native="false" synchronized="false"
  52674. static="false" final="false" visibility="public"
  52675. deprecated="not deprecated">
  52676. <exception name="IOException" type="java.io.IOException"/>
  52677. <doc>
  52678. <![CDATA[Check if the job is finished or not.
  52679. This is a non-blocking call.
  52680. @return <code>true</code> if the job is complete, else <code>false</code>.
  52681. @throws IOException]]>
  52682. </doc>
  52683. </method>
  52684. <method name="isSuccessful" return="boolean"
  52685. abstract="false" native="false" synchronized="false"
  52686. static="false" final="false" visibility="public"
  52687. deprecated="not deprecated">
  52688. <exception name="IOException" type="java.io.IOException"/>
  52689. <doc>
  52690. <![CDATA[Check if the job completed successfully.
  52691. @return <code>true</code> if the job succeeded, else <code>false</code>.
  52692. @throws IOException]]>
  52693. </doc>
  52694. </method>
  52695. <method name="waitForCompletion"
  52696. abstract="false" native="false" synchronized="false"
  52697. static="false" final="false" visibility="public"
  52698. deprecated="not deprecated">
  52699. <exception name="IOException" type="java.io.IOException"/>
  52700. <doc>
  52701. <![CDATA[Blocks until the job is complete.
  52702. @throws IOException]]>
  52703. </doc>
  52704. </method>
  52705. <method name="getJobState" return="int"
  52706. abstract="false" native="false" synchronized="false"
  52707. static="false" final="false" visibility="public"
  52708. deprecated="not deprecated">
  52709. <exception name="IOException" type="java.io.IOException"/>
  52710. <doc>
  52711. <![CDATA[Returns the current state of the Job.
  52712. {@link JobStatus}
  52713. @throws IOException]]>
  52714. </doc>
  52715. </method>
  52716. <method name="killJob"
  52717. abstract="false" native="false" synchronized="false"
  52718. static="false" final="false" visibility="public"
  52719. deprecated="not deprecated">
  52720. <exception name="IOException" type="java.io.IOException"/>
  52721. <doc>
  52722. <![CDATA[Kill the running job. Blocks until all job tasks have been
  52723. killed as well. If the job is no longer running, it simply returns.
  52724. @throws IOException]]>
  52725. </doc>
  52726. </method>
  52727. <method name="setJobPriority"
  52728. abstract="false" native="false" synchronized="false"
  52729. static="false" final="false" visibility="public"
  52730. deprecated="not deprecated">
  52731. <param name="priority" type="java.lang.String"/>
  52732. <exception name="IOException" type="java.io.IOException"/>
  52733. <doc>
  52734. <![CDATA[Set the priority of a running job.
  52735. @param priority the new priority for the job.
  52736. @throws IOException]]>
  52737. </doc>
  52738. </method>
  52739. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  52740. abstract="false" native="false" synchronized="false"
  52741. static="false" final="false" visibility="public"
  52742. deprecated="not deprecated">
  52743. <param name="startFrom" type="int"/>
  52744. <exception name="IOException" type="java.io.IOException"/>
  52745. <doc>
  52746. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  52747. @param startFrom index to start fetching events from
  52748. @return an array of {@link TaskCompletionEvent}s
  52749. @throws IOException]]>
  52750. </doc>
  52751. </method>
  52752. <method name="killTask"
  52753. abstract="false" native="false" synchronized="false"
  52754. static="false" final="false" visibility="public"
  52755. deprecated="not deprecated">
  52756. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52757. <param name="shouldFail" type="boolean"/>
  52758. <exception name="IOException" type="java.io.IOException"/>
  52759. <doc>
  52760. <![CDATA[Kill indicated task attempt.
  52761. @param taskId the id of the task to be terminated.
  52762. @param shouldFail if true the task is failed and added to failed tasks
  52763. list, otherwise it is just killed, w/o affecting
  52764. job failure status.
  52765. @throws IOException]]>
  52766. </doc>
  52767. </method>
  52768. <method name="killTask"
  52769. abstract="false" native="false" synchronized="false"
  52770. static="false" final="false" visibility="public"
  52771. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  52772. <param name="taskId" type="java.lang.String"/>
  52773. <param name="shouldFail" type="boolean"/>
  52774. <exception name="IOException" type="java.io.IOException"/>
  52775. <doc>
  52776. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  52777. </doc>
  52778. </method>
  52779. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  52780. abstract="false" native="false" synchronized="false"
  52781. static="false" final="false" visibility="public"
  52782. deprecated="not deprecated">
  52783. <exception name="IOException" type="java.io.IOException"/>
  52784. <doc>
  52785. <![CDATA[Gets the counters for this job.
  52786. @return the counters for this job.
  52787. @throws IOException]]>
  52788. </doc>
  52789. </method>
  52790. <method name="getFailureInfo" return="java.lang.String"
  52791. abstract="false" native="false" synchronized="false"
  52792. static="false" final="false" visibility="public"
  52793. deprecated="not deprecated">
  52794. <exception name="IOException" type="java.io.IOException"/>
  52795. <doc>
  52796. <![CDATA[Get failure info for the job.
  52797. @return the failure info for the job.
  52798. @throws IOException]]>
  52799. </doc>
  52800. </method>
  52801. <method name="getTaskDiagnostics" return="java.lang.String[]"
  52802. abstract="false" native="false" synchronized="false"
  52803. static="false" final="false" visibility="public"
  52804. deprecated="not deprecated">
  52805. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  52806. <exception name="IOException" type="java.io.IOException"/>
  52807. <doc>
  52808. <![CDATA[Gets the diagnostic messages for a given task attempt.
  52809. @param taskid
  52810. @return the list of diagnostic messages for the task
  52811. @throws IOException]]>
  52812. </doc>
  52813. </method>
  52814. <doc>
  52815. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  52816. running Map-Reduce job.
  52817. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  52818. and then query the running-job for details such as name, configuration,
  52819. progress etc.</p>
  52820. @see JobClient]]>
  52821. </doc>
  52822. </interface>
  52823. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  52824. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  52825. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  52826. abstract="false"
  52827. static="false" final="false" visibility="public"
  52828. deprecated="not deprecated">
  52829. <constructor name="SequenceFileAsBinaryInputFormat"
  52830. static="false" final="false" visibility="public"
  52831. deprecated="not deprecated">
  52832. </constructor>
  52833. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  52834. abstract="false" native="false" synchronized="false"
  52835. static="false" final="false" visibility="public"
  52836. deprecated="not deprecated">
  52837. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  52838. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52839. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  52840. <exception name="IOException" type="java.io.IOException"/>
  52841. </method>
  52842. <doc>
  52843. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  52844. format.]]>
  52845. </doc>
  52846. </class>
  52847. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  52848. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  52849. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  52850. abstract="false"
  52851. static="true" final="false" visibility="public"
  52852. deprecated="not deprecated">
  52853. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  52854. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  52855. static="false" final="false" visibility="public"
  52856. deprecated="not deprecated">
  52857. <exception name="IOException" type="java.io.IOException"/>
  52858. </constructor>
  52859. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  52860. abstract="false" native="false" synchronized="false"
  52861. static="false" final="false" visibility="public"
  52862. deprecated="not deprecated">
  52863. </method>
  52864. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  52865. abstract="false" native="false" synchronized="false"
  52866. static="false" final="false" visibility="public"
  52867. deprecated="not deprecated">
  52868. </method>
  52869. <method name="getKeyClassName" return="java.lang.String"
  52870. abstract="false" native="false" synchronized="false"
  52871. static="false" final="false" visibility="public"
  52872. deprecated="not deprecated">
  52873. <doc>
  52874. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  52875. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  52876. </doc>
  52877. </method>
  52878. <method name="getValueClassName" return="java.lang.String"
  52879. abstract="false" native="false" synchronized="false"
  52880. static="false" final="false" visibility="public"
  52881. deprecated="not deprecated">
  52882. <doc>
  52883. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  52884. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  52885. </doc>
  52886. </method>
  52887. <method name="next" return="boolean"
  52888. abstract="false" native="false" synchronized="true"
  52889. static="false" final="false" visibility="public"
  52890. deprecated="not deprecated">
  52891. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  52892. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  52893. <exception name="IOException" type="java.io.IOException"/>
  52894. <doc>
  52895. <![CDATA[Read raw bytes from a SequenceFile.]]>
  52896. </doc>
  52897. </method>
  52898. <method name="getPos" return="long"
  52899. abstract="false" native="false" synchronized="false"
  52900. static="false" final="false" visibility="public"
  52901. deprecated="not deprecated">
  52902. <exception name="IOException" type="java.io.IOException"/>
  52903. </method>
  52904. <method name="close"
  52905. abstract="false" native="false" synchronized="false"
  52906. static="false" final="false" visibility="public"
  52907. deprecated="not deprecated">
  52908. <exception name="IOException" type="java.io.IOException"/>
  52909. </method>
  52910. <method name="getProgress" return="float"
  52911. abstract="false" native="false" synchronized="false"
  52912. static="false" final="false" visibility="public"
  52913. deprecated="not deprecated">
  52914. <exception name="IOException" type="java.io.IOException"/>
  52915. <doc>
  52916. <![CDATA[Return the progress within the input split
  52917. @return 0.0 to 1.0 of the input byte range]]>
  52918. </doc>
  52919. </method>
  52920. <doc>
  52921. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  52922. </doc>
  52923. </class>
  52924. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  52925. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  52926. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  52927. abstract="false"
  52928. static="false" final="false" visibility="public"
  52929. deprecated="not deprecated">
  52930. <constructor name="SequenceFileAsBinaryOutputFormat"
  52931. static="false" final="false" visibility="public"
  52932. deprecated="not deprecated">
  52933. </constructor>
  52934. <method name="setSequenceFileOutputKeyClass"
  52935. abstract="false" native="false" synchronized="false"
  52936. static="true" final="false" visibility="public"
  52937. deprecated="not deprecated">
  52938. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52939. <param name="theClass" type="java.lang.Class"/>
  52940. <doc>
  52941. <![CDATA[Set the key class for the {@link SequenceFile}
  52942. <p>This allows the user to specify the key class to be different
  52943. from the actual class ({@link BytesWritable}) used for writing </p>
  52944. @param conf the {@link JobConf} to modify
  52945. @param theClass the SequenceFile output key class.]]>
  52946. </doc>
  52947. </method>
  52948. <method name="setSequenceFileOutputValueClass"
  52949. abstract="false" native="false" synchronized="false"
  52950. static="true" final="false" visibility="public"
  52951. deprecated="not deprecated">
  52952. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52953. <param name="theClass" type="java.lang.Class"/>
  52954. <doc>
  52955. <![CDATA[Set the value class for the {@link SequenceFile}
  52956. <p>This allows the user to specify the value class to be different
  52957. from the actual class ({@link BytesWritable}) used for writing </p>
  52958. @param conf the {@link JobConf} to modify
  52959. @param theClass the SequenceFile output key class.]]>
  52960. </doc>
  52961. </method>
  52962. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  52963. abstract="false" native="false" synchronized="false"
  52964. static="true" final="false" visibility="public"
  52965. deprecated="not deprecated">
  52966. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52967. <doc>
  52968. <![CDATA[Get the key class for the {@link SequenceFile}
  52969. @return the key class of the {@link SequenceFile}]]>
  52970. </doc>
  52971. </method>
  52972. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  52973. abstract="false" native="false" synchronized="false"
  52974. static="true" final="false" visibility="public"
  52975. deprecated="not deprecated">
  52976. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52977. <doc>
  52978. <![CDATA[Get the value class for the {@link SequenceFile}
  52979. @return the value class of the {@link SequenceFile}]]>
  52980. </doc>
  52981. </method>
  52982. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  52983. abstract="false" native="false" synchronized="false"
  52984. static="false" final="false" visibility="public"
  52985. deprecated="not deprecated">
  52986. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52987. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52988. <param name="name" type="java.lang.String"/>
  52989. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  52990. <exception name="IOException" type="java.io.IOException"/>
  52991. </method>
  52992. <method name="checkOutputSpecs"
  52993. abstract="false" native="false" synchronized="false"
  52994. static="false" final="false" visibility="public"
  52995. deprecated="not deprecated">
  52996. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  52997. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  52998. <exception name="IOException" type="java.io.IOException"/>
  52999. </method>
  53000. <doc>
  53001. <![CDATA[An {@link OutputFormat} that writes keys, values to
  53002. {@link SequenceFile}s in binary(raw) format]]>
  53003. </doc>
  53004. </class>
  53005. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  53006. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  53007. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  53008. abstract="false"
  53009. static="true" final="false" visibility="protected"
  53010. deprecated="not deprecated">
  53011. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  53012. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  53013. static="false" final="false" visibility="public"
  53014. deprecated="not deprecated">
  53015. </constructor>
  53016. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  53017. static="false" final="false" visibility="public"
  53018. deprecated="not deprecated">
  53019. </constructor>
  53020. <method name="reset"
  53021. abstract="false" native="false" synchronized="false"
  53022. static="false" final="false" visibility="public"
  53023. deprecated="not deprecated">
  53024. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  53025. </method>
  53026. <method name="writeUncompressedBytes"
  53027. abstract="false" native="false" synchronized="false"
  53028. static="false" final="false" visibility="public"
  53029. deprecated="not deprecated">
  53030. <param name="outStream" type="java.io.DataOutputStream"/>
  53031. <exception name="IOException" type="java.io.IOException"/>
  53032. </method>
  53033. <method name="writeCompressedBytes"
  53034. abstract="false" native="false" synchronized="false"
  53035. static="false" final="false" visibility="public"
  53036. deprecated="not deprecated">
  53037. <param name="outStream" type="java.io.DataOutputStream"/>
  53038. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  53039. <exception name="IOException" type="java.io.IOException"/>
  53040. </method>
  53041. <method name="getSize" return="int"
  53042. abstract="false" native="false" synchronized="false"
  53043. static="false" final="false" visibility="public"
  53044. deprecated="not deprecated">
  53045. </method>
  53046. <doc>
  53047. <![CDATA[Inner class used for appendRaw]]>
  53048. </doc>
  53049. </class>
  53050. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  53051. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  53052. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  53053. abstract="false"
  53054. static="false" final="false" visibility="public"
  53055. deprecated="not deprecated">
  53056. <constructor name="SequenceFileAsTextInputFormat"
  53057. static="false" final="false" visibility="public"
  53058. deprecated="not deprecated">
  53059. </constructor>
  53060. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53061. abstract="false" native="false" synchronized="false"
  53062. static="false" final="false" visibility="public"
  53063. deprecated="not deprecated">
  53064. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53065. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53066. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53067. <exception name="IOException" type="java.io.IOException"/>
  53068. </method>
  53069. <doc>
  53070. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  53071. which converts the input keys and values to their String forms by calling toString() method.]]>
  53072. </doc>
  53073. </class>
  53074. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  53075. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  53076. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  53077. abstract="false"
  53078. static="false" final="false" visibility="public"
  53079. deprecated="not deprecated">
  53080. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53081. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53082. static="false" final="false" visibility="public"
  53083. deprecated="not deprecated">
  53084. <exception name="IOException" type="java.io.IOException"/>
  53085. </constructor>
  53086. <method name="createKey" return="org.apache.hadoop.io.Text"
  53087. abstract="false" native="false" synchronized="false"
  53088. static="false" final="false" visibility="public"
  53089. deprecated="not deprecated">
  53090. </method>
  53091. <method name="createValue" return="org.apache.hadoop.io.Text"
  53092. abstract="false" native="false" synchronized="false"
  53093. static="false" final="false" visibility="public"
  53094. deprecated="not deprecated">
  53095. </method>
  53096. <method name="next" return="boolean"
  53097. abstract="false" native="false" synchronized="true"
  53098. static="false" final="false" visibility="public"
  53099. deprecated="not deprecated">
  53100. <param name="key" type="org.apache.hadoop.io.Text"/>
  53101. <param name="value" type="org.apache.hadoop.io.Text"/>
  53102. <exception name="IOException" type="java.io.IOException"/>
  53103. <doc>
  53104. <![CDATA[Read key/value pair in a line.]]>
  53105. </doc>
  53106. </method>
  53107. <method name="getProgress" return="float"
  53108. abstract="false" native="false" synchronized="false"
  53109. static="false" final="false" visibility="public"
  53110. deprecated="not deprecated">
  53111. <exception name="IOException" type="java.io.IOException"/>
  53112. </method>
  53113. <method name="getPos" return="long"
  53114. abstract="false" native="false" synchronized="true"
  53115. static="false" final="false" visibility="public"
  53116. deprecated="not deprecated">
  53117. <exception name="IOException" type="java.io.IOException"/>
  53118. </method>
  53119. <method name="close"
  53120. abstract="false" native="false" synchronized="true"
  53121. static="false" final="false" visibility="public"
  53122. deprecated="not deprecated">
  53123. <exception name="IOException" type="java.io.IOException"/>
  53124. </method>
  53125. <doc>
  53126. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  53127. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  53128. class to TextInputFormat class.]]>
  53129. </doc>
  53130. </class>
  53131. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  53132. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  53133. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  53134. abstract="false"
  53135. static="false" final="false" visibility="public"
  53136. deprecated="not deprecated">
  53137. <constructor name="SequenceFileInputFilter"
  53138. static="false" final="false" visibility="public"
  53139. deprecated="not deprecated">
  53140. </constructor>
  53141. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53142. abstract="false" native="false" synchronized="false"
  53143. static="false" final="false" visibility="public"
  53144. deprecated="not deprecated">
  53145. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53146. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53147. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53148. <exception name="IOException" type="java.io.IOException"/>
  53149. <doc>
  53150. <![CDATA[Create a record reader for the given split
  53151. @param split file split
  53152. @param job job configuration
  53153. @param reporter reporter who sends report to task tracker
  53154. @return RecordReader]]>
  53155. </doc>
  53156. </method>
  53157. <method name="setFilterClass"
  53158. abstract="false" native="false" synchronized="false"
  53159. static="true" final="false" visibility="public"
  53160. deprecated="not deprecated">
  53161. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53162. <param name="filterClass" type="java.lang.Class"/>
  53163. <doc>
  53164. <![CDATA[set the filter class
  53165. @param conf application configuration
  53166. @param filterClass filter class]]>
  53167. </doc>
  53168. </method>
  53169. <doc>
  53170. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  53171. The sample is decided by the filter class set by the job.]]>
  53172. </doc>
  53173. </class>
  53174. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  53175. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  53176. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  53177. static="true" final="false" visibility="public"
  53178. deprecated="not deprecated">
  53179. <implements name="org.apache.hadoop.conf.Configurable"/>
  53180. <method name="accept" return="boolean"
  53181. abstract="false" native="false" synchronized="false"
  53182. static="false" final="false" visibility="public"
  53183. deprecated="not deprecated">
  53184. <param name="key" type="java.lang.Object"/>
  53185. <doc>
  53186. <![CDATA[filter function
  53187. Decide if a record should be filtered or not
  53188. @param key record key
  53189. @return true if a record is accepted; return false otherwise]]>
  53190. </doc>
  53191. </method>
  53192. <doc>
  53193. <![CDATA[filter interface]]>
  53194. </doc>
  53195. </interface>
  53196. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  53197. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  53198. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  53199. abstract="true"
  53200. static="true" final="false" visibility="public"
  53201. deprecated="not deprecated">
  53202. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  53203. <constructor name="SequenceFileInputFilter.FilterBase"
  53204. static="false" final="false" visibility="public"
  53205. deprecated="not deprecated">
  53206. </constructor>
  53207. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  53208. abstract="false" native="false" synchronized="false"
  53209. static="false" final="false" visibility="public"
  53210. deprecated="not deprecated">
  53211. </method>
  53212. <doc>
  53213. <![CDATA[base class for Filters]]>
  53214. </doc>
  53215. </class>
  53216. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  53217. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  53218. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53219. abstract="false"
  53220. static="true" final="false" visibility="public"
  53221. deprecated="not deprecated">
  53222. <constructor name="SequenceFileInputFilter.MD5Filter"
  53223. static="false" final="false" visibility="public"
  53224. deprecated="not deprecated">
  53225. </constructor>
  53226. <method name="setFrequency"
  53227. abstract="false" native="false" synchronized="false"
  53228. static="true" final="false" visibility="public"
  53229. deprecated="not deprecated">
  53230. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53231. <param name="frequency" type="int"/>
  53232. <doc>
  53233. <![CDATA[set the filtering frequency in configuration
  53234. @param conf configuration
  53235. @param frequency filtering frequency]]>
  53236. </doc>
  53237. </method>
  53238. <method name="setConf"
  53239. abstract="false" native="false" synchronized="false"
  53240. static="false" final="false" visibility="public"
  53241. deprecated="not deprecated">
  53242. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53243. <doc>
  53244. <![CDATA[configure the filter according to configuration
  53245. @param conf configuration]]>
  53246. </doc>
  53247. </method>
  53248. <method name="accept" return="boolean"
  53249. abstract="false" native="false" synchronized="false"
  53250. static="false" final="false" visibility="public"
  53251. deprecated="not deprecated">
  53252. <param name="key" type="java.lang.Object"/>
  53253. <doc>
  53254. <![CDATA[Filtering method
  53255. If MD5(key) % frequency==0, return true; otherwise return false
  53256. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53257. </doc>
  53258. </method>
  53259. <field name="MD5_LEN" type="int"
  53260. transient="false" volatile="false"
  53261. static="true" final="true" visibility="public"
  53262. deprecated="not deprecated">
  53263. </field>
  53264. <doc>
  53265. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  53266. key against a filtering frequency <i>f</i>. The filtering criteria is
  53267. MD5(key) % f == 0.]]>
  53268. </doc>
  53269. </class>
  53270. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  53271. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  53272. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53273. abstract="false"
  53274. static="true" final="false" visibility="public"
  53275. deprecated="not deprecated">
  53276. <constructor name="SequenceFileInputFilter.PercentFilter"
  53277. static="false" final="false" visibility="public"
  53278. deprecated="not deprecated">
  53279. </constructor>
  53280. <method name="setFrequency"
  53281. abstract="false" native="false" synchronized="false"
  53282. static="true" final="false" visibility="public"
  53283. deprecated="not deprecated">
  53284. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53285. <param name="frequency" type="int"/>
  53286. <doc>
  53287. <![CDATA[set the frequency and stores it in conf
  53288. @param conf configuration
  53289. @param frequency filtering frequencey]]>
  53290. </doc>
  53291. </method>
  53292. <method name="setConf"
  53293. abstract="false" native="false" synchronized="false"
  53294. static="false" final="false" visibility="public"
  53295. deprecated="not deprecated">
  53296. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53297. <doc>
  53298. <![CDATA[configure the filter by checking the configuration
  53299. @param conf configuration]]>
  53300. </doc>
  53301. </method>
  53302. <method name="accept" return="boolean"
  53303. abstract="false" native="false" synchronized="false"
  53304. static="false" final="false" visibility="public"
  53305. deprecated="not deprecated">
  53306. <param name="key" type="java.lang.Object"/>
  53307. <doc>
  53308. <![CDATA[Filtering method
  53309. If record# % frequency==0, return true; otherwise return false
  53310. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53311. </doc>
  53312. </method>
  53313. <doc>
  53314. <![CDATA[This class returns a percentage of records
  53315. The percentage is determined by a filtering frequency <i>f</i> using
  53316. the criteria record# % f == 0.
  53317. For example, if the frequency is 10, one out of 10 records is returned.]]>
  53318. </doc>
  53319. </class>
  53320. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  53321. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  53322. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  53323. abstract="false"
  53324. static="true" final="false" visibility="public"
  53325. deprecated="not deprecated">
  53326. <constructor name="SequenceFileInputFilter.RegexFilter"
  53327. static="false" final="false" visibility="public"
  53328. deprecated="not deprecated">
  53329. </constructor>
  53330. <method name="setPattern"
  53331. abstract="false" native="false" synchronized="false"
  53332. static="true" final="false" visibility="public"
  53333. deprecated="not deprecated">
  53334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53335. <param name="regex" type="java.lang.String"/>
  53336. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  53337. <doc>
  53338. <![CDATA[Define the filtering regex and stores it in conf
  53339. @param conf where the regex is set
  53340. @param regex regex used as a filter]]>
  53341. </doc>
  53342. </method>
  53343. <method name="setConf"
  53344. abstract="false" native="false" synchronized="false"
  53345. static="false" final="false" visibility="public"
  53346. deprecated="not deprecated">
  53347. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53348. <doc>
  53349. <![CDATA[configure the Filter by checking the configuration]]>
  53350. </doc>
  53351. </method>
  53352. <method name="accept" return="boolean"
  53353. abstract="false" native="false" synchronized="false"
  53354. static="false" final="false" visibility="public"
  53355. deprecated="not deprecated">
  53356. <param name="key" type="java.lang.Object"/>
  53357. <doc>
  53358. <![CDATA[Filtering method
  53359. If key matches the regex, return true; otherwise return false
  53360. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  53361. </doc>
  53362. </method>
  53363. <doc>
  53364. <![CDATA[Records filter by matching key to regex]]>
  53365. </doc>
  53366. </class>
  53367. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  53368. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  53369. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53370. abstract="false"
  53371. static="false" final="false" visibility="public"
  53372. deprecated="not deprecated">
  53373. <constructor name="SequenceFileInputFormat"
  53374. static="false" final="false" visibility="public"
  53375. deprecated="not deprecated">
  53376. </constructor>
  53377. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  53378. abstract="false" native="false" synchronized="false"
  53379. static="false" final="false" visibility="protected"
  53380. deprecated="not deprecated">
  53381. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53382. <exception name="IOException" type="java.io.IOException"/>
  53383. </method>
  53384. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53385. abstract="false" native="false" synchronized="false"
  53386. static="false" final="false" visibility="public"
  53387. deprecated="not deprecated">
  53388. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  53389. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53390. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53391. <exception name="IOException" type="java.io.IOException"/>
  53392. </method>
  53393. <doc>
  53394. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  53395. </doc>
  53396. </class>
  53397. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  53398. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  53399. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  53400. abstract="false"
  53401. static="false" final="false" visibility="public"
  53402. deprecated="not deprecated">
  53403. <constructor name="SequenceFileOutputFormat"
  53404. static="false" final="false" visibility="public"
  53405. deprecated="not deprecated">
  53406. </constructor>
  53407. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  53408. abstract="false" native="false" synchronized="false"
  53409. static="false" final="false" visibility="public"
  53410. deprecated="not deprecated">
  53411. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  53412. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53413. <param name="name" type="java.lang.String"/>
  53414. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  53415. <exception name="IOException" type="java.io.IOException"/>
  53416. </method>
  53417. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  53418. abstract="false" native="false" synchronized="false"
  53419. static="true" final="false" visibility="public"
  53420. deprecated="not deprecated">
  53421. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53422. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  53423. <exception name="IOException" type="java.io.IOException"/>
  53424. <doc>
  53425. <![CDATA[Open the output generated by this format.]]>
  53426. </doc>
  53427. </method>
  53428. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  53429. abstract="false" native="false" synchronized="false"
  53430. static="true" final="false" visibility="public"
  53431. deprecated="not deprecated">
  53432. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53433. <doc>
  53434. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  53435. @param conf the {@link JobConf}
  53436. @return the {@link CompressionType} for the output {@link SequenceFile},
  53437. defaulting to {@link CompressionType#RECORD}]]>
  53438. </doc>
  53439. </method>
  53440. <method name="setOutputCompressionType"
  53441. abstract="false" native="false" synchronized="false"
  53442. static="true" final="false" visibility="public"
  53443. deprecated="not deprecated">
  53444. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53445. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  53446. <doc>
  53447. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  53448. @param conf the {@link JobConf} to modify
  53449. @param style the {@link CompressionType} for the output
  53450. {@link SequenceFile}]]>
  53451. </doc>
  53452. </method>
  53453. <doc>
  53454. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  53455. </doc>
  53456. </class>
  53457. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  53458. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  53459. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  53460. abstract="false"
  53461. static="false" final="false" visibility="public"
  53462. deprecated="not deprecated">
  53463. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53464. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53465. static="false" final="false" visibility="public"
  53466. deprecated="not deprecated">
  53467. <exception name="IOException" type="java.io.IOException"/>
  53468. </constructor>
  53469. <method name="getKeyClass" return="java.lang.Class"
  53470. abstract="false" native="false" synchronized="false"
  53471. static="false" final="false" visibility="public"
  53472. deprecated="not deprecated">
  53473. <doc>
  53474. <![CDATA[The class of key that must be passed to {@link
  53475. #next(Object, Object)}..]]>
  53476. </doc>
  53477. </method>
  53478. <method name="getValueClass" return="java.lang.Class"
  53479. abstract="false" native="false" synchronized="false"
  53480. static="false" final="false" visibility="public"
  53481. deprecated="not deprecated">
  53482. <doc>
  53483. <![CDATA[The class of value that must be passed to {@link
  53484. #next(Object, Object)}..]]>
  53485. </doc>
  53486. </method>
  53487. <method name="createKey" return="java.lang.Object"
  53488. abstract="false" native="false" synchronized="false"
  53489. static="false" final="false" visibility="public"
  53490. deprecated="not deprecated">
  53491. </method>
  53492. <method name="createValue" return="java.lang.Object"
  53493. abstract="false" native="false" synchronized="false"
  53494. static="false" final="false" visibility="public"
  53495. deprecated="not deprecated">
  53496. </method>
  53497. <method name="next" return="boolean"
  53498. abstract="false" native="false" synchronized="true"
  53499. static="false" final="false" visibility="public"
  53500. deprecated="not deprecated">
  53501. <param name="key" type="java.lang.Object"/>
  53502. <param name="value" type="java.lang.Object"/>
  53503. <exception name="IOException" type="java.io.IOException"/>
  53504. </method>
  53505. <method name="next" return="boolean"
  53506. abstract="false" native="false" synchronized="true"
  53507. static="false" final="false" visibility="protected"
  53508. deprecated="not deprecated">
  53509. <param name="key" type="java.lang.Object"/>
  53510. <exception name="IOException" type="java.io.IOException"/>
  53511. </method>
  53512. <method name="getCurrentValue"
  53513. abstract="false" native="false" synchronized="true"
  53514. static="false" final="false" visibility="protected"
  53515. deprecated="not deprecated">
  53516. <param name="value" type="java.lang.Object"/>
  53517. <exception name="IOException" type="java.io.IOException"/>
  53518. </method>
  53519. <method name="getProgress" return="float"
  53520. abstract="false" native="false" synchronized="false"
  53521. static="false" final="false" visibility="public"
  53522. deprecated="not deprecated">
  53523. <exception name="IOException" type="java.io.IOException"/>
  53524. <doc>
  53525. <![CDATA[Return the progress within the input split
  53526. @return 0.0 to 1.0 of the input byte range]]>
  53527. </doc>
  53528. </method>
  53529. <method name="getPos" return="long"
  53530. abstract="false" native="false" synchronized="true"
  53531. static="false" final="false" visibility="public"
  53532. deprecated="not deprecated">
  53533. <exception name="IOException" type="java.io.IOException"/>
  53534. </method>
  53535. <method name="seek"
  53536. abstract="false" native="false" synchronized="true"
  53537. static="false" final="false" visibility="protected"
  53538. deprecated="not deprecated">
  53539. <param name="pos" type="long"/>
  53540. <exception name="IOException" type="java.io.IOException"/>
  53541. </method>
  53542. <method name="close"
  53543. abstract="false" native="false" synchronized="true"
  53544. static="false" final="false" visibility="public"
  53545. deprecated="not deprecated">
  53546. <exception name="IOException" type="java.io.IOException"/>
  53547. </method>
  53548. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  53549. transient="false" volatile="false"
  53550. static="false" final="false" visibility="protected"
  53551. deprecated="not deprecated">
  53552. </field>
  53553. <doc>
  53554. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  53555. </doc>
  53556. </class>
  53557. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  53558. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  53559. <class name="SkipBadRecords" extends="java.lang.Object"
  53560. abstract="false"
  53561. static="false" final="false" visibility="public"
  53562. deprecated="not deprecated">
  53563. <constructor name="SkipBadRecords"
  53564. static="false" final="false" visibility="public"
  53565. deprecated="not deprecated">
  53566. </constructor>
  53567. <method name="getAttemptsToStartSkipping" return="int"
  53568. abstract="false" native="false" synchronized="false"
  53569. static="true" final="false" visibility="public"
  53570. deprecated="not deprecated">
  53571. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53572. <doc>
  53573. <![CDATA[Get the number of Task attempts AFTER which skip mode
  53574. will be kicked off. When skip mode is kicked off, the
  53575. tasks reports the range of records which it will process
  53576. next to the TaskTracker. So that on failures, TT knows which
  53577. ones are possibly the bad records. On further executions,
  53578. those are skipped.
  53579. Default value is 2.
  53580. @param conf the configuration
  53581. @return attemptsToStartSkipping no of task attempts]]>
  53582. </doc>
  53583. </method>
  53584. <method name="setAttemptsToStartSkipping"
  53585. abstract="false" native="false" synchronized="false"
  53586. static="true" final="false" visibility="public"
  53587. deprecated="not deprecated">
  53588. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53589. <param name="attemptsToStartSkipping" type="int"/>
  53590. <doc>
  53591. <![CDATA[Set the number of Task attempts AFTER which skip mode
  53592. will be kicked off. When skip mode is kicked off, the
  53593. tasks reports the range of records which it will process
  53594. next to the TaskTracker. So that on failures, TT knows which
  53595. ones are possibly the bad records. On further executions,
  53596. those are skipped.
  53597. Default value is 2.
  53598. @param conf the configuration
  53599. @param attemptsToStartSkipping no of task attempts]]>
  53600. </doc>
  53601. </method>
  53602. <method name="getAutoIncrMapperProcCount" return="boolean"
  53603. abstract="false" native="false" synchronized="false"
  53604. static="true" final="false" visibility="public"
  53605. deprecated="not deprecated">
  53606. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53607. <doc>
  53608. <![CDATA[Get the flag which if set to true,
  53609. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  53610. by MapRunner after invoking the map function. This value must be set to
  53611. false for applications which process the records asynchronously
  53612. or buffer the input records. For example streaming.
  53613. In such cases applications should increment this counter on their own.
  53614. Default value is true.
  53615. @param conf the configuration
  53616. @return <code>true</code> if auto increment
  53617. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  53618. <code>false</code> otherwise.]]>
  53619. </doc>
  53620. </method>
  53621. <method name="setAutoIncrMapperProcCount"
  53622. abstract="false" native="false" synchronized="false"
  53623. static="true" final="false" visibility="public"
  53624. deprecated="not deprecated">
  53625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53626. <param name="autoIncr" type="boolean"/>
  53627. <doc>
  53628. <![CDATA[Set the flag which if set to true,
  53629. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  53630. by MapRunner after invoking the map function. This value must be set to
  53631. false for applications which process the records asynchronously
  53632. or buffer the input records. For example streaming.
  53633. In such cases applications should increment this counter on their own.
  53634. Default value is true.
  53635. @param conf the configuration
  53636. @param autoIncr whether to auto increment
  53637. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  53638. </doc>
  53639. </method>
  53640. <method name="getAutoIncrReducerProcCount" return="boolean"
  53641. abstract="false" native="false" synchronized="false"
  53642. static="true" final="false" visibility="public"
  53643. deprecated="not deprecated">
  53644. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53645. <doc>
  53646. <![CDATA[Get the flag which if set to true,
  53647. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  53648. by framework after invoking the reduce function. This value must be set to
  53649. false for applications which process the records asynchronously
  53650. or buffer the input records. For example streaming.
  53651. In such cases applications should increment this counter on their own.
  53652. Default value is true.
  53653. @param conf the configuration
  53654. @return <code>true</code> if auto increment
  53655. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  53656. <code>false</code> otherwise.]]>
  53657. </doc>
  53658. </method>
  53659. <method name="setAutoIncrReducerProcCount"
  53660. abstract="false" native="false" synchronized="false"
  53661. static="true" final="false" visibility="public"
  53662. deprecated="not deprecated">
  53663. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53664. <param name="autoIncr" type="boolean"/>
  53665. <doc>
  53666. <![CDATA[Set the flag which if set to true,
  53667. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  53668. by framework after invoking the reduce function. This value must be set to
  53669. false for applications which process the records asynchronously
  53670. or buffer the input records. For example streaming.
  53671. In such cases applications should increment this counter on their own.
  53672. Default value is true.
  53673. @param conf the configuration
  53674. @param autoIncr whether to auto increment
  53675. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  53676. </doc>
  53677. </method>
  53678. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  53679. abstract="false" native="false" synchronized="false"
  53680. static="true" final="false" visibility="public"
  53681. deprecated="not deprecated">
  53682. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53683. <doc>
  53684. <![CDATA[Get the directory to which skipped records are written. By default it is
  53685. the sub directory of the output _logs directory.
  53686. User can stop writing skipped records by setting the value null.
  53687. @param conf the configuration.
  53688. @return path skip output directory. Null is returned if this is not set
  53689. and output directory is also not set.]]>
  53690. </doc>
  53691. </method>
  53692. <method name="setSkipOutputPath"
  53693. abstract="false" native="false" synchronized="false"
  53694. static="true" final="false" visibility="public"
  53695. deprecated="not deprecated">
  53696. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53697. <param name="path" type="org.apache.hadoop.fs.Path"/>
  53698. <doc>
  53699. <![CDATA[Set the directory to which skipped records are written. By default it is
  53700. the sub directory of the output _logs directory.
  53701. User can stop writing skipped records by setting the value null.
  53702. @param conf the configuration.
  53703. @param path skip output directory path]]>
  53704. </doc>
  53705. </method>
  53706. <method name="getMapperMaxSkipRecords" return="long"
  53707. abstract="false" native="false" synchronized="false"
  53708. static="true" final="false" visibility="public"
  53709. deprecated="not deprecated">
  53710. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53711. <doc>
  53712. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  53713. bad record in mapper. The number includes the bad record as well.
  53714. To turn the feature of detection/skipping of bad records off, set the
  53715. value to 0.
  53716. The framework tries to narrow down the skipped range by retrying
  53717. until this threshold is met OR all attempts get exhausted for this task.
  53718. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53719. narrow down. Whatever records(depends on application) get skipped are
  53720. acceptable.
  53721. Default value is 0.
  53722. @param conf the configuration
  53723. @return maxSkipRecs acceptable skip records.]]>
  53724. </doc>
  53725. </method>
  53726. <method name="setMapperMaxSkipRecords"
  53727. abstract="false" native="false" synchronized="false"
  53728. static="true" final="false" visibility="public"
  53729. deprecated="not deprecated">
  53730. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53731. <param name="maxSkipRecs" type="long"/>
  53732. <doc>
  53733. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  53734. bad record in mapper. The number includes the bad record as well.
  53735. To turn the feature of detection/skipping of bad records off, set the
  53736. value to 0.
  53737. The framework tries to narrow down the skipped range by retrying
  53738. until this threshold is met OR all attempts get exhausted for this task.
  53739. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53740. narrow down. Whatever records(depends on application) get skipped are
  53741. acceptable.
  53742. Default value is 0.
  53743. @param conf the configuration
  53744. @param maxSkipRecs acceptable skip records.]]>
  53745. </doc>
  53746. </method>
  53747. <method name="getReducerMaxSkipGroups" return="long"
  53748. abstract="false" native="false" synchronized="false"
  53749. static="true" final="false" visibility="public"
  53750. deprecated="not deprecated">
  53751. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53752. <doc>
  53753. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  53754. bad group in reducer. The number includes the bad group as well.
  53755. To turn the feature of detection/skipping of bad groups off, set the
  53756. value to 0.
  53757. The framework tries to narrow down the skipped range by retrying
  53758. until this threshold is met OR all attempts get exhausted for this task.
  53759. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53760. narrow down. Whatever groups(depends on application) get skipped are
  53761. acceptable.
  53762. Default value is 0.
  53763. @param conf the configuration
  53764. @return maxSkipGrps acceptable skip groups.]]>
  53765. </doc>
  53766. </method>
  53767. <method name="setReducerMaxSkipGroups"
  53768. abstract="false" native="false" synchronized="false"
  53769. static="true" final="false" visibility="public"
  53770. deprecated="not deprecated">
  53771. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  53772. <param name="maxSkipGrps" type="long"/>
  53773. <doc>
  53774. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  53775. bad group in reducer. The number includes the bad group as well.
  53776. To turn the feature of detection/skipping of bad groups off, set the
  53777. value to 0.
  53778. The framework tries to narrow down the skipped range by retrying
  53779. until this threshold is met OR all attempts get exhausted for this task.
  53780. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  53781. narrow down. Whatever groups(depends on application) get skipped are
  53782. acceptable.
  53783. Default value is 0.
  53784. @param conf the configuration
  53785. @param maxSkipGrps acceptable skip groups.]]>
  53786. </doc>
  53787. </method>
  53788. <field name="COUNTER_GROUP" type="java.lang.String"
  53789. transient="false" volatile="false"
  53790. static="true" final="true" visibility="public"
  53791. deprecated="not deprecated">
  53792. <doc>
  53793. <![CDATA[Special counters which are written by the application and are
  53794. used by the framework for detecting bad records. For detecting bad records
  53795. these counters must be incremented by the application.]]>
  53796. </doc>
  53797. </field>
  53798. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  53799. transient="false" volatile="false"
  53800. static="true" final="true" visibility="public"
  53801. deprecated="not deprecated">
  53802. <doc>
  53803. <![CDATA[Number of processed map records.
  53804. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  53805. </doc>
  53806. </field>
  53807. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  53808. transient="false" volatile="false"
  53809. static="true" final="true" visibility="public"
  53810. deprecated="not deprecated">
  53811. <doc>
  53812. <![CDATA[Number of processed reduce groups.
  53813. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  53814. </doc>
  53815. </field>
  53816. <doc>
  53817. <![CDATA[Utility class for skip bad records functionality. It contains various
  53818. settings related to skipping of bad records.
  53819. <p>Hadoop provides an optional mode of execution in which the bad records
  53820. are detected and skipped in further attempts.
  53821. <p>This feature can be used when map/reduce tasks crashes deterministically on
  53822. certain input. This happens due to bugs in the map/reduce function. The usual
  53823. course would be to fix these bugs. But sometimes this is not possible;
  53824. perhaps the bug is in third party libraries for which the source code is
  53825. not available. Due to this, the task never reaches to completion even with
  53826. multiple attempts and complete data for that task is lost.</p>
  53827. <p>With this feature, only a small portion of data is lost surrounding
  53828. the bad record, which may be acceptable for some user applications.
  53829. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  53830. <p>The skipping mode gets kicked off after certain no of failures
  53831. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  53832. <p>In the skipping mode, the map/reduce task maintains the record range which
  53833. is getting processed at all times. Before giving the input to the
  53834. map/reduce function, it sends this record range to the Task tracker.
  53835. If task crashes, the Task tracker knows which one was the last reported
  53836. range. On further attempts that range get skipped.</p>]]>
  53837. </doc>
  53838. </class>
  53839. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  53840. <!-- start class org.apache.hadoop.mapred.Task -->
  53841. <class name="Task" extends="java.lang.Object"
  53842. abstract="true"
  53843. static="false" final="false" visibility="public"
  53844. deprecated="not deprecated">
  53845. <implements name="org.apache.hadoop.io.Writable"/>
  53846. <implements name="org.apache.hadoop.conf.Configurable"/>
  53847. <constructor name="Task"
  53848. static="false" final="false" visibility="public"
  53849. deprecated="not deprecated">
  53850. </constructor>
  53851. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  53852. static="false" final="false" visibility="public"
  53853. deprecated="not deprecated">
  53854. </constructor>
  53855. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  53856. abstract="false" native="false" synchronized="false"
  53857. static="true" final="false" visibility="protected"
  53858. deprecated="not deprecated">
  53859. <param name="uriScheme" type="java.lang.String"/>
  53860. <doc>
  53861. <![CDATA[Counters to measure the usage of the different file systems.
  53862. Always return the String array with two elements. First one is the name of
  53863. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  53864. </doc>
  53865. </method>
  53866. <method name="setJobFile"
  53867. abstract="false" native="false" synchronized="false"
  53868. static="false" final="false" visibility="public"
  53869. deprecated="not deprecated">
  53870. <param name="jobFile" type="java.lang.String"/>
  53871. </method>
  53872. <method name="getJobFile" return="java.lang.String"
  53873. abstract="false" native="false" synchronized="false"
  53874. static="false" final="false" visibility="public"
  53875. deprecated="not deprecated">
  53876. </method>
  53877. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  53878. abstract="false" native="false" synchronized="false"
  53879. static="false" final="false" visibility="public"
  53880. deprecated="not deprecated">
  53881. </method>
  53882. <method name="getNumSlotsRequired" return="int"
  53883. abstract="false" native="false" synchronized="false"
  53884. static="false" final="false" visibility="public"
  53885. deprecated="not deprecated">
  53886. </method>
  53887. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  53888. abstract="false" native="false" synchronized="false"
  53889. static="false" final="false" visibility="public"
  53890. deprecated="not deprecated">
  53891. <doc>
  53892. <![CDATA[Get the job name for this task.
  53893. @return the job name]]>
  53894. </doc>
  53895. </method>
  53896. <method name="setJobTokenSecret"
  53897. abstract="false" native="false" synchronized="false"
  53898. static="false" final="false" visibility="public"
  53899. deprecated="not deprecated">
  53900. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  53901. <doc>
  53902. <![CDATA[Set the job token secret
  53903. @param tokenSecret the secret]]>
  53904. </doc>
  53905. </method>
  53906. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  53907. abstract="false" native="false" synchronized="false"
  53908. static="false" final="false" visibility="public"
  53909. deprecated="not deprecated">
  53910. <doc>
  53911. <![CDATA[Get the job token secret
  53912. @return the token secret]]>
  53913. </doc>
  53914. </method>
  53915. <method name="setJvmContext"
  53916. abstract="false" native="false" synchronized="false"
  53917. static="false" final="false" visibility="public"
  53918. deprecated="not deprecated">
  53919. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  53920. <doc>
  53921. <![CDATA[Set the task JvmContext
  53922. @param jvmContext]]>
  53923. </doc>
  53924. </method>
  53925. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  53926. abstract="false" native="false" synchronized="false"
  53927. static="false" final="false" visibility="public"
  53928. deprecated="not deprecated">
  53929. <doc>
  53930. <![CDATA[Gets the task JvmContext
  53931. @return the jvm context]]>
  53932. </doc>
  53933. </method>
  53934. <method name="getPartition" return="int"
  53935. abstract="false" native="false" synchronized="false"
  53936. static="false" final="false" visibility="public"
  53937. deprecated="not deprecated">
  53938. <doc>
  53939. <![CDATA[Get the index of this task within the job.
  53940. @return the integer part of the task id]]>
  53941. </doc>
  53942. </method>
  53943. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  53944. abstract="false" native="false" synchronized="true"
  53945. static="false" final="false" visibility="public"
  53946. deprecated="not deprecated">
  53947. <doc>
  53948. <![CDATA[Return current phase of the task.
  53949. needs to be synchronized as communication thread sends the phase every second
  53950. @return the curent phase of the task]]>
  53951. </doc>
  53952. </method>
  53953. <method name="setPhase"
  53954. abstract="false" native="false" synchronized="true"
  53955. static="false" final="false" visibility="protected"
  53956. deprecated="not deprecated">
  53957. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  53958. <doc>
  53959. <![CDATA[Set current phase of the task.
  53960. @param phase task phase]]>
  53961. </doc>
  53962. </method>
  53963. <method name="toWriteSkipRecs" return="boolean"
  53964. abstract="false" native="false" synchronized="false"
  53965. static="false" final="false" visibility="protected"
  53966. deprecated="not deprecated">
  53967. <doc>
  53968. <![CDATA[Get whether to write skip records.]]>
  53969. </doc>
  53970. </method>
  53971. <method name="setWriteSkipRecs"
  53972. abstract="false" native="false" synchronized="false"
  53973. static="false" final="false" visibility="protected"
  53974. deprecated="not deprecated">
  53975. <param name="writeSkipRecs" type="boolean"/>
  53976. <doc>
  53977. <![CDATA[Set whether to write skip records.]]>
  53978. </doc>
  53979. </method>
  53980. <method name="reportFatalError"
  53981. abstract="false" native="false" synchronized="false"
  53982. static="false" final="false" visibility="protected"
  53983. deprecated="not deprecated">
  53984. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53985. <param name="throwable" type="java.lang.Throwable"/>
  53986. <param name="logMsg" type="java.lang.String"/>
  53987. <doc>
  53988. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  53989. </doc>
  53990. </method>
  53991. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  53992. abstract="false" native="false" synchronized="false"
  53993. static="false" final="false" visibility="public"
  53994. deprecated="not deprecated">
  53995. <doc>
  53996. <![CDATA[Get skipRanges.]]>
  53997. </doc>
  53998. </method>
  53999. <method name="setSkipRanges"
  54000. abstract="false" native="false" synchronized="false"
  54001. static="false" final="false" visibility="public"
  54002. deprecated="not deprecated">
  54003. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  54004. <doc>
  54005. <![CDATA[Set skipRanges.]]>
  54006. </doc>
  54007. </method>
  54008. <method name="isSkipping" return="boolean"
  54009. abstract="false" native="false" synchronized="false"
  54010. static="false" final="false" visibility="public"
  54011. deprecated="not deprecated">
  54012. <doc>
  54013. <![CDATA[Is Task in skipping mode.]]>
  54014. </doc>
  54015. </method>
  54016. <method name="setSkipping"
  54017. abstract="false" native="false" synchronized="false"
  54018. static="false" final="false" visibility="public"
  54019. deprecated="not deprecated">
  54020. <param name="skipping" type="boolean"/>
  54021. <doc>
  54022. <![CDATA[Sets whether to run Task in skipping mode.
  54023. @param skipping]]>
  54024. </doc>
  54025. </method>
  54026. <method name="getUser" return="java.lang.String"
  54027. abstract="false" native="false" synchronized="false"
  54028. static="false" final="false" visibility="public"
  54029. deprecated="not deprecated">
  54030. <doc>
  54031. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  54032. user name even before it's JobConf is localized. So we explicitly serialize
  54033. the user name.
  54034. @return user]]>
  54035. </doc>
  54036. </method>
  54037. <method name="write"
  54038. abstract="false" native="false" synchronized="false"
  54039. static="false" final="false" visibility="public"
  54040. deprecated="not deprecated">
  54041. <param name="out" type="java.io.DataOutput"/>
  54042. <exception name="IOException" type="java.io.IOException"/>
  54043. </method>
  54044. <method name="readFields"
  54045. abstract="false" native="false" synchronized="false"
  54046. static="false" final="false" visibility="public"
  54047. deprecated="not deprecated">
  54048. <param name="in" type="java.io.DataInput"/>
  54049. <exception name="IOException" type="java.io.IOException"/>
  54050. </method>
  54051. <method name="toString" return="java.lang.String"
  54052. abstract="false" native="false" synchronized="false"
  54053. static="false" final="false" visibility="public"
  54054. deprecated="not deprecated">
  54055. </method>
  54056. <method name="localizeConfiguration"
  54057. abstract="false" native="false" synchronized="false"
  54058. static="false" final="false" visibility="public"
  54059. deprecated="not deprecated">
  54060. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54061. <exception name="IOException" type="java.io.IOException"/>
  54062. <doc>
  54063. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  54064. </doc>
  54065. </method>
  54066. <method name="run"
  54067. abstract="true" native="false" synchronized="false"
  54068. static="false" final="false" visibility="public"
  54069. deprecated="not deprecated">
  54070. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54071. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54072. <exception name="IOException" type="java.io.IOException"/>
  54073. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54074. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54075. <doc>
  54076. <![CDATA[Run this task as a part of the named job. This method is executed in the
  54077. child process and is what invokes user-supplied map, reduce, etc. methods.
  54078. @param umbilical for progress reports]]>
  54079. </doc>
  54080. </method>
  54081. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  54082. abstract="true" native="false" synchronized="false"
  54083. static="false" final="false" visibility="public"
  54084. deprecated="not deprecated">
  54085. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  54086. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  54087. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  54088. <exception name="IOException" type="java.io.IOException"/>
  54089. <doc>
  54090. <![CDATA[Return an approprate thread runner for this task.
  54091. @param tip TODO]]>
  54092. </doc>
  54093. </method>
  54094. <method name="isMapTask" return="boolean"
  54095. abstract="true" native="false" synchronized="false"
  54096. static="false" final="false" visibility="public"
  54097. deprecated="not deprecated">
  54098. </method>
  54099. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  54100. abstract="false" native="false" synchronized="false"
  54101. static="false" final="false" visibility="public"
  54102. deprecated="not deprecated">
  54103. </method>
  54104. <method name="initialize"
  54105. abstract="false" native="false" synchronized="false"
  54106. static="false" final="false" visibility="public"
  54107. deprecated="not deprecated">
  54108. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54109. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54110. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54111. <param name="useNewApi" type="boolean"/>
  54112. <exception name="IOException" type="java.io.IOException"/>
  54113. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54114. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54115. </method>
  54116. <method name="reportNextRecordRange"
  54117. abstract="false" native="false" synchronized="false"
  54118. static="false" final="false" visibility="protected"
  54119. deprecated="not deprecated">
  54120. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54121. <param name="nextRecIndex" type="long"/>
  54122. <exception name="IOException" type="java.io.IOException"/>
  54123. <doc>
  54124. <![CDATA[Reports the next executing record range to TaskTracker.
  54125. @param umbilical
  54126. @param nextRecIndex the record index which would be fed next.
  54127. @throws IOException]]>
  54128. </doc>
  54129. </method>
  54130. <method name="done"
  54131. abstract="false" native="false" synchronized="false"
  54132. static="false" final="false" visibility="public"
  54133. deprecated="not deprecated">
  54134. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54135. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54136. <exception name="IOException" type="java.io.IOException"/>
  54137. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54138. </method>
  54139. <method name="statusUpdate"
  54140. abstract="false" native="false" synchronized="false"
  54141. static="false" final="false" visibility="protected"
  54142. deprecated="not deprecated">
  54143. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54144. <exception name="IOException" type="java.io.IOException"/>
  54145. </method>
  54146. <method name="runTaskCleanupTask"
  54147. abstract="false" native="false" synchronized="false"
  54148. static="false" final="false" visibility="protected"
  54149. deprecated="not deprecated">
  54150. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54151. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54152. <exception name="IOException" type="java.io.IOException"/>
  54153. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54154. </method>
  54155. <method name="runJobCleanupTask"
  54156. abstract="false" native="false" synchronized="false"
  54157. static="false" final="false" visibility="protected"
  54158. deprecated="not deprecated">
  54159. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54160. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54161. <exception name="IOException" type="java.io.IOException"/>
  54162. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54163. </method>
  54164. <method name="supportIsolationRunner" return="boolean"
  54165. abstract="false" native="false" synchronized="false"
  54166. static="false" final="false" visibility="protected"
  54167. deprecated="not deprecated">
  54168. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  54169. </method>
  54170. <method name="runJobSetupTask"
  54171. abstract="false" native="false" synchronized="false"
  54172. static="false" final="false" visibility="protected"
  54173. deprecated="not deprecated">
  54174. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  54175. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  54176. <exception name="IOException" type="java.io.IOException"/>
  54177. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54178. </method>
  54179. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  54180. abstract="false" native="false" synchronized="false"
  54181. static="true" final="false" visibility="protected"
  54182. deprecated="not deprecated">
  54183. <param name="path" type="org.apache.hadoop.fs.Path"/>
  54184. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54185. <exception name="IOException" type="java.io.IOException"/>
  54186. <doc>
  54187. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  54188. with path.
  54189. @param path
  54190. the path.
  54191. @return a Statistics instance, or null if none is found for the scheme.]]>
  54192. </doc>
  54193. </method>
  54194. <method name="setConf"
  54195. abstract="false" native="false" synchronized="false"
  54196. static="false" final="false" visibility="public"
  54197. deprecated="not deprecated">
  54198. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54199. </method>
  54200. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  54201. abstract="false" native="false" synchronized="false"
  54202. static="false" final="false" visibility="public"
  54203. deprecated="not deprecated">
  54204. </method>
  54205. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  54206. abstract="false" native="false" synchronized="false"
  54207. static="true" final="false" visibility="protected"
  54208. deprecated="not deprecated">
  54209. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  54210. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  54211. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  54212. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  54213. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  54214. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  54215. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  54216. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  54217. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  54218. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  54219. <param name="keyClass" type="java.lang.Class"/>
  54220. <param name="valueClass" type="java.lang.Class"/>
  54221. <exception name="IOException" type="java.io.IOException"/>
  54222. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  54223. </method>
  54224. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  54225. transient="false" volatile="false"
  54226. static="true" final="true" visibility="public"
  54227. deprecated="not deprecated">
  54228. </field>
  54229. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  54230. transient="false" volatile="false"
  54231. static="true" final="true" visibility="public"
  54232. deprecated="not deprecated">
  54233. </field>
  54234. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  54235. transient="false" volatile="false"
  54236. static="true" final="true" visibility="protected"
  54237. deprecated="not deprecated">
  54238. <doc>
  54239. <![CDATA[Name of the FileSystem counters' group]]>
  54240. </doc>
  54241. </field>
  54242. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  54243. transient="false" volatile="false"
  54244. static="false" final="false" visibility="protected"
  54245. deprecated="not deprecated">
  54246. </field>
  54247. <field name="jobCleanup" type="boolean"
  54248. transient="false" volatile="false"
  54249. static="false" final="false" visibility="protected"
  54250. deprecated="not deprecated">
  54251. </field>
  54252. <field name="jobSetup" type="boolean"
  54253. transient="false" volatile="false"
  54254. static="false" final="false" visibility="protected"
  54255. deprecated="not deprecated">
  54256. </field>
  54257. <field name="taskCleanup" type="boolean"
  54258. transient="false" volatile="false"
  54259. static="false" final="false" visibility="protected"
  54260. deprecated="not deprecated">
  54261. </field>
  54262. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  54263. transient="false" volatile="false"
  54264. static="false" final="false" visibility="protected"
  54265. deprecated="not deprecated">
  54266. </field>
  54267. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  54268. transient="false" volatile="false"
  54269. static="false" final="false" visibility="protected"
  54270. deprecated="not deprecated">
  54271. </field>
  54272. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  54273. transient="false" volatile="false"
  54274. static="false" final="false" visibility="protected"
  54275. deprecated="not deprecated">
  54276. </field>
  54277. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  54278. transient="false" volatile="false"
  54279. static="false" final="false" visibility="protected"
  54280. deprecated="not deprecated">
  54281. </field>
  54282. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  54283. transient="false" volatile="false"
  54284. static="false" final="false" visibility="protected"
  54285. deprecated="not deprecated">
  54286. </field>
  54287. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  54288. transient="false" volatile="false"
  54289. static="false" final="false" visibility="protected"
  54290. deprecated="not deprecated">
  54291. </field>
  54292. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  54293. transient="false" volatile="false"
  54294. static="false" final="false" visibility="protected"
  54295. deprecated="not deprecated">
  54296. </field>
  54297. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  54298. transient="false" volatile="false"
  54299. static="false" final="true" visibility="protected"
  54300. deprecated="not deprecated">
  54301. </field>
  54302. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  54303. transient="false" volatile="false"
  54304. static="false" final="false" visibility="protected"
  54305. deprecated="not deprecated">
  54306. </field>
  54307. <field name="tokenSecret" type="javax.crypto.SecretKey"
  54308. transient="false" volatile="false"
  54309. static="false" final="false" visibility="protected"
  54310. deprecated="not deprecated">
  54311. </field>
  54312. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  54313. transient="false" volatile="false"
  54314. static="false" final="false" visibility="protected"
  54315. deprecated="not deprecated">
  54316. </field>
  54317. <field name="PROGRESS_INTERVAL" type="int"
  54318. transient="false" volatile="false"
  54319. static="true" final="true" visibility="public"
  54320. deprecated="not deprecated">
  54321. <doc>
  54322. <![CDATA[The number of milliseconds between progress reports.]]>
  54323. </doc>
  54324. </field>
  54325. <doc>
  54326. <![CDATA[Base class for tasks.
  54327. This is NOT a public interface.]]>
  54328. </doc>
  54329. </class>
  54330. <!-- end class org.apache.hadoop.mapred.Task -->
  54331. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  54332. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  54333. abstract="false"
  54334. static="true" final="false" visibility="protected"
  54335. deprecated="not deprecated">
  54336. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  54337. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  54338. static="false" final="false" visibility="public"
  54339. deprecated="not deprecated">
  54340. </constructor>
  54341. <method name="setWriter"
  54342. abstract="false" native="false" synchronized="true"
  54343. static="false" final="false" visibility="public"
  54344. deprecated="not deprecated">
  54345. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  54346. </method>
  54347. <method name="collect"
  54348. abstract="false" native="false" synchronized="true"
  54349. static="false" final="false" visibility="public"
  54350. deprecated="not deprecated">
  54351. <param name="key" type="java.lang.Object"/>
  54352. <param name="value" type="java.lang.Object"/>
  54353. <exception name="IOException" type="java.io.IOException"/>
  54354. </method>
  54355. <doc>
  54356. <![CDATA[OutputCollector for the combiner.]]>
  54357. </doc>
  54358. </class>
  54359. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  54360. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  54361. <class name="Task.CombinerRunner" extends="java.lang.Object"
  54362. abstract="true"
  54363. static="true" final="false" visibility="protected"
  54364. deprecated="not deprecated">
  54365. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  54366. transient="false" volatile="false"
  54367. static="false" final="true" visibility="protected"
  54368. deprecated="not deprecated">
  54369. </field>
  54370. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  54371. transient="false" volatile="false"
  54372. static="false" final="true" visibility="protected"
  54373. deprecated="not deprecated">
  54374. </field>
  54375. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  54376. transient="false" volatile="false"
  54377. static="false" final="true" visibility="protected"
  54378. deprecated="not deprecated">
  54379. </field>
  54380. </class>
  54381. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  54382. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  54383. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  54384. abstract="false"
  54385. static="true" final="false" visibility="protected"
  54386. deprecated="not deprecated">
  54387. <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"
  54388. static="false" final="false" visibility="public"
  54389. deprecated="not deprecated">
  54390. <exception name="IOException" type="java.io.IOException"/>
  54391. </constructor>
  54392. <method name="next" return="java.lang.Object"
  54393. abstract="false" native="false" synchronized="false"
  54394. static="false" final="false" visibility="public"
  54395. deprecated="not deprecated">
  54396. </method>
  54397. </class>
  54398. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  54399. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  54400. <class name="Task.Counter" extends="java.lang.Enum"
  54401. abstract="false"
  54402. static="true" final="true" visibility="public"
  54403. deprecated="not deprecated">
  54404. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  54405. abstract="false" native="false" synchronized="false"
  54406. static="true" final="false" visibility="public"
  54407. deprecated="not deprecated">
  54408. </method>
  54409. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  54410. abstract="false" native="false" synchronized="false"
  54411. static="true" final="false" visibility="public"
  54412. deprecated="not deprecated">
  54413. <param name="name" type="java.lang.String"/>
  54414. </method>
  54415. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54416. transient="false" volatile="false"
  54417. static="true" final="true" visibility="public"
  54418. deprecated="not deprecated">
  54419. </field>
  54420. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54421. transient="false" volatile="false"
  54422. static="true" final="true" visibility="public"
  54423. deprecated="not deprecated">
  54424. </field>
  54425. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54426. transient="false" volatile="false"
  54427. static="true" final="true" visibility="public"
  54428. deprecated="not deprecated">
  54429. </field>
  54430. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54431. transient="false" volatile="false"
  54432. static="true" final="true" visibility="public"
  54433. deprecated="not deprecated">
  54434. </field>
  54435. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54436. transient="false" volatile="false"
  54437. static="true" final="true" visibility="public"
  54438. deprecated="not deprecated">
  54439. </field>
  54440. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54441. transient="false" volatile="false"
  54442. static="true" final="true" visibility="public"
  54443. deprecated="not deprecated">
  54444. </field>
  54445. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54446. transient="false" volatile="false"
  54447. static="true" final="true" visibility="public"
  54448. deprecated="not deprecated">
  54449. </field>
  54450. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54451. transient="false" volatile="false"
  54452. static="true" final="true" visibility="public"
  54453. deprecated="not deprecated">
  54454. </field>
  54455. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  54456. transient="false" volatile="false"
  54457. static="true" final="true" visibility="public"
  54458. deprecated="not deprecated">
  54459. </field>
  54460. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54461. transient="false" volatile="false"
  54462. static="true" final="true" visibility="public"
  54463. deprecated="not deprecated">
  54464. </field>
  54465. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54466. transient="false" volatile="false"
  54467. static="true" final="true" visibility="public"
  54468. deprecated="not deprecated">
  54469. </field>
  54470. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54471. transient="false" volatile="false"
  54472. static="true" final="true" visibility="public"
  54473. deprecated="not deprecated">
  54474. </field>
  54475. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  54476. transient="false" volatile="false"
  54477. static="true" final="true" visibility="public"
  54478. deprecated="not deprecated">
  54479. </field>
  54480. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54481. transient="false" volatile="false"
  54482. static="true" final="true" visibility="public"
  54483. deprecated="not deprecated">
  54484. </field>
  54485. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  54486. transient="false" volatile="false"
  54487. static="true" final="true" visibility="public"
  54488. deprecated="not deprecated">
  54489. </field>
  54490. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54491. transient="false" volatile="false"
  54492. static="true" final="true" visibility="public"
  54493. deprecated="not deprecated">
  54494. </field>
  54495. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  54496. transient="false" volatile="false"
  54497. static="true" final="true" visibility="public"
  54498. deprecated="not deprecated">
  54499. </field>
  54500. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54501. transient="false" volatile="false"
  54502. static="true" final="true" visibility="public"
  54503. deprecated="not deprecated">
  54504. </field>
  54505. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54506. transient="false" volatile="false"
  54507. static="true" final="true" visibility="public"
  54508. deprecated="not deprecated">
  54509. </field>
  54510. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  54511. transient="false" volatile="false"
  54512. static="true" final="true" visibility="public"
  54513. deprecated="not deprecated">
  54514. </field>
  54515. </class>
  54516. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  54517. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  54518. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  54519. abstract="false"
  54520. static="true" final="false" visibility="protected"
  54521. deprecated="not deprecated">
  54522. </class>
  54523. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  54524. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  54525. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  54526. abstract="false"
  54527. static="true" final="false" visibility="protected"
  54528. deprecated="not deprecated">
  54529. <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"
  54530. static="false" final="false" visibility="protected"
  54531. deprecated="not deprecated">
  54532. </constructor>
  54533. <method name="combine"
  54534. abstract="false" native="false" synchronized="false"
  54535. static="false" final="false" visibility="protected"
  54536. deprecated="not deprecated">
  54537. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  54538. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  54539. <exception name="IOException" type="java.io.IOException"/>
  54540. </method>
  54541. </class>
  54542. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  54543. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  54544. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  54545. abstract="false"
  54546. static="false" final="false" visibility="protected"
  54547. deprecated="not deprecated">
  54548. <implements name="java.lang.Runnable"/>
  54549. <implements name="org.apache.hadoop.mapred.Reporter"/>
  54550. <method name="setStatus"
  54551. abstract="false" native="false" synchronized="false"
  54552. static="false" final="false" visibility="public"
  54553. deprecated="not deprecated">
  54554. <param name="status" type="java.lang.String"/>
  54555. </method>
  54556. <method name="setProgress"
  54557. abstract="false" native="false" synchronized="false"
  54558. static="false" final="false" visibility="public"
  54559. deprecated="not deprecated">
  54560. <param name="progress" type="float"/>
  54561. </method>
  54562. <method name="progress"
  54563. abstract="false" native="false" synchronized="false"
  54564. static="false" final="false" visibility="public"
  54565. deprecated="not deprecated">
  54566. </method>
  54567. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54568. abstract="false" native="false" synchronized="false"
  54569. static="false" final="false" visibility="public"
  54570. deprecated="not deprecated">
  54571. <param name="group" type="java.lang.String"/>
  54572. <param name="name" type="java.lang.String"/>
  54573. </method>
  54574. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  54575. abstract="false" native="false" synchronized="false"
  54576. static="false" final="false" visibility="public"
  54577. deprecated="not deprecated">
  54578. <param name="name" type="java.lang.Enum"/>
  54579. </method>
  54580. <method name="incrCounter"
  54581. abstract="false" native="false" synchronized="false"
  54582. static="false" final="false" visibility="public"
  54583. deprecated="not deprecated">
  54584. <param name="key" type="java.lang.Enum"/>
  54585. <param name="amount" type="long"/>
  54586. </method>
  54587. <method name="incrCounter"
  54588. abstract="false" native="false" synchronized="false"
  54589. static="false" final="false" visibility="public"
  54590. deprecated="not deprecated">
  54591. <param name="group" type="java.lang.String"/>
  54592. <param name="counter" type="java.lang.String"/>
  54593. <param name="amount" type="long"/>
  54594. </method>
  54595. <method name="setInputSplit"
  54596. abstract="false" native="false" synchronized="false"
  54597. static="false" final="false" visibility="public"
  54598. deprecated="not deprecated">
  54599. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54600. </method>
  54601. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  54602. abstract="false" native="false" synchronized="false"
  54603. static="false" final="false" visibility="public"
  54604. deprecated="not deprecated">
  54605. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  54606. </method>
  54607. <method name="run"
  54608. abstract="false" native="false" synchronized="false"
  54609. static="false" final="false" visibility="public"
  54610. deprecated="not deprecated">
  54611. <doc>
  54612. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  54613. It sends progress updates if progress has been made or if the task needs to
  54614. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  54615. </doc>
  54616. </method>
  54617. <method name="startCommunicationThread"
  54618. abstract="false" native="false" synchronized="false"
  54619. static="false" final="false" visibility="public"
  54620. deprecated="not deprecated">
  54621. </method>
  54622. <method name="stopCommunicationThread"
  54623. abstract="false" native="false" synchronized="false"
  54624. static="false" final="false" visibility="public"
  54625. deprecated="not deprecated">
  54626. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54627. </method>
  54628. </class>
  54629. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  54630. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  54631. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  54632. abstract="false"
  54633. static="false" final="false" visibility="public"
  54634. deprecated="not deprecated">
  54635. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  54636. abstract="false" native="false" synchronized="false"
  54637. static="false" final="false" visibility="public"
  54638. deprecated="not deprecated">
  54639. <doc>
  54640. <![CDATA[Get the taskAttemptID.
  54641. @return TaskAttemptID]]>
  54642. </doc>
  54643. </method>
  54644. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  54645. abstract="false" native="false" synchronized="false"
  54646. static="false" final="false" visibility="public"
  54647. deprecated="not deprecated">
  54648. </method>
  54649. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  54650. abstract="false" native="false" synchronized="false"
  54651. static="false" final="false" visibility="public"
  54652. deprecated="not deprecated">
  54653. </method>
  54654. <method name="progress"
  54655. abstract="false" native="false" synchronized="false"
  54656. static="false" final="false" visibility="public"
  54657. deprecated="not deprecated">
  54658. </method>
  54659. </class>
  54660. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  54661. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  54662. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  54663. abstract="false"
  54664. static="false" final="false" visibility="public"
  54665. deprecated="not deprecated">
  54666. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  54667. static="false" final="false" visibility="public"
  54668. deprecated="not deprecated">
  54669. <doc>
  54670. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  54671. @param taskId TaskID that this task belongs to
  54672. @param id the task attempt number]]>
  54673. </doc>
  54674. </constructor>
  54675. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  54676. static="false" final="false" visibility="public"
  54677. deprecated="not deprecated">
  54678. <doc>
  54679. <![CDATA[Constructs a TaskId object from given parts.
  54680. @param jtIdentifier jobTracker identifier
  54681. @param jobId job number
  54682. @param isMap whether the tip is a map
  54683. @param taskId taskId number
  54684. @param id the task attempt number]]>
  54685. </doc>
  54686. </constructor>
  54687. <constructor name="TaskAttemptID"
  54688. static="false" final="false" visibility="public"
  54689. deprecated="not deprecated">
  54690. </constructor>
  54691. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  54692. abstract="false" native="false" synchronized="false"
  54693. static="true" final="false" visibility="public"
  54694. deprecated="not deprecated">
  54695. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  54696. <doc>
  54697. <![CDATA[Downgrade a new TaskAttemptID to an old one
  54698. @param old the new id
  54699. @return either old or a new TaskAttemptID constructed to match old]]>
  54700. </doc>
  54701. </method>
  54702. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  54703. abstract="false" native="false" synchronized="false"
  54704. static="false" final="false" visibility="public"
  54705. deprecated="not deprecated">
  54706. </method>
  54707. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  54708. abstract="false" native="false" synchronized="false"
  54709. static="false" final="false" visibility="public"
  54710. deprecated="not deprecated">
  54711. </method>
  54712. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  54713. abstract="false" native="false" synchronized="false"
  54714. static="true" final="false" visibility="public"
  54715. deprecated="not deprecated">
  54716. <param name="in" type="java.io.DataInput"/>
  54717. <exception name="IOException" type="java.io.IOException"/>
  54718. </method>
  54719. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  54720. abstract="false" native="false" synchronized="false"
  54721. static="true" final="false" visibility="public"
  54722. deprecated="not deprecated">
  54723. <param name="str" type="java.lang.String"/>
  54724. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  54725. <doc>
  54726. <![CDATA[Construct a TaskAttemptID object from given string
  54727. @return constructed TaskAttemptID object or null if the given String is null
  54728. @throws IllegalArgumentException if the given string is malformed]]>
  54729. </doc>
  54730. </method>
  54731. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  54732. abstract="false" native="false" synchronized="false"
  54733. static="true" final="false" visibility="public"
  54734. deprecated="not deprecated">
  54735. <param name="jtIdentifier" type="java.lang.String"/>
  54736. <param name="jobId" type="java.lang.Integer"/>
  54737. <param name="isMap" type="java.lang.Boolean"/>
  54738. <param name="taskId" type="java.lang.Integer"/>
  54739. <param name="attemptId" type="java.lang.Integer"/>
  54740. <doc>
  54741. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  54742. be given null, in which case that part of the regex will be generic.
  54743. For example to obtain a regex matching <i>all task attempt IDs</i>
  54744. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  54745. map task</i>, we would use :
  54746. <pre>
  54747. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  54748. </pre>
  54749. which will return :
  54750. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  54751. @param jtIdentifier jobTracker identifier, or null
  54752. @param jobId job number, or null
  54753. @param isMap whether the tip is a map, or null
  54754. @param taskId taskId number, or null
  54755. @param attemptId the task attempt number, or null
  54756. @return a regex pattern matching TaskAttemptIDs]]>
  54757. </doc>
  54758. </method>
  54759. <doc>
  54760. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  54761. a task attempt. Each task attempt is one particular instance of a Map or
  54762. Reduce Task identified by its TaskID.
  54763. TaskAttemptID consists of 2 parts. First part is the
  54764. {@link TaskID}, that this TaskAttemptID belongs to.
  54765. Second part is the task attempt number. <br>
  54766. An example TaskAttemptID is :
  54767. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  54768. zeroth task attempt for the fifth map task in the third job
  54769. running at the jobtracker started at <code>200707121733</code>.
  54770. <p>
  54771. Applications should never construct or parse TaskAttemptID strings
  54772. , but rather use appropriate constructors or {@link #forName(String)}
  54773. method.
  54774. @see JobID
  54775. @see TaskID]]>
  54776. </doc>
  54777. </class>
  54778. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  54779. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  54780. <class name="TaskCompletionEvent" extends="java.lang.Object"
  54781. abstract="false"
  54782. static="false" final="false" visibility="public"
  54783. deprecated="not deprecated">
  54784. <implements name="org.apache.hadoop.io.Writable"/>
  54785. <constructor name="TaskCompletionEvent"
  54786. static="false" final="false" visibility="public"
  54787. deprecated="not deprecated">
  54788. <doc>
  54789. <![CDATA[Default constructor for Writable.]]>
  54790. </doc>
  54791. </constructor>
  54792. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  54793. static="false" final="false" visibility="public"
  54794. deprecated="not deprecated">
  54795. <doc>
  54796. <![CDATA[Constructor. eventId should be created externally and incremented
  54797. per event for each job.
  54798. @param eventId event id, event id should be unique and assigned in
  54799. incrementally, starting from 0.
  54800. @param taskId task id
  54801. @param status task's status
  54802. @param taskTrackerHttp task tracker's host:port for http.]]>
  54803. </doc>
  54804. </constructor>
  54805. <method name="getEventId" return="int"
  54806. abstract="false" native="false" synchronized="false"
  54807. static="false" final="false" visibility="public"
  54808. deprecated="not deprecated">
  54809. <doc>
  54810. <![CDATA[Returns event Id.
  54811. @return event id]]>
  54812. </doc>
  54813. </method>
  54814. <method name="getTaskId" return="java.lang.String"
  54815. abstract="false" native="false" synchronized="false"
  54816. static="false" final="false" visibility="public"
  54817. deprecated="use {@link #getTaskAttemptId()} instead.">
  54818. <doc>
  54819. <![CDATA[Returns task id.
  54820. @return task id
  54821. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  54822. </doc>
  54823. </method>
  54824. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  54825. abstract="false" native="false" synchronized="false"
  54826. static="false" final="false" visibility="public"
  54827. deprecated="not deprecated">
  54828. <doc>
  54829. <![CDATA[Returns task id.
  54830. @return task id]]>
  54831. </doc>
  54832. </method>
  54833. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54834. abstract="false" native="false" synchronized="false"
  54835. static="false" final="false" visibility="public"
  54836. deprecated="not deprecated">
  54837. <doc>
  54838. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  54839. @return task tracker status]]>
  54840. </doc>
  54841. </method>
  54842. <method name="getTaskTrackerHttp" return="java.lang.String"
  54843. abstract="false" native="false" synchronized="false"
  54844. static="false" final="false" visibility="public"
  54845. deprecated="not deprecated">
  54846. <doc>
  54847. <![CDATA[http location of the tasktracker where this task ran.
  54848. @return http location of tasktracker user logs]]>
  54849. </doc>
  54850. </method>
  54851. <method name="getTaskRunTime" return="int"
  54852. abstract="false" native="false" synchronized="false"
  54853. static="false" final="false" visibility="public"
  54854. deprecated="not deprecated">
  54855. <doc>
  54856. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  54857. </doc>
  54858. </method>
  54859. <method name="setTaskRunTime"
  54860. abstract="false" native="false" synchronized="false"
  54861. static="false" final="false" visibility="public"
  54862. deprecated="not deprecated">
  54863. <param name="taskCompletionTime" type="int"/>
  54864. <doc>
  54865. <![CDATA[Set the task completion time
  54866. @param taskCompletionTime time (in millisec) the task took to complete]]>
  54867. </doc>
  54868. </method>
  54869. <method name="setEventId"
  54870. abstract="false" native="false" synchronized="false"
  54871. static="false" final="false" visibility="public"
  54872. deprecated="not deprecated">
  54873. <param name="eventId" type="int"/>
  54874. <doc>
  54875. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  54876. @param eventId]]>
  54877. </doc>
  54878. </method>
  54879. <method name="setTaskId"
  54880. abstract="false" native="false" synchronized="false"
  54881. static="false" final="false" visibility="public"
  54882. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  54883. <param name="taskId" type="java.lang.String"/>
  54884. <doc>
  54885. <![CDATA[Sets task id.
  54886. @param taskId
  54887. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  54888. </doc>
  54889. </method>
  54890. <method name="setTaskID"
  54891. abstract="false" native="false" synchronized="false"
  54892. static="false" final="false" visibility="public"
  54893. deprecated="not deprecated">
  54894. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54895. <doc>
  54896. <![CDATA[Sets task id.
  54897. @param taskId]]>
  54898. </doc>
  54899. </method>
  54900. <method name="setTaskStatus"
  54901. abstract="false" native="false" synchronized="false"
  54902. static="false" final="false" visibility="public"
  54903. deprecated="not deprecated">
  54904. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  54905. <doc>
  54906. <![CDATA[Set task status.
  54907. @param status]]>
  54908. </doc>
  54909. </method>
  54910. <method name="setTaskTrackerHttp"
  54911. abstract="false" native="false" synchronized="false"
  54912. static="false" final="false" visibility="public"
  54913. deprecated="not deprecated">
  54914. <param name="taskTrackerHttp" type="java.lang.String"/>
  54915. <doc>
  54916. <![CDATA[Set task tracker http location.
  54917. @param taskTrackerHttp]]>
  54918. </doc>
  54919. </method>
  54920. <method name="toString" return="java.lang.String"
  54921. abstract="false" native="false" synchronized="false"
  54922. static="false" final="false" visibility="public"
  54923. deprecated="not deprecated">
  54924. </method>
  54925. <method name="equals" return="boolean"
  54926. abstract="false" native="false" synchronized="false"
  54927. static="false" final="false" visibility="public"
  54928. deprecated="not deprecated">
  54929. <param name="o" type="java.lang.Object"/>
  54930. </method>
  54931. <method name="hashCode" return="int"
  54932. abstract="false" native="false" synchronized="false"
  54933. static="false" final="false" visibility="public"
  54934. deprecated="not deprecated">
  54935. </method>
  54936. <method name="isMapTask" return="boolean"
  54937. abstract="false" native="false" synchronized="false"
  54938. static="false" final="false" visibility="public"
  54939. deprecated="not deprecated">
  54940. </method>
  54941. <method name="idWithinJob" return="int"
  54942. abstract="false" native="false" synchronized="false"
  54943. static="false" final="false" visibility="public"
  54944. deprecated="not deprecated">
  54945. </method>
  54946. <method name="write"
  54947. abstract="false" native="false" synchronized="false"
  54948. static="false" final="false" visibility="public"
  54949. deprecated="not deprecated">
  54950. <param name="out" type="java.io.DataOutput"/>
  54951. <exception name="IOException" type="java.io.IOException"/>
  54952. </method>
  54953. <method name="readFields"
  54954. abstract="false" native="false" synchronized="false"
  54955. static="false" final="false" visibility="public"
  54956. deprecated="not deprecated">
  54957. <param name="in" type="java.io.DataInput"/>
  54958. <exception name="IOException" type="java.io.IOException"/>
  54959. </method>
  54960. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54961. transient="false" volatile="false"
  54962. static="true" final="true" visibility="public"
  54963. deprecated="not deprecated">
  54964. </field>
  54965. <doc>
  54966. <![CDATA[This is used to track task completion events on
  54967. job tracker.]]>
  54968. </doc>
  54969. </class>
  54970. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  54971. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  54972. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  54973. abstract="false"
  54974. static="true" final="true" visibility="public"
  54975. deprecated="not deprecated">
  54976. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  54977. abstract="false" native="false" synchronized="false"
  54978. static="true" final="false" visibility="public"
  54979. deprecated="not deprecated">
  54980. </method>
  54981. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54982. abstract="false" native="false" synchronized="false"
  54983. static="true" final="false" visibility="public"
  54984. deprecated="not deprecated">
  54985. <param name="name" type="java.lang.String"/>
  54986. </method>
  54987. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54988. transient="false" volatile="false"
  54989. static="true" final="true" visibility="public"
  54990. deprecated="not deprecated">
  54991. </field>
  54992. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54993. transient="false" volatile="false"
  54994. static="true" final="true" visibility="public"
  54995. deprecated="not deprecated">
  54996. </field>
  54997. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  54998. transient="false" volatile="false"
  54999. static="true" final="true" visibility="public"
  55000. deprecated="not deprecated">
  55001. </field>
  55002. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55003. transient="false" volatile="false"
  55004. static="true" final="true" visibility="public"
  55005. deprecated="not deprecated">
  55006. </field>
  55007. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  55008. transient="false" volatile="false"
  55009. static="true" final="true" visibility="public"
  55010. deprecated="not deprecated">
  55011. </field>
  55012. </class>
  55013. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  55014. <!-- start class org.apache.hadoop.mapred.TaskController -->
  55015. <class name="TaskController" extends="java.lang.Object"
  55016. abstract="true"
  55017. static="false" final="false" visibility="public"
  55018. deprecated="not deprecated">
  55019. <implements name="org.apache.hadoop.conf.Configurable"/>
  55020. <constructor name="TaskController"
  55021. static="false" final="false" visibility="public"
  55022. deprecated="not deprecated">
  55023. </constructor>
  55024. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  55025. abstract="false" native="false" synchronized="false"
  55026. static="false" final="false" visibility="public"
  55027. deprecated="not deprecated">
  55028. </method>
  55029. <method name="getLocalDirs" return="java.lang.String[]"
  55030. abstract="false" native="false" synchronized="false"
  55031. static="false" final="false" visibility="public"
  55032. deprecated="not deprecated">
  55033. </method>
  55034. <method name="setConf"
  55035. abstract="false" native="false" synchronized="false"
  55036. static="false" final="false" visibility="public"
  55037. deprecated="not deprecated">
  55038. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  55039. </method>
  55040. <method name="setup"
  55041. abstract="true" native="false" synchronized="false"
  55042. static="false" final="false" visibility="public"
  55043. deprecated="not deprecated">
  55044. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  55045. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  55046. <exception name="IOException" type="java.io.IOException"/>
  55047. <doc>
  55048. <![CDATA[Does initialization and setup.
  55049. @param allocator the local dir allocator to use
  55050. @param localStorage local storage to obtain dirs from]]>
  55051. </doc>
  55052. </method>
  55053. <method name="initializeJob"
  55054. abstract="true" native="false" synchronized="false"
  55055. static="false" final="false" visibility="public"
  55056. deprecated="not deprecated">
  55057. <param name="user" type="java.lang.String"/>
  55058. <param name="jobid" type="java.lang.String"/>
  55059. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  55060. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  55061. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  55062. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  55063. <exception name="IOException" type="java.io.IOException"/>
  55064. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  55065. <doc>
  55066. <![CDATA[Create all of the directories necessary for the job to start and download
  55067. all of the job and private distributed cache files.
  55068. Creates both the user directories and the job log directory.
  55069. @param user the user name
  55070. @param jobid the job
  55071. @param credentials a filename containing the job secrets
  55072. @param jobConf the path to the localized configuration file
  55073. @param taskTracker the connection the task tracker
  55074. @param ttAddr the tasktracker's RPC address
  55075. @throws IOException
  55076. @throws InterruptedException]]>
  55077. </doc>
  55078. </method>
  55079. <method name="launchTask" return="int"
  55080. abstract="true" native="false" synchronized="false"
  55081. static="false" final="false" visibility="public"
  55082. deprecated="not deprecated">
  55083. <param name="user" type="java.lang.String"/>
  55084. <param name="jobId" type="java.lang.String"/>
  55085. <param name="attemptId" type="java.lang.String"/>
  55086. <param name="setup" type="java.util.List"/>
  55087. <param name="jvmArguments" type="java.util.List"/>
  55088. <param name="currentWorkDirectory" type="java.io.File"/>
  55089. <param name="stdout" type="java.lang.String"/>
  55090. <param name="stderr" type="java.lang.String"/>
  55091. <exception name="IOException" type="java.io.IOException"/>
  55092. <doc>
  55093. <![CDATA[Create all of the directories for the task and launches the child jvm.
  55094. @param user the user name
  55095. @param jobId the jobId in question
  55096. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  55097. @param setup list of shell commands to execute before the jvm
  55098. @param jvmArguments list of jvm arguments
  55099. @param currentWorkDirectory the full path of the cwd for the task
  55100. @param stdout the file to redirect stdout to
  55101. @param stderr the file to redirect stderr to
  55102. @return the exit code for the task
  55103. @throws IOException]]>
  55104. </doc>
  55105. </method>
  55106. <method name="signalTask"
  55107. abstract="true" native="false" synchronized="false"
  55108. static="false" final="false" visibility="public"
  55109. deprecated="not deprecated">
  55110. <param name="user" type="java.lang.String"/>
  55111. <param name="taskPid" type="int"/>
  55112. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  55113. <exception name="IOException" type="java.io.IOException"/>
  55114. <doc>
  55115. <![CDATA[Send a signal to a task pid as the user.
  55116. @param user the user name
  55117. @param taskPid the pid of the task
  55118. @param signal the id of the signal to send]]>
  55119. </doc>
  55120. </method>
  55121. <method name="deleteAsUser"
  55122. abstract="true" native="false" synchronized="false"
  55123. static="false" final="false" visibility="public"
  55124. deprecated="not deprecated">
  55125. <param name="user" type="java.lang.String"/>
  55126. <param name="subDir" type="java.lang.String"/>
  55127. <exception name="IOException" type="java.io.IOException"/>
  55128. <doc>
  55129. <![CDATA[Delete the user's files under all of the task tracker root directories.
  55130. @param user the user name
  55131. @param subDir the path relative to the user's subdirectory under
  55132. the task tracker root directories.
  55133. @throws IOException]]>
  55134. </doc>
  55135. </method>
  55136. <method name="createLogDir"
  55137. abstract="false" native="false" synchronized="false"
  55138. static="false" final="false" visibility="public"
  55139. deprecated="not deprecated">
  55140. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55141. <param name="isCleanup" type="boolean"/>
  55142. <exception name="IOException" type="java.io.IOException"/>
  55143. <doc>
  55144. <![CDATA[Creates task log dir
  55145. @param taskID ID of the task
  55146. @param isCleanup If the task is cleanup task or not
  55147. @throws IOException]]>
  55148. </doc>
  55149. </method>
  55150. <method name="deleteLogAsUser"
  55151. abstract="true" native="false" synchronized="false"
  55152. static="false" final="false" visibility="public"
  55153. deprecated="not deprecated">
  55154. <param name="user" type="java.lang.String"/>
  55155. <param name="subDir" type="java.lang.String"/>
  55156. <exception name="IOException" type="java.io.IOException"/>
  55157. <doc>
  55158. <![CDATA[Delete the user's files under the userlogs directory.
  55159. @param user the user to work as
  55160. @param subDir the path under the userlogs directory.
  55161. @throws IOException]]>
  55162. </doc>
  55163. </method>
  55164. <method name="truncateLogsAsUser"
  55165. abstract="true" native="false" synchronized="false"
  55166. static="false" final="false" visibility="public"
  55167. deprecated="not deprecated">
  55168. <param name="user" type="java.lang.String"/>
  55169. <param name="allAttempts" type="java.util.List"/>
  55170. <exception name="IOException" type="java.io.IOException"/>
  55171. <doc>
  55172. <![CDATA[Run the passed command as the user
  55173. @param user
  55174. @param allAttempts the list of attempts that the JVM ran
  55175. @throws IOException]]>
  55176. </doc>
  55177. </method>
  55178. <method name="getRunAsUser" return="java.lang.String"
  55179. abstract="false" native="false" synchronized="false"
  55180. static="false" final="false" visibility="public"
  55181. deprecated="not deprecated">
  55182. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55183. <doc>
  55184. <![CDATA[Returns the local unix user that a given job will run as.]]>
  55185. </doc>
  55186. </method>
  55187. <method name="writeCommand" return="java.lang.String"
  55188. abstract="false" native="false" synchronized="false"
  55189. static="true" final="false" visibility="protected"
  55190. deprecated="not deprecated">
  55191. <param name="cmdLine" type="java.lang.String"/>
  55192. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  55193. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  55194. <exception name="IOException" type="java.io.IOException"/>
  55195. </method>
  55196. <method name="logOutput"
  55197. abstract="false" native="false" synchronized="false"
  55198. static="false" final="false" visibility="protected"
  55199. deprecated="not deprecated">
  55200. <param name="output" type="java.lang.String"/>
  55201. </method>
  55202. <field name="LOG" type="org.apache.commons.logging.Log"
  55203. transient="false" volatile="false"
  55204. static="true" final="true" visibility="public"
  55205. deprecated="not deprecated">
  55206. </field>
  55207. <field name="COMMAND_FILE" type="java.lang.String"
  55208. transient="false" volatile="false"
  55209. static="true" final="true" visibility="protected"
  55210. deprecated="not deprecated">
  55211. </field>
  55212. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  55213. transient="false" volatile="false"
  55214. static="false" final="false" visibility="protected"
  55215. deprecated="not deprecated">
  55216. </field>
  55217. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  55218. transient="false" volatile="false"
  55219. static="false" final="false" visibility="protected"
  55220. deprecated="not deprecated">
  55221. </field>
  55222. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  55223. transient="false" volatile="false"
  55224. static="true" final="true" visibility="public"
  55225. deprecated="not deprecated">
  55226. </field>
  55227. <doc>
  55228. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  55229. also the launching and killing of task JVMs.
  55230. This class defines the API for initializing, finalizing and cleaning
  55231. up of tasks, as also the launching and killing task JVMs.
  55232. Subclasses of this class will implement the logic required for
  55233. performing the actual actions.
  55234. <br/>
  55235. NOTE: This class is internal only class and not intended for users!!]]>
  55236. </doc>
  55237. </class>
  55238. <!-- end class org.apache.hadoop.mapred.TaskController -->
  55239. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  55240. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  55241. abstract="false"
  55242. static="false" final="false" visibility="public"
  55243. deprecated="not deprecated">
  55244. <constructor name="TaskGraphServlet"
  55245. static="false" final="false" visibility="public"
  55246. deprecated="not deprecated">
  55247. </constructor>
  55248. <method name="doGet"
  55249. abstract="false" native="false" synchronized="false"
  55250. static="false" final="false" visibility="public"
  55251. deprecated="not deprecated">
  55252. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55253. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55254. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55255. <exception name="IOException" type="java.io.IOException"/>
  55256. </method>
  55257. <field name="width" type="int"
  55258. transient="false" volatile="false"
  55259. static="true" final="true" visibility="public"
  55260. deprecated="not deprecated">
  55261. <doc>
  55262. <![CDATA[height of the graph w/o margins]]>
  55263. </doc>
  55264. </field>
  55265. <field name="height" type="int"
  55266. transient="false" volatile="false"
  55267. static="true" final="true" visibility="public"
  55268. deprecated="not deprecated">
  55269. <doc>
  55270. <![CDATA[height of the graph w/o margins]]>
  55271. </doc>
  55272. </field>
  55273. <field name="ymargin" type="int"
  55274. transient="false" volatile="false"
  55275. static="true" final="true" visibility="public"
  55276. deprecated="not deprecated">
  55277. <doc>
  55278. <![CDATA[margin space on y axis]]>
  55279. </doc>
  55280. </field>
  55281. <field name="xmargin" type="int"
  55282. transient="false" volatile="false"
  55283. static="true" final="true" visibility="public"
  55284. deprecated="not deprecated">
  55285. <doc>
  55286. <![CDATA[margin space on x axis]]>
  55287. </doc>
  55288. </field>
  55289. <doc>
  55290. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  55291. statuses]]>
  55292. </doc>
  55293. </class>
  55294. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  55295. <!-- start class org.apache.hadoop.mapred.TaskID -->
  55296. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  55297. abstract="false"
  55298. static="false" final="false" visibility="public"
  55299. deprecated="not deprecated">
  55300. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  55301. static="false" final="false" visibility="public"
  55302. deprecated="not deprecated">
  55303. <doc>
  55304. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  55305. @param jobId JobID that this tip belongs to
  55306. @param isMap whether the tip is a map
  55307. @param id the tip number]]>
  55308. </doc>
  55309. </constructor>
  55310. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  55311. static="false" final="false" visibility="public"
  55312. deprecated="not deprecated">
  55313. <doc>
  55314. <![CDATA[Constructs a TaskInProgressId object from given parts.
  55315. @param jtIdentifier jobTracker identifier
  55316. @param jobId job number
  55317. @param isMap whether the tip is a map
  55318. @param id the tip number]]>
  55319. </doc>
  55320. </constructor>
  55321. <constructor name="TaskID"
  55322. static="false" final="false" visibility="public"
  55323. deprecated="not deprecated">
  55324. </constructor>
  55325. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  55326. abstract="false" native="false" synchronized="false"
  55327. static="true" final="false" visibility="public"
  55328. deprecated="not deprecated">
  55329. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  55330. <doc>
  55331. <![CDATA[Downgrade a new TaskID to an old one
  55332. @param old a new or old TaskID
  55333. @return either old or a new TaskID build to match old]]>
  55334. </doc>
  55335. </method>
  55336. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  55337. abstract="false" native="false" synchronized="false"
  55338. static="true" final="false" visibility="public"
  55339. deprecated="not deprecated">
  55340. <param name="in" type="java.io.DataInput"/>
  55341. <exception name="IOException" type="java.io.IOException"/>
  55342. </method>
  55343. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  55344. abstract="false" native="false" synchronized="false"
  55345. static="false" final="false" visibility="public"
  55346. deprecated="not deprecated">
  55347. </method>
  55348. <method name="getTaskIDsPattern" return="java.lang.String"
  55349. abstract="false" native="false" synchronized="false"
  55350. static="true" final="false" visibility="public"
  55351. deprecated="not deprecated">
  55352. <param name="jtIdentifier" type="java.lang.String"/>
  55353. <param name="jobId" type="java.lang.Integer"/>
  55354. <param name="isMap" type="java.lang.Boolean"/>
  55355. <param name="taskId" type="java.lang.Integer"/>
  55356. <doc>
  55357. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  55358. be given null, in which case that part of the regex will be generic.
  55359. For example to obtain a regex matching <i>the first map task</i>
  55360. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  55361. <pre>
  55362. TaskID.getTaskIDsPattern(null, null, true, 1);
  55363. </pre>
  55364. which will return :
  55365. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  55366. @param jtIdentifier jobTracker identifier, or null
  55367. @param jobId job number, or null
  55368. @param isMap whether the tip is a map, or null
  55369. @param taskId taskId number, or null
  55370. @return a regex pattern matching TaskIDs]]>
  55371. </doc>
  55372. </method>
  55373. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  55374. abstract="false" native="false" synchronized="false"
  55375. static="true" final="false" visibility="public"
  55376. deprecated="not deprecated">
  55377. <param name="str" type="java.lang.String"/>
  55378. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  55379. </method>
  55380. <doc>
  55381. <![CDATA[TaskID represents the immutable and unique identifier for
  55382. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  55383. execute the Map or Reduce Task, each of which are uniquely indentified by
  55384. their TaskAttemptID.
  55385. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  55386. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  55387. representing whether the task is a map task or a reduce task.
  55388. And the third part is the task number. <br>
  55389. An example TaskID is :
  55390. <code>task_200707121733_0003_m_000005</code> , which represents the
  55391. fifth map task in the third job running at the jobtracker
  55392. started at <code>200707121733</code>.
  55393. <p>
  55394. Applications should never construct or parse TaskID strings
  55395. , but rather use appropriate constructors or {@link #forName(String)}
  55396. method.
  55397. @see JobID
  55398. @see TaskAttemptID]]>
  55399. </doc>
  55400. </class>
  55401. <!-- end class org.apache.hadoop.mapred.TaskID -->
  55402. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  55403. <class name="TaskLog" extends="java.lang.Object"
  55404. abstract="false"
  55405. static="false" final="false" visibility="public"
  55406. deprecated="not deprecated">
  55407. <constructor name="TaskLog"
  55408. static="false" final="false" visibility="public"
  55409. deprecated="not deprecated">
  55410. </constructor>
  55411. <method name="createTaskAttemptLogDir"
  55412. abstract="false" native="false" synchronized="false"
  55413. static="true" final="false" visibility="public"
  55414. deprecated="not deprecated">
  55415. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55416. <param name="isCleanup" type="boolean"/>
  55417. <param name="localDirs" type="java.lang.String[]"/>
  55418. <exception name="IOException" type="java.io.IOException"/>
  55419. <doc>
  55420. <![CDATA[Create log directory for the given attempt. This involves creating the
  55421. following and setting proper permissions for the new directories
  55422. <br>{hadoop.log.dir}/userlogs/<jobid>
  55423. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  55424. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  55425. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  55426. @param taskID attempt-id for which log dir is to be created
  55427. @param isCleanup Is this attempt a cleanup attempt ?
  55428. @param localDirs mapred local directories
  55429. @throws IOException]]>
  55430. </doc>
  55431. </method>
  55432. <method name="getTaskAttemptLogDir" return="java.lang.String"
  55433. abstract="false" native="false" synchronized="false"
  55434. static="true" final="false" visibility="public"
  55435. deprecated="not deprecated">
  55436. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55437. <param name="cleanupSuffix" type="java.lang.String"/>
  55438. <param name="localDirs" type="java.lang.String[]"/>
  55439. <exception name="IOException" type="java.io.IOException"/>
  55440. <doc>
  55441. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  55442. selected mapred local directory.
  55443. @param taskID attempt-id for which log dir path is needed
  55444. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  55445. @param localDirs mapred local directories
  55446. @return target task attempt log directory
  55447. @throws IOException]]>
  55448. </doc>
  55449. </method>
  55450. <method name="getTaskLogFile" return="java.io.File"
  55451. abstract="false" native="false" synchronized="false"
  55452. static="true" final="false" visibility="public"
  55453. deprecated="not deprecated">
  55454. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55455. <param name="isCleanup" type="boolean"/>
  55456. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  55457. </method>
  55458. <method name="getBaseLogDir" return="java.lang.String"
  55459. abstract="false" native="false" synchronized="false"
  55460. static="true" final="false" visibility="public"
  55461. deprecated="not deprecated">
  55462. </method>
  55463. <method name="syncLogs"
  55464. abstract="false" native="false" synchronized="true"
  55465. static="true" final="false" visibility="public"
  55466. deprecated="not deprecated">
  55467. <param name="logLocation" type="java.lang.String"/>
  55468. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55469. <param name="isCleanup" type="boolean"/>
  55470. <param name="segmented" type="boolean"/>
  55471. <exception name="IOException" type="java.io.IOException"/>
  55472. </method>
  55473. <method name="getTaskLogLength" return="long"
  55474. abstract="false" native="false" synchronized="false"
  55475. static="true" final="false" visibility="public"
  55476. deprecated="not deprecated">
  55477. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  55478. <doc>
  55479. <![CDATA[Get the desired maximum length of task's logs.
  55480. @param conf the job to look in
  55481. @return the number of bytes to cap the log files at]]>
  55482. </doc>
  55483. </method>
  55484. <method name="captureOutAndError" return="java.util.List"
  55485. abstract="false" native="false" synchronized="false"
  55486. static="true" final="false" visibility="public"
  55487. deprecated="not deprecated">
  55488. <param name="cmd" type="java.util.List"/>
  55489. <param name="stdoutFilename" type="java.io.File"/>
  55490. <param name="stderrFilename" type="java.io.File"/>
  55491. <param name="tailLength" type="long"/>
  55492. <exception name="IOException" type="java.io.IOException"/>
  55493. <doc>
  55494. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55495. If the tailLength is 0, the entire output will be saved.
  55496. @param cmd The command and the arguments that should be run
  55497. @param stdoutFilename The filename that stdout should be saved to
  55498. @param stderrFilename The filename that stderr should be saved to
  55499. @param tailLength The length of the tail to be saved.
  55500. @return the modified command that should be run]]>
  55501. </doc>
  55502. </method>
  55503. <method name="captureOutAndError" return="java.util.List"
  55504. abstract="false" native="false" synchronized="false"
  55505. static="true" final="false" visibility="public"
  55506. deprecated="not deprecated">
  55507. <param name="setup" type="java.util.List"/>
  55508. <param name="cmd" type="java.util.List"/>
  55509. <param name="stdoutFilename" type="java.io.File"/>
  55510. <param name="stderrFilename" type="java.io.File"/>
  55511. <param name="tailLength" type="long"/>
  55512. <exception name="IOException" type="java.io.IOException"/>
  55513. <doc>
  55514. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55515. Setup commands such as setting memory limit can be passed which
  55516. will be executed before exec.
  55517. If the tailLength is 0, the entire output will be saved.
  55518. @param setup The setup commands for the execed process.
  55519. @param cmd The command and the arguments that should be run
  55520. @param stdoutFilename The filename that stdout should be saved to
  55521. @param stderrFilename The filename that stderr should be saved to
  55522. @param tailLength The length of the tail to be saved.
  55523. @return the modified command that should be run]]>
  55524. </doc>
  55525. </method>
  55526. <method name="captureOutAndError" return="java.util.List"
  55527. abstract="false" native="false" synchronized="false"
  55528. static="true" final="false" visibility="public"
  55529. deprecated="pidFiles are no more used. Instead pid is exported to
  55530. env variable JVM_PID.">
  55531. <param name="setup" type="java.util.List"/>
  55532. <param name="cmd" type="java.util.List"/>
  55533. <param name="stdoutFilename" type="java.io.File"/>
  55534. <param name="stderrFilename" type="java.io.File"/>
  55535. <param name="tailLength" type="long"/>
  55536. <param name="pidFileName" type="java.lang.String"/>
  55537. <exception name="IOException" type="java.io.IOException"/>
  55538. <doc>
  55539. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55540. Setup commands such as setting memory limit can be passed which
  55541. will be executed before exec.
  55542. If the tailLength is 0, the entire output will be saved.
  55543. @param setup The setup commands for the execed process.
  55544. @param cmd The command and the arguments that should be run
  55545. @param stdoutFilename The filename that stdout should be saved to
  55546. @param stderrFilename The filename that stderr should be saved to
  55547. @param tailLength The length of the tail to be saved.
  55548. @deprecated pidFiles are no more used. Instead pid is exported to
  55549. env variable JVM_PID.
  55550. @return the modified command that should be run]]>
  55551. </doc>
  55552. </method>
  55553. <method name="captureOutAndError" return="java.util.List"
  55554. abstract="false" native="false" synchronized="false"
  55555. static="true" final="false" visibility="public"
  55556. deprecated="pidFiles are no more used. Instead pid is exported to
  55557. env variable JVM_PID.">
  55558. <param name="setup" type="java.util.List"/>
  55559. <param name="cmd" type="java.util.List"/>
  55560. <param name="stdoutFilename" type="java.io.File"/>
  55561. <param name="stderrFilename" type="java.io.File"/>
  55562. <param name="tailLength" type="long"/>
  55563. <param name="useSetsid" type="boolean"/>
  55564. <param name="pidFileName" type="java.lang.String"/>
  55565. <exception name="IOException" type="java.io.IOException"/>
  55566. <doc>
  55567. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55568. Setup commands such as setting memory limit can be passed which
  55569. will be executed before exec.
  55570. If the tailLength is 0, the entire output will be saved.
  55571. @param setup The setup commands for the execed process.
  55572. @param cmd The command and the arguments that should be run
  55573. @param stdoutFilename The filename that stdout should be saved to
  55574. @param stderrFilename The filename that stderr should be saved to
  55575. @param tailLength The length of the tail to be saved.
  55576. @param useSetsid Should setsid be used in the command or not.
  55577. @deprecated pidFiles are no more used. Instead pid is exported to
  55578. env variable JVM_PID.
  55579. @return the modified command that should be run]]>
  55580. </doc>
  55581. </method>
  55582. <method name="captureOutAndError" return="java.util.List"
  55583. abstract="false" native="false" synchronized="false"
  55584. static="true" final="false" visibility="public"
  55585. deprecated="not deprecated">
  55586. <param name="setup" type="java.util.List"/>
  55587. <param name="cmd" type="java.util.List"/>
  55588. <param name="stdoutFilename" type="java.io.File"/>
  55589. <param name="stderrFilename" type="java.io.File"/>
  55590. <param name="tailLength" type="long"/>
  55591. <param name="useSetsid" type="boolean"/>
  55592. <exception name="IOException" type="java.io.IOException"/>
  55593. <doc>
  55594. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  55595. Setup commands such as setting memory limit can be passed which
  55596. will be executed before exec.
  55597. If the tailLength is 0, the entire output will be saved.
  55598. @param setup The setup commands for the execed process.
  55599. @param cmd The command and the arguments that should be run
  55600. @param stdoutFilename The filename that stdout should be saved to
  55601. @param stderrFilename The filename that stderr should be saved to
  55602. @param tailLength The length of the tail to be saved.
  55603. @param useSetsid Should setsid be used in the command or not.
  55604. @return the modified command that should be run]]>
  55605. </doc>
  55606. </method>
  55607. <method name="addCommand" return="java.lang.String"
  55608. abstract="false" native="false" synchronized="false"
  55609. static="true" final="false" visibility="public"
  55610. deprecated="not deprecated">
  55611. <param name="cmd" type="java.util.List"/>
  55612. <param name="isExecutable" type="boolean"/>
  55613. <exception name="IOException" type="java.io.IOException"/>
  55614. <doc>
  55615. <![CDATA[Add quotes to each of the command strings and
  55616. return as a single string
  55617. @param cmd The command to be quoted
  55618. @param isExecutable makes shell path if the first
  55619. argument is executable
  55620. @return returns The quoted string.
  55621. @throws IOException]]>
  55622. </doc>
  55623. </method>
  55624. <method name="captureDebugOut" return="java.util.List"
  55625. abstract="false" native="false" synchronized="false"
  55626. static="true" final="false" visibility="public"
  55627. deprecated="not deprecated">
  55628. <param name="cmd" type="java.util.List"/>
  55629. <param name="debugoutFilename" type="java.io.File"/>
  55630. <exception name="IOException" type="java.io.IOException"/>
  55631. <doc>
  55632. <![CDATA[Wrap a command in a shell to capture debug script's
  55633. stdout and stderr to debugout.
  55634. @param cmd The command and the arguments that should be run
  55635. @param debugoutFilename The filename that stdout and stderr
  55636. should be saved to.
  55637. @return the modified command that should be run
  55638. @throws IOException]]>
  55639. </doc>
  55640. </method>
  55641. <method name="getUserLogDir" return="java.io.File"
  55642. abstract="false" native="false" synchronized="false"
  55643. static="true" final="false" visibility="public"
  55644. deprecated="not deprecated">
  55645. </method>
  55646. <method name="getJobDir" return="java.io.File"
  55647. abstract="false" native="false" synchronized="false"
  55648. static="true" final="false" visibility="public"
  55649. deprecated="not deprecated">
  55650. <param name="jobid" type="java.lang.String"/>
  55651. <doc>
  55652. <![CDATA[Get the user log directory for the job jobid.
  55653. @param jobid string representation of the jobid
  55654. @return user log directory for the job]]>
  55655. </doc>
  55656. </method>
  55657. <method name="getJobDir" return="java.io.File"
  55658. abstract="false" native="false" synchronized="false"
  55659. static="true" final="false" visibility="public"
  55660. deprecated="not deprecated">
  55661. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  55662. <doc>
  55663. <![CDATA[Get the user log directory for the job jobid.
  55664. @param jobid the jobid object
  55665. @return user log directory for the job]]>
  55666. </doc>
  55667. </method>
  55668. <doc>
  55669. <![CDATA[A simple logger to handle the task-specific user logs.
  55670. This class uses the system property <code>hadoop.log.dir</code>.
  55671. This class is for Map/Reduce internal use only.]]>
  55672. </doc>
  55673. </class>
  55674. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  55675. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  55676. <class name="TaskLog.LogName" extends="java.lang.Enum"
  55677. abstract="false"
  55678. static="true" final="true" visibility="public"
  55679. deprecated="not deprecated">
  55680. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  55681. abstract="false" native="false" synchronized="false"
  55682. static="true" final="false" visibility="public"
  55683. deprecated="not deprecated">
  55684. </method>
  55685. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  55686. abstract="false" native="false" synchronized="false"
  55687. static="true" final="false" visibility="public"
  55688. deprecated="not deprecated">
  55689. <param name="name" type="java.lang.String"/>
  55690. </method>
  55691. <method name="toString" return="java.lang.String"
  55692. abstract="false" native="false" synchronized="false"
  55693. static="false" final="false" visibility="public"
  55694. deprecated="not deprecated">
  55695. </method>
  55696. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55697. transient="false" volatile="false"
  55698. static="true" final="true" visibility="public"
  55699. deprecated="not deprecated">
  55700. <doc>
  55701. <![CDATA[Log on the stdout of the task.]]>
  55702. </doc>
  55703. </field>
  55704. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55705. transient="false" volatile="false"
  55706. static="true" final="true" visibility="public"
  55707. deprecated="not deprecated">
  55708. <doc>
  55709. <![CDATA[Log on the stderr of the task.]]>
  55710. </doc>
  55711. </field>
  55712. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55713. transient="false" volatile="false"
  55714. static="true" final="true" visibility="public"
  55715. deprecated="not deprecated">
  55716. <doc>
  55717. <![CDATA[Log on the map-reduce system logs of the task.]]>
  55718. </doc>
  55719. </field>
  55720. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55721. transient="false" volatile="false"
  55722. static="true" final="true" visibility="public"
  55723. deprecated="not deprecated">
  55724. <doc>
  55725. <![CDATA[The java profiler information.]]>
  55726. </doc>
  55727. </field>
  55728. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  55729. transient="false" volatile="false"
  55730. static="true" final="true" visibility="public"
  55731. deprecated="not deprecated">
  55732. <doc>
  55733. <![CDATA[Log the debug script's stdout]]>
  55734. </doc>
  55735. </field>
  55736. <doc>
  55737. <![CDATA[The filter for userlogs.]]>
  55738. </doc>
  55739. </class>
  55740. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  55741. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  55742. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  55743. abstract="false"
  55744. static="false" final="false" visibility="public"
  55745. deprecated="not deprecated">
  55746. <constructor name="TaskLogAppender"
  55747. static="false" final="false" visibility="public"
  55748. deprecated="not deprecated">
  55749. </constructor>
  55750. <method name="activateOptions"
  55751. abstract="false" native="false" synchronized="false"
  55752. static="false" final="false" visibility="public"
  55753. deprecated="not deprecated">
  55754. </method>
  55755. <method name="append"
  55756. abstract="false" native="false" synchronized="false"
  55757. static="false" final="false" visibility="public"
  55758. deprecated="not deprecated">
  55759. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  55760. </method>
  55761. <method name="flush"
  55762. abstract="false" native="false" synchronized="false"
  55763. static="false" final="false" visibility="public"
  55764. deprecated="not deprecated">
  55765. </method>
  55766. <method name="close"
  55767. abstract="false" native="false" synchronized="true"
  55768. static="false" final="false" visibility="public"
  55769. deprecated="not deprecated">
  55770. </method>
  55771. <method name="getTaskId" return="java.lang.String"
  55772. abstract="false" native="false" synchronized="false"
  55773. static="false" final="false" visibility="public"
  55774. deprecated="not deprecated">
  55775. <doc>
  55776. <![CDATA[Getter/Setter methods for log4j.]]>
  55777. </doc>
  55778. </method>
  55779. <method name="setTaskId"
  55780. abstract="false" native="false" synchronized="false"
  55781. static="false" final="false" visibility="public"
  55782. deprecated="not deprecated">
  55783. <param name="taskId" type="java.lang.String"/>
  55784. </method>
  55785. <method name="getTotalLogFileSize" return="long"
  55786. abstract="false" native="false" synchronized="false"
  55787. static="false" final="false" visibility="public"
  55788. deprecated="not deprecated">
  55789. </method>
  55790. <method name="setTotalLogFileSize"
  55791. abstract="false" native="false" synchronized="false"
  55792. static="false" final="false" visibility="public"
  55793. deprecated="not deprecated">
  55794. <param name="logSize" type="long"/>
  55795. </method>
  55796. <method name="setIsCleanup"
  55797. abstract="false" native="false" synchronized="false"
  55798. static="false" final="false" visibility="public"
  55799. deprecated="not deprecated">
  55800. <param name="isCleanup" type="boolean"/>
  55801. <doc>
  55802. <![CDATA[Set whether the task is a cleanup attempt or not.
  55803. @param isCleanup
  55804. true if the task is cleanup attempt, false otherwise.]]>
  55805. </doc>
  55806. </method>
  55807. <method name="getIsCleanup" return="boolean"
  55808. abstract="false" native="false" synchronized="false"
  55809. static="false" final="false" visibility="public"
  55810. deprecated="not deprecated">
  55811. <doc>
  55812. <![CDATA[Get whether task is cleanup attempt or not.
  55813. @return true if the task is cleanup attempt, false otherwise.]]>
  55814. </doc>
  55815. </method>
  55816. <doc>
  55817. <![CDATA[A simple log4j-appender for the task child's
  55818. map-reduce system logs.]]>
  55819. </doc>
  55820. </class>
  55821. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  55822. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  55823. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  55824. abstract="false"
  55825. static="false" final="false" visibility="public"
  55826. deprecated="not deprecated">
  55827. <constructor name="TaskLogServlet"
  55828. static="false" final="false" visibility="public"
  55829. deprecated="not deprecated">
  55830. </constructor>
  55831. <method name="getTaskLogUrl" return="java.lang.String"
  55832. abstract="false" native="false" synchronized="false"
  55833. static="true" final="false" visibility="public"
  55834. deprecated="not deprecated">
  55835. <param name="taskTrackerHostName" type="java.lang.String"/>
  55836. <param name="httpPort" type="java.lang.String"/>
  55837. <param name="taskAttemptID" type="java.lang.String"/>
  55838. <doc>
  55839. <![CDATA[Construct the taskLogUrl
  55840. @param taskTrackerHostName
  55841. @param httpPort
  55842. @param taskAttemptID
  55843. @return the taskLogUrl]]>
  55844. </doc>
  55845. </method>
  55846. <method name="doGet"
  55847. abstract="false" native="false" synchronized="false"
  55848. static="false" final="false" visibility="public"
  55849. deprecated="not deprecated">
  55850. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55851. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55852. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55853. <exception name="IOException" type="java.io.IOException"/>
  55854. <doc>
  55855. <![CDATA[Get the logs via http.]]>
  55856. </doc>
  55857. </method>
  55858. <doc>
  55859. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  55860. </doc>
  55861. </class>
  55862. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  55863. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  55864. <class name="TaskLogsTruncater" extends="java.lang.Object"
  55865. abstract="false"
  55866. static="false" final="false" visibility="public"
  55867. deprecated="not deprecated">
  55868. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  55869. static="false" final="false" visibility="public"
  55870. deprecated="not deprecated">
  55871. </constructor>
  55872. <method name="shouldTruncateLogs" return="boolean"
  55873. abstract="false" native="false" synchronized="false"
  55874. static="false" final="false" visibility="public"
  55875. deprecated="not deprecated">
  55876. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  55877. <exception name="IOException" type="java.io.IOException"/>
  55878. <doc>
  55879. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  55880. particular JVM
  55881. @param lInfo
  55882. @return is truncation required?
  55883. @throws IOException]]>
  55884. </doc>
  55885. </method>
  55886. <method name="truncateLogs"
  55887. abstract="false" native="false" synchronized="false"
  55888. static="false" final="false" visibility="public"
  55889. deprecated="not deprecated">
  55890. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  55891. <doc>
  55892. <![CDATA[Process the removed task's logs. This involves truncating them to
  55893. retainSize.]]>
  55894. </doc>
  55895. </method>
  55896. <method name="main"
  55897. abstract="false" native="false" synchronized="false"
  55898. static="true" final="false" visibility="public"
  55899. deprecated="not deprecated">
  55900. <param name="args" type="java.lang.String[]"/>
  55901. <exception name="IOException" type="java.io.IOException"/>
  55902. </method>
  55903. <doc>
  55904. <![CDATA[The class for truncating the user logs.
  55905. Should be used only by {@link UserLogManager}.]]>
  55906. </doc>
  55907. </class>
  55908. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  55909. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  55910. <class name="TaskReport" extends="java.lang.Object"
  55911. abstract="false"
  55912. static="false" final="false" visibility="public"
  55913. deprecated="not deprecated">
  55914. <implements name="org.apache.hadoop.io.Writable"/>
  55915. <constructor name="TaskReport"
  55916. static="false" final="false" visibility="public"
  55917. deprecated="not deprecated">
  55918. </constructor>
  55919. <method name="getTaskId" return="java.lang.String"
  55920. abstract="false" native="false" synchronized="false"
  55921. static="false" final="false" visibility="public"
  55922. deprecated="use {@link #getTaskID()} instead">
  55923. <doc>
  55924. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  55925. </doc>
  55926. </method>
  55927. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  55928. abstract="false" native="false" synchronized="false"
  55929. static="false" final="false" visibility="public"
  55930. deprecated="not deprecated">
  55931. <doc>
  55932. <![CDATA[The id of the task.]]>
  55933. </doc>
  55934. </method>
  55935. <method name="getProgress" return="float"
  55936. abstract="false" native="false" synchronized="false"
  55937. static="false" final="false" visibility="public"
  55938. deprecated="not deprecated">
  55939. <doc>
  55940. <![CDATA[The amount completed, between zero and one.]]>
  55941. </doc>
  55942. </method>
  55943. <method name="getState" return="java.lang.String"
  55944. abstract="false" native="false" synchronized="false"
  55945. static="false" final="false" visibility="public"
  55946. deprecated="not deprecated">
  55947. <doc>
  55948. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  55949. </doc>
  55950. </method>
  55951. <method name="getDiagnostics" return="java.lang.String[]"
  55952. abstract="false" native="false" synchronized="false"
  55953. static="false" final="false" visibility="public"
  55954. deprecated="not deprecated">
  55955. <doc>
  55956. <![CDATA[A list of error messages.]]>
  55957. </doc>
  55958. </method>
  55959. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  55960. abstract="false" native="false" synchronized="false"
  55961. static="false" final="false" visibility="public"
  55962. deprecated="not deprecated">
  55963. <doc>
  55964. <![CDATA[A table of counters.]]>
  55965. </doc>
  55966. </method>
  55967. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  55968. abstract="false" native="false" synchronized="false"
  55969. static="false" final="false" visibility="public"
  55970. deprecated="not deprecated">
  55971. <doc>
  55972. <![CDATA[The current status]]>
  55973. </doc>
  55974. </method>
  55975. <method name="getFinishTime" return="long"
  55976. abstract="false" native="false" synchronized="false"
  55977. static="false" final="false" visibility="public"
  55978. deprecated="not deprecated">
  55979. <doc>
  55980. <![CDATA[Get finish time of task.
  55981. @return 0, if finish time was not set else returns finish time.]]>
  55982. </doc>
  55983. </method>
  55984. <method name="getStartTime" return="long"
  55985. abstract="false" native="false" synchronized="false"
  55986. static="false" final="false" visibility="public"
  55987. deprecated="not deprecated">
  55988. <doc>
  55989. <![CDATA[Get start time of task.
  55990. @return 0 if start time was not set, else start time.]]>
  55991. </doc>
  55992. </method>
  55993. <method name="setSuccessfulAttempt"
  55994. abstract="false" native="false" synchronized="false"
  55995. static="false" final="false" visibility="public"
  55996. deprecated="not deprecated">
  55997. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55998. <doc>
  55999. <![CDATA[set successful attempt ID of the task.]]>
  56000. </doc>
  56001. </method>
  56002. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  56003. abstract="false" native="false" synchronized="false"
  56004. static="false" final="false" visibility="public"
  56005. deprecated="not deprecated">
  56006. <doc>
  56007. <![CDATA[Get the attempt ID that took this task to completion]]>
  56008. </doc>
  56009. </method>
  56010. <method name="setRunningTaskAttempts"
  56011. abstract="false" native="false" synchronized="false"
  56012. static="false" final="false" visibility="public"
  56013. deprecated="not deprecated">
  56014. <param name="runningAttempts" type="java.util.Collection"/>
  56015. <doc>
  56016. <![CDATA[set running attempt(s) of the task.]]>
  56017. </doc>
  56018. </method>
  56019. <method name="getRunningTaskAttempts" return="java.util.Collection"
  56020. abstract="false" native="false" synchronized="false"
  56021. static="false" final="false" visibility="public"
  56022. deprecated="not deprecated">
  56023. <doc>
  56024. <![CDATA[Get the running task attempt IDs for this task]]>
  56025. </doc>
  56026. </method>
  56027. <method name="equals" return="boolean"
  56028. abstract="false" native="false" synchronized="false"
  56029. static="false" final="false" visibility="public"
  56030. deprecated="not deprecated">
  56031. <param name="o" type="java.lang.Object"/>
  56032. </method>
  56033. <method name="hashCode" return="int"
  56034. abstract="false" native="false" synchronized="false"
  56035. static="false" final="false" visibility="public"
  56036. deprecated="not deprecated">
  56037. </method>
  56038. <method name="write"
  56039. abstract="false" native="false" synchronized="false"
  56040. static="false" final="false" visibility="public"
  56041. deprecated="not deprecated">
  56042. <param name="out" type="java.io.DataOutput"/>
  56043. <exception name="IOException" type="java.io.IOException"/>
  56044. </method>
  56045. <method name="readFields"
  56046. abstract="false" native="false" synchronized="false"
  56047. static="false" final="false" visibility="public"
  56048. deprecated="not deprecated">
  56049. <param name="in" type="java.io.DataInput"/>
  56050. <exception name="IOException" type="java.io.IOException"/>
  56051. </method>
  56052. <doc>
  56053. <![CDATA[A report on the state of a task.]]>
  56054. </doc>
  56055. </class>
  56056. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  56057. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  56058. <class name="TaskStatus" extends="java.lang.Object"
  56059. abstract="true"
  56060. static="false" final="false" visibility="public"
  56061. deprecated="not deprecated">
  56062. <implements name="org.apache.hadoop.io.Writable"/>
  56063. <implements name="java.lang.Cloneable"/>
  56064. <constructor name="TaskStatus"
  56065. static="false" final="false" visibility="public"
  56066. deprecated="not deprecated">
  56067. </constructor>
  56068. <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"
  56069. static="false" final="false" visibility="public"
  56070. deprecated="not deprecated">
  56071. </constructor>
  56072. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  56073. abstract="false" native="false" synchronized="false"
  56074. static="false" final="false" visibility="public"
  56075. deprecated="not deprecated">
  56076. </method>
  56077. <method name="getIsMap" return="boolean"
  56078. abstract="true" native="false" synchronized="false"
  56079. static="false" final="false" visibility="public"
  56080. deprecated="not deprecated">
  56081. </method>
  56082. <method name="getNumSlots" return="int"
  56083. abstract="false" native="false" synchronized="false"
  56084. static="false" final="false" visibility="public"
  56085. deprecated="not deprecated">
  56086. </method>
  56087. <method name="getProgress" return="float"
  56088. abstract="false" native="false" synchronized="false"
  56089. static="false" final="false" visibility="public"
  56090. deprecated="not deprecated">
  56091. </method>
  56092. <method name="setProgress"
  56093. abstract="false" native="false" synchronized="false"
  56094. static="false" final="false" visibility="public"
  56095. deprecated="not deprecated">
  56096. <param name="progress" type="float"/>
  56097. </method>
  56098. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  56099. abstract="false" native="false" synchronized="false"
  56100. static="false" final="false" visibility="public"
  56101. deprecated="not deprecated">
  56102. </method>
  56103. <method name="getTaskTracker" return="java.lang.String"
  56104. abstract="false" native="false" synchronized="false"
  56105. static="false" final="false" visibility="public"
  56106. deprecated="not deprecated">
  56107. </method>
  56108. <method name="setTaskTracker"
  56109. abstract="false" native="false" synchronized="false"
  56110. static="false" final="false" visibility="public"
  56111. deprecated="not deprecated">
  56112. <param name="tracker" type="java.lang.String"/>
  56113. </method>
  56114. <method name="setRunState"
  56115. abstract="false" native="false" synchronized="false"
  56116. static="false" final="false" visibility="public"
  56117. deprecated="not deprecated">
  56118. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  56119. </method>
  56120. <method name="getDiagnosticInfo" return="java.lang.String"
  56121. abstract="false" native="false" synchronized="false"
  56122. static="false" final="false" visibility="public"
  56123. deprecated="not deprecated">
  56124. </method>
  56125. <method name="setDiagnosticInfo"
  56126. abstract="false" native="false" synchronized="false"
  56127. static="false" final="false" visibility="public"
  56128. deprecated="not deprecated">
  56129. <param name="info" type="java.lang.String"/>
  56130. </method>
  56131. <method name="getStateString" return="java.lang.String"
  56132. abstract="false" native="false" synchronized="false"
  56133. static="false" final="false" visibility="public"
  56134. deprecated="not deprecated">
  56135. </method>
  56136. <method name="setStateString"
  56137. abstract="false" native="false" synchronized="false"
  56138. static="false" final="false" visibility="public"
  56139. deprecated="not deprecated">
  56140. <param name="stateString" type="java.lang.String"/>
  56141. </method>
  56142. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  56143. abstract="false" native="false" synchronized="false"
  56144. static="false" final="false" visibility="public"
  56145. deprecated="not deprecated">
  56146. <doc>
  56147. <![CDATA[Get the next record range which is going to be processed by Task.
  56148. @return nextRecordRange]]>
  56149. </doc>
  56150. </method>
  56151. <method name="setNextRecordRange"
  56152. abstract="false" native="false" synchronized="false"
  56153. static="false" final="false" visibility="public"
  56154. deprecated="not deprecated">
  56155. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  56156. <doc>
  56157. <![CDATA[Set the next record range which is going to be processed by Task.
  56158. @param nextRecordRange]]>
  56159. </doc>
  56160. </method>
  56161. <method name="getFinishTime" return="long"
  56162. abstract="false" native="false" synchronized="false"
  56163. static="false" final="false" visibility="public"
  56164. deprecated="not deprecated">
  56165. <doc>
  56166. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  56167. are not set before, these are set to finishTime. It takes care of
  56168. the case when shuffle, sort and finish are completed with in the
  56169. heartbeat interval and are not reported separately. if task state is
  56170. TaskStatus.FAILED then finish time represents when the task failed.
  56171. @return finish time of the task.]]>
  56172. </doc>
  56173. </method>
  56174. <method name="getShuffleFinishTime" return="long"
  56175. abstract="false" native="false" synchronized="false"
  56176. static="false" final="false" visibility="public"
  56177. deprecated="not deprecated">
  56178. <doc>
  56179. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  56180. not set due to shuffle/sort/finish phases ending within same
  56181. heartbeat interval, it is set to finish time of next phase i.e. sort
  56182. or task finish when these are set.
  56183. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  56184. it returns approximate shuffle finish time.]]>
  56185. </doc>
  56186. </method>
  56187. <method name="getSortFinishTime" return="long"
  56188. abstract="false" native="false" synchronized="false"
  56189. static="false" final="false" visibility="public"
  56190. deprecated="not deprecated">
  56191. <doc>
  56192. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  56193. due to sort and reduce phase finishing in same heartebat interval, it is
  56194. set to finish time, when finish time is set.
  56195. @return 0 if sort finish time and finish time are not set, else returns sort
  56196. finish time if that is set, else it returns finish time.]]>
  56197. </doc>
  56198. </method>
  56199. <method name="getStartTime" return="long"
  56200. abstract="false" native="false" synchronized="false"
  56201. static="false" final="false" visibility="public"
  56202. deprecated="not deprecated">
  56203. <doc>
  56204. <![CDATA[Get start time of the task.
  56205. @return 0 is start time is not set, else returns start time.]]>
  56206. </doc>
  56207. </method>
  56208. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  56209. abstract="false" native="false" synchronized="false"
  56210. static="false" final="false" visibility="public"
  56211. deprecated="not deprecated">
  56212. <doc>
  56213. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  56214. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  56215. @return .]]>
  56216. </doc>
  56217. </method>
  56218. <method name="getIncludeCounters" return="boolean"
  56219. abstract="false" native="false" synchronized="false"
  56220. static="false" final="false" visibility="public"
  56221. deprecated="not deprecated">
  56222. </method>
  56223. <method name="setIncludeCounters"
  56224. abstract="false" native="false" synchronized="false"
  56225. static="false" final="false" visibility="public"
  56226. deprecated="not deprecated">
  56227. <param name="send" type="boolean"/>
  56228. </method>
  56229. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  56230. abstract="false" native="false" synchronized="false"
  56231. static="false" final="false" visibility="public"
  56232. deprecated="not deprecated">
  56233. <doc>
  56234. <![CDATA[Get task's counters.]]>
  56235. </doc>
  56236. </method>
  56237. <method name="setCounters"
  56238. abstract="false" native="false" synchronized="false"
  56239. static="false" final="false" visibility="public"
  56240. deprecated="not deprecated">
  56241. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  56242. <doc>
  56243. <![CDATA[Set the task's counters.
  56244. @param counters]]>
  56245. </doc>
  56246. </method>
  56247. <method name="getOutputSize" return="long"
  56248. abstract="false" native="false" synchronized="false"
  56249. static="false" final="false" visibility="public"
  56250. deprecated="not deprecated">
  56251. <doc>
  56252. <![CDATA[Returns the number of bytes of output from this map.]]>
  56253. </doc>
  56254. </method>
  56255. <method name="getFetchFailedMaps" return="java.util.List"
  56256. abstract="false" native="false" synchronized="false"
  56257. static="false" final="false" visibility="public"
  56258. deprecated="not deprecated">
  56259. <doc>
  56260. <![CDATA[Get the list of maps from which output-fetches failed.
  56261. @return the list of maps from which output-fetches failed.]]>
  56262. </doc>
  56263. </method>
  56264. <method name="clone" return="java.lang.Object"
  56265. abstract="false" native="false" synchronized="false"
  56266. static="false" final="false" visibility="public"
  56267. deprecated="not deprecated">
  56268. </method>
  56269. <method name="write"
  56270. abstract="false" native="false" synchronized="false"
  56271. static="false" final="false" visibility="public"
  56272. deprecated="not deprecated">
  56273. <param name="out" type="java.io.DataOutput"/>
  56274. <exception name="IOException" type="java.io.IOException"/>
  56275. </method>
  56276. <method name="readFields"
  56277. abstract="false" native="false" synchronized="false"
  56278. static="false" final="false" visibility="public"
  56279. deprecated="not deprecated">
  56280. <param name="in" type="java.io.DataInput"/>
  56281. <exception name="IOException" type="java.io.IOException"/>
  56282. </method>
  56283. <doc>
  56284. <![CDATA[Describes the current status of a task. This is
  56285. not intended to be a comprehensive piece of data.]]>
  56286. </doc>
  56287. </class>
  56288. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  56289. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  56290. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  56291. abstract="false"
  56292. static="true" final="true" visibility="public"
  56293. deprecated="not deprecated">
  56294. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  56295. abstract="false" native="false" synchronized="false"
  56296. static="true" final="false" visibility="public"
  56297. deprecated="not deprecated">
  56298. </method>
  56299. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  56300. abstract="false" native="false" synchronized="false"
  56301. static="true" final="false" visibility="public"
  56302. deprecated="not deprecated">
  56303. <param name="name" type="java.lang.String"/>
  56304. </method>
  56305. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56306. transient="false" volatile="false"
  56307. static="true" final="true" visibility="public"
  56308. deprecated="not deprecated">
  56309. </field>
  56310. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56311. transient="false" volatile="false"
  56312. static="true" final="true" visibility="public"
  56313. deprecated="not deprecated">
  56314. </field>
  56315. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56316. transient="false" volatile="false"
  56317. static="true" final="true" visibility="public"
  56318. deprecated="not deprecated">
  56319. </field>
  56320. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56321. transient="false" volatile="false"
  56322. static="true" final="true" visibility="public"
  56323. deprecated="not deprecated">
  56324. </field>
  56325. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56326. transient="false" volatile="false"
  56327. static="true" final="true" visibility="public"
  56328. deprecated="not deprecated">
  56329. </field>
  56330. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  56331. transient="false" volatile="false"
  56332. static="true" final="true" visibility="public"
  56333. deprecated="not deprecated">
  56334. </field>
  56335. </class>
  56336. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  56337. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  56338. <class name="TaskStatus.State" extends="java.lang.Enum"
  56339. abstract="false"
  56340. static="true" final="true" visibility="public"
  56341. deprecated="not deprecated">
  56342. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  56343. abstract="false" native="false" synchronized="false"
  56344. static="true" final="false" visibility="public"
  56345. deprecated="not deprecated">
  56346. </method>
  56347. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  56348. abstract="false" native="false" synchronized="false"
  56349. static="true" final="false" visibility="public"
  56350. deprecated="not deprecated">
  56351. <param name="name" type="java.lang.String"/>
  56352. </method>
  56353. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  56354. transient="false" volatile="false"
  56355. static="true" final="true" visibility="public"
  56356. deprecated="not deprecated">
  56357. </field>
  56358. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56359. transient="false" volatile="false"
  56360. static="true" final="true" visibility="public"
  56361. deprecated="not deprecated">
  56362. </field>
  56363. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56364. transient="false" volatile="false"
  56365. static="true" final="true" visibility="public"
  56366. deprecated="not deprecated">
  56367. </field>
  56368. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56369. transient="false" volatile="false"
  56370. static="true" final="true" visibility="public"
  56371. deprecated="not deprecated">
  56372. </field>
  56373. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  56374. transient="false" volatile="false"
  56375. static="true" final="true" visibility="public"
  56376. deprecated="not deprecated">
  56377. </field>
  56378. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  56379. transient="false" volatile="false"
  56380. static="true" final="true" visibility="public"
  56381. deprecated="not deprecated">
  56382. </field>
  56383. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  56384. transient="false" volatile="false"
  56385. static="true" final="true" visibility="public"
  56386. deprecated="not deprecated">
  56387. </field>
  56388. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  56389. transient="false" volatile="false"
  56390. static="true" final="true" visibility="public"
  56391. deprecated="not deprecated">
  56392. </field>
  56393. </class>
  56394. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  56395. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  56396. <class name="TaskTracker" extends="java.lang.Object"
  56397. abstract="false"
  56398. static="false" final="false" visibility="public"
  56399. deprecated="not deprecated">
  56400. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  56401. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  56402. <implements name="java.lang.Runnable"/>
  56403. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  56404. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  56405. static="false" final="false" visibility="public"
  56406. deprecated="not deprecated">
  56407. <exception name="IOException" type="java.io.IOException"/>
  56408. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56409. <doc>
  56410. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  56411. </doc>
  56412. </constructor>
  56413. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  56414. abstract="false" native="false" synchronized="false"
  56415. static="false" final="false" visibility="public"
  56416. deprecated="not deprecated">
  56417. </method>
  56418. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  56419. abstract="false" native="false" synchronized="false"
  56420. static="false" final="false" visibility="public"
  56421. deprecated="not deprecated">
  56422. </method>
  56423. <method name="getUserDir" return="java.lang.String"
  56424. abstract="false" native="false" synchronized="false"
  56425. static="true" final="false" visibility="public"
  56426. deprecated="not deprecated">
  56427. <param name="user" type="java.lang.String"/>
  56428. </method>
  56429. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  56430. abstract="false" native="false" synchronized="false"
  56431. static="true" final="false" visibility="public"
  56432. deprecated="not deprecated">
  56433. <param name="user" type="java.lang.String"/>
  56434. </method>
  56435. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  56436. abstract="false" native="false" synchronized="false"
  56437. static="true" final="false" visibility="public"
  56438. deprecated="not deprecated">
  56439. </method>
  56440. <method name="getJobCacheSubdir" return="java.lang.String"
  56441. abstract="false" native="false" synchronized="false"
  56442. static="true" final="false" visibility="public"
  56443. deprecated="not deprecated">
  56444. <param name="user" type="java.lang.String"/>
  56445. </method>
  56446. <method name="getLocalJobDir" return="java.lang.String"
  56447. abstract="false" native="false" synchronized="false"
  56448. static="true" final="false" visibility="public"
  56449. deprecated="not deprecated">
  56450. <param name="user" type="java.lang.String"/>
  56451. <param name="jobid" type="java.lang.String"/>
  56452. </method>
  56453. <method name="getJobJarFile" return="java.lang.String"
  56454. abstract="false" native="false" synchronized="false"
  56455. static="true" final="false" visibility="public"
  56456. deprecated="not deprecated">
  56457. <param name="user" type="java.lang.String"/>
  56458. <param name="jobid" type="java.lang.String"/>
  56459. </method>
  56460. <method name="getLocalTaskDir" return="java.lang.String"
  56461. abstract="false" native="false" synchronized="false"
  56462. static="true" final="false" visibility="public"
  56463. deprecated="not deprecated">
  56464. <param name="user" type="java.lang.String"/>
  56465. <param name="jobid" type="java.lang.String"/>
  56466. <param name="taskid" type="java.lang.String"/>
  56467. </method>
  56468. <method name="getLocalTaskDir" return="java.lang.String"
  56469. abstract="false" native="false" synchronized="false"
  56470. static="true" final="false" visibility="public"
  56471. deprecated="not deprecated">
  56472. <param name="user" type="java.lang.String"/>
  56473. <param name="jobid" type="java.lang.String"/>
  56474. <param name="taskid" type="java.lang.String"/>
  56475. <param name="isCleanupAttempt" type="boolean"/>
  56476. </method>
  56477. <method name="getProtocolVersion" return="long"
  56478. abstract="false" native="false" synchronized="false"
  56479. static="false" final="false" visibility="public"
  56480. deprecated="not deprecated">
  56481. <param name="protocol" type="java.lang.String"/>
  56482. <param name="clientVersion" type="long"/>
  56483. <exception name="IOException" type="java.io.IOException"/>
  56484. </method>
  56485. <method name="cleanupStorage"
  56486. abstract="false" native="false" synchronized="false"
  56487. static="false" final="false" visibility="public"
  56488. deprecated="not deprecated">
  56489. <exception name="IOException" type="java.io.IOException"/>
  56490. <doc>
  56491. <![CDATA[Removes all contents of temporary storage. Called upon
  56492. startup, to remove any leftovers from previous run.]]>
  56493. </doc>
  56494. </method>
  56495. <method name="launchTaskForJob"
  56496. abstract="false" native="false" synchronized="false"
  56497. static="false" final="false" visibility="protected"
  56498. deprecated="not deprecated">
  56499. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  56500. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  56501. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  56502. <exception name="IOException" type="java.io.IOException"/>
  56503. </method>
  56504. <method name="shutdown"
  56505. abstract="false" native="false" synchronized="true"
  56506. static="false" final="false" visibility="public"
  56507. deprecated="not deprecated">
  56508. <exception name="IOException" type="java.io.IOException"/>
  56509. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56510. </method>
  56511. <method name="close"
  56512. abstract="false" native="false" synchronized="true"
  56513. static="false" final="false" visibility="public"
  56514. deprecated="not deprecated">
  56515. <exception name="IOException" type="java.io.IOException"/>
  56516. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  56517. <doc>
  56518. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  56519. any running tasks or threads, and cleanup disk space. A new TaskTracker
  56520. within the same process space might be restarted, so everything must be
  56521. clean.
  56522. @throws InterruptedException]]>
  56523. </doc>
  56524. </method>
  56525. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  56526. abstract="false" native="false" synchronized="false"
  56527. static="false" final="false" visibility="public"
  56528. deprecated="not deprecated">
  56529. <doc>
  56530. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  56531. for locating remote files.]]>
  56532. </doc>
  56533. </method>
  56534. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  56535. abstract="false" native="false" synchronized="true"
  56536. static="false" final="false" visibility="public"
  56537. deprecated="not deprecated">
  56538. <doc>
  56539. <![CDATA[Return the port at which the tasktracker bound to]]>
  56540. </doc>
  56541. </method>
  56542. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  56543. abstract="false" native="false" synchronized="false"
  56544. static="false" final="false" visibility="public"
  56545. deprecated="not deprecated">
  56546. </method>
  56547. <method name="run"
  56548. abstract="false" native="false" synchronized="false"
  56549. static="false" final="false" visibility="public"
  56550. deprecated="not deprecated">
  56551. <doc>
  56552. <![CDATA[The server retry loop.
  56553. This while-loop attempts to connect to the JobTracker. It only
  56554. loops when the old TaskTracker has gone bad (its state is
  56555. stale somehow) and we need to reinitialize everything.]]>
  56556. </doc>
  56557. </method>
  56558. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  56559. abstract="false" native="false" synchronized="true"
  56560. static="false" final="false" visibility="public"
  56561. deprecated="not deprecated">
  56562. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  56563. <exception name="IOException" type="java.io.IOException"/>
  56564. <doc>
  56565. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  56566. </doc>
  56567. </method>
  56568. <method name="statusUpdate" return="boolean"
  56569. abstract="false" native="false" synchronized="true"
  56570. static="false" final="false" visibility="public"
  56571. deprecated="not deprecated">
  56572. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56573. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  56574. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56575. <exception name="IOException" type="java.io.IOException"/>
  56576. <doc>
  56577. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  56578. </doc>
  56579. </method>
  56580. <method name="reportDiagnosticInfo"
  56581. abstract="false" native="false" synchronized="true"
  56582. static="false" final="false" visibility="public"
  56583. deprecated="not deprecated">
  56584. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56585. <param name="info" type="java.lang.String"/>
  56586. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56587. <exception name="IOException" type="java.io.IOException"/>
  56588. <doc>
  56589. <![CDATA[Called when the task dies before completion, and we want to report back
  56590. diagnostic info]]>
  56591. </doc>
  56592. </method>
  56593. <method name="reportNextRecordRange"
  56594. abstract="false" native="false" synchronized="true"
  56595. static="false" final="false" visibility="public"
  56596. deprecated="not deprecated">
  56597. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56598. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  56599. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56600. <exception name="IOException" type="java.io.IOException"/>
  56601. </method>
  56602. <method name="ping" return="boolean"
  56603. abstract="false" native="false" synchronized="true"
  56604. static="false" final="false" visibility="public"
  56605. deprecated="not deprecated">
  56606. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56607. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56608. <exception name="IOException" type="java.io.IOException"/>
  56609. <doc>
  56610. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  56611. </doc>
  56612. </method>
  56613. <method name="commitPending"
  56614. abstract="false" native="false" synchronized="true"
  56615. static="false" final="false" visibility="public"
  56616. deprecated="not deprecated">
  56617. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56618. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  56619. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56620. <exception name="IOException" type="java.io.IOException"/>
  56621. <doc>
  56622. <![CDATA[Task is reporting that it is in commit_pending
  56623. and it is waiting for the commit Response]]>
  56624. </doc>
  56625. </method>
  56626. <method name="canCommit" return="boolean"
  56627. abstract="false" native="false" synchronized="true"
  56628. static="false" final="false" visibility="public"
  56629. deprecated="not deprecated">
  56630. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56631. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56632. <exception name="IOException" type="java.io.IOException"/>
  56633. <doc>
  56634. <![CDATA[Child checking whether it can commit]]>
  56635. </doc>
  56636. </method>
  56637. <method name="done"
  56638. abstract="false" native="false" synchronized="true"
  56639. static="false" final="false" visibility="public"
  56640. deprecated="not deprecated">
  56641. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56642. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56643. <exception name="IOException" type="java.io.IOException"/>
  56644. <doc>
  56645. <![CDATA[The task is done.]]>
  56646. </doc>
  56647. </method>
  56648. <method name="shuffleError"
  56649. abstract="false" native="false" synchronized="true"
  56650. static="false" final="false" visibility="public"
  56651. deprecated="not deprecated">
  56652. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56653. <param name="message" type="java.lang.String"/>
  56654. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56655. <exception name="IOException" type="java.io.IOException"/>
  56656. <doc>
  56657. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  56658. </doc>
  56659. </method>
  56660. <method name="fsError"
  56661. abstract="false" native="false" synchronized="true"
  56662. static="false" final="false" visibility="public"
  56663. deprecated="not deprecated">
  56664. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56665. <param name="message" type="java.lang.String"/>
  56666. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56667. <exception name="IOException" type="java.io.IOException"/>
  56668. <doc>
  56669. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  56670. </doc>
  56671. </method>
  56672. <method name="fatalError"
  56673. abstract="false" native="false" synchronized="true"
  56674. static="false" final="false" visibility="public"
  56675. deprecated="not deprecated">
  56676. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56677. <param name="msg" type="java.lang.String"/>
  56678. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56679. <exception name="IOException" type="java.io.IOException"/>
  56680. <doc>
  56681. <![CDATA[A child task had a fatal error. Kill the task.]]>
  56682. </doc>
  56683. </method>
  56684. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  56685. abstract="false" native="false" synchronized="true"
  56686. static="false" final="false" visibility="public"
  56687. deprecated="not deprecated">
  56688. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  56689. <param name="fromEventId" type="int"/>
  56690. <param name="maxLocs" type="int"/>
  56691. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56692. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  56693. <exception name="IOException" type="java.io.IOException"/>
  56694. </method>
  56695. <method name="mapOutputLost"
  56696. abstract="false" native="false" synchronized="true"
  56697. static="false" final="false" visibility="public"
  56698. deprecated="not deprecated">
  56699. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56700. <param name="errorMsg" type="java.lang.String"/>
  56701. <exception name="IOException" type="java.io.IOException"/>
  56702. <doc>
  56703. <![CDATA[A completed map task's output has been lost.]]>
  56704. </doc>
  56705. </method>
  56706. <method name="isIdle" return="boolean"
  56707. abstract="false" native="false" synchronized="true"
  56708. static="false" final="false" visibility="public"
  56709. deprecated="not deprecated">
  56710. <doc>
  56711. <![CDATA[Is this task tracker idle?
  56712. @return has this task tracker finished and cleaned up all of its tasks?]]>
  56713. </doc>
  56714. </method>
  56715. <method name="main"
  56716. abstract="false" native="false" synchronized="false"
  56717. static="true" final="false" visibility="public"
  56718. deprecated="not deprecated">
  56719. <param name="argv" type="java.lang.String[]"/>
  56720. <exception name="Exception" type="java.lang.Exception"/>
  56721. <doc>
  56722. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  56723. </doc>
  56724. </method>
  56725. <method name="isTaskMemoryManagerEnabled" return="boolean"
  56726. abstract="false" native="false" synchronized="false"
  56727. static="false" final="false" visibility="public"
  56728. deprecated="not deprecated">
  56729. <doc>
  56730. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  56731. @return true if enabled, false otherwise.]]>
  56732. </doc>
  56733. </method>
  56734. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  56735. abstract="false" native="false" synchronized="false"
  56736. static="false" final="false" visibility="public"
  56737. deprecated="not deprecated">
  56738. </method>
  56739. <method name="getHostname" return="java.lang.String"
  56740. abstract="false" native="false" synchronized="false"
  56741. static="false" final="false" visibility="public"
  56742. deprecated="not deprecated">
  56743. </method>
  56744. <method name="getVersion" return="java.lang.String"
  56745. abstract="false" native="false" synchronized="false"
  56746. static="false" final="false" visibility="public"
  56747. deprecated="not deprecated">
  56748. </method>
  56749. <method name="getConfigVersion" return="java.lang.String"
  56750. abstract="false" native="false" synchronized="false"
  56751. static="false" final="false" visibility="public"
  56752. deprecated="not deprecated">
  56753. </method>
  56754. <method name="getJobTrackerUrl" return="java.lang.String"
  56755. abstract="false" native="false" synchronized="false"
  56756. static="false" final="false" visibility="public"
  56757. deprecated="not deprecated">
  56758. </method>
  56759. <method name="getRpcPort" return="int"
  56760. abstract="false" native="false" synchronized="false"
  56761. static="false" final="false" visibility="public"
  56762. deprecated="not deprecated">
  56763. </method>
  56764. <method name="getHttpPort" return="int"
  56765. abstract="false" native="false" synchronized="false"
  56766. static="false" final="false" visibility="public"
  56767. deprecated="not deprecated">
  56768. </method>
  56769. <method name="isHealthy" return="boolean"
  56770. abstract="false" native="false" synchronized="false"
  56771. static="false" final="false" visibility="public"
  56772. deprecated="not deprecated">
  56773. </method>
  56774. <method name="getTasksInfoJson" return="java.lang.String"
  56775. abstract="false" native="false" synchronized="false"
  56776. static="false" final="false" visibility="public"
  56777. deprecated="not deprecated">
  56778. </method>
  56779. <method name="updatePrivateDistributedCacheSizes"
  56780. abstract="false" native="false" synchronized="false"
  56781. static="false" final="false" visibility="public"
  56782. deprecated="not deprecated">
  56783. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  56784. <param name="sizes" type="long[]"/>
  56785. <exception name="IOException" type="java.io.IOException"/>
  56786. </method>
  56787. <field name="LOG" type="org.apache.commons.logging.Log"
  56788. transient="false" volatile="false"
  56789. static="true" final="true" visibility="public"
  56790. deprecated="not deprecated">
  56791. </field>
  56792. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  56793. transient="false" volatile="false"
  56794. static="true" final="true" visibility="public"
  56795. deprecated="not deprecated">
  56796. </field>
  56797. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  56798. transient="false" volatile="false"
  56799. static="true" final="true" visibility="public"
  56800. deprecated="not deprecated">
  56801. </field>
  56802. <field name="SUBDIR" type="java.lang.String"
  56803. transient="false" volatile="false"
  56804. static="true" final="true" visibility="public"
  56805. deprecated="not deprecated">
  56806. </field>
  56807. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  56808. transient="false" volatile="false"
  56809. static="true" final="true" visibility="public"
  56810. deprecated="not deprecated">
  56811. </field>
  56812. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  56813. transient="false" volatile="false"
  56814. static="true" final="true" visibility="public"
  56815. deprecated="not deprecated">
  56816. </field>
  56817. <field name="TT_USER_NAME" type="java.lang.String"
  56818. transient="false" volatile="false"
  56819. static="true" final="true" visibility="public"
  56820. deprecated="not deprecated">
  56821. </field>
  56822. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  56823. transient="false" volatile="false"
  56824. static="true" final="true" visibility="public"
  56825. deprecated="not deprecated">
  56826. </field>
  56827. <doc>
  56828. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  56829. in a networked environment. It contacts the JobTracker
  56830. for Task assignments and reporting results.]]>
  56831. </doc>
  56832. </class>
  56833. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  56834. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  56835. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  56836. abstract="false"
  56837. static="true" final="false" visibility="public"
  56838. deprecated="not deprecated">
  56839. <constructor name="TaskTracker.MapOutputServlet"
  56840. static="false" final="false" visibility="public"
  56841. deprecated="not deprecated">
  56842. </constructor>
  56843. <method name="doGet"
  56844. abstract="false" native="false" synchronized="false"
  56845. static="false" final="false" visibility="public"
  56846. deprecated="not deprecated">
  56847. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  56848. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  56849. <exception name="ServletException" type="javax.servlet.ServletException"/>
  56850. <exception name="IOException" type="java.io.IOException"/>
  56851. </method>
  56852. <method name="checkException"
  56853. abstract="false" native="false" synchronized="false"
  56854. static="false" final="false" visibility="protected"
  56855. deprecated="not deprecated">
  56856. <param name="ie" type="java.io.IOException"/>
  56857. <param name="exceptionMsgRegex" type="java.lang.String"/>
  56858. <param name="exceptionStackRegex" type="java.lang.String"/>
  56859. <param name="shuffleMetrics" type="org.apache.hadoop.mapred.ShuffleServerInstrumentation"/>
  56860. </method>
  56861. <doc>
  56862. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  56863. to other nodes.]]>
  56864. </doc>
  56865. </class>
  56866. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  56867. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  56868. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  56869. abstract="false"
  56870. static="false" final="false" visibility="public"
  56871. deprecated="not deprecated">
  56872. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  56873. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  56874. static="false" final="false" visibility="public"
  56875. deprecated="not deprecated">
  56876. </constructor>
  56877. <method name="getMetrics"
  56878. abstract="false" native="false" synchronized="false"
  56879. static="false" final="false" visibility="public"
  56880. deprecated="not deprecated">
  56881. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  56882. <param name="all" type="boolean"/>
  56883. </method>
  56884. <method name="completeTask"
  56885. abstract="false" native="false" synchronized="false"
  56886. static="false" final="false" visibility="public"
  56887. deprecated="not deprecated">
  56888. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56889. </method>
  56890. <method name="timedoutTask"
  56891. abstract="false" native="false" synchronized="false"
  56892. static="false" final="false" visibility="public"
  56893. deprecated="not deprecated">
  56894. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56895. </method>
  56896. <method name="taskFailedPing"
  56897. abstract="false" native="false" synchronized="false"
  56898. static="false" final="false" visibility="public"
  56899. deprecated="not deprecated">
  56900. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  56901. </method>
  56902. <doc>
  56903. <![CDATA[Instrumentation for metrics v2]]>
  56904. </doc>
  56905. </class>
  56906. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  56907. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  56908. <interface name="TaskTrackerMXBean" abstract="true"
  56909. static="false" final="false" visibility="public"
  56910. deprecated="not deprecated">
  56911. <method name="getHostname" return="java.lang.String"
  56912. abstract="false" native="false" synchronized="false"
  56913. static="false" final="false" visibility="public"
  56914. deprecated="not deprecated">
  56915. <doc>
  56916. <![CDATA[@return the hostname of the tasktracker]]>
  56917. </doc>
  56918. </method>
  56919. <method name="getVersion" return="java.lang.String"
  56920. abstract="false" native="false" synchronized="false"
  56921. static="false" final="false" visibility="public"
  56922. deprecated="not deprecated">
  56923. <doc>
  56924. <![CDATA[@return the version of the code base]]>
  56925. </doc>
  56926. </method>
  56927. <method name="getConfigVersion" return="java.lang.String"
  56928. abstract="false" native="false" synchronized="false"
  56929. static="false" final="false" visibility="public"
  56930. deprecated="not deprecated">
  56931. <doc>
  56932. <![CDATA[@return the config version (from a config properties)]]>
  56933. </doc>
  56934. </method>
  56935. <method name="getJobTrackerUrl" return="java.lang.String"
  56936. abstract="false" native="false" synchronized="false"
  56937. static="false" final="false" visibility="public"
  56938. deprecated="not deprecated">
  56939. <doc>
  56940. <![CDATA[@return the URL of the jobtracker]]>
  56941. </doc>
  56942. </method>
  56943. <method name="getRpcPort" return="int"
  56944. abstract="false" native="false" synchronized="false"
  56945. static="false" final="false" visibility="public"
  56946. deprecated="not deprecated">
  56947. <doc>
  56948. <![CDATA[@return the RPC port of the tasktracker]]>
  56949. </doc>
  56950. </method>
  56951. <method name="getHttpPort" return="int"
  56952. abstract="false" native="false" synchronized="false"
  56953. static="false" final="false" visibility="public"
  56954. deprecated="not deprecated">
  56955. <doc>
  56956. <![CDATA[@return the HTTP port of the tasktracker]]>
  56957. </doc>
  56958. </method>
  56959. <method name="isHealthy" return="boolean"
  56960. abstract="false" native="false" synchronized="false"
  56961. static="false" final="false" visibility="public"
  56962. deprecated="not deprecated">
  56963. <doc>
  56964. <![CDATA[@return the health status of the tasktracker]]>
  56965. </doc>
  56966. </method>
  56967. <method name="getTasksInfoJson" return="java.lang.String"
  56968. abstract="false" native="false" synchronized="false"
  56969. static="false" final="false" visibility="public"
  56970. deprecated="not deprecated">
  56971. <doc>
  56972. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  56973. </doc>
  56974. </method>
  56975. <doc>
  56976. <![CDATA[MXBean interface for TaskTracker]]>
  56977. </doc>
  56978. </interface>
  56979. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  56980. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  56981. <class name="TaskTrackerStatus" extends="java.lang.Object"
  56982. abstract="false"
  56983. static="false" final="false" visibility="public"
  56984. deprecated="not deprecated">
  56985. <implements name="org.apache.hadoop.io.Writable"/>
  56986. <constructor name="TaskTrackerStatus"
  56987. static="false" final="false" visibility="public"
  56988. deprecated="not deprecated">
  56989. </constructor>
  56990. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int"
  56991. static="false" final="false" visibility="public"
  56992. deprecated="not deprecated">
  56993. </constructor>
  56994. <method name="getTrackerName" return="java.lang.String"
  56995. abstract="false" native="false" synchronized="false"
  56996. static="false" final="false" visibility="public"
  56997. deprecated="not deprecated">
  56998. </method>
  56999. <method name="getHost" return="java.lang.String"
  57000. abstract="false" native="false" synchronized="false"
  57001. static="false" final="false" visibility="public"
  57002. deprecated="not deprecated">
  57003. </method>
  57004. <method name="getHttpPort" return="int"
  57005. abstract="false" native="false" synchronized="false"
  57006. static="false" final="false" visibility="public"
  57007. deprecated="not deprecated">
  57008. <doc>
  57009. <![CDATA[Get the port that this task tracker is serving http requests on.
  57010. @return the http port]]>
  57011. </doc>
  57012. </method>
  57013. <method name="getFailures" return="int"
  57014. abstract="false" native="false" synchronized="false"
  57015. static="false" final="false" visibility="public"
  57016. deprecated="not deprecated">
  57017. <doc>
  57018. <![CDATA[Get the number of tasks that have failed on this tracker.
  57019. @return The number of failed tasks]]>
  57020. </doc>
  57021. </method>
  57022. <method name="getTaskReports" return="java.util.List"
  57023. abstract="false" native="false" synchronized="false"
  57024. static="false" final="false" visibility="public"
  57025. deprecated="not deprecated">
  57026. <doc>
  57027. <![CDATA[Get the current tasks at the TaskTracker.
  57028. Tasks are tracked by a {@link TaskStatus} object.
  57029. @return a list of {@link TaskStatus} representing
  57030. the current tasks at the TaskTracker.]]>
  57031. </doc>
  57032. </method>
  57033. <method name="countMapTasks" return="int"
  57034. abstract="false" native="false" synchronized="false"
  57035. static="false" final="false" visibility="public"
  57036. deprecated="not deprecated">
  57037. <doc>
  57038. <![CDATA[Get the number of running map tasks.
  57039. @return the number of running map tasks]]>
  57040. </doc>
  57041. </method>
  57042. <method name="countOccupiedMapSlots" return="int"
  57043. abstract="false" native="false" synchronized="false"
  57044. static="false" final="false" visibility="public"
  57045. deprecated="not deprecated">
  57046. <doc>
  57047. <![CDATA[Get the number of occupied map slots.
  57048. @return the number of occupied map slots]]>
  57049. </doc>
  57050. </method>
  57051. <method name="getAvailableMapSlots" return="int"
  57052. abstract="false" native="false" synchronized="false"
  57053. static="false" final="false" visibility="public"
  57054. deprecated="not deprecated">
  57055. <doc>
  57056. <![CDATA[Get available map slots.
  57057. @return available map slots]]>
  57058. </doc>
  57059. </method>
  57060. <method name="countReduceTasks" return="int"
  57061. abstract="false" native="false" synchronized="false"
  57062. static="false" final="false" visibility="public"
  57063. deprecated="not deprecated">
  57064. <doc>
  57065. <![CDATA[Get the number of running reduce tasks.
  57066. @return the number of running reduce tasks]]>
  57067. </doc>
  57068. </method>
  57069. <method name="countOccupiedReduceSlots" return="int"
  57070. abstract="false" native="false" synchronized="false"
  57071. static="false" final="false" visibility="public"
  57072. deprecated="not deprecated">
  57073. <doc>
  57074. <![CDATA[Get the number of occupied reduce slots.
  57075. @return the number of occupied reduce slots]]>
  57076. </doc>
  57077. </method>
  57078. <method name="getAvailableReduceSlots" return="int"
  57079. abstract="false" native="false" synchronized="false"
  57080. static="false" final="false" visibility="public"
  57081. deprecated="not deprecated">
  57082. <doc>
  57083. <![CDATA[Get available reduce slots.
  57084. @return available reduce slots]]>
  57085. </doc>
  57086. </method>
  57087. <method name="getLastSeen" return="long"
  57088. abstract="false" native="false" synchronized="false"
  57089. static="false" final="false" visibility="public"
  57090. deprecated="not deprecated">
  57091. </method>
  57092. <method name="setLastSeen"
  57093. abstract="false" native="false" synchronized="false"
  57094. static="false" final="false" visibility="public"
  57095. deprecated="not deprecated">
  57096. <param name="lastSeen" type="long"/>
  57097. </method>
  57098. <method name="getMaxMapSlots" return="int"
  57099. abstract="false" native="false" synchronized="false"
  57100. static="false" final="false" visibility="public"
  57101. deprecated="not deprecated">
  57102. <doc>
  57103. <![CDATA[Get the maximum map slots for this node.
  57104. @return the maximum map slots for this node]]>
  57105. </doc>
  57106. </method>
  57107. <method name="getMaxReduceSlots" return="int"
  57108. abstract="false" native="false" synchronized="false"
  57109. static="false" final="false" visibility="public"
  57110. deprecated="not deprecated">
  57111. <doc>
  57112. <![CDATA[Get the maximum reduce slots for this node.
  57113. @return the maximum reduce slots for this node]]>
  57114. </doc>
  57115. </method>
  57116. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  57117. abstract="false" native="false" synchronized="false"
  57118. static="false" final="false" visibility="public"
  57119. deprecated="not deprecated">
  57120. <doc>
  57121. <![CDATA[Returns health status of the task tracker.
  57122. @return health status of Task Tracker]]>
  57123. </doc>
  57124. </method>
  57125. <method name="write"
  57126. abstract="false" native="false" synchronized="false"
  57127. static="false" final="false" visibility="public"
  57128. deprecated="not deprecated">
  57129. <param name="out" type="java.io.DataOutput"/>
  57130. <exception name="IOException" type="java.io.IOException"/>
  57131. </method>
  57132. <method name="readFields"
  57133. abstract="false" native="false" synchronized="false"
  57134. static="false" final="false" visibility="public"
  57135. deprecated="not deprecated">
  57136. <param name="in" type="java.io.DataInput"/>
  57137. <exception name="IOException" type="java.io.IOException"/>
  57138. </method>
  57139. <field name="LOG" type="org.apache.commons.logging.Log"
  57140. transient="false" volatile="false"
  57141. static="true" final="true" visibility="public"
  57142. deprecated="not deprecated">
  57143. </field>
  57144. <field name="UNAVAILABLE" type="int"
  57145. transient="false" volatile="false"
  57146. static="true" final="true" visibility="public"
  57147. deprecated="not deprecated">
  57148. </field>
  57149. <doc>
  57150. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  57151. info on a TaskTracker. The JobTracker maintains a set
  57152. of the most recent TaskTrackerStatus objects for each
  57153. unique TaskTracker it knows about.
  57154. This is NOT a public interface!]]>
  57155. </doc>
  57156. </class>
  57157. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  57158. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  57159. <interface name="TaskUmbilicalProtocol" abstract="true"
  57160. static="false" final="false" visibility="public"
  57161. deprecated="not deprecated">
  57162. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  57163. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  57164. abstract="false" native="false" synchronized="false"
  57165. static="false" final="false" visibility="public"
  57166. deprecated="not deprecated">
  57167. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  57168. <exception name="IOException" type="java.io.IOException"/>
  57169. <doc>
  57170. <![CDATA[Called when a child task process starts, to get its task.
  57171. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  57172. launched it
  57173. @return Task object
  57174. @throws IOException]]>
  57175. </doc>
  57176. </method>
  57177. <method name="statusUpdate" return="boolean"
  57178. abstract="false" native="false" synchronized="false"
  57179. static="false" final="false" visibility="public"
  57180. deprecated="not deprecated">
  57181. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57182. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57183. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57184. <exception name="IOException" type="java.io.IOException"/>
  57185. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57186. <doc>
  57187. <![CDATA[Report child's progress to parent.
  57188. @param taskId task-id of the child
  57189. @param taskStatus status of the child
  57190. @param jvmContext context the jvmContext running the task.
  57191. @throws IOException
  57192. @throws InterruptedException
  57193. @return True if the task is known]]>
  57194. </doc>
  57195. </method>
  57196. <method name="reportDiagnosticInfo"
  57197. abstract="false" native="false" synchronized="false"
  57198. static="false" final="false" visibility="public"
  57199. deprecated="not deprecated">
  57200. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57201. <param name="trace" type="java.lang.String"/>
  57202. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57203. <exception name="IOException" type="java.io.IOException"/>
  57204. <doc>
  57205. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  57206. such messages are held in the job tracker.
  57207. @param taskid the id of the task involved
  57208. @param trace the text to report
  57209. @param jvmContext context the jvmContext running the task.]]>
  57210. </doc>
  57211. </method>
  57212. <method name="reportNextRecordRange"
  57213. abstract="false" native="false" synchronized="false"
  57214. static="false" final="false" visibility="public"
  57215. deprecated="not deprecated">
  57216. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57217. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  57218. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57219. <exception name="IOException" type="java.io.IOException"/>
  57220. <doc>
  57221. <![CDATA[Report the record range which is going to process next by the Task.
  57222. @param taskid the id of the task involved
  57223. @param range the range of record sequence nos
  57224. @param jvmContext context the jvmContext running the task.
  57225. @throws IOException]]>
  57226. </doc>
  57227. </method>
  57228. <method name="ping" return="boolean"
  57229. abstract="false" native="false" synchronized="false"
  57230. static="false" final="false" visibility="public"
  57231. deprecated="not deprecated">
  57232. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57233. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57234. <exception name="IOException" type="java.io.IOException"/>
  57235. <doc>
  57236. <![CDATA[Periodically called by child to check if parent is still alive.
  57237. @param taskid the id of the task involved
  57238. @param jvmContext context the jvmContext running the task.
  57239. @return True if the task is known]]>
  57240. </doc>
  57241. </method>
  57242. <method name="done"
  57243. abstract="false" native="false" synchronized="false"
  57244. static="false" final="false" visibility="public"
  57245. deprecated="not deprecated">
  57246. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57247. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57248. <exception name="IOException" type="java.io.IOException"/>
  57249. <doc>
  57250. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  57251. the task process exits without calling this.
  57252. @param taskid task's id
  57253. @param jvmContext context the jvmContext running the task.]]>
  57254. </doc>
  57255. </method>
  57256. <method name="commitPending"
  57257. abstract="false" native="false" synchronized="false"
  57258. static="false" final="false" visibility="public"
  57259. deprecated="not deprecated">
  57260. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57261. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  57262. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57263. <exception name="IOException" type="java.io.IOException"/>
  57264. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57265. <doc>
  57266. <![CDATA[Report that the task is complete, but its commit is pending.
  57267. @param taskId task's id
  57268. @param taskStatus status of the child
  57269. @param jvmContext context the jvmContext running the task.
  57270. @throws IOException]]>
  57271. </doc>
  57272. </method>
  57273. <method name="canCommit" return="boolean"
  57274. abstract="false" native="false" synchronized="false"
  57275. static="false" final="false" visibility="public"
  57276. deprecated="not deprecated">
  57277. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57278. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57279. <exception name="IOException" type="java.io.IOException"/>
  57280. <doc>
  57281. <![CDATA[Polling to know whether the task can go-ahead with commit
  57282. @param taskid
  57283. @param jvmContext context the jvmContext running the task.
  57284. @return true/false
  57285. @throws IOException]]>
  57286. </doc>
  57287. </method>
  57288. <method name="shuffleError"
  57289. abstract="false" native="false" synchronized="false"
  57290. static="false" final="false" visibility="public"
  57291. deprecated="not deprecated">
  57292. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57293. <param name="message" type="java.lang.String"/>
  57294. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57295. <exception name="IOException" type="java.io.IOException"/>
  57296. <doc>
  57297. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  57298. </doc>
  57299. </method>
  57300. <method name="fsError"
  57301. abstract="false" native="false" synchronized="false"
  57302. static="false" final="false" visibility="public"
  57303. deprecated="not deprecated">
  57304. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57305. <param name="message" type="java.lang.String"/>
  57306. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57307. <exception name="IOException" type="java.io.IOException"/>
  57308. <doc>
  57309. <![CDATA[Report that the task encounted a local filesystem error.]]>
  57310. </doc>
  57311. </method>
  57312. <method name="fatalError"
  57313. abstract="false" native="false" synchronized="false"
  57314. static="false" final="false" visibility="public"
  57315. deprecated="not deprecated">
  57316. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57317. <param name="message" type="java.lang.String"/>
  57318. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57319. <exception name="IOException" type="java.io.IOException"/>
  57320. <doc>
  57321. <![CDATA[Report that the task encounted a fatal error.]]>
  57322. </doc>
  57323. </method>
  57324. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  57325. abstract="false" native="false" synchronized="false"
  57326. static="false" final="false" visibility="public"
  57327. deprecated="not deprecated">
  57328. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  57329. <param name="fromIndex" type="int"/>
  57330. <param name="maxLocs" type="int"/>
  57331. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57332. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57333. <exception name="IOException" type="java.io.IOException"/>
  57334. <doc>
  57335. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  57336. Returns an update centered around the map-task-completion-events.
  57337. The update also piggybacks the information whether the events copy at the
  57338. task-tracker has changed or not. This will trigger some action at the
  57339. child-process.
  57340. @param jobId the reducer job id
  57341. @param fromIndex the index starting from which the locations should be
  57342. fetched
  57343. @param maxLocs the max number of locations to fetch
  57344. @param id The attempt id of the task that is trying to communicate
  57345. @return A {@link MapTaskCompletionEventsUpdate}]]>
  57346. </doc>
  57347. </method>
  57348. <method name="updatePrivateDistributedCacheSizes"
  57349. abstract="false" native="false" synchronized="false"
  57350. static="false" final="false" visibility="public"
  57351. deprecated="not deprecated">
  57352. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  57353. <param name="sizes" type="long[]"/>
  57354. <exception name="IOException" type="java.io.IOException"/>
  57355. <doc>
  57356. <![CDATA[The job initializer needs to report the sizes of the archive
  57357. objects in the private distributed cache.
  57358. @param jobId the job to update
  57359. @param sizes the array of sizes that were computed
  57360. @throws IOException]]>
  57361. </doc>
  57362. </method>
  57363. <field name="versionID" type="long"
  57364. transient="false" volatile="false"
  57365. static="true" final="true" visibility="public"
  57366. deprecated="not deprecated">
  57367. <doc>
  57368. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  57369. Changed version to 3 to have progress() return a boolean
  57370. Changed the version to 4, since we have replaced
  57371. TaskUmbilicalProtocol.progress(String, float, String,
  57372. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  57373. with statusUpdate(String, TaskStatus)
  57374. Version 5 changed counters representation for HADOOP-2248
  57375. Version 6 changes the TaskStatus representation for HADOOP-2208
  57376. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  57377. or not the task's output needs to be promoted.
  57378. Version 8 changes {job|tip|task}id's to use their corresponding
  57379. objects rather than strings.
  57380. Version 9 changes the counter representation for HADOOP-1915
  57381. Version 10 changed the TaskStatus format and added reportNextRecordRange
  57382. for HADOOP-153
  57383. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  57384. Version 12 getMapCompletionEvents() now also indicates if the events are
  57385. stale or not. Hence the return type is a class that
  57386. encapsulates the events and whether to reset events index.
  57387. Version 13 changed the getTask method signature for HADOOP-249
  57388. Version 14 changed the getTask method signature for HADOOP-4232
  57389. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  57390. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  57391. Version 17 Change in signature of getTask() for HADOOP-5488
  57392. Version 18 Added fatalError for child to communicate fatal errors to TT
  57393. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  57394. </doc>
  57395. </field>
  57396. <doc>
  57397. <![CDATA[Protocol that task child process uses to contact its parent process. The
  57398. parent is a daemon which which polls the central master for a new map or
  57399. reduce task and runs it as a child process. All communication between child
  57400. and parent is via this protocol.]]>
  57401. </doc>
  57402. </interface>
  57403. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  57404. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  57405. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  57406. abstract="false"
  57407. static="false" final="false" visibility="public"
  57408. deprecated="not deprecated">
  57409. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  57410. <constructor name="TextInputFormat"
  57411. static="false" final="false" visibility="public"
  57412. deprecated="not deprecated">
  57413. </constructor>
  57414. <method name="configure"
  57415. abstract="false" native="false" synchronized="false"
  57416. static="false" final="false" visibility="public"
  57417. deprecated="not deprecated">
  57418. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57419. </method>
  57420. <method name="isSplitable" return="boolean"
  57421. abstract="false" native="false" synchronized="false"
  57422. static="false" final="false" visibility="protected"
  57423. deprecated="not deprecated">
  57424. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  57425. <param name="file" type="org.apache.hadoop.fs.Path"/>
  57426. </method>
  57427. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  57428. abstract="false" native="false" synchronized="false"
  57429. static="false" final="false" visibility="public"
  57430. deprecated="not deprecated">
  57431. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  57432. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57433. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57434. <exception name="IOException" type="java.io.IOException"/>
  57435. </method>
  57436. <doc>
  57437. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  57438. Either linefeed or carriage-return are used to signal end of line. Keys are
  57439. the position in the file, and values are the line of text..]]>
  57440. </doc>
  57441. </class>
  57442. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  57443. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  57444. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  57445. abstract="false"
  57446. static="false" final="false" visibility="public"
  57447. deprecated="not deprecated">
  57448. <constructor name="TextOutputFormat"
  57449. static="false" final="false" visibility="public"
  57450. deprecated="not deprecated">
  57451. </constructor>
  57452. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  57453. abstract="false" native="false" synchronized="false"
  57454. static="false" final="false" visibility="public"
  57455. deprecated="not deprecated">
  57456. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  57457. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57458. <param name="name" type="java.lang.String"/>
  57459. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  57460. <exception name="IOException" type="java.io.IOException"/>
  57461. </method>
  57462. <doc>
  57463. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  57464. </doc>
  57465. </class>
  57466. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  57467. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  57468. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  57469. abstract="false"
  57470. static="true" final="false" visibility="protected"
  57471. deprecated="not deprecated">
  57472. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  57473. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  57474. static="false" final="false" visibility="public"
  57475. deprecated="not deprecated">
  57476. </constructor>
  57477. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  57478. static="false" final="false" visibility="public"
  57479. deprecated="not deprecated">
  57480. </constructor>
  57481. <method name="write"
  57482. abstract="false" native="false" synchronized="true"
  57483. static="false" final="false" visibility="public"
  57484. deprecated="not deprecated">
  57485. <param name="key" type="java.lang.Object"/>
  57486. <param name="value" type="java.lang.Object"/>
  57487. <exception name="IOException" type="java.io.IOException"/>
  57488. </method>
  57489. <method name="close"
  57490. abstract="false" native="false" synchronized="true"
  57491. static="false" final="false" visibility="public"
  57492. deprecated="not deprecated">
  57493. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57494. <exception name="IOException" type="java.io.IOException"/>
  57495. </method>
  57496. <field name="out" type="java.io.DataOutputStream"
  57497. transient="false" volatile="false"
  57498. static="false" final="false" visibility="protected"
  57499. deprecated="not deprecated">
  57500. </field>
  57501. </class>
  57502. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  57503. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  57504. <class name="TIPStatus" extends="java.lang.Enum"
  57505. abstract="false"
  57506. static="false" final="true" visibility="public"
  57507. deprecated="not deprecated">
  57508. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  57509. abstract="false" native="false" synchronized="false"
  57510. static="true" final="false" visibility="public"
  57511. deprecated="not deprecated">
  57512. </method>
  57513. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  57514. abstract="false" native="false" synchronized="false"
  57515. static="true" final="false" visibility="public"
  57516. deprecated="not deprecated">
  57517. <param name="name" type="java.lang.String"/>
  57518. </method>
  57519. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  57520. transient="false" volatile="false"
  57521. static="true" final="true" visibility="public"
  57522. deprecated="not deprecated">
  57523. </field>
  57524. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  57525. transient="false" volatile="false"
  57526. static="true" final="true" visibility="public"
  57527. deprecated="not deprecated">
  57528. </field>
  57529. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  57530. transient="false" volatile="false"
  57531. static="true" final="true" visibility="public"
  57532. deprecated="not deprecated">
  57533. </field>
  57534. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  57535. transient="false" volatile="false"
  57536. static="true" final="true" visibility="public"
  57537. deprecated="not deprecated">
  57538. </field>
  57539. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  57540. transient="false" volatile="false"
  57541. static="true" final="true" visibility="public"
  57542. deprecated="not deprecated">
  57543. </field>
  57544. <doc>
  57545. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  57546. </doc>
  57547. </class>
  57548. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  57549. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  57550. <class name="UserLogCleaner" extends="java.lang.Thread"
  57551. abstract="false"
  57552. static="false" final="false" visibility="public"
  57553. deprecated="not deprecated">
  57554. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  57555. static="false" final="false" visibility="public"
  57556. deprecated="not deprecated">
  57557. <exception name="IOException" type="java.io.IOException"/>
  57558. </constructor>
  57559. <method name="run"
  57560. abstract="false" native="false" synchronized="false"
  57561. static="false" final="false" visibility="public"
  57562. deprecated="not deprecated">
  57563. </method>
  57564. <method name="deleteJobLogs"
  57565. abstract="false" native="false" synchronized="false"
  57566. static="false" final="false" visibility="public"
  57567. deprecated="not deprecated">
  57568. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57569. <exception name="IOException" type="java.io.IOException"/>
  57570. </method>
  57571. <method name="addOldUserLogsForDeletion"
  57572. abstract="false" native="false" synchronized="false"
  57573. static="false" final="false" visibility="public"
  57574. deprecated="not deprecated">
  57575. <param name="loc" type="java.io.File"/>
  57576. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57577. <exception name="IOException" type="java.io.IOException"/>
  57578. <doc>
  57579. <![CDATA[Adds the job log directories for deletion with default retain hours.
  57580. Deletes all other directories, if any.
  57581. @param loc location of log directory
  57582. @param conf
  57583. @throws IOException]]>
  57584. </doc>
  57585. </method>
  57586. <method name="clearOldUserLogs"
  57587. abstract="false" native="false" synchronized="false"
  57588. static="false" final="false" visibility="public"
  57589. deprecated="not deprecated">
  57590. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57591. <exception name="IOException" type="java.io.IOException"/>
  57592. <doc>
  57593. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  57594. reinit/restart of the TaskTracker.
  57595. @param conf
  57596. @throws IOException]]>
  57597. </doc>
  57598. </method>
  57599. <method name="markJobLogsForDeletion"
  57600. abstract="false" native="false" synchronized="false"
  57601. static="false" final="false" visibility="public"
  57602. deprecated="not deprecated">
  57603. <param name="jobCompletionTime" type="long"/>
  57604. <param name="retainHours" type="int"/>
  57605. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57606. <doc>
  57607. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  57608. retain hours.
  57609. @param jobCompletionTime
  57610. job completion time in millis
  57611. @param retainHours
  57612. the user-log retain hours for the job
  57613. @param jobid
  57614. JobID for which user logs should be deleted]]>
  57615. </doc>
  57616. </method>
  57617. <method name="unmarkJobFromLogDeletion"
  57618. abstract="false" native="false" synchronized="false"
  57619. static="false" final="false" visibility="public"
  57620. deprecated="not deprecated">
  57621. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  57622. <doc>
  57623. <![CDATA[Remove job from user log deletion.
  57624. @param jobid]]>
  57625. </doc>
  57626. </method>
  57627. <doc>
  57628. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  57629. </doc>
  57630. </class>
  57631. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  57632. <!-- start class org.apache.hadoop.mapred.Utils -->
  57633. <class name="Utils" extends="java.lang.Object"
  57634. abstract="false"
  57635. static="false" final="false" visibility="public"
  57636. deprecated="not deprecated">
  57637. <constructor name="Utils"
  57638. static="false" final="false" visibility="public"
  57639. deprecated="not deprecated">
  57640. </constructor>
  57641. <doc>
  57642. <![CDATA[A utility class. It provides
  57643. - file-util
  57644. - A path filter utility to filter out output/part files in the output dir]]>
  57645. </doc>
  57646. </class>
  57647. <!-- end class org.apache.hadoop.mapred.Utils -->
  57648. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  57649. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  57650. abstract="false"
  57651. static="true" final="false" visibility="public"
  57652. deprecated="not deprecated">
  57653. <constructor name="Utils.OutputFileUtils"
  57654. static="false" final="false" visibility="public"
  57655. deprecated="not deprecated">
  57656. </constructor>
  57657. </class>
  57658. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  57659. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  57660. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  57661. abstract="false"
  57662. static="true" final="false" visibility="public"
  57663. deprecated="not deprecated">
  57664. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  57665. static="false" final="false" visibility="public"
  57666. deprecated="not deprecated">
  57667. </constructor>
  57668. <method name="accept" return="boolean"
  57669. abstract="false" native="false" synchronized="false"
  57670. static="false" final="false" visibility="public"
  57671. deprecated="not deprecated">
  57672. <param name="path" type="org.apache.hadoop.fs.Path"/>
  57673. </method>
  57674. <doc>
  57675. <![CDATA[This class filters output(part) files from the given directory
  57676. It does not accept files with filenames _logs and _SUCCESS.
  57677. This can be used to list paths of output directory as follows:
  57678. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  57679. new OutputFilesFilter()));]]>
  57680. </doc>
  57681. </class>
  57682. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  57683. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  57684. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  57685. abstract="false"
  57686. static="true" final="false" visibility="public"
  57687. deprecated="not deprecated">
  57688. <implements name="org.apache.hadoop.fs.PathFilter"/>
  57689. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  57690. static="false" final="false" visibility="public"
  57691. deprecated="not deprecated">
  57692. </constructor>
  57693. <method name="accept" return="boolean"
  57694. abstract="false" native="false" synchronized="false"
  57695. static="false" final="false" visibility="public"
  57696. deprecated="not deprecated">
  57697. <param name="path" type="org.apache.hadoop.fs.Path"/>
  57698. </method>
  57699. <doc>
  57700. <![CDATA[This class filters log files from directory given
  57701. It doesnt accept paths having _logs.
  57702. This can be used to list paths of output directory as follows:
  57703. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  57704. new OutputLogFilter()));]]>
  57705. </doc>
  57706. </class>
  57707. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  57708. </package>
  57709. <package name="org.apache.hadoop.mapred.jobcontrol">
  57710. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  57711. <class name="Job" extends="java.lang.Object"
  57712. abstract="false"
  57713. static="false" final="false" visibility="public"
  57714. deprecated="not deprecated">
  57715. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  57716. static="false" final="false" visibility="public"
  57717. deprecated="not deprecated">
  57718. <exception name="IOException" type="java.io.IOException"/>
  57719. <doc>
  57720. <![CDATA[Construct a job.
  57721. @param jobConf a mapred job configuration representing a job to be executed.
  57722. @param dependingJobs an array of jobs the current job depends on]]>
  57723. </doc>
  57724. </constructor>
  57725. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  57726. static="false" final="false" visibility="public"
  57727. deprecated="not deprecated">
  57728. <exception name="IOException" type="java.io.IOException"/>
  57729. <doc>
  57730. <![CDATA[Construct a job.
  57731. @param jobConf mapred job configuration representing a job to be executed.
  57732. @throws IOException]]>
  57733. </doc>
  57734. </constructor>
  57735. <method name="toString" return="java.lang.String"
  57736. abstract="false" native="false" synchronized="false"
  57737. static="false" final="false" visibility="public"
  57738. deprecated="not deprecated">
  57739. </method>
  57740. <method name="getJobName" return="java.lang.String"
  57741. abstract="false" native="false" synchronized="false"
  57742. static="false" final="false" visibility="public"
  57743. deprecated="not deprecated">
  57744. <doc>
  57745. <![CDATA[@return the job name of this job]]>
  57746. </doc>
  57747. </method>
  57748. <method name="setJobName"
  57749. abstract="false" native="false" synchronized="false"
  57750. static="false" final="false" visibility="public"
  57751. deprecated="not deprecated">
  57752. <param name="jobName" type="java.lang.String"/>
  57753. <doc>
  57754. <![CDATA[Set the job name for this job.
  57755. @param jobName the job name]]>
  57756. </doc>
  57757. </method>
  57758. <method name="getJobID" return="java.lang.String"
  57759. abstract="false" native="false" synchronized="false"
  57760. static="false" final="false" visibility="public"
  57761. deprecated="not deprecated">
  57762. <doc>
  57763. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  57764. </doc>
  57765. </method>
  57766. <method name="setJobID"
  57767. abstract="false" native="false" synchronized="false"
  57768. static="false" final="false" visibility="public"
  57769. deprecated="not deprecated">
  57770. <param name="id" type="java.lang.String"/>
  57771. <doc>
  57772. <![CDATA[Set the job ID for this job.
  57773. @param id the job ID]]>
  57774. </doc>
  57775. </method>
  57776. <method name="getMapredJobID" return="java.lang.String"
  57777. abstract="false" native="false" synchronized="false"
  57778. static="false" final="false" visibility="public"
  57779. deprecated="use {@link #getAssignedJobID()} instead">
  57780. <doc>
  57781. <![CDATA[@return the mapred ID of this job
  57782. @deprecated use {@link #getAssignedJobID()} instead]]>
  57783. </doc>
  57784. </method>
  57785. <method name="setMapredJobID"
  57786. abstract="false" native="false" synchronized="false"
  57787. static="false" final="false" visibility="public"
  57788. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  57789. <param name="mapredJobID" type="java.lang.String"/>
  57790. <doc>
  57791. <![CDATA[Set the mapred ID for this job.
  57792. @param mapredJobID the mapred job ID for this job.
  57793. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  57794. </doc>
  57795. </method>
  57796. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  57797. abstract="false" native="false" synchronized="false"
  57798. static="false" final="false" visibility="public"
  57799. deprecated="not deprecated">
  57800. <doc>
  57801. <![CDATA[@return the mapred ID of this job as assigned by the
  57802. mapred framework.]]>
  57803. </doc>
  57804. </method>
  57805. <method name="setAssignedJobID"
  57806. abstract="false" native="false" synchronized="false"
  57807. static="false" final="false" visibility="public"
  57808. deprecated="not deprecated">
  57809. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  57810. <doc>
  57811. <![CDATA[Set the mapred ID for this job as assigned by the
  57812. mapred framework.
  57813. @param mapredJobID the mapred job ID for this job.]]>
  57814. </doc>
  57815. </method>
  57816. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  57817. abstract="false" native="false" synchronized="false"
  57818. static="false" final="false" visibility="public"
  57819. deprecated="not deprecated">
  57820. <doc>
  57821. <![CDATA[@return the mapred job conf of this job]]>
  57822. </doc>
  57823. </method>
  57824. <method name="setJobConf"
  57825. abstract="false" native="false" synchronized="false"
  57826. static="false" final="false" visibility="public"
  57827. deprecated="not deprecated">
  57828. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  57829. <doc>
  57830. <![CDATA[Set the mapred job conf for this job.
  57831. @param jobConf the mapred job conf for this job.]]>
  57832. </doc>
  57833. </method>
  57834. <method name="getState" return="int"
  57835. abstract="false" native="false" synchronized="true"
  57836. static="false" final="false" visibility="public"
  57837. deprecated="not deprecated">
  57838. <doc>
  57839. <![CDATA[@return the state of this job]]>
  57840. </doc>
  57841. </method>
  57842. <method name="setState"
  57843. abstract="false" native="false" synchronized="true"
  57844. static="false" final="false" visibility="protected"
  57845. deprecated="not deprecated">
  57846. <param name="state" type="int"/>
  57847. <doc>
  57848. <![CDATA[Set the state for this job.
  57849. @param state the new state for this job.]]>
  57850. </doc>
  57851. </method>
  57852. <method name="getMessage" return="java.lang.String"
  57853. abstract="false" native="false" synchronized="false"
  57854. static="false" final="false" visibility="public"
  57855. deprecated="not deprecated">
  57856. <doc>
  57857. <![CDATA[@return the message of this job]]>
  57858. </doc>
  57859. </method>
  57860. <method name="setMessage"
  57861. abstract="false" native="false" synchronized="false"
  57862. static="false" final="false" visibility="public"
  57863. deprecated="not deprecated">
  57864. <param name="message" type="java.lang.String"/>
  57865. <doc>
  57866. <![CDATA[Set the message for this job.
  57867. @param message the message for this job.]]>
  57868. </doc>
  57869. </method>
  57870. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  57871. abstract="false" native="false" synchronized="false"
  57872. static="false" final="false" visibility="public"
  57873. deprecated="not deprecated">
  57874. <doc>
  57875. <![CDATA[@return the job client of this job]]>
  57876. </doc>
  57877. </method>
  57878. <method name="getDependingJobs" return="java.util.ArrayList"
  57879. abstract="false" native="false" synchronized="false"
  57880. static="false" final="false" visibility="public"
  57881. deprecated="not deprecated">
  57882. <doc>
  57883. <![CDATA[@return the depending jobs of this job]]>
  57884. </doc>
  57885. </method>
  57886. <method name="addDependingJob" return="boolean"
  57887. abstract="false" native="false" synchronized="true"
  57888. static="false" final="false" visibility="public"
  57889. deprecated="not deprecated">
  57890. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  57891. <doc>
  57892. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  57893. is waiting to run, not during or afterwards.
  57894. @param dependingJob Job that this Job depends on.
  57895. @return <tt>true</tt> if the Job was added.]]>
  57896. </doc>
  57897. </method>
  57898. <method name="isCompleted" return="boolean"
  57899. abstract="false" native="false" synchronized="false"
  57900. static="false" final="false" visibility="public"
  57901. deprecated="not deprecated">
  57902. <doc>
  57903. <![CDATA[@return true if this job is in a complete state]]>
  57904. </doc>
  57905. </method>
  57906. <method name="isReady" return="boolean"
  57907. abstract="false" native="false" synchronized="false"
  57908. static="false" final="false" visibility="public"
  57909. deprecated="not deprecated">
  57910. <doc>
  57911. <![CDATA[@return true if this job is in READY state]]>
  57912. </doc>
  57913. </method>
  57914. <method name="submit"
  57915. abstract="false" native="false" synchronized="true"
  57916. static="false" final="false" visibility="protected"
  57917. deprecated="not deprecated">
  57918. <doc>
  57919. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  57920. is successful, FAILED otherwise.]]>
  57921. </doc>
  57922. </method>
  57923. <field name="SUCCESS" type="int"
  57924. transient="false" volatile="false"
  57925. static="true" final="true" visibility="public"
  57926. deprecated="not deprecated">
  57927. </field>
  57928. <field name="WAITING" type="int"
  57929. transient="false" volatile="false"
  57930. static="true" final="true" visibility="public"
  57931. deprecated="not deprecated">
  57932. </field>
  57933. <field name="RUNNING" type="int"
  57934. transient="false" volatile="false"
  57935. static="true" final="true" visibility="public"
  57936. deprecated="not deprecated">
  57937. </field>
  57938. <field name="READY" type="int"
  57939. transient="false" volatile="false"
  57940. static="true" final="true" visibility="public"
  57941. deprecated="not deprecated">
  57942. </field>
  57943. <field name="FAILED" type="int"
  57944. transient="false" volatile="false"
  57945. static="true" final="true" visibility="public"
  57946. deprecated="not deprecated">
  57947. </field>
  57948. <field name="DEPENDENT_FAILED" type="int"
  57949. transient="false" volatile="false"
  57950. static="true" final="true" visibility="public"
  57951. deprecated="not deprecated">
  57952. </field>
  57953. <doc>
  57954. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  57955. the states of the depending jobs and updates the state of this job.
  57956. A job starts in the WAITING state. If it does not have any depending jobs, or
  57957. all of the depending jobs are in SUCCESS state, then the job state will become
  57958. READY. If any depending jobs fail, the job will fail too.
  57959. When in READY state, the job can be submitted to Hadoop for execution, with
  57960. the state changing into RUNNING state. From RUNNING state, the job can get into
  57961. SUCCESS or FAILED state, depending the status of the job execution.]]>
  57962. </doc>
  57963. </class>
  57964. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  57965. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  57966. <class name="JobControl" extends="java.lang.Object"
  57967. abstract="false"
  57968. static="false" final="false" visibility="public"
  57969. deprecated="not deprecated">
  57970. <implements name="java.lang.Runnable"/>
  57971. <constructor name="JobControl" type="java.lang.String"
  57972. static="false" final="false" visibility="public"
  57973. deprecated="not deprecated">
  57974. <doc>
  57975. <![CDATA[Construct a job control for a group of jobs.
  57976. @param groupName a name identifying this group]]>
  57977. </doc>
  57978. </constructor>
  57979. <method name="getWaitingJobs" return="java.util.ArrayList"
  57980. abstract="false" native="false" synchronized="false"
  57981. static="false" final="false" visibility="public"
  57982. deprecated="not deprecated">
  57983. <doc>
  57984. <![CDATA[@return the jobs in the waiting state]]>
  57985. </doc>
  57986. </method>
  57987. <method name="getRunningJobs" return="java.util.ArrayList"
  57988. abstract="false" native="false" synchronized="false"
  57989. static="false" final="false" visibility="public"
  57990. deprecated="not deprecated">
  57991. <doc>
  57992. <![CDATA[@return the jobs in the running state]]>
  57993. </doc>
  57994. </method>
  57995. <method name="getReadyJobs" return="java.util.ArrayList"
  57996. abstract="false" native="false" synchronized="false"
  57997. static="false" final="false" visibility="public"
  57998. deprecated="not deprecated">
  57999. <doc>
  58000. <![CDATA[@return the jobs in the ready state]]>
  58001. </doc>
  58002. </method>
  58003. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  58004. abstract="false" native="false" synchronized="false"
  58005. static="false" final="false" visibility="public"
  58006. deprecated="not deprecated">
  58007. <doc>
  58008. <![CDATA[@return the jobs in the success state]]>
  58009. </doc>
  58010. </method>
  58011. <method name="getFailedJobs" return="java.util.ArrayList"
  58012. abstract="false" native="false" synchronized="false"
  58013. static="false" final="false" visibility="public"
  58014. deprecated="not deprecated">
  58015. </method>
  58016. <method name="addJob" return="java.lang.String"
  58017. abstract="false" native="false" synchronized="true"
  58018. static="false" final="false" visibility="public"
  58019. deprecated="not deprecated">
  58020. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  58021. <doc>
  58022. <![CDATA[Add a new job.
  58023. @param aJob the new job]]>
  58024. </doc>
  58025. </method>
  58026. <method name="addJobs"
  58027. abstract="false" native="false" synchronized="false"
  58028. static="false" final="false" visibility="public"
  58029. deprecated="not deprecated">
  58030. <param name="jobs" type="java.util.Collection"/>
  58031. <doc>
  58032. <![CDATA[Add a collection of jobs
  58033. @param jobs]]>
  58034. </doc>
  58035. </method>
  58036. <method name="getState" return="int"
  58037. abstract="false" native="false" synchronized="false"
  58038. static="false" final="false" visibility="public"
  58039. deprecated="not deprecated">
  58040. <doc>
  58041. <![CDATA[@return the thread state]]>
  58042. </doc>
  58043. </method>
  58044. <method name="stop"
  58045. abstract="false" native="false" synchronized="false"
  58046. static="false" final="false" visibility="public"
  58047. deprecated="not deprecated">
  58048. <doc>
  58049. <![CDATA[set the thread state to STOPPING so that the
  58050. thread will stop when it wakes up.]]>
  58051. </doc>
  58052. </method>
  58053. <method name="suspend"
  58054. abstract="false" native="false" synchronized="false"
  58055. static="false" final="false" visibility="public"
  58056. deprecated="not deprecated">
  58057. <doc>
  58058. <![CDATA[suspend the running thread]]>
  58059. </doc>
  58060. </method>
  58061. <method name="resume"
  58062. abstract="false" native="false" synchronized="false"
  58063. static="false" final="false" visibility="public"
  58064. deprecated="not deprecated">
  58065. <doc>
  58066. <![CDATA[resume the suspended thread]]>
  58067. </doc>
  58068. </method>
  58069. <method name="allFinished" return="boolean"
  58070. abstract="false" native="false" synchronized="true"
  58071. static="false" final="false" visibility="public"
  58072. deprecated="not deprecated">
  58073. </method>
  58074. <method name="run"
  58075. abstract="false" native="false" synchronized="false"
  58076. static="false" final="false" visibility="public"
  58077. deprecated="not deprecated">
  58078. <doc>
  58079. <![CDATA[The main loop for the thread.
  58080. The loop does the following:
  58081. Check the states of the running jobs
  58082. Update the states of waiting jobs
  58083. Submit the jobs in ready state]]>
  58084. </doc>
  58085. </method>
  58086. <doc>
  58087. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  58088. the states of the jobs by placing them into different tables according to their
  58089. states.
  58090. This class provides APIs for the client app to add a job to the group and to get
  58091. the jobs in the group in different states. When a
  58092. job is added, an ID unique to the group is assigned to the job.
  58093. This class has a thread that submits jobs when they become ready, monitors the
  58094. states of the running jobs, and updates the states of jobs based on the state changes
  58095. of their depending jobs states. The class provides APIs for suspending/resuming
  58096. the thread,and for stopping the thread.]]>
  58097. </doc>
  58098. </class>
  58099. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  58100. </package>
  58101. <package name="org.apache.hadoop.mapred.join">
  58102. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  58103. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  58104. abstract="false"
  58105. static="false" final="false" visibility="public"
  58106. deprecated="not deprecated">
  58107. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58108. <constructor name="ArrayListBackedIterator"
  58109. static="false" final="false" visibility="public"
  58110. deprecated="not deprecated">
  58111. </constructor>
  58112. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  58113. static="false" final="false" visibility="public"
  58114. deprecated="not deprecated">
  58115. </constructor>
  58116. <method name="hasNext" return="boolean"
  58117. abstract="false" native="false" synchronized="false"
  58118. static="false" final="false" visibility="public"
  58119. deprecated="not deprecated">
  58120. </method>
  58121. <method name="next" return="boolean"
  58122. abstract="false" native="false" synchronized="false"
  58123. static="false" final="false" visibility="public"
  58124. deprecated="not deprecated">
  58125. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58126. <exception name="IOException" type="java.io.IOException"/>
  58127. </method>
  58128. <method name="replay" return="boolean"
  58129. abstract="false" native="false" synchronized="false"
  58130. static="false" final="false" visibility="public"
  58131. deprecated="not deprecated">
  58132. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58133. <exception name="IOException" type="java.io.IOException"/>
  58134. </method>
  58135. <method name="reset"
  58136. abstract="false" native="false" synchronized="false"
  58137. static="false" final="false" visibility="public"
  58138. deprecated="not deprecated">
  58139. </method>
  58140. <method name="add"
  58141. abstract="false" native="false" synchronized="false"
  58142. static="false" final="false" visibility="public"
  58143. deprecated="not deprecated">
  58144. <param name="item" type="org.apache.hadoop.io.Writable"/>
  58145. <exception name="IOException" type="java.io.IOException"/>
  58146. </method>
  58147. <method name="close"
  58148. abstract="false" native="false" synchronized="false"
  58149. static="false" final="false" visibility="public"
  58150. deprecated="not deprecated">
  58151. <exception name="IOException" type="java.io.IOException"/>
  58152. </method>
  58153. <method name="clear"
  58154. abstract="false" native="false" synchronized="false"
  58155. static="false" final="false" visibility="public"
  58156. deprecated="not deprecated">
  58157. </method>
  58158. <doc>
  58159. <![CDATA[This class provides an implementation of ResetableIterator. The
  58160. implementation uses an {@link java.util.ArrayList} to store elements
  58161. added to it, replaying them as requested.
  58162. Prefer {@link StreamBackedIterator}.]]>
  58163. </doc>
  58164. </class>
  58165. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  58166. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  58167. <interface name="ComposableInputFormat" abstract="true"
  58168. static="false" final="false" visibility="public"
  58169. deprecated="not deprecated">
  58170. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  58171. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  58172. abstract="false" native="false" synchronized="false"
  58173. static="false" final="false" visibility="public"
  58174. deprecated="not deprecated">
  58175. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  58176. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58177. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58178. <exception name="IOException" type="java.io.IOException"/>
  58179. </method>
  58180. <doc>
  58181. <![CDATA[Refinement of InputFormat requiring implementors to provide
  58182. ComposableRecordReader instead of RecordReader.]]>
  58183. </doc>
  58184. </interface>
  58185. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  58186. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  58187. <interface name="ComposableRecordReader" abstract="true"
  58188. static="false" final="false" visibility="public"
  58189. deprecated="not deprecated">
  58190. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  58191. <implements name="java.lang.Comparable"/>
  58192. <method name="id" return="int"
  58193. abstract="false" native="false" synchronized="false"
  58194. static="false" final="false" visibility="public"
  58195. deprecated="not deprecated">
  58196. <doc>
  58197. <![CDATA[Return the position in the collector this class occupies.]]>
  58198. </doc>
  58199. </method>
  58200. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  58201. abstract="false" native="false" synchronized="false"
  58202. static="false" final="false" visibility="public"
  58203. deprecated="not deprecated">
  58204. <doc>
  58205. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  58206. </doc>
  58207. </method>
  58208. <method name="key"
  58209. abstract="false" native="false" synchronized="false"
  58210. static="false" final="false" visibility="public"
  58211. deprecated="not deprecated">
  58212. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58213. <exception name="IOException" type="java.io.IOException"/>
  58214. <doc>
  58215. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  58216. </doc>
  58217. </method>
  58218. <method name="hasNext" return="boolean"
  58219. abstract="false" native="false" synchronized="false"
  58220. static="false" final="false" visibility="public"
  58221. deprecated="not deprecated">
  58222. <doc>
  58223. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  58224. a call to next(K,V) will succeed.]]>
  58225. </doc>
  58226. </method>
  58227. <method name="skip"
  58228. abstract="false" native="false" synchronized="false"
  58229. static="false" final="false" visibility="public"
  58230. deprecated="not deprecated">
  58231. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58232. <exception name="IOException" type="java.io.IOException"/>
  58233. <doc>
  58234. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  58235. </doc>
  58236. </method>
  58237. <method name="accept"
  58238. abstract="false" native="false" synchronized="false"
  58239. static="false" final="false" visibility="public"
  58240. deprecated="not deprecated">
  58241. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  58242. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58243. <exception name="IOException" type="java.io.IOException"/>
  58244. <doc>
  58245. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  58246. them with the JoinCollector provided.]]>
  58247. </doc>
  58248. </method>
  58249. <doc>
  58250. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  58251. </doc>
  58252. </interface>
  58253. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  58254. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  58255. <class name="CompositeInputFormat" extends="java.lang.Object"
  58256. abstract="false"
  58257. static="false" final="false" visibility="public"
  58258. deprecated="not deprecated">
  58259. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  58260. <constructor name="CompositeInputFormat"
  58261. static="false" final="false" visibility="public"
  58262. deprecated="not deprecated">
  58263. </constructor>
  58264. <method name="setFormat"
  58265. abstract="false" native="false" synchronized="false"
  58266. static="false" final="false" visibility="public"
  58267. deprecated="not deprecated">
  58268. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58269. <exception name="IOException" type="java.io.IOException"/>
  58270. <doc>
  58271. <![CDATA[Interpret a given string as a composite expression.
  58272. {@code
  58273. func ::= <ident>([<func>,]*<func>)
  58274. func ::= tbl(<class>,"<path>")
  58275. class ::= @see java.lang.Class#forName(java.lang.String)
  58276. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  58277. }
  58278. Reads expression from the <tt>mapred.join.expr</tt> property and
  58279. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  58280. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  58281. InputFormat class listed.
  58282. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  58283. </doc>
  58284. </method>
  58285. <method name="addDefaults"
  58286. abstract="false" native="false" synchronized="false"
  58287. static="false" final="false" visibility="protected"
  58288. deprecated="not deprecated">
  58289. <doc>
  58290. <![CDATA[Adds the default set of identifiers to the parser.]]>
  58291. </doc>
  58292. </method>
  58293. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  58294. abstract="false" native="false" synchronized="false"
  58295. static="false" final="false" visibility="public"
  58296. deprecated="not deprecated">
  58297. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58298. <param name="numSplits" type="int"/>
  58299. <exception name="IOException" type="java.io.IOException"/>
  58300. <doc>
  58301. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  58302. ith split from each child to the ith composite split.]]>
  58303. </doc>
  58304. </method>
  58305. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  58306. abstract="false" native="false" synchronized="false"
  58307. static="false" final="false" visibility="public"
  58308. deprecated="not deprecated">
  58309. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  58310. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  58311. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  58312. <exception name="IOException" type="java.io.IOException"/>
  58313. <doc>
  58314. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  58315. as defined in the init expression.
  58316. The outermost join need only be composable, not necessarily a composite.
  58317. Mandating TupleWritable isn't strictly correct.]]>
  58318. </doc>
  58319. </method>
  58320. <method name="compose" return="java.lang.String"
  58321. abstract="false" native="false" synchronized="false"
  58322. static="true" final="false" visibility="public"
  58323. deprecated="not deprecated">
  58324. <param name="inf" type="java.lang.Class"/>
  58325. <param name="path" type="java.lang.String"/>
  58326. <doc>
  58327. <![CDATA[Convenience method for constructing composite formats.
  58328. Given InputFormat class (inf), path (p) return:
  58329. {@code tbl(<inf>, <p>) }]]>
  58330. </doc>
  58331. </method>
  58332. <method name="compose" return="java.lang.String"
  58333. abstract="false" native="false" synchronized="false"
  58334. static="true" final="false" visibility="public"
  58335. deprecated="not deprecated">
  58336. <param name="op" type="java.lang.String"/>
  58337. <param name="inf" type="java.lang.Class"/>
  58338. <param name="path" type="java.lang.String[]"/>
  58339. <doc>
  58340. <![CDATA[Convenience method for constructing composite formats.
  58341. Given operation (op), Object class (inf), set of paths (p) return:
  58342. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  58343. </doc>
  58344. </method>
  58345. <method name="compose" return="java.lang.String"
  58346. abstract="false" native="false" synchronized="false"
  58347. static="true" final="false" visibility="public"
  58348. deprecated="not deprecated">
  58349. <param name="op" type="java.lang.String"/>
  58350. <param name="inf" type="java.lang.Class"/>
  58351. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  58352. <doc>
  58353. <![CDATA[Convenience method for constructing composite formats.
  58354. Given operation (op), Object class (inf), set of paths (p) return:
  58355. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  58356. </doc>
  58357. </method>
  58358. <doc>
  58359. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  58360. and partitioned the same way.
  58361. @see #setFormat
  58362. A user may define new join types by setting the property
  58363. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  58364. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  58365. ComposableRecordReader.
  58366. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  58367. in the join.
  58368. @see JoinRecordReader
  58369. @see MultiFilterRecordReader]]>
  58370. </doc>
  58371. </class>
  58372. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  58373. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  58374. <class name="CompositeInputSplit" extends="java.lang.Object"
  58375. abstract="false"
  58376. static="false" final="false" visibility="public"
  58377. deprecated="not deprecated">
  58378. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  58379. <constructor name="CompositeInputSplit"
  58380. static="false" final="false" visibility="public"
  58381. deprecated="not deprecated">
  58382. </constructor>
  58383. <constructor name="CompositeInputSplit" type="int"
  58384. static="false" final="false" visibility="public"
  58385. deprecated="not deprecated">
  58386. </constructor>
  58387. <method name="add"
  58388. abstract="false" native="false" synchronized="false"
  58389. static="false" final="false" visibility="public"
  58390. deprecated="not deprecated">
  58391. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  58392. <exception name="IOException" type="java.io.IOException"/>
  58393. <doc>
  58394. <![CDATA[Add an InputSplit to this collection.
  58395. @throws IOException If capacity was not specified during construction
  58396. or if capacity has been reached.]]>
  58397. </doc>
  58398. </method>
  58399. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  58400. abstract="false" native="false" synchronized="false"
  58401. static="false" final="false" visibility="public"
  58402. deprecated="not deprecated">
  58403. <param name="i" type="int"/>
  58404. <doc>
  58405. <![CDATA[Get ith child InputSplit.]]>
  58406. </doc>
  58407. </method>
  58408. <method name="getLength" return="long"
  58409. abstract="false" native="false" synchronized="false"
  58410. static="false" final="false" visibility="public"
  58411. deprecated="not deprecated">
  58412. <exception name="IOException" type="java.io.IOException"/>
  58413. <doc>
  58414. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  58415. </doc>
  58416. </method>
  58417. <method name="getLength" return="long"
  58418. abstract="false" native="false" synchronized="false"
  58419. static="false" final="false" visibility="public"
  58420. deprecated="not deprecated">
  58421. <param name="i" type="int"/>
  58422. <exception name="IOException" type="java.io.IOException"/>
  58423. <doc>
  58424. <![CDATA[Get the length of ith child InputSplit.]]>
  58425. </doc>
  58426. </method>
  58427. <method name="getLocations" return="java.lang.String[]"
  58428. abstract="false" native="false" synchronized="false"
  58429. static="false" final="false" visibility="public"
  58430. deprecated="not deprecated">
  58431. <exception name="IOException" type="java.io.IOException"/>
  58432. <doc>
  58433. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  58434. </doc>
  58435. </method>
  58436. <method name="getLocation" return="java.lang.String[]"
  58437. abstract="false" native="false" synchronized="false"
  58438. static="false" final="false" visibility="public"
  58439. deprecated="not deprecated">
  58440. <param name="i" type="int"/>
  58441. <exception name="IOException" type="java.io.IOException"/>
  58442. <doc>
  58443. <![CDATA[getLocations from ith InputSplit.]]>
  58444. </doc>
  58445. </method>
  58446. <method name="write"
  58447. abstract="false" native="false" synchronized="false"
  58448. static="false" final="false" visibility="public"
  58449. deprecated="not deprecated">
  58450. <param name="out" type="java.io.DataOutput"/>
  58451. <exception name="IOException" type="java.io.IOException"/>
  58452. <doc>
  58453. <![CDATA[Write splits in the following format.
  58454. {@code
  58455. <count><class1><class2>...<classn><split1><split2>...<splitn>
  58456. }]]>
  58457. </doc>
  58458. </method>
  58459. <method name="readFields"
  58460. abstract="false" native="false" synchronized="false"
  58461. static="false" final="false" visibility="public"
  58462. deprecated="not deprecated">
  58463. <param name="in" type="java.io.DataInput"/>
  58464. <exception name="IOException" type="java.io.IOException"/>
  58465. <doc>
  58466. <![CDATA[{@inheritDoc}
  58467. @throws IOException If the child InputSplit cannot be read, typically
  58468. for faliing access checks.]]>
  58469. </doc>
  58470. </method>
  58471. <doc>
  58472. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  58473. into this collection must have a public default constructor.]]>
  58474. </doc>
  58475. </class>
  58476. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  58477. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  58478. <class name="CompositeRecordReader" extends="java.lang.Object"
  58479. abstract="true"
  58480. static="false" final="false" visibility="public"
  58481. deprecated="not deprecated">
  58482. <implements name="org.apache.hadoop.conf.Configurable"/>
  58483. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  58484. static="false" final="false" visibility="public"
  58485. deprecated="not deprecated">
  58486. <exception name="IOException" type="java.io.IOException"/>
  58487. <doc>
  58488. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  58489. <tt>id</tt> in the parent reader.
  58490. The id of a root CompositeRecordReader is -1 by convention, but relying
  58491. on this is not recommended.]]>
  58492. </doc>
  58493. </constructor>
  58494. <method name="combine" return="boolean"
  58495. abstract="true" native="false" synchronized="false"
  58496. static="false" final="false" visibility="protected"
  58497. deprecated="not deprecated">
  58498. <param name="srcs" type="java.lang.Object[]"/>
  58499. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58500. </method>
  58501. <method name="id" return="int"
  58502. abstract="false" native="false" synchronized="false"
  58503. static="false" final="false" visibility="public"
  58504. deprecated="not deprecated">
  58505. <doc>
  58506. <![CDATA[Return the position in the collector this class occupies.]]>
  58507. </doc>
  58508. </method>
  58509. <method name="setConf"
  58510. abstract="false" native="false" synchronized="false"
  58511. static="false" final="false" visibility="public"
  58512. deprecated="not deprecated">
  58513. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  58514. <doc>
  58515. <![CDATA[{@inheritDoc}]]>
  58516. </doc>
  58517. </method>
  58518. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  58519. abstract="false" native="false" synchronized="false"
  58520. static="false" final="false" visibility="public"
  58521. deprecated="not deprecated">
  58522. <doc>
  58523. <![CDATA[{@inheritDoc}]]>
  58524. </doc>
  58525. </method>
  58526. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  58527. abstract="false" native="false" synchronized="false"
  58528. static="false" final="false" visibility="protected"
  58529. deprecated="not deprecated">
  58530. <doc>
  58531. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  58532. </doc>
  58533. </method>
  58534. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  58535. abstract="false" native="false" synchronized="false"
  58536. static="false" final="false" visibility="protected"
  58537. deprecated="not deprecated">
  58538. <doc>
  58539. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  58540. composite.]]>
  58541. </doc>
  58542. </method>
  58543. <method name="add"
  58544. abstract="false" native="false" synchronized="false"
  58545. static="false" final="false" visibility="public"
  58546. deprecated="not deprecated">
  58547. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58548. <exception name="IOException" type="java.io.IOException"/>
  58549. <doc>
  58550. <![CDATA[Add a RecordReader to this collection.
  58551. The id() of a RecordReader determines where in the Tuple its
  58552. entry will appear. Adding RecordReaders with the same id has
  58553. undefined behavior.]]>
  58554. </doc>
  58555. </method>
  58556. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  58557. abstract="false" native="false" synchronized="false"
  58558. static="false" final="false" visibility="public"
  58559. deprecated="not deprecated">
  58560. <doc>
  58561. <![CDATA[Return the key for the current join or the value at the top of the
  58562. RecordReader heap.]]>
  58563. </doc>
  58564. </method>
  58565. <method name="key"
  58566. abstract="false" native="false" synchronized="false"
  58567. static="false" final="false" visibility="public"
  58568. deprecated="not deprecated">
  58569. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58570. <exception name="IOException" type="java.io.IOException"/>
  58571. <doc>
  58572. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  58573. </doc>
  58574. </method>
  58575. <method name="hasNext" return="boolean"
  58576. abstract="false" native="false" synchronized="false"
  58577. static="false" final="false" visibility="public"
  58578. deprecated="not deprecated">
  58579. <doc>
  58580. <![CDATA[Return true if it is possible that this could emit more values.]]>
  58581. </doc>
  58582. </method>
  58583. <method name="skip"
  58584. abstract="false" native="false" synchronized="false"
  58585. static="false" final="false" visibility="public"
  58586. deprecated="not deprecated">
  58587. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58588. <exception name="IOException" type="java.io.IOException"/>
  58589. <doc>
  58590. <![CDATA[Pass skip key to child RRs.]]>
  58591. </doc>
  58592. </method>
  58593. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58594. abstract="true" native="false" synchronized="false"
  58595. static="false" final="false" visibility="protected"
  58596. deprecated="not deprecated">
  58597. <doc>
  58598. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  58599. ultimately emitted from this join.]]>
  58600. </doc>
  58601. </method>
  58602. <method name="accept"
  58603. abstract="false" native="false" synchronized="false"
  58604. static="false" final="false" visibility="public"
  58605. deprecated="not deprecated">
  58606. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  58607. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58608. <exception name="IOException" type="java.io.IOException"/>
  58609. <doc>
  58610. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  58611. iterator over values it may emit.]]>
  58612. </doc>
  58613. </method>
  58614. <method name="fillJoinCollector"
  58615. abstract="false" native="false" synchronized="false"
  58616. static="false" final="false" visibility="protected"
  58617. deprecated="not deprecated">
  58618. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  58619. <exception name="IOException" type="java.io.IOException"/>
  58620. <doc>
  58621. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  58622. at that position in the JoinCollector.]]>
  58623. </doc>
  58624. </method>
  58625. <method name="compareTo" return="int"
  58626. abstract="false" native="false" synchronized="false"
  58627. static="false" final="false" visibility="public"
  58628. deprecated="not deprecated">
  58629. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58630. <doc>
  58631. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  58632. with that of another).]]>
  58633. </doc>
  58634. </method>
  58635. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  58636. abstract="false" native="false" synchronized="false"
  58637. static="false" final="false" visibility="public"
  58638. deprecated="not deprecated">
  58639. <doc>
  58640. <![CDATA[Create a new key value common to all child RRs.
  58641. @throws ClassCastException if key classes differ.]]>
  58642. </doc>
  58643. </method>
  58644. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  58645. abstract="false" native="false" synchronized="false"
  58646. static="false" final="false" visibility="protected"
  58647. deprecated="not deprecated">
  58648. <doc>
  58649. <![CDATA[Create a value to be used internally for joins.]]>
  58650. </doc>
  58651. </method>
  58652. <method name="getPos" return="long"
  58653. abstract="false" native="false" synchronized="false"
  58654. static="false" final="false" visibility="public"
  58655. deprecated="not deprecated">
  58656. <exception name="IOException" type="java.io.IOException"/>
  58657. <doc>
  58658. <![CDATA[Unsupported (returns zero in all cases).]]>
  58659. </doc>
  58660. </method>
  58661. <method name="close"
  58662. abstract="false" native="false" synchronized="false"
  58663. static="false" final="false" visibility="public"
  58664. deprecated="not deprecated">
  58665. <exception name="IOException" type="java.io.IOException"/>
  58666. <doc>
  58667. <![CDATA[Close all child RRs.]]>
  58668. </doc>
  58669. </method>
  58670. <method name="getProgress" return="float"
  58671. abstract="false" native="false" synchronized="false"
  58672. static="false" final="false" visibility="public"
  58673. deprecated="not deprecated">
  58674. <exception name="IOException" type="java.io.IOException"/>
  58675. <doc>
  58676. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  58677. </doc>
  58678. </method>
  58679. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  58680. transient="false" volatile="false"
  58681. static="false" final="true" visibility="protected"
  58682. deprecated="not deprecated">
  58683. </field>
  58684. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  58685. transient="false" volatile="false"
  58686. static="false" final="true" visibility="protected"
  58687. deprecated="not deprecated">
  58688. </field>
  58689. <doc>
  58690. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  58691. type and partitioning.]]>
  58692. </doc>
  58693. </class>
  58694. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  58695. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  58696. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  58697. abstract="false"
  58698. static="false" final="false" visibility="public"
  58699. deprecated="not deprecated">
  58700. <method name="combine" return="boolean"
  58701. abstract="false" native="false" synchronized="false"
  58702. static="false" final="false" visibility="protected"
  58703. deprecated="not deprecated">
  58704. <param name="srcs" type="java.lang.Object[]"/>
  58705. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58706. <doc>
  58707. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  58708. </doc>
  58709. </method>
  58710. <doc>
  58711. <![CDATA[Full inner join.]]>
  58712. </doc>
  58713. </class>
  58714. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  58715. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  58716. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  58717. abstract="true"
  58718. static="false" final="false" visibility="public"
  58719. deprecated="not deprecated">
  58720. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58721. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  58722. static="false" final="false" visibility="public"
  58723. deprecated="not deprecated">
  58724. <exception name="IOException" type="java.io.IOException"/>
  58725. </constructor>
  58726. <method name="next" return="boolean"
  58727. abstract="false" native="false" synchronized="false"
  58728. static="false" final="false" visibility="public"
  58729. deprecated="not deprecated">
  58730. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58731. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58732. <exception name="IOException" type="java.io.IOException"/>
  58733. <doc>
  58734. <![CDATA[Emit the next set of key, value pairs as defined by the child
  58735. RecordReaders and operation associated with this composite RR.]]>
  58736. </doc>
  58737. </method>
  58738. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  58739. abstract="false" native="false" synchronized="false"
  58740. static="false" final="false" visibility="public"
  58741. deprecated="not deprecated">
  58742. <doc>
  58743. <![CDATA[{@inheritDoc}]]>
  58744. </doc>
  58745. </method>
  58746. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58747. abstract="false" native="false" synchronized="false"
  58748. static="false" final="false" visibility="protected"
  58749. deprecated="not deprecated">
  58750. <doc>
  58751. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  58752. </doc>
  58753. </method>
  58754. <doc>
  58755. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  58756. </doc>
  58757. </class>
  58758. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  58759. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  58760. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  58761. abstract="false"
  58762. static="false" final="false" visibility="protected"
  58763. deprecated="not deprecated">
  58764. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58765. <constructor name="JoinRecordReader.JoinDelegationIterator"
  58766. static="false" final="false" visibility="protected"
  58767. deprecated="not deprecated">
  58768. </constructor>
  58769. <method name="hasNext" return="boolean"
  58770. abstract="false" native="false" synchronized="false"
  58771. static="false" final="false" visibility="public"
  58772. deprecated="not deprecated">
  58773. </method>
  58774. <method name="next" return="boolean"
  58775. abstract="false" native="false" synchronized="false"
  58776. static="false" final="false" visibility="public"
  58777. deprecated="not deprecated">
  58778. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58779. <exception name="IOException" type="java.io.IOException"/>
  58780. </method>
  58781. <method name="replay" return="boolean"
  58782. abstract="false" native="false" synchronized="false"
  58783. static="false" final="false" visibility="public"
  58784. deprecated="not deprecated">
  58785. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58786. <exception name="IOException" type="java.io.IOException"/>
  58787. </method>
  58788. <method name="reset"
  58789. abstract="false" native="false" synchronized="false"
  58790. static="false" final="false" visibility="public"
  58791. deprecated="not deprecated">
  58792. </method>
  58793. <method name="add"
  58794. abstract="false" native="false" synchronized="false"
  58795. static="false" final="false" visibility="public"
  58796. deprecated="not deprecated">
  58797. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58798. <exception name="IOException" type="java.io.IOException"/>
  58799. </method>
  58800. <method name="close"
  58801. abstract="false" native="false" synchronized="false"
  58802. static="false" final="false" visibility="public"
  58803. deprecated="not deprecated">
  58804. <exception name="IOException" type="java.io.IOException"/>
  58805. </method>
  58806. <method name="clear"
  58807. abstract="false" native="false" synchronized="false"
  58808. static="false" final="false" visibility="public"
  58809. deprecated="not deprecated">
  58810. </method>
  58811. <doc>
  58812. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  58813. provide an iterator proxy wrapping its operation.]]>
  58814. </doc>
  58815. </class>
  58816. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  58817. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  58818. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  58819. abstract="true"
  58820. static="false" final="false" visibility="public"
  58821. deprecated="not deprecated">
  58822. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  58823. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  58824. static="false" final="false" visibility="public"
  58825. deprecated="not deprecated">
  58826. <exception name="IOException" type="java.io.IOException"/>
  58827. </constructor>
  58828. <method name="emit" return="org.apache.hadoop.io.Writable"
  58829. abstract="true" native="false" synchronized="false"
  58830. static="false" final="false" visibility="protected"
  58831. deprecated="not deprecated">
  58832. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58833. <exception name="IOException" type="java.io.IOException"/>
  58834. <doc>
  58835. <![CDATA[For each tuple emitted, return a value (typically one of the values
  58836. in the tuple).
  58837. Modifying the Writables in the tuple is permitted and unlikely to affect
  58838. join behavior in most cases, but it is not recommended. It's safer to
  58839. clone first.]]>
  58840. </doc>
  58841. </method>
  58842. <method name="combine" return="boolean"
  58843. abstract="false" native="false" synchronized="false"
  58844. static="false" final="false" visibility="protected"
  58845. deprecated="not deprecated">
  58846. <param name="srcs" type="java.lang.Object[]"/>
  58847. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58848. <doc>
  58849. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  58850. collector (the outer join of child RRs).]]>
  58851. </doc>
  58852. </method>
  58853. <method name="next" return="boolean"
  58854. abstract="false" native="false" synchronized="false"
  58855. static="false" final="false" visibility="public"
  58856. deprecated="not deprecated">
  58857. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  58858. <param name="value" type="org.apache.hadoop.io.Writable"/>
  58859. <exception name="IOException" type="java.io.IOException"/>
  58860. <doc>
  58861. <![CDATA[{@inheritDoc}]]>
  58862. </doc>
  58863. </method>
  58864. <method name="createValue" return="org.apache.hadoop.io.Writable"
  58865. abstract="false" native="false" synchronized="false"
  58866. static="false" final="false" visibility="public"
  58867. deprecated="not deprecated">
  58868. <doc>
  58869. <![CDATA[{@inheritDoc}]]>
  58870. </doc>
  58871. </method>
  58872. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  58873. abstract="false" native="false" synchronized="false"
  58874. static="false" final="false" visibility="protected"
  58875. deprecated="not deprecated">
  58876. <doc>
  58877. <![CDATA[Return an iterator returning a single value from the tuple.
  58878. @see MultiFilterDelegationIterator]]>
  58879. </doc>
  58880. </method>
  58881. <doc>
  58882. <![CDATA[Base class for Composite join returning values derived from multiple
  58883. sources, but generally not tuples.]]>
  58884. </doc>
  58885. </class>
  58886. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  58887. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  58888. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  58889. abstract="false"
  58890. static="false" final="false" visibility="protected"
  58891. deprecated="not deprecated">
  58892. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  58893. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  58894. static="false" final="false" visibility="protected"
  58895. deprecated="not deprecated">
  58896. </constructor>
  58897. <method name="hasNext" return="boolean"
  58898. abstract="false" native="false" synchronized="false"
  58899. static="false" final="false" visibility="public"
  58900. deprecated="not deprecated">
  58901. </method>
  58902. <method name="next" return="boolean"
  58903. abstract="false" native="false" synchronized="false"
  58904. static="false" final="false" visibility="public"
  58905. deprecated="not deprecated">
  58906. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58907. <exception name="IOException" type="java.io.IOException"/>
  58908. </method>
  58909. <method name="replay" return="boolean"
  58910. abstract="false" native="false" synchronized="false"
  58911. static="false" final="false" visibility="public"
  58912. deprecated="not deprecated">
  58913. <param name="val" type="org.apache.hadoop.io.Writable"/>
  58914. <exception name="IOException" type="java.io.IOException"/>
  58915. </method>
  58916. <method name="reset"
  58917. abstract="false" native="false" synchronized="false"
  58918. static="false" final="false" visibility="public"
  58919. deprecated="not deprecated">
  58920. </method>
  58921. <method name="add"
  58922. abstract="false" native="false" synchronized="false"
  58923. static="false" final="false" visibility="public"
  58924. deprecated="not deprecated">
  58925. <param name="item" type="org.apache.hadoop.io.Writable"/>
  58926. <exception name="IOException" type="java.io.IOException"/>
  58927. </method>
  58928. <method name="close"
  58929. abstract="false" native="false" synchronized="false"
  58930. static="false" final="false" visibility="public"
  58931. deprecated="not deprecated">
  58932. <exception name="IOException" type="java.io.IOException"/>
  58933. </method>
  58934. <method name="clear"
  58935. abstract="false" native="false" synchronized="false"
  58936. static="false" final="false" visibility="public"
  58937. deprecated="not deprecated">
  58938. </method>
  58939. <doc>
  58940. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  58941. </doc>
  58942. </class>
  58943. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  58944. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  58945. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  58946. abstract="false"
  58947. static="false" final="false" visibility="public"
  58948. deprecated="not deprecated">
  58949. <method name="combine" return="boolean"
  58950. abstract="false" native="false" synchronized="false"
  58951. static="false" final="false" visibility="protected"
  58952. deprecated="not deprecated">
  58953. <param name="srcs" type="java.lang.Object[]"/>
  58954. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58955. <doc>
  58956. <![CDATA[Emit everything from the collector.]]>
  58957. </doc>
  58958. </method>
  58959. <doc>
  58960. <![CDATA[Full outer join.]]>
  58961. </doc>
  58962. </class>
  58963. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  58964. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  58965. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  58966. abstract="false"
  58967. static="false" final="false" visibility="public"
  58968. deprecated="not deprecated">
  58969. <method name="emit" return="org.apache.hadoop.io.Writable"
  58970. abstract="false" native="false" synchronized="false"
  58971. static="false" final="false" visibility="protected"
  58972. deprecated="not deprecated">
  58973. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  58974. <doc>
  58975. <![CDATA[Emit the value with the highest position in the tuple.]]>
  58976. </doc>
  58977. </method>
  58978. <method name="fillJoinCollector"
  58979. abstract="false" native="false" synchronized="false"
  58980. static="false" final="false" visibility="protected"
  58981. deprecated="not deprecated">
  58982. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  58983. <exception name="IOException" type="java.io.IOException"/>
  58984. <doc>
  58985. <![CDATA[Instead of filling the JoinCollector with iterators from all
  58986. data sources, fill only the rightmost for this key.
  58987. This not only saves space by discarding the other sources, but
  58988. it also emits the number of key-value pairs in the preferred
  58989. RecordReader instead of repeating that stream n times, where
  58990. n is the cardinality of the cross product of the discarded
  58991. streams for the given key.]]>
  58992. </doc>
  58993. </method>
  58994. <doc>
  58995. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  58996. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  58997. from S3 over S2, and values from S2 over S1 for all keys
  58998. emitted from all sources.]]>
  58999. </doc>
  59000. </class>
  59001. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  59002. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  59003. <class name="Parser" extends="java.lang.Object"
  59004. abstract="false"
  59005. static="false" final="false" visibility="public"
  59006. deprecated="not deprecated">
  59007. <constructor name="Parser"
  59008. static="false" final="false" visibility="public"
  59009. deprecated="not deprecated">
  59010. </constructor>
  59011. <doc>
  59012. <![CDATA[Very simple shift-reduce parser for join expressions.
  59013. This should be sufficient for the user extension permitted now, but ought to
  59014. be replaced with a parser generator if more complex grammars are supported.
  59015. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  59016. of formals requires a different internal node type, which is responsible for
  59017. interpreting the list of tokens it receives. This is sufficient for the
  59018. current grammar, but it has several annoying properties that might inhibit
  59019. extension. In particular, parenthesis are always function calls; an
  59020. algebraic or filter grammar would not only require a node type, but must
  59021. also work around the internals of this parser.
  59022. For most other cases, adding classes to the hierarchy- particularly by
  59023. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  59024. straightforward. One need only override the relevant method(s) (usually only
  59025. {@link CompositeRecordReader#combine}) and include a property to map its
  59026. value to an identifier in the parser.]]>
  59027. </doc>
  59028. </class>
  59029. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  59030. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  59031. <class name="Parser.Node" extends="java.lang.Object"
  59032. abstract="true"
  59033. static="true" final="false" visibility="public"
  59034. deprecated="not deprecated">
  59035. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  59036. <constructor name="Parser.Node" type="java.lang.String"
  59037. static="false" final="false" visibility="protected"
  59038. deprecated="not deprecated">
  59039. </constructor>
  59040. <method name="addIdentifier"
  59041. abstract="false" native="false" synchronized="false"
  59042. static="true" final="false" visibility="protected"
  59043. deprecated="not deprecated">
  59044. <param name="ident" type="java.lang.String"/>
  59045. <param name="mcstrSig" type="java.lang.Class[]"/>
  59046. <param name="nodetype" type="java.lang.Class"/>
  59047. <param name="cl" type="java.lang.Class"/>
  59048. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  59049. <doc>
  59050. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  59051. tree and to the ComposableRecordReader to be created, including the
  59052. formals required to invoke the constructor.
  59053. The nodetype and constructor signature should be filled in from the
  59054. child node.]]>
  59055. </doc>
  59056. </method>
  59057. <method name="setID"
  59058. abstract="false" native="false" synchronized="false"
  59059. static="false" final="false" visibility="protected"
  59060. deprecated="not deprecated">
  59061. <param name="id" type="int"/>
  59062. </method>
  59063. <method name="setKeyComparator"
  59064. abstract="false" native="false" synchronized="false"
  59065. static="false" final="false" visibility="protected"
  59066. deprecated="not deprecated">
  59067. <param name="cmpcl" type="java.lang.Class"/>
  59068. </method>
  59069. <field name="rrCstrMap" type="java.util.Map"
  59070. transient="false" volatile="false"
  59071. static="true" final="true" visibility="protected"
  59072. deprecated="not deprecated">
  59073. </field>
  59074. <field name="id" type="int"
  59075. transient="false" volatile="false"
  59076. static="false" final="false" visibility="protected"
  59077. deprecated="not deprecated">
  59078. </field>
  59079. <field name="ident" type="java.lang.String"
  59080. transient="false" volatile="false"
  59081. static="false" final="false" visibility="protected"
  59082. deprecated="not deprecated">
  59083. </field>
  59084. <field name="cmpcl" type="java.lang.Class"
  59085. transient="false" volatile="false"
  59086. static="false" final="false" visibility="protected"
  59087. deprecated="not deprecated">
  59088. </field>
  59089. </class>
  59090. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  59091. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  59092. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59093. abstract="false"
  59094. static="true" final="false" visibility="public"
  59095. deprecated="not deprecated">
  59096. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  59097. abstract="false" native="false" synchronized="false"
  59098. static="false" final="false" visibility="public"
  59099. deprecated="not deprecated">
  59100. </method>
  59101. </class>
  59102. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  59103. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  59104. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59105. abstract="false"
  59106. static="true" final="false" visibility="public"
  59107. deprecated="not deprecated">
  59108. <constructor name="Parser.NumToken" type="double"
  59109. static="false" final="false" visibility="public"
  59110. deprecated="not deprecated">
  59111. </constructor>
  59112. <method name="getNum" return="double"
  59113. abstract="false" native="false" synchronized="false"
  59114. static="false" final="false" visibility="public"
  59115. deprecated="not deprecated">
  59116. </method>
  59117. </class>
  59118. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  59119. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  59120. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  59121. abstract="false"
  59122. static="true" final="false" visibility="public"
  59123. deprecated="not deprecated">
  59124. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  59125. static="false" final="false" visibility="public"
  59126. deprecated="not deprecated">
  59127. </constructor>
  59128. <method name="getStr" return="java.lang.String"
  59129. abstract="false" native="false" synchronized="false"
  59130. static="false" final="false" visibility="public"
  59131. deprecated="not deprecated">
  59132. </method>
  59133. </class>
  59134. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  59135. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  59136. <class name="Parser.Token" extends="java.lang.Object"
  59137. abstract="false"
  59138. static="true" final="false" visibility="public"
  59139. deprecated="not deprecated">
  59140. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  59141. abstract="false" native="false" synchronized="false"
  59142. static="false" final="false" visibility="public"
  59143. deprecated="not deprecated">
  59144. </method>
  59145. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  59146. abstract="false" native="false" synchronized="false"
  59147. static="false" final="false" visibility="public"
  59148. deprecated="not deprecated">
  59149. <exception name="IOException" type="java.io.IOException"/>
  59150. </method>
  59151. <method name="getNum" return="double"
  59152. abstract="false" native="false" synchronized="false"
  59153. static="false" final="false" visibility="public"
  59154. deprecated="not deprecated">
  59155. <exception name="IOException" type="java.io.IOException"/>
  59156. </method>
  59157. <method name="getStr" return="java.lang.String"
  59158. abstract="false" native="false" synchronized="false"
  59159. static="false" final="false" visibility="public"
  59160. deprecated="not deprecated">
  59161. <exception name="IOException" type="java.io.IOException"/>
  59162. </method>
  59163. <doc>
  59164. <![CDATA[Tagged-union type for tokens from the join expression.
  59165. @see Parser.TType]]>
  59166. </doc>
  59167. </class>
  59168. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  59169. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  59170. <class name="Parser.TType" extends="java.lang.Enum"
  59171. abstract="false"
  59172. static="true" final="true" visibility="public"
  59173. deprecated="not deprecated">
  59174. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  59175. abstract="false" native="false" synchronized="false"
  59176. static="true" final="false" visibility="public"
  59177. deprecated="not deprecated">
  59178. </method>
  59179. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  59180. abstract="false" native="false" synchronized="false"
  59181. static="true" final="false" visibility="public"
  59182. deprecated="not deprecated">
  59183. <param name="name" type="java.lang.String"/>
  59184. </method>
  59185. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  59186. transient="false" volatile="false"
  59187. static="true" final="true" visibility="public"
  59188. deprecated="not deprecated">
  59189. </field>
  59190. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  59191. transient="false" volatile="false"
  59192. static="true" final="true" visibility="public"
  59193. deprecated="not deprecated">
  59194. </field>
  59195. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  59196. transient="false" volatile="false"
  59197. static="true" final="true" visibility="public"
  59198. deprecated="not deprecated">
  59199. </field>
  59200. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  59201. transient="false" volatile="false"
  59202. static="true" final="true" visibility="public"
  59203. deprecated="not deprecated">
  59204. </field>
  59205. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  59206. transient="false" volatile="false"
  59207. static="true" final="true" visibility="public"
  59208. deprecated="not deprecated">
  59209. </field>
  59210. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  59211. transient="false" volatile="false"
  59212. static="true" final="true" visibility="public"
  59213. deprecated="not deprecated">
  59214. </field>
  59215. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  59216. transient="false" volatile="false"
  59217. static="true" final="true" visibility="public"
  59218. deprecated="not deprecated">
  59219. </field>
  59220. </class>
  59221. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  59222. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  59223. <interface name="ResetableIterator" abstract="true"
  59224. static="false" final="false" visibility="public"
  59225. deprecated="not deprecated">
  59226. <method name="hasNext" return="boolean"
  59227. abstract="false" native="false" synchronized="false"
  59228. static="false" final="false" visibility="public"
  59229. deprecated="not deprecated">
  59230. <doc>
  59231. <![CDATA[True if a call to next may return a value. This is permitted false
  59232. positives, but not false negatives.]]>
  59233. </doc>
  59234. </method>
  59235. <method name="next" return="boolean"
  59236. abstract="false" native="false" synchronized="false"
  59237. static="false" final="false" visibility="public"
  59238. deprecated="not deprecated">
  59239. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59240. <exception name="IOException" type="java.io.IOException"/>
  59241. <doc>
  59242. <![CDATA[Assign next value to actual.
  59243. It is required that elements added to a ResetableIterator be returned in
  59244. the same order after a call to {@link #reset} (FIFO).
  59245. Note that a call to this may fail for nested joins (i.e. more elements
  59246. available, but none satisfying the constraints of the join)]]>
  59247. </doc>
  59248. </method>
  59249. <method name="replay" return="boolean"
  59250. abstract="false" native="false" synchronized="false"
  59251. static="false" final="false" visibility="public"
  59252. deprecated="not deprecated">
  59253. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59254. <exception name="IOException" type="java.io.IOException"/>
  59255. <doc>
  59256. <![CDATA[Assign last value returned to actual.]]>
  59257. </doc>
  59258. </method>
  59259. <method name="reset"
  59260. abstract="false" native="false" synchronized="false"
  59261. static="false" final="false" visibility="public"
  59262. deprecated="not deprecated">
  59263. <doc>
  59264. <![CDATA[Set iterator to return to the start of its range. Must be called after
  59265. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  59266. </doc>
  59267. </method>
  59268. <method name="add"
  59269. abstract="false" native="false" synchronized="false"
  59270. static="false" final="false" visibility="public"
  59271. deprecated="not deprecated">
  59272. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59273. <exception name="IOException" type="java.io.IOException"/>
  59274. <doc>
  59275. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  59276. </doc>
  59277. </method>
  59278. <method name="close"
  59279. abstract="false" native="false" synchronized="false"
  59280. static="false" final="false" visibility="public"
  59281. deprecated="not deprecated">
  59282. <exception name="IOException" type="java.io.IOException"/>
  59283. <doc>
  59284. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  59285. after calling close has undefined behavior.]]>
  59286. </doc>
  59287. </method>
  59288. <method name="clear"
  59289. abstract="false" native="false" synchronized="false"
  59290. static="false" final="false" visibility="public"
  59291. deprecated="not deprecated">
  59292. <doc>
  59293. <![CDATA[Close datasources, but do not release internal resources. Calling this
  59294. method should permit the object to be reused with a different datasource.]]>
  59295. </doc>
  59296. </method>
  59297. <doc>
  59298. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  59299. added to it directly.
  59300. Note that this does not extend {@link java.util.Iterator}.]]>
  59301. </doc>
  59302. </interface>
  59303. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  59304. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  59305. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  59306. abstract="false"
  59307. static="true" final="false" visibility="public"
  59308. deprecated="not deprecated">
  59309. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59310. <constructor name="ResetableIterator.EMPTY"
  59311. static="false" final="false" visibility="public"
  59312. deprecated="not deprecated">
  59313. </constructor>
  59314. <method name="hasNext" return="boolean"
  59315. abstract="false" native="false" synchronized="false"
  59316. static="false" final="false" visibility="public"
  59317. deprecated="not deprecated">
  59318. </method>
  59319. <method name="reset"
  59320. abstract="false" native="false" synchronized="false"
  59321. static="false" final="false" visibility="public"
  59322. deprecated="not deprecated">
  59323. </method>
  59324. <method name="close"
  59325. abstract="false" native="false" synchronized="false"
  59326. static="false" final="false" visibility="public"
  59327. deprecated="not deprecated">
  59328. <exception name="IOException" type="java.io.IOException"/>
  59329. </method>
  59330. <method name="clear"
  59331. abstract="false" native="false" synchronized="false"
  59332. static="false" final="false" visibility="public"
  59333. deprecated="not deprecated">
  59334. </method>
  59335. <method name="next" return="boolean"
  59336. abstract="false" native="false" synchronized="false"
  59337. static="false" final="false" visibility="public"
  59338. deprecated="not deprecated">
  59339. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59340. <exception name="IOException" type="java.io.IOException"/>
  59341. </method>
  59342. <method name="replay" return="boolean"
  59343. abstract="false" native="false" synchronized="false"
  59344. static="false" final="false" visibility="public"
  59345. deprecated="not deprecated">
  59346. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59347. <exception name="IOException" type="java.io.IOException"/>
  59348. </method>
  59349. <method name="add"
  59350. abstract="false" native="false" synchronized="false"
  59351. static="false" final="false" visibility="public"
  59352. deprecated="not deprecated">
  59353. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59354. <exception name="IOException" type="java.io.IOException"/>
  59355. </method>
  59356. </class>
  59357. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  59358. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  59359. <class name="StreamBackedIterator" extends="java.lang.Object"
  59360. abstract="false"
  59361. static="false" final="false" visibility="public"
  59362. deprecated="not deprecated">
  59363. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  59364. <constructor name="StreamBackedIterator"
  59365. static="false" final="false" visibility="public"
  59366. deprecated="not deprecated">
  59367. </constructor>
  59368. <method name="hasNext" return="boolean"
  59369. abstract="false" native="false" synchronized="false"
  59370. static="false" final="false" visibility="public"
  59371. deprecated="not deprecated">
  59372. </method>
  59373. <method name="next" return="boolean"
  59374. abstract="false" native="false" synchronized="false"
  59375. static="false" final="false" visibility="public"
  59376. deprecated="not deprecated">
  59377. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59378. <exception name="IOException" type="java.io.IOException"/>
  59379. </method>
  59380. <method name="replay" return="boolean"
  59381. abstract="false" native="false" synchronized="false"
  59382. static="false" final="false" visibility="public"
  59383. deprecated="not deprecated">
  59384. <param name="val" type="org.apache.hadoop.io.Writable"/>
  59385. <exception name="IOException" type="java.io.IOException"/>
  59386. </method>
  59387. <method name="reset"
  59388. abstract="false" native="false" synchronized="false"
  59389. static="false" final="false" visibility="public"
  59390. deprecated="not deprecated">
  59391. </method>
  59392. <method name="add"
  59393. abstract="false" native="false" synchronized="false"
  59394. static="false" final="false" visibility="public"
  59395. deprecated="not deprecated">
  59396. <param name="item" type="org.apache.hadoop.io.Writable"/>
  59397. <exception name="IOException" type="java.io.IOException"/>
  59398. </method>
  59399. <method name="close"
  59400. abstract="false" native="false" synchronized="false"
  59401. static="false" final="false" visibility="public"
  59402. deprecated="not deprecated">
  59403. <exception name="IOException" type="java.io.IOException"/>
  59404. </method>
  59405. <method name="clear"
  59406. abstract="false" native="false" synchronized="false"
  59407. static="false" final="false" visibility="public"
  59408. deprecated="not deprecated">
  59409. </method>
  59410. <doc>
  59411. <![CDATA[This class provides an implementation of ResetableIterator. This
  59412. implementation uses a byte array to store elements added to it.]]>
  59413. </doc>
  59414. </class>
  59415. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  59416. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  59417. <class name="TupleWritable" extends="java.lang.Object"
  59418. abstract="false"
  59419. static="false" final="false" visibility="public"
  59420. deprecated="not deprecated">
  59421. <implements name="org.apache.hadoop.io.Writable"/>
  59422. <implements name="java.lang.Iterable"/>
  59423. <constructor name="TupleWritable"
  59424. static="false" final="false" visibility="public"
  59425. deprecated="not deprecated">
  59426. <doc>
  59427. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  59428. </doc>
  59429. </constructor>
  59430. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  59431. static="false" final="false" visibility="public"
  59432. deprecated="not deprecated">
  59433. <doc>
  59434. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  59435. &quot;written&quot; values.]]>
  59436. </doc>
  59437. </constructor>
  59438. <method name="has" return="boolean"
  59439. abstract="false" native="false" synchronized="false"
  59440. static="false" final="false" visibility="public"
  59441. deprecated="not deprecated">
  59442. <param name="i" type="int"/>
  59443. <doc>
  59444. <![CDATA[Return true if tuple has an element at the position provided.]]>
  59445. </doc>
  59446. </method>
  59447. <method name="get" return="org.apache.hadoop.io.Writable"
  59448. abstract="false" native="false" synchronized="false"
  59449. static="false" final="false" visibility="public"
  59450. deprecated="not deprecated">
  59451. <param name="i" type="int"/>
  59452. <doc>
  59453. <![CDATA[Get ith Writable from Tuple.]]>
  59454. </doc>
  59455. </method>
  59456. <method name="size" return="int"
  59457. abstract="false" native="false" synchronized="false"
  59458. static="false" final="false" visibility="public"
  59459. deprecated="not deprecated">
  59460. <doc>
  59461. <![CDATA[The number of children in this Tuple.]]>
  59462. </doc>
  59463. </method>
  59464. <method name="equals" return="boolean"
  59465. abstract="false" native="false" synchronized="false"
  59466. static="false" final="false" visibility="public"
  59467. deprecated="not deprecated">
  59468. <param name="other" type="java.lang.Object"/>
  59469. <doc>
  59470. <![CDATA[{@inheritDoc}]]>
  59471. </doc>
  59472. </method>
  59473. <method name="hashCode" return="int"
  59474. abstract="false" native="false" synchronized="false"
  59475. static="false" final="false" visibility="public"
  59476. deprecated="not deprecated">
  59477. </method>
  59478. <method name="iterator" return="java.util.Iterator"
  59479. abstract="false" native="false" synchronized="false"
  59480. static="false" final="false" visibility="public"
  59481. deprecated="not deprecated">
  59482. <doc>
  59483. <![CDATA[Return an iterator over the elements in this tuple.
  59484. Note that this doesn't flatten the tuple; one may receive tuples
  59485. from this iterator.]]>
  59486. </doc>
  59487. </method>
  59488. <method name="toString" return="java.lang.String"
  59489. abstract="false" native="false" synchronized="false"
  59490. static="false" final="false" visibility="public"
  59491. deprecated="not deprecated">
  59492. <doc>
  59493. <![CDATA[Convert Tuple to String as in the following.
  59494. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  59495. </doc>
  59496. </method>
  59497. <method name="write"
  59498. abstract="false" native="false" synchronized="false"
  59499. static="false" final="false" visibility="public"
  59500. deprecated="not deprecated">
  59501. <param name="out" type="java.io.DataOutput"/>
  59502. <exception name="IOException" type="java.io.IOException"/>
  59503. <doc>
  59504. <![CDATA[Writes each Writable to <code>out</code>.
  59505. TupleWritable format:
  59506. {@code
  59507. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  59508. }]]>
  59509. </doc>
  59510. </method>
  59511. <method name="readFields"
  59512. abstract="false" native="false" synchronized="false"
  59513. static="false" final="false" visibility="public"
  59514. deprecated="not deprecated">
  59515. <param name="in" type="java.io.DataInput"/>
  59516. <exception name="IOException" type="java.io.IOException"/>
  59517. <doc>
  59518. <![CDATA[{@inheritDoc}]]>
  59519. </doc>
  59520. </method>
  59521. <doc>
  59522. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  59523. This is *not* a general-purpose tuple type. In almost all cases, users are
  59524. encouraged to implement their own serializable types, which can perform
  59525. better validation and provide more efficient encodings than this class is
  59526. capable. TupleWritable relies on the join framework for type safety and
  59527. assumes its instances will rarely be persisted, assumptions not only
  59528. incompatible with, but contrary to the general case.
  59529. @see org.apache.hadoop.io.Writable]]>
  59530. </doc>
  59531. </class>
  59532. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  59533. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  59534. <class name="WrappedRecordReader" extends="java.lang.Object"
  59535. abstract="false"
  59536. static="false" final="false" visibility="public"
  59537. deprecated="not deprecated">
  59538. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59539. <method name="id" return="int"
  59540. abstract="false" native="false" synchronized="false"
  59541. static="false" final="false" visibility="public"
  59542. deprecated="not deprecated">
  59543. <doc>
  59544. <![CDATA[{@inheritDoc}]]>
  59545. </doc>
  59546. </method>
  59547. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  59548. abstract="false" native="false" synchronized="false"
  59549. static="false" final="false" visibility="public"
  59550. deprecated="not deprecated">
  59551. <doc>
  59552. <![CDATA[Return the key at the head of this RR.]]>
  59553. </doc>
  59554. </method>
  59555. <method name="key"
  59556. abstract="false" native="false" synchronized="false"
  59557. static="false" final="false" visibility="public"
  59558. deprecated="not deprecated">
  59559. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  59560. <exception name="IOException" type="java.io.IOException"/>
  59561. <doc>
  59562. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  59563. </doc>
  59564. </method>
  59565. <method name="hasNext" return="boolean"
  59566. abstract="false" native="false" synchronized="false"
  59567. static="false" final="false" visibility="public"
  59568. deprecated="not deprecated">
  59569. <doc>
  59570. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  59571. is exhausted.]]>
  59572. </doc>
  59573. </method>
  59574. <method name="skip"
  59575. abstract="false" native="false" synchronized="false"
  59576. static="false" final="false" visibility="public"
  59577. deprecated="not deprecated">
  59578. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59579. <exception name="IOException" type="java.io.IOException"/>
  59580. <doc>
  59581. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  59582. </doc>
  59583. </method>
  59584. <method name="next" return="boolean"
  59585. abstract="false" native="false" synchronized="false"
  59586. static="false" final="false" visibility="protected"
  59587. deprecated="not deprecated">
  59588. <exception name="IOException" type="java.io.IOException"/>
  59589. <doc>
  59590. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  59591. the RR and this are exhausted.]]>
  59592. </doc>
  59593. </method>
  59594. <method name="accept"
  59595. abstract="false" native="false" synchronized="false"
  59596. static="false" final="false" visibility="public"
  59597. deprecated="not deprecated">
  59598. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  59599. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59600. <exception name="IOException" type="java.io.IOException"/>
  59601. <doc>
  59602. <![CDATA[Add an iterator to the collector at the position occupied by this
  59603. RecordReader over the values in this stream paired with the key
  59604. provided (ie register a stream of values from this source matching K
  59605. with a collector).]]>
  59606. </doc>
  59607. </method>
  59608. <method name="next" return="boolean"
  59609. abstract="false" native="false" synchronized="false"
  59610. static="false" final="false" visibility="public"
  59611. deprecated="not deprecated">
  59612. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  59613. <param name="value" type="org.apache.hadoop.io.Writable"/>
  59614. <exception name="IOException" type="java.io.IOException"/>
  59615. <doc>
  59616. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  59617. get next key-value pair from proxied RR.]]>
  59618. </doc>
  59619. </method>
  59620. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  59621. abstract="false" native="false" synchronized="false"
  59622. static="false" final="false" visibility="public"
  59623. deprecated="not deprecated">
  59624. <doc>
  59625. <![CDATA[Request new key from proxied RR.]]>
  59626. </doc>
  59627. </method>
  59628. <method name="createValue" return="org.apache.hadoop.io.Writable"
  59629. abstract="false" native="false" synchronized="false"
  59630. static="false" final="false" visibility="public"
  59631. deprecated="not deprecated">
  59632. <doc>
  59633. <![CDATA[Request new value from proxied RR.]]>
  59634. </doc>
  59635. </method>
  59636. <method name="getProgress" return="float"
  59637. abstract="false" native="false" synchronized="false"
  59638. static="false" final="false" visibility="public"
  59639. deprecated="not deprecated">
  59640. <exception name="IOException" type="java.io.IOException"/>
  59641. <doc>
  59642. <![CDATA[Request progress from proxied RR.]]>
  59643. </doc>
  59644. </method>
  59645. <method name="getPos" return="long"
  59646. abstract="false" native="false" synchronized="false"
  59647. static="false" final="false" visibility="public"
  59648. deprecated="not deprecated">
  59649. <exception name="IOException" type="java.io.IOException"/>
  59650. <doc>
  59651. <![CDATA[Request position from proxied RR.]]>
  59652. </doc>
  59653. </method>
  59654. <method name="close"
  59655. abstract="false" native="false" synchronized="false"
  59656. static="false" final="false" visibility="public"
  59657. deprecated="not deprecated">
  59658. <exception name="IOException" type="java.io.IOException"/>
  59659. <doc>
  59660. <![CDATA[Forward close request to proxied RR.]]>
  59661. </doc>
  59662. </method>
  59663. <method name="compareTo" return="int"
  59664. abstract="false" native="false" synchronized="false"
  59665. static="false" final="false" visibility="public"
  59666. deprecated="not deprecated">
  59667. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  59668. <doc>
  59669. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  59670. with that of another).]]>
  59671. </doc>
  59672. </method>
  59673. <method name="equals" return="boolean"
  59674. abstract="false" native="false" synchronized="false"
  59675. static="false" final="false" visibility="public"
  59676. deprecated="not deprecated">
  59677. <param name="other" type="java.lang.Object"/>
  59678. <doc>
  59679. <![CDATA[Return true iff compareTo(other) retn true.]]>
  59680. </doc>
  59681. </method>
  59682. <method name="hashCode" return="int"
  59683. abstract="false" native="false" synchronized="false"
  59684. static="false" final="false" visibility="public"
  59685. deprecated="not deprecated">
  59686. </method>
  59687. <doc>
  59688. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  59689. This class keeps track of the &quot;head&quot; key-value pair for the
  59690. provided RecordReader and keeps a store of values matching a key when
  59691. this source is participating in a join.]]>
  59692. </doc>
  59693. </class>
  59694. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  59695. </package>
  59696. <package name="org.apache.hadoop.mapred.lib">
  59697. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  59698. <class name="ChainMapper" extends="java.lang.Object"
  59699. abstract="false"
  59700. static="false" final="false" visibility="public"
  59701. deprecated="not deprecated">
  59702. <implements name="org.apache.hadoop.mapred.Mapper"/>
  59703. <constructor name="ChainMapper"
  59704. static="false" final="false" visibility="public"
  59705. deprecated="not deprecated">
  59706. <doc>
  59707. <![CDATA[Constructor.]]>
  59708. </doc>
  59709. </constructor>
  59710. <method name="addMapper"
  59711. abstract="false" native="false" synchronized="false"
  59712. static="true" final="false" visibility="public"
  59713. deprecated="not deprecated">
  59714. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59715. <param name="klass" type="java.lang.Class"/>
  59716. <param name="inputKeyClass" type="java.lang.Class"/>
  59717. <param name="inputValueClass" type="java.lang.Class"/>
  59718. <param name="outputKeyClass" type="java.lang.Class"/>
  59719. <param name="outputValueClass" type="java.lang.Class"/>
  59720. <param name="byValue" type="boolean"/>
  59721. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  59722. <doc>
  59723. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  59724. <p/>
  59725. It has to be specified how key and values are passed from one element of
  59726. the chain to the next, by value or by reference. If a Mapper leverages the
  59727. assumed semantics that the key and values are not modified by the collector
  59728. 'by value' must be used. If the Mapper does not expect this semantics, as
  59729. an optimization to avoid serialization and deserialization 'by reference'
  59730. can be used.
  59731. <p/>
  59732. For the added Mapper the configuration given for it,
  59733. <code>mapperConf</code>, have precedence over the job's JobConf. This
  59734. precedence is in effect when the task is running.
  59735. <p/>
  59736. IMPORTANT: There is no need to specify the output key/value classes for the
  59737. ChainMapper, this is done by the addMapper for the last mapper in the chain
  59738. <p/>
  59739. @param job job's JobConf to add the Mapper class.
  59740. @param klass the Mapper class to add.
  59741. @param inputKeyClass mapper input key class.
  59742. @param inputValueClass mapper input value class.
  59743. @param outputKeyClass mapper output key class.
  59744. @param outputValueClass mapper output value class.
  59745. @param byValue indicates if key/values should be passed by value
  59746. to the next Mapper in the chain, if any.
  59747. @param mapperConf a JobConf with the configuration for the Mapper
  59748. class. It is recommended to use a JobConf without default values using the
  59749. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59750. </doc>
  59751. </method>
  59752. <method name="configure"
  59753. abstract="false" native="false" synchronized="false"
  59754. static="false" final="false" visibility="public"
  59755. deprecated="not deprecated">
  59756. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59757. <doc>
  59758. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  59759. <p/>
  59760. If this method is overriden <code>super.configure(...)</code> should be
  59761. invoked at the beginning of the overwriter method.]]>
  59762. </doc>
  59763. </method>
  59764. <method name="map"
  59765. abstract="false" native="false" synchronized="false"
  59766. static="false" final="false" visibility="public"
  59767. deprecated="not deprecated">
  59768. <param name="key" type="java.lang.Object"/>
  59769. <param name="value" type="java.lang.Object"/>
  59770. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  59771. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59772. <exception name="IOException" type="java.io.IOException"/>
  59773. <doc>
  59774. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  59775. </doc>
  59776. </method>
  59777. <method name="close"
  59778. abstract="false" native="false" synchronized="false"
  59779. static="false" final="false" visibility="public"
  59780. deprecated="not deprecated">
  59781. <exception name="IOException" type="java.io.IOException"/>
  59782. <doc>
  59783. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  59784. <p/>
  59785. If this method is overriden <code>super.close()</code> should be
  59786. invoked at the end of the overwriter method.]]>
  59787. </doc>
  59788. </method>
  59789. <doc>
  59790. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  59791. Map task.
  59792. <p/>
  59793. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  59794. the first becomes the input of the second, and so on until the last Mapper,
  59795. the output of the last Mapper will be written to the task's output.
  59796. <p/>
  59797. The key functionality of this feature is that the Mappers in the chain do not
  59798. need to be aware that they are executed in a chain. This enables having
  59799. reusable specialized Mappers that can be combined to perform composite
  59800. operations within a single task.
  59801. <p/>
  59802. Special care has to be taken when creating chains that the key/values output
  59803. by a Mapper are valid for the following Mapper in the chain. It is assumed
  59804. all Mappers and the Reduce in the chain use maching output and input key and
  59805. value classes as no conversion is done by the chaining code.
  59806. <p/>
  59807. Using the ChainMapper and the ChainReducer classes is possible to compose
  59808. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  59809. immediate benefit of this pattern is a dramatic reduction in disk IO.
  59810. <p/>
  59811. IMPORTANT: There is no need to specify the output key/value classes for the
  59812. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  59813. <p/>
  59814. ChainMapper usage pattern:
  59815. <p/>
  59816. <pre>
  59817. ...
  59818. conf.setJobName("chain");
  59819. conf.setInputFormat(TextInputFormat.class);
  59820. conf.setOutputFormat(TextOutputFormat.class);
  59821. <p/>
  59822. JobConf mapAConf = new JobConf(false);
  59823. ...
  59824. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  59825. Text.class, Text.class, true, mapAConf);
  59826. <p/>
  59827. JobConf mapBConf = new JobConf(false);
  59828. ...
  59829. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  59830. LongWritable.class, Text.class, false, mapBConf);
  59831. <p/>
  59832. JobConf reduceConf = new JobConf(false);
  59833. ...
  59834. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  59835. Text.class, Text.class, true, reduceConf);
  59836. <p/>
  59837. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  59838. LongWritable.class, Text.class, false, null);
  59839. <p/>
  59840. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  59841. LongWritable.class, LongWritable.class, true, null);
  59842. <p/>
  59843. FileInputFormat.setInputPaths(conf, inDir);
  59844. FileOutputFormat.setOutputPath(conf, outDir);
  59845. ...
  59846. <p/>
  59847. JobClient jc = new JobClient(conf);
  59848. RunningJob job = jc.submitJob(conf);
  59849. ...
  59850. </pre>]]>
  59851. </doc>
  59852. </class>
  59853. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  59854. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  59855. <class name="ChainReducer" extends="java.lang.Object"
  59856. abstract="false"
  59857. static="false" final="false" visibility="public"
  59858. deprecated="not deprecated">
  59859. <implements name="org.apache.hadoop.mapred.Reducer"/>
  59860. <constructor name="ChainReducer"
  59861. static="false" final="false" visibility="public"
  59862. deprecated="not deprecated">
  59863. <doc>
  59864. <![CDATA[Constructor.]]>
  59865. </doc>
  59866. </constructor>
  59867. <method name="setReducer"
  59868. abstract="false" native="false" synchronized="false"
  59869. static="true" final="false" visibility="public"
  59870. deprecated="not deprecated">
  59871. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59872. <param name="klass" type="java.lang.Class"/>
  59873. <param name="inputKeyClass" type="java.lang.Class"/>
  59874. <param name="inputValueClass" type="java.lang.Class"/>
  59875. <param name="outputKeyClass" type="java.lang.Class"/>
  59876. <param name="outputValueClass" type="java.lang.Class"/>
  59877. <param name="byValue" type="boolean"/>
  59878. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  59879. <doc>
  59880. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  59881. <p/>
  59882. It has to be specified how key and values are passed from one element of
  59883. the chain to the next, by value or by reference. If a Reducer leverages the
  59884. assumed semantics that the key and values are not modified by the collector
  59885. 'by value' must be used. If the Reducer does not expect this semantics, as
  59886. an optimization to avoid serialization and deserialization 'by reference'
  59887. can be used.
  59888. <p/>
  59889. For the added Reducer the configuration given for it,
  59890. <code>reducerConf</code>, have precedence over the job's JobConf. This
  59891. precedence is in effect when the task is running.
  59892. <p/>
  59893. IMPORTANT: There is no need to specify the output key/value classes for the
  59894. ChainReducer, this is done by the setReducer or the addMapper for the last
  59895. element in the chain.
  59896. @param job job's JobConf to add the Reducer class.
  59897. @param klass the Reducer class to add.
  59898. @param inputKeyClass reducer input key class.
  59899. @param inputValueClass reducer input value class.
  59900. @param outputKeyClass reducer output key class.
  59901. @param outputValueClass reducer output value class.
  59902. @param byValue indicates if key/values should be passed by value
  59903. to the next Mapper in the chain, if any.
  59904. @param reducerConf a JobConf with the configuration for the Reducer
  59905. class. It is recommended to use a JobConf without default values using the
  59906. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59907. </doc>
  59908. </method>
  59909. <method name="addMapper"
  59910. abstract="false" native="false" synchronized="false"
  59911. static="true" final="false" visibility="public"
  59912. deprecated="not deprecated">
  59913. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59914. <param name="klass" type="java.lang.Class"/>
  59915. <param name="inputKeyClass" type="java.lang.Class"/>
  59916. <param name="inputValueClass" type="java.lang.Class"/>
  59917. <param name="outputKeyClass" type="java.lang.Class"/>
  59918. <param name="outputValueClass" type="java.lang.Class"/>
  59919. <param name="byValue" type="boolean"/>
  59920. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  59921. <doc>
  59922. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  59923. <p/>
  59924. It has to be specified how key and values are passed from one element of
  59925. the chain to the next, by value or by reference. If a Mapper leverages the
  59926. assumed semantics that the key and values are not modified by the collector
  59927. 'by value' must be used. If the Mapper does not expect this semantics, as
  59928. an optimization to avoid serialization and deserialization 'by reference'
  59929. can be used.
  59930. <p/>
  59931. For the added Mapper the configuration given for it,
  59932. <code>mapperConf</code>, have precedence over the job's JobConf. This
  59933. precedence is in effect when the task is running.
  59934. <p/>
  59935. IMPORTANT: There is no need to specify the output key/value classes for the
  59936. ChainMapper, this is done by the addMapper for the last mapper in the chain
  59937. .
  59938. @param job chain job's JobConf to add the Mapper class.
  59939. @param klass the Mapper class to add.
  59940. @param inputKeyClass mapper input key class.
  59941. @param inputValueClass mapper input value class.
  59942. @param outputKeyClass mapper output key class.
  59943. @param outputValueClass mapper output value class.
  59944. @param byValue indicates if key/values should be passed by value
  59945. to the next Mapper in the chain, if any.
  59946. @param mapperConf a JobConf with the configuration for the Mapper
  59947. class. It is recommended to use a JobConf without default values using the
  59948. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  59949. </doc>
  59950. </method>
  59951. <method name="configure"
  59952. abstract="false" native="false" synchronized="false"
  59953. static="false" final="false" visibility="public"
  59954. deprecated="not deprecated">
  59955. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  59956. <doc>
  59957. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  59958. <p/>
  59959. If this method is overriden <code>super.configure(...)</code> should be
  59960. invoked at the beginning of the overwriter method.]]>
  59961. </doc>
  59962. </method>
  59963. <method name="reduce"
  59964. abstract="false" native="false" synchronized="false"
  59965. static="false" final="false" visibility="public"
  59966. deprecated="not deprecated">
  59967. <param name="key" type="java.lang.Object"/>
  59968. <param name="values" type="java.util.Iterator"/>
  59969. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  59970. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  59971. <exception name="IOException" type="java.io.IOException"/>
  59972. <doc>
  59973. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  59974. <code>map(...) </code> methods of the Mappers in the chain.]]>
  59975. </doc>
  59976. </method>
  59977. <method name="close"
  59978. abstract="false" native="false" synchronized="false"
  59979. static="false" final="false" visibility="public"
  59980. deprecated="not deprecated">
  59981. <exception name="IOException" type="java.io.IOException"/>
  59982. <doc>
  59983. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  59984. <p/>
  59985. If this method is overriden <code>super.close()</code> should be
  59986. invoked at the end of the overwriter method.]]>
  59987. </doc>
  59988. </method>
  59989. <doc>
  59990. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  59991. Reducer within the Reducer task.
  59992. <p/>
  59993. For each record output by the Reducer, the Mapper classes are invoked in a
  59994. chained (or piped) fashion, the output of the first becomes the input of the
  59995. second, and so on until the last Mapper, the output of the last Mapper will
  59996. be written to the task's output.
  59997. <p/>
  59998. The key functionality of this feature is that the Mappers in the chain do not
  59999. need to be aware that they are executed after the Reducer or in a chain.
  60000. This enables having reusable specialized Mappers that can be combined to
  60001. perform composite operations within a single task.
  60002. <p/>
  60003. Special care has to be taken when creating chains that the key/values output
  60004. by a Mapper are valid for the following Mapper in the chain. It is assumed
  60005. all Mappers and the Reduce in the chain use maching output and input key and
  60006. value classes as no conversion is done by the chaining code.
  60007. <p/>
  60008. Using the ChainMapper and the ChainReducer classes is possible to compose
  60009. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  60010. immediate benefit of this pattern is a dramatic reduction in disk IO.
  60011. <p/>
  60012. IMPORTANT: There is no need to specify the output key/value classes for the
  60013. ChainReducer, this is done by the setReducer or the addMapper for the last
  60014. element in the chain.
  60015. <p/>
  60016. ChainReducer usage pattern:
  60017. <p/>
  60018. <pre>
  60019. ...
  60020. conf.setJobName("chain");
  60021. conf.setInputFormat(TextInputFormat.class);
  60022. conf.setOutputFormat(TextOutputFormat.class);
  60023. <p/>
  60024. JobConf mapAConf = new JobConf(false);
  60025. ...
  60026. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  60027. Text.class, Text.class, true, mapAConf);
  60028. <p/>
  60029. JobConf mapBConf = new JobConf(false);
  60030. ...
  60031. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  60032. LongWritable.class, Text.class, false, mapBConf);
  60033. <p/>
  60034. JobConf reduceConf = new JobConf(false);
  60035. ...
  60036. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  60037. Text.class, Text.class, true, reduceConf);
  60038. <p/>
  60039. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  60040. LongWritable.class, Text.class, false, null);
  60041. <p/>
  60042. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  60043. LongWritable.class, LongWritable.class, true, null);
  60044. <p/>
  60045. FileInputFormat.setInputPaths(conf, inDir);
  60046. FileOutputFormat.setOutputPath(conf, outDir);
  60047. ...
  60048. <p/>
  60049. JobClient jc = new JobClient(conf);
  60050. RunningJob job = jc.submitJob(conf);
  60051. ...
  60052. </pre>]]>
  60053. </doc>
  60054. </class>
  60055. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  60056. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  60057. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  60058. abstract="true"
  60059. static="false" final="false" visibility="public"
  60060. deprecated="not deprecated">
  60061. <constructor name="CombineFileInputFormat"
  60062. static="false" final="false" visibility="public"
  60063. deprecated="not deprecated">
  60064. <doc>
  60065. <![CDATA[default constructor]]>
  60066. </doc>
  60067. </constructor>
  60068. <method name="setMaxSplitSize"
  60069. abstract="false" native="false" synchronized="false"
  60070. static="false" final="false" visibility="protected"
  60071. deprecated="not deprecated">
  60072. <param name="maxSplitSize" type="long"/>
  60073. <doc>
  60074. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  60075. approximately equal to the specified size.]]>
  60076. </doc>
  60077. </method>
  60078. <method name="setMinSplitSizeNode"
  60079. abstract="false" native="false" synchronized="false"
  60080. static="false" final="false" visibility="protected"
  60081. deprecated="not deprecated">
  60082. <param name="minSplitSizeNode" type="long"/>
  60083. <doc>
  60084. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  60085. This applies to data that is left over after combining data on a single
  60086. node into splits that are of maximum size specified by maxSplitSize.
  60087. This leftover data will be combined into its own split if its size
  60088. exceeds minSplitSizeNode.]]>
  60089. </doc>
  60090. </method>
  60091. <method name="setMinSplitSizeRack"
  60092. abstract="false" native="false" synchronized="false"
  60093. static="false" final="false" visibility="protected"
  60094. deprecated="not deprecated">
  60095. <param name="minSplitSizeRack" type="long"/>
  60096. <doc>
  60097. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  60098. This applies to data that is left over after combining data on a single
  60099. rack into splits that are of maximum size specified by maxSplitSize.
  60100. This leftover data will be combined into its own split if its size
  60101. exceeds minSplitSizeRack.]]>
  60102. </doc>
  60103. </method>
  60104. <method name="createPool"
  60105. abstract="false" native="false" synchronized="false"
  60106. static="false" final="false" visibility="protected"
  60107. deprecated="not deprecated">
  60108. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60109. <param name="filters" type="java.util.List"/>
  60110. <doc>
  60111. <![CDATA[Create a new pool and add the filters to it.
  60112. A split cannot have files from different pools.]]>
  60113. </doc>
  60114. </method>
  60115. <method name="createPool"
  60116. abstract="false" native="false" synchronized="false"
  60117. static="false" final="false" visibility="protected"
  60118. deprecated="not deprecated">
  60119. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60120. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  60121. <doc>
  60122. <![CDATA[Create a new pool and add the filters to it.
  60123. A pathname can satisfy any one of the specified filters.
  60124. A split cannot have files from different pools.]]>
  60125. </doc>
  60126. </method>
  60127. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60128. abstract="false" native="false" synchronized="false"
  60129. static="false" final="false" visibility="public"
  60130. deprecated="not deprecated">
  60131. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60132. <param name="numSplits" type="int"/>
  60133. <exception name="IOException" type="java.io.IOException"/>
  60134. </method>
  60135. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  60136. abstract="true" native="false" synchronized="false"
  60137. static="false" final="false" visibility="public"
  60138. deprecated="not deprecated">
  60139. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60140. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60141. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60142. <exception name="IOException" type="java.io.IOException"/>
  60143. <doc>
  60144. <![CDATA[This is not implemented yet.]]>
  60145. </doc>
  60146. </method>
  60147. <doc>
  60148. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  60149. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  60150. Splits are constructed from the files under the input paths.
  60151. A split cannot have files from different pools.
  60152. Each split returned may contain blocks from different files.
  60153. If a maxSplitSize is specified, then blocks on the same node are
  60154. combined to form a single split. Blocks that are left over are
  60155. then combined with other blocks in the same rack.
  60156. If maxSplitSize is not specified, then blocks from the same rack
  60157. are combined in a single split; no attempt is made to create
  60158. node-local splits.
  60159. If the maxSplitSize is equal to the block size, then this class
  60160. is similar to the default spliting behaviour in Hadoop: each
  60161. block is a locally processed split.
  60162. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  60163. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  60164. @see CombineFileSplit]]>
  60165. </doc>
  60166. </class>
  60167. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  60168. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  60169. <class name="CombineFileRecordReader" extends="java.lang.Object"
  60170. abstract="false"
  60171. static="false" final="false" visibility="public"
  60172. deprecated="not deprecated">
  60173. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  60174. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  60175. static="false" final="false" visibility="public"
  60176. deprecated="not deprecated">
  60177. <exception name="IOException" type="java.io.IOException"/>
  60178. <doc>
  60179. <![CDATA[A generic RecordReader that can hand out different recordReaders
  60180. for each chunk in the CombineFileSplit.]]>
  60181. </doc>
  60182. </constructor>
  60183. <method name="next" return="boolean"
  60184. abstract="false" native="false" synchronized="false"
  60185. static="false" final="false" visibility="public"
  60186. deprecated="not deprecated">
  60187. <param name="key" type="java.lang.Object"/>
  60188. <param name="value" type="java.lang.Object"/>
  60189. <exception name="IOException" type="java.io.IOException"/>
  60190. </method>
  60191. <method name="createKey" return="java.lang.Object"
  60192. abstract="false" native="false" synchronized="false"
  60193. static="false" final="false" visibility="public"
  60194. deprecated="not deprecated">
  60195. </method>
  60196. <method name="createValue" return="java.lang.Object"
  60197. abstract="false" native="false" synchronized="false"
  60198. static="false" final="false" visibility="public"
  60199. deprecated="not deprecated">
  60200. </method>
  60201. <method name="getPos" return="long"
  60202. abstract="false" native="false" synchronized="false"
  60203. static="false" final="false" visibility="public"
  60204. deprecated="not deprecated">
  60205. <exception name="IOException" type="java.io.IOException"/>
  60206. <doc>
  60207. <![CDATA[return the amount of data processed]]>
  60208. </doc>
  60209. </method>
  60210. <method name="close"
  60211. abstract="false" native="false" synchronized="false"
  60212. static="false" final="false" visibility="public"
  60213. deprecated="not deprecated">
  60214. <exception name="IOException" type="java.io.IOException"/>
  60215. </method>
  60216. <method name="getProgress" return="float"
  60217. abstract="false" native="false" synchronized="false"
  60218. static="false" final="false" visibility="public"
  60219. deprecated="not deprecated">
  60220. <exception name="IOException" type="java.io.IOException"/>
  60221. <doc>
  60222. <![CDATA[return progress based on the amount of data processed so far.]]>
  60223. </doc>
  60224. </method>
  60225. <method name="initNextRecordReader" return="boolean"
  60226. abstract="false" native="false" synchronized="false"
  60227. static="false" final="false" visibility="protected"
  60228. deprecated="not deprecated">
  60229. <exception name="IOException" type="java.io.IOException"/>
  60230. <doc>
  60231. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  60232. </doc>
  60233. </method>
  60234. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  60235. transient="false" volatile="false"
  60236. static="false" final="false" visibility="protected"
  60237. deprecated="not deprecated">
  60238. </field>
  60239. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  60240. transient="false" volatile="false"
  60241. static="false" final="false" visibility="protected"
  60242. deprecated="not deprecated">
  60243. </field>
  60244. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  60245. transient="false" volatile="false"
  60246. static="false" final="false" visibility="protected"
  60247. deprecated="not deprecated">
  60248. </field>
  60249. <field name="rrClass" type="java.lang.Class"
  60250. transient="false" volatile="false"
  60251. static="false" final="false" visibility="protected"
  60252. deprecated="not deprecated">
  60253. </field>
  60254. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  60255. transient="false" volatile="false"
  60256. static="false" final="false" visibility="protected"
  60257. deprecated="not deprecated">
  60258. </field>
  60259. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  60260. transient="false" volatile="false"
  60261. static="false" final="false" visibility="protected"
  60262. deprecated="not deprecated">
  60263. </field>
  60264. <field name="idx" type="int"
  60265. transient="false" volatile="false"
  60266. static="false" final="false" visibility="protected"
  60267. deprecated="not deprecated">
  60268. </field>
  60269. <field name="progress" type="long"
  60270. transient="false" volatile="false"
  60271. static="false" final="false" visibility="protected"
  60272. deprecated="not deprecated">
  60273. </field>
  60274. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  60275. transient="false" volatile="false"
  60276. static="false" final="false" visibility="protected"
  60277. deprecated="not deprecated">
  60278. </field>
  60279. <doc>
  60280. <![CDATA[A generic RecordReader that can hand out different recordReaders
  60281. for each chunk in a {@link CombineFileSplit}.
  60282. A CombineFileSplit can combine data chunks from multiple files.
  60283. This class allows using different RecordReaders for processing
  60284. these data chunks from different files.
  60285. @see CombineFileSplit]]>
  60286. </doc>
  60287. </class>
  60288. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  60289. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  60290. <class name="CombineFileSplit" extends="java.lang.Object"
  60291. abstract="false"
  60292. static="false" final="false" visibility="public"
  60293. deprecated="not deprecated">
  60294. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  60295. <constructor name="CombineFileSplit"
  60296. static="false" final="false" visibility="public"
  60297. deprecated="not deprecated">
  60298. <doc>
  60299. <![CDATA[default constructor]]>
  60300. </doc>
  60301. </constructor>
  60302. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  60303. static="false" final="false" visibility="public"
  60304. deprecated="not deprecated">
  60305. </constructor>
  60306. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  60307. static="false" final="false" visibility="public"
  60308. deprecated="not deprecated">
  60309. </constructor>
  60310. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  60311. static="false" final="false" visibility="public"
  60312. deprecated="not deprecated">
  60313. <exception name="IOException" type="java.io.IOException"/>
  60314. <doc>
  60315. <![CDATA[Copy constructor]]>
  60316. </doc>
  60317. </constructor>
  60318. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  60319. abstract="false" native="false" synchronized="false"
  60320. static="false" final="false" visibility="public"
  60321. deprecated="not deprecated">
  60322. </method>
  60323. <method name="getLength" return="long"
  60324. abstract="false" native="false" synchronized="false"
  60325. static="false" final="false" visibility="public"
  60326. deprecated="not deprecated">
  60327. </method>
  60328. <method name="getStartOffsets" return="long[]"
  60329. abstract="false" native="false" synchronized="false"
  60330. static="false" final="false" visibility="public"
  60331. deprecated="not deprecated">
  60332. <doc>
  60333. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  60334. </doc>
  60335. </method>
  60336. <method name="getLengths" return="long[]"
  60337. abstract="false" native="false" synchronized="false"
  60338. static="false" final="false" visibility="public"
  60339. deprecated="not deprecated">
  60340. <doc>
  60341. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  60342. </doc>
  60343. </method>
  60344. <method name="getOffset" return="long"
  60345. abstract="false" native="false" synchronized="false"
  60346. static="false" final="false" visibility="public"
  60347. deprecated="not deprecated">
  60348. <param name="i" type="int"/>
  60349. <doc>
  60350. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  60351. </doc>
  60352. </method>
  60353. <method name="getLength" return="long"
  60354. abstract="false" native="false" synchronized="false"
  60355. static="false" final="false" visibility="public"
  60356. deprecated="not deprecated">
  60357. <param name="i" type="int"/>
  60358. <doc>
  60359. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  60360. </doc>
  60361. </method>
  60362. <method name="getNumPaths" return="int"
  60363. abstract="false" native="false" synchronized="false"
  60364. static="false" final="false" visibility="public"
  60365. deprecated="not deprecated">
  60366. <doc>
  60367. <![CDATA[Returns the number of Paths in the split]]>
  60368. </doc>
  60369. </method>
  60370. <method name="getPath" return="org.apache.hadoop.fs.Path"
  60371. abstract="false" native="false" synchronized="false"
  60372. static="false" final="false" visibility="public"
  60373. deprecated="not deprecated">
  60374. <param name="i" type="int"/>
  60375. <doc>
  60376. <![CDATA[Returns the i<sup>th</sup> Path]]>
  60377. </doc>
  60378. </method>
  60379. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  60380. abstract="false" native="false" synchronized="false"
  60381. static="false" final="false" visibility="public"
  60382. deprecated="not deprecated">
  60383. <doc>
  60384. <![CDATA[Returns all the Paths in the split]]>
  60385. </doc>
  60386. </method>
  60387. <method name="getLocations" return="java.lang.String[]"
  60388. abstract="false" native="false" synchronized="false"
  60389. static="false" final="false" visibility="public"
  60390. deprecated="not deprecated">
  60391. <exception name="IOException" type="java.io.IOException"/>
  60392. <doc>
  60393. <![CDATA[Returns all the Paths where this input-split resides]]>
  60394. </doc>
  60395. </method>
  60396. <method name="readFields"
  60397. abstract="false" native="false" synchronized="false"
  60398. static="false" final="false" visibility="public"
  60399. deprecated="not deprecated">
  60400. <param name="in" type="java.io.DataInput"/>
  60401. <exception name="IOException" type="java.io.IOException"/>
  60402. </method>
  60403. <method name="write"
  60404. abstract="false" native="false" synchronized="false"
  60405. static="false" final="false" visibility="public"
  60406. deprecated="not deprecated">
  60407. <param name="out" type="java.io.DataOutput"/>
  60408. <exception name="IOException" type="java.io.IOException"/>
  60409. </method>
  60410. <method name="toString" return="java.lang.String"
  60411. abstract="false" native="false" synchronized="false"
  60412. static="false" final="false" visibility="public"
  60413. deprecated="not deprecated">
  60414. </method>
  60415. <doc>
  60416. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  60417. CombineFileSplit * class does not represent a split of a file, but a split of input files
  60418. into smaller sets. A split may contain blocks from different file but all
  60419. the blocks in the same split are probably local to some rack <br>
  60420. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  60421. with reading one record per file.
  60422. @see org.apache.hadoop.mapred.FileSplit
  60423. @see CombineFileInputFormat]]>
  60424. </doc>
  60425. </class>
  60426. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  60427. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  60428. <class name="DelegatingInputFormat" extends="java.lang.Object"
  60429. abstract="false"
  60430. static="false" final="false" visibility="public"
  60431. deprecated="not deprecated">
  60432. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  60433. <constructor name="DelegatingInputFormat"
  60434. static="false" final="false" visibility="public"
  60435. deprecated="not deprecated">
  60436. </constructor>
  60437. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  60438. abstract="false" native="false" synchronized="false"
  60439. static="false" final="false" visibility="public"
  60440. deprecated="not deprecated">
  60441. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60442. <param name="numSplits" type="int"/>
  60443. <exception name="IOException" type="java.io.IOException"/>
  60444. </method>
  60445. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  60446. abstract="false" native="false" synchronized="false"
  60447. static="false" final="false" visibility="public"
  60448. deprecated="not deprecated">
  60449. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  60450. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60451. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60452. <exception name="IOException" type="java.io.IOException"/>
  60453. </method>
  60454. <doc>
  60455. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  60456. InputFormats.
  60457. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  60458. </doc>
  60459. </class>
  60460. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  60461. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  60462. <class name="DelegatingMapper" extends="java.lang.Object"
  60463. abstract="false"
  60464. static="false" final="false" visibility="public"
  60465. deprecated="not deprecated">
  60466. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60467. <constructor name="DelegatingMapper"
  60468. static="false" final="false" visibility="public"
  60469. deprecated="not deprecated">
  60470. </constructor>
  60471. <method name="map"
  60472. abstract="false" native="false" synchronized="false"
  60473. static="false" final="false" visibility="public"
  60474. deprecated="not deprecated">
  60475. <param name="key" type="java.lang.Object"/>
  60476. <param name="value" type="java.lang.Object"/>
  60477. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  60478. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60479. <exception name="IOException" type="java.io.IOException"/>
  60480. </method>
  60481. <method name="configure"
  60482. abstract="false" native="false" synchronized="false"
  60483. static="false" final="false" visibility="public"
  60484. deprecated="not deprecated">
  60485. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60486. </method>
  60487. <method name="close"
  60488. abstract="false" native="false" synchronized="false"
  60489. static="false" final="false" visibility="public"
  60490. deprecated="not deprecated">
  60491. <exception name="IOException" type="java.io.IOException"/>
  60492. </method>
  60493. <doc>
  60494. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  60495. mappers.
  60496. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  60497. </doc>
  60498. </class>
  60499. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  60500. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  60501. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  60502. abstract="false"
  60503. static="false" final="false" visibility="public"
  60504. deprecated="not deprecated">
  60505. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60506. <implements name="org.apache.hadoop.mapred.Reducer"/>
  60507. <constructor name="FieldSelectionMapReduce"
  60508. static="false" final="false" visibility="public"
  60509. deprecated="not deprecated">
  60510. </constructor>
  60511. <method name="map"
  60512. abstract="false" native="false" synchronized="false"
  60513. static="false" final="false" visibility="public"
  60514. deprecated="not deprecated">
  60515. <param name="key" type="java.lang.Object"/>
  60516. <param name="val" type="java.lang.Object"/>
  60517. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60518. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60519. <exception name="IOException" type="java.io.IOException"/>
  60520. <doc>
  60521. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  60522. </doc>
  60523. </method>
  60524. <method name="configure"
  60525. abstract="false" native="false" synchronized="false"
  60526. static="false" final="false" visibility="public"
  60527. deprecated="not deprecated">
  60528. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60529. </method>
  60530. <method name="close"
  60531. abstract="false" native="false" synchronized="false"
  60532. static="false" final="false" visibility="public"
  60533. deprecated="not deprecated">
  60534. <exception name="IOException" type="java.io.IOException"/>
  60535. </method>
  60536. <method name="reduce"
  60537. abstract="false" native="false" synchronized="false"
  60538. static="false" final="false" visibility="public"
  60539. deprecated="not deprecated">
  60540. <param name="key" type="org.apache.hadoop.io.Text"/>
  60541. <param name="values" type="java.util.Iterator"/>
  60542. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60543. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60544. <exception name="IOException" type="java.io.IOException"/>
  60545. </method>
  60546. <field name="LOG" type="org.apache.commons.logging.Log"
  60547. transient="false" volatile="false"
  60548. static="true" final="true" visibility="public"
  60549. deprecated="not deprecated">
  60550. </field>
  60551. <doc>
  60552. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  60553. field selections in a manner similar to unix cut. The input data is treated
  60554. as fields separated by a user specified separator (the default value is
  60555. "\t"). The user can specify a list of fields that form the map output keys,
  60556. and a list of fields that form the map output values. If the inputformat is
  60557. TextInputFormat, the mapper will ignore the key to the map function. and the
  60558. fields are from the value only. Otherwise, the fields are the union of those
  60559. from the key and those from the value.
  60560. The field separator is under attribute "mapred.data.field.separator"
  60561. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  60562. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  60563. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  60564. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  60565. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  60566. the fields starting from field 3. The open range field spec applies value fields only.
  60567. They have no effect on the key fields.
  60568. 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,
  60569. and use fields 6,5,1,2,3,7 and above for values.
  60570. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  60571. The reducer extracts output key/value pairs in a similar manner, except that
  60572. the key is never ignored.]]>
  60573. </doc>
  60574. </class>
  60575. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  60576. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  60577. <class name="HashPartitioner" extends="java.lang.Object"
  60578. abstract="false"
  60579. static="false" final="false" visibility="public"
  60580. deprecated="not deprecated">
  60581. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  60582. <constructor name="HashPartitioner"
  60583. static="false" final="false" visibility="public"
  60584. deprecated="not deprecated">
  60585. </constructor>
  60586. <method name="configure"
  60587. abstract="false" native="false" synchronized="false"
  60588. static="false" final="false" visibility="public"
  60589. deprecated="not deprecated">
  60590. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60591. </method>
  60592. <method name="getPartition" return="int"
  60593. abstract="false" native="false" synchronized="false"
  60594. static="false" final="false" visibility="public"
  60595. deprecated="not deprecated">
  60596. <param name="key" type="java.lang.Object"/>
  60597. <param name="value" type="java.lang.Object"/>
  60598. <param name="numReduceTasks" type="int"/>
  60599. <doc>
  60600. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  60601. </doc>
  60602. </method>
  60603. <doc>
  60604. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  60605. </doc>
  60606. </class>
  60607. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  60608. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  60609. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  60610. abstract="false"
  60611. static="false" final="false" visibility="public"
  60612. deprecated="not deprecated">
  60613. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60614. <constructor name="IdentityMapper"
  60615. static="false" final="false" visibility="public"
  60616. deprecated="not deprecated">
  60617. </constructor>
  60618. <method name="map"
  60619. abstract="false" native="false" synchronized="false"
  60620. static="false" final="false" visibility="public"
  60621. deprecated="not deprecated">
  60622. <param name="key" type="java.lang.Object"/>
  60623. <param name="val" type="java.lang.Object"/>
  60624. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60625. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60626. <exception name="IOException" type="java.io.IOException"/>
  60627. <doc>
  60628. <![CDATA[The identify function. Input key/value pair is written directly to
  60629. output.]]>
  60630. </doc>
  60631. </method>
  60632. <doc>
  60633. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  60634. </doc>
  60635. </class>
  60636. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  60637. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  60638. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  60639. abstract="false"
  60640. static="false" final="false" visibility="public"
  60641. deprecated="not deprecated">
  60642. <implements name="org.apache.hadoop.mapred.Reducer"/>
  60643. <constructor name="IdentityReducer"
  60644. static="false" final="false" visibility="public"
  60645. deprecated="not deprecated">
  60646. </constructor>
  60647. <method name="reduce"
  60648. abstract="false" native="false" synchronized="false"
  60649. static="false" final="false" visibility="public"
  60650. deprecated="not deprecated">
  60651. <param name="key" type="java.lang.Object"/>
  60652. <param name="values" type="java.util.Iterator"/>
  60653. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60654. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60655. <exception name="IOException" type="java.io.IOException"/>
  60656. <doc>
  60657. <![CDATA[Writes all keys and values directly to output.]]>
  60658. </doc>
  60659. </method>
  60660. <doc>
  60661. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  60662. </doc>
  60663. </class>
  60664. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  60665. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  60666. <class name="InputSampler" extends="java.lang.Object"
  60667. abstract="false"
  60668. static="false" final="false" visibility="public"
  60669. deprecated="not deprecated">
  60670. <implements name="org.apache.hadoop.util.Tool"/>
  60671. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  60672. static="false" final="false" visibility="public"
  60673. deprecated="not deprecated">
  60674. </constructor>
  60675. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  60676. abstract="false" native="false" synchronized="false"
  60677. static="false" final="false" visibility="public"
  60678. deprecated="not deprecated">
  60679. </method>
  60680. <method name="setConf"
  60681. abstract="false" native="false" synchronized="false"
  60682. static="false" final="false" visibility="public"
  60683. deprecated="not deprecated">
  60684. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60685. </method>
  60686. <method name="writePartitionFile"
  60687. abstract="false" native="false" synchronized="false"
  60688. static="true" final="false" visibility="public"
  60689. deprecated="not deprecated">
  60690. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60691. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60692. <exception name="IOException" type="java.io.IOException"/>
  60693. <doc>
  60694. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  60695. Queries the sampler for a sample keyset, sorts by the output key
  60696. comparator, selects the keys for each rank, and writes to the destination
  60697. returned from {@link
  60698. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  60699. </doc>
  60700. </method>
  60701. <method name="run" return="int"
  60702. abstract="false" native="false" synchronized="false"
  60703. static="false" final="false" visibility="public"
  60704. deprecated="not deprecated">
  60705. <param name="args" type="java.lang.String[]"/>
  60706. <exception name="Exception" type="java.lang.Exception"/>
  60707. <doc>
  60708. <![CDATA[Driver for InputSampler from the command line.
  60709. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  60710. </doc>
  60711. </method>
  60712. <method name="main"
  60713. abstract="false" native="false" synchronized="false"
  60714. static="true" final="false" visibility="public"
  60715. deprecated="not deprecated">
  60716. <param name="args" type="java.lang.String[]"/>
  60717. <exception name="Exception" type="java.lang.Exception"/>
  60718. </method>
  60719. <doc>
  60720. <![CDATA[Utility for collecting samples and writing a partition file for
  60721. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  60722. </doc>
  60723. </class>
  60724. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  60725. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  60726. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  60727. abstract="false"
  60728. static="true" final="false" visibility="public"
  60729. deprecated="not deprecated">
  60730. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60731. <constructor name="InputSampler.IntervalSampler" type="double"
  60732. static="false" final="false" visibility="public"
  60733. deprecated="not deprecated">
  60734. <doc>
  60735. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  60736. @param freq The frequency with which records will be emitted.]]>
  60737. </doc>
  60738. </constructor>
  60739. <constructor name="InputSampler.IntervalSampler" type="double, int"
  60740. static="false" final="false" visibility="public"
  60741. deprecated="not deprecated">
  60742. <doc>
  60743. <![CDATA[Create a new IntervalSampler.
  60744. @param freq The frequency with which records will be emitted.
  60745. @param maxSplitsSampled The maximum number of splits to examine.
  60746. @see #getSample]]>
  60747. </doc>
  60748. </constructor>
  60749. <method name="getSample" return="java.lang.Object[]"
  60750. abstract="false" native="false" synchronized="false"
  60751. static="false" final="false" visibility="public"
  60752. deprecated="not deprecated">
  60753. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60754. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60755. <exception name="IOException" type="java.io.IOException"/>
  60756. <doc>
  60757. <![CDATA[For each split sampled, emit when the ratio of the number of records
  60758. retained to the total record count is less than the specified
  60759. frequency.]]>
  60760. </doc>
  60761. </method>
  60762. <doc>
  60763. <![CDATA[Sample from s splits at regular intervals.
  60764. Useful for sorted data.]]>
  60765. </doc>
  60766. </class>
  60767. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  60768. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  60769. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  60770. abstract="false"
  60771. static="true" final="false" visibility="public"
  60772. deprecated="not deprecated">
  60773. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60774. <constructor name="InputSampler.RandomSampler" type="double, int"
  60775. static="false" final="false" visibility="public"
  60776. deprecated="not deprecated">
  60777. <doc>
  60778. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  60779. This will read every split at the client, which is very expensive.
  60780. @param freq Probability with which a key will be chosen.
  60781. @param numSamples Total number of samples to obtain from all selected
  60782. splits.]]>
  60783. </doc>
  60784. </constructor>
  60785. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  60786. static="false" final="false" visibility="public"
  60787. deprecated="not deprecated">
  60788. <doc>
  60789. <![CDATA[Create a new RandomSampler.
  60790. @param freq Probability with which a key will be chosen.
  60791. @param numSamples Total number of samples to obtain from all selected
  60792. splits.
  60793. @param maxSplitsSampled The maximum number of splits to examine.]]>
  60794. </doc>
  60795. </constructor>
  60796. <method name="getSample" return="java.lang.Object[]"
  60797. abstract="false" native="false" synchronized="false"
  60798. static="false" final="false" visibility="public"
  60799. deprecated="not deprecated">
  60800. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60801. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60802. <exception name="IOException" type="java.io.IOException"/>
  60803. <doc>
  60804. <![CDATA[Randomize the split order, then take the specified number of keys from
  60805. each split sampled, where each key is selected with the specified
  60806. probability and possibly replaced by a subsequently selected key when
  60807. the quota of keys from that split is satisfied.]]>
  60808. </doc>
  60809. </method>
  60810. <doc>
  60811. <![CDATA[Sample from random points in the input.
  60812. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  60813. each split.]]>
  60814. </doc>
  60815. </class>
  60816. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  60817. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  60818. <interface name="InputSampler.Sampler" abstract="true"
  60819. static="true" final="false" visibility="public"
  60820. deprecated="not deprecated">
  60821. <method name="getSample" return="java.lang.Object[]"
  60822. abstract="false" native="false" synchronized="false"
  60823. static="false" final="false" visibility="public"
  60824. deprecated="not deprecated">
  60825. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60826. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60827. <exception name="IOException" type="java.io.IOException"/>
  60828. <doc>
  60829. <![CDATA[For a given job, collect and return a subset of the keys from the
  60830. input data.]]>
  60831. </doc>
  60832. </method>
  60833. <doc>
  60834. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  60835. </doc>
  60836. </interface>
  60837. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  60838. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  60839. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  60840. abstract="false"
  60841. static="true" final="false" visibility="public"
  60842. deprecated="not deprecated">
  60843. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  60844. <constructor name="InputSampler.SplitSampler" type="int"
  60845. static="false" final="false" visibility="public"
  60846. deprecated="not deprecated">
  60847. <doc>
  60848. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  60849. Takes the first numSamples / numSplits records from each split.
  60850. @param numSamples Total number of samples to obtain from all selected
  60851. splits.]]>
  60852. </doc>
  60853. </constructor>
  60854. <constructor name="InputSampler.SplitSampler" type="int, int"
  60855. static="false" final="false" visibility="public"
  60856. deprecated="not deprecated">
  60857. <doc>
  60858. <![CDATA[Create a new SplitSampler.
  60859. @param numSamples Total number of samples to obtain from all selected
  60860. splits.
  60861. @param maxSplitsSampled The maximum number of splits to examine.]]>
  60862. </doc>
  60863. </constructor>
  60864. <method name="getSample" return="java.lang.Object[]"
  60865. abstract="false" native="false" synchronized="false"
  60866. static="false" final="false" visibility="public"
  60867. deprecated="not deprecated">
  60868. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  60869. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60870. <exception name="IOException" type="java.io.IOException"/>
  60871. <doc>
  60872. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  60873. </doc>
  60874. </method>
  60875. <doc>
  60876. <![CDATA[Samples the first n records from s splits.
  60877. Inexpensive way to sample random data.]]>
  60878. </doc>
  60879. </class>
  60880. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  60881. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  60882. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  60883. abstract="false"
  60884. static="false" final="false" visibility="public"
  60885. deprecated="not deprecated">
  60886. <implements name="org.apache.hadoop.mapred.Mapper"/>
  60887. <constructor name="InverseMapper"
  60888. static="false" final="false" visibility="public"
  60889. deprecated="not deprecated">
  60890. </constructor>
  60891. <method name="map"
  60892. abstract="false" native="false" synchronized="false"
  60893. static="false" final="false" visibility="public"
  60894. deprecated="not deprecated">
  60895. <param name="key" type="java.lang.Object"/>
  60896. <param name="value" type="java.lang.Object"/>
  60897. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  60898. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60899. <exception name="IOException" type="java.io.IOException"/>
  60900. <doc>
  60901. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  60902. </doc>
  60903. </method>
  60904. <doc>
  60905. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  60906. </doc>
  60907. </class>
  60908. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  60909. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  60910. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  60911. abstract="false"
  60912. static="false" final="false" visibility="public"
  60913. deprecated="not deprecated">
  60914. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  60915. <constructor name="KeyFieldBasedComparator"
  60916. static="false" final="false" visibility="public"
  60917. deprecated="not deprecated">
  60918. </constructor>
  60919. <method name="configure"
  60920. abstract="false" native="false" synchronized="false"
  60921. static="false" final="false" visibility="public"
  60922. deprecated="not deprecated">
  60923. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60924. </method>
  60925. <method name="compare" return="int"
  60926. abstract="false" native="false" synchronized="false"
  60927. static="false" final="false" visibility="public"
  60928. deprecated="not deprecated">
  60929. <param name="b1" type="byte[]"/>
  60930. <param name="s1" type="int"/>
  60931. <param name="l1" type="int"/>
  60932. <param name="b2" type="byte[]"/>
  60933. <param name="s2" type="int"/>
  60934. <param name="l2" type="int"/>
  60935. </method>
  60936. <doc>
  60937. <![CDATA[This comparator implementation provides a subset of the features provided
  60938. by the Unix/GNU Sort. In particular, the supported features are:
  60939. -n, (Sort numerically)
  60940. -r, (Reverse the result of comparison)
  60941. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  60942. of the field to use, and c is the number of the first character from the
  60943. beginning of the field. Fields and character posns are numbered starting
  60944. with 1; a character position of zero in pos2 indicates the field's last
  60945. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  60946. of the field); if omitted from pos2, it defaults to 0 (the end of the
  60947. field). opts are ordering options (any of 'nr' as described above).
  60948. We assume that the fields in the key are separated by
  60949. map.output.key.field.separator.]]>
  60950. </doc>
  60951. </class>
  60952. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  60953. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  60954. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  60955. abstract="false"
  60956. static="false" final="false" visibility="public"
  60957. deprecated="not deprecated">
  60958. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  60959. <constructor name="KeyFieldBasedPartitioner"
  60960. static="false" final="false" visibility="public"
  60961. deprecated="not deprecated">
  60962. </constructor>
  60963. <method name="configure"
  60964. abstract="false" native="false" synchronized="false"
  60965. static="false" final="false" visibility="public"
  60966. deprecated="not deprecated">
  60967. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60968. </method>
  60969. <method name="getPartition" return="int"
  60970. abstract="false" native="false" synchronized="false"
  60971. static="false" final="false" visibility="public"
  60972. deprecated="not deprecated">
  60973. <param name="key" type="java.lang.Object"/>
  60974. <param name="value" type="java.lang.Object"/>
  60975. <param name="numReduceTasks" type="int"/>
  60976. </method>
  60977. <method name="hashCode" return="int"
  60978. abstract="false" native="false" synchronized="false"
  60979. static="false" final="false" visibility="protected"
  60980. deprecated="not deprecated">
  60981. <param name="b" type="byte[]"/>
  60982. <param name="start" type="int"/>
  60983. <param name="end" type="int"/>
  60984. <param name="currentHash" type="int"/>
  60985. </method>
  60986. <method name="getPartition" return="int"
  60987. abstract="false" native="false" synchronized="false"
  60988. static="false" final="false" visibility="protected"
  60989. deprecated="not deprecated">
  60990. <param name="hash" type="int"/>
  60991. <param name="numReduceTasks" type="int"/>
  60992. </method>
  60993. <doc>
  60994. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  60995. {@link KeyFieldBasedComparator}.
  60996. The key specification supported is of the form -k pos1[,pos2], where,
  60997. pos is of the form f[.c][opts], where f is the number
  60998. of the key field to use, and c is the number of the first character from
  60999. the beginning of the field. Fields and character posns are numbered
  61000. starting with 1; a character position of zero in pos2 indicates the
  61001. field's last character. If '.c' is omitted from pos1, it defaults to 1
  61002. (the beginning of the field); if omitted from pos2, it defaults to 0
  61003. (the end of the field).]]>
  61004. </doc>
  61005. </class>
  61006. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  61007. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  61008. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  61009. abstract="false"
  61010. static="false" final="false" visibility="public"
  61011. deprecated="not deprecated">
  61012. <implements name="org.apache.hadoop.mapred.Reducer"/>
  61013. <constructor name="LongSumReducer"
  61014. static="false" final="false" visibility="public"
  61015. deprecated="not deprecated">
  61016. </constructor>
  61017. <method name="reduce"
  61018. abstract="false" native="false" synchronized="false"
  61019. static="false" final="false" visibility="public"
  61020. deprecated="not deprecated">
  61021. <param name="key" type="java.lang.Object"/>
  61022. <param name="values" type="java.util.Iterator"/>
  61023. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61024. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61025. <exception name="IOException" type="java.io.IOException"/>
  61026. </method>
  61027. <doc>
  61028. <![CDATA[A {@link Reducer} that sums long values.]]>
  61029. </doc>
  61030. </class>
  61031. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  61032. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  61033. <class name="MultipleInputs" extends="java.lang.Object"
  61034. abstract="false"
  61035. static="false" final="false" visibility="public"
  61036. deprecated="not deprecated">
  61037. <constructor name="MultipleInputs"
  61038. static="false" final="false" visibility="public"
  61039. deprecated="not deprecated">
  61040. </constructor>
  61041. <method name="addInputPath"
  61042. abstract="false" native="false" synchronized="false"
  61043. static="true" final="false" visibility="public"
  61044. deprecated="not deprecated">
  61045. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61046. <param name="path" type="org.apache.hadoop.fs.Path"/>
  61047. <param name="inputFormatClass" type="java.lang.Class"/>
  61048. <doc>
  61049. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  61050. inputs for the map-reduce job.
  61051. @param conf The configuration of the job
  61052. @param path {@link Path} to be added to the list of inputs for the job
  61053. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  61054. </doc>
  61055. </method>
  61056. <method name="addInputPath"
  61057. abstract="false" native="false" synchronized="false"
  61058. static="true" final="false" visibility="public"
  61059. deprecated="not deprecated">
  61060. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61061. <param name="path" type="org.apache.hadoop.fs.Path"/>
  61062. <param name="inputFormatClass" type="java.lang.Class"/>
  61063. <param name="mapperClass" type="java.lang.Class"/>
  61064. <doc>
  61065. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  61066. {@link Mapper} to the list of inputs for the map-reduce job.
  61067. @param conf The configuration of the job
  61068. @param path {@link Path} to be added to the list of inputs for the job
  61069. @param inputFormatClass {@link InputFormat} class to use for this path
  61070. @param mapperClass {@link Mapper} class to use for this path]]>
  61071. </doc>
  61072. </method>
  61073. <doc>
  61074. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  61075. a different {@link InputFormat} and {@link Mapper} for each path]]>
  61076. </doc>
  61077. </class>
  61078. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  61079. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  61080. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  61081. abstract="true"
  61082. static="false" final="false" visibility="public"
  61083. deprecated="not deprecated">
  61084. <constructor name="MultipleOutputFormat"
  61085. static="false" final="false" visibility="public"
  61086. deprecated="not deprecated">
  61087. </constructor>
  61088. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61089. abstract="false" native="false" synchronized="false"
  61090. static="false" final="false" visibility="public"
  61091. deprecated="not deprecated">
  61092. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61093. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61094. <param name="name" type="java.lang.String"/>
  61095. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61096. <exception name="IOException" type="java.io.IOException"/>
  61097. <doc>
  61098. <![CDATA[Create a composite record writer that can write key/value data to different
  61099. output files
  61100. @param fs
  61101. the file system to use
  61102. @param job
  61103. the job conf for the job
  61104. @param name
  61105. the leaf file name for the output file (such as part-00000")
  61106. @param arg3
  61107. a progressable for reporting progress.
  61108. @return a composite record writer
  61109. @throws IOException]]>
  61110. </doc>
  61111. </method>
  61112. <method name="generateLeafFileName" return="java.lang.String"
  61113. abstract="false" native="false" synchronized="false"
  61114. static="false" final="false" visibility="protected"
  61115. deprecated="not deprecated">
  61116. <param name="name" type="java.lang.String"/>
  61117. <doc>
  61118. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  61119. not change the leaf file name (such as part-00000)
  61120. @param name
  61121. the leaf file name for the output file
  61122. @return the given leaf file name]]>
  61123. </doc>
  61124. </method>
  61125. <method name="generateFileNameForKeyValue" return="java.lang.String"
  61126. abstract="false" native="false" synchronized="false"
  61127. static="false" final="false" visibility="protected"
  61128. deprecated="not deprecated">
  61129. <param name="key" type="java.lang.Object"/>
  61130. <param name="value" type="java.lang.Object"/>
  61131. <param name="name" type="java.lang.String"/>
  61132. <doc>
  61133. <![CDATA[Generate the file output file name based on the given key and the leaf file
  61134. name. The default behavior is that the file name does not depend on the
  61135. key.
  61136. @param key
  61137. the key of the output data
  61138. @param name
  61139. the leaf file name
  61140. @return generated file name]]>
  61141. </doc>
  61142. </method>
  61143. <method name="generateActualKey" return="java.lang.Object"
  61144. abstract="false" native="false" synchronized="false"
  61145. static="false" final="false" visibility="protected"
  61146. deprecated="not deprecated">
  61147. <param name="key" type="java.lang.Object"/>
  61148. <param name="value" type="java.lang.Object"/>
  61149. <doc>
  61150. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  61151. the actual key is equal to the given key
  61152. @param key
  61153. the key of the output data
  61154. @param value
  61155. the value of the output data
  61156. @return the actual key derived from the given key/value]]>
  61157. </doc>
  61158. </method>
  61159. <method name="generateActualValue" return="java.lang.Object"
  61160. abstract="false" native="false" synchronized="false"
  61161. static="false" final="false" visibility="protected"
  61162. deprecated="not deprecated">
  61163. <param name="key" type="java.lang.Object"/>
  61164. <param name="value" type="java.lang.Object"/>
  61165. <doc>
  61166. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  61167. the actual value is equal to the given value
  61168. @param key
  61169. the key of the output data
  61170. @param value
  61171. the value of the output data
  61172. @return the actual value derived from the given key/value]]>
  61173. </doc>
  61174. </method>
  61175. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  61176. abstract="false" native="false" synchronized="false"
  61177. static="false" final="false" visibility="protected"
  61178. deprecated="not deprecated">
  61179. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61180. <param name="name" type="java.lang.String"/>
  61181. <doc>
  61182. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  61183. the map input file does not exists (i.e. this is not for a map only job),
  61184. the given name is returned unchanged. If the config value for
  61185. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  61186. name is returned unchanged. Otherwise, return a file name consisting of the
  61187. N trailing legs of the input file name where N is the config value for
  61188. "num.of.trailing.legs.to.use".
  61189. @param job
  61190. the job config
  61191. @param name
  61192. the output file name
  61193. @return the outfile name based on a given anme and the input file name.]]>
  61194. </doc>
  61195. </method>
  61196. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61197. abstract="true" native="false" synchronized="false"
  61198. static="false" final="false" visibility="protected"
  61199. deprecated="not deprecated">
  61200. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61201. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61202. <param name="name" type="java.lang.String"/>
  61203. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61204. <exception name="IOException" type="java.io.IOException"/>
  61205. <doc>
  61206. <![CDATA[@param fs
  61207. the file system to use
  61208. @param job
  61209. a job conf object
  61210. @param name
  61211. the name of the file over which a record writer object will be
  61212. constructed
  61213. @param arg3
  61214. a progressable object
  61215. @return A RecordWriter object over the given file
  61216. @throws IOException]]>
  61217. </doc>
  61218. </method>
  61219. <doc>
  61220. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  61221. output data to different output files. There are three basic use cases for
  61222. this class.
  61223. Case one: This class is used for a map reduce job with at least one reducer.
  61224. The reducer wants to write data to different files depending on the actual
  61225. keys. It is assumed that a key (or value) encodes the actual key (value)
  61226. and the desired location for the actual key (value).
  61227. Case two: This class is used for a map only job. The job wants to use an
  61228. output file name that is either a part of the input file name of the input
  61229. data, or some derivation of it.
  61230. Case three: This class is used for a map only job. The job wants to use an
  61231. output file name that depends on both the keys and the input file name,]]>
  61232. </doc>
  61233. </class>
  61234. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  61235. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  61236. <class name="MultipleOutputs" extends="java.lang.Object"
  61237. abstract="false"
  61238. static="false" final="false" visibility="public"
  61239. deprecated="not deprecated">
  61240. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  61241. static="false" final="false" visibility="public"
  61242. deprecated="not deprecated">
  61243. <doc>
  61244. <![CDATA[Creates and initializes multiple named outputs support, it should be
  61245. instantiated in the Mapper/Reducer configure method.
  61246. @param job the job configuration object]]>
  61247. </doc>
  61248. </constructor>
  61249. <method name="getNamedOutputsList" return="java.util.List"
  61250. abstract="false" native="false" synchronized="false"
  61251. static="true" final="false" visibility="public"
  61252. deprecated="not deprecated">
  61253. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61254. <doc>
  61255. <![CDATA[Returns list of channel names.
  61256. @param conf job conf
  61257. @return List of channel Names]]>
  61258. </doc>
  61259. </method>
  61260. <method name="isMultiNamedOutput" return="boolean"
  61261. abstract="false" native="false" synchronized="false"
  61262. static="true" final="false" visibility="public"
  61263. deprecated="not deprecated">
  61264. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61265. <param name="namedOutput" type="java.lang.String"/>
  61266. <doc>
  61267. <![CDATA[Returns if a named output is multiple.
  61268. @param conf job conf
  61269. @param namedOutput named output
  61270. @return <code>true</code> if the name output is multi, <code>false</code>
  61271. if it is single. If the name output is not defined it returns
  61272. <code>false</code>]]>
  61273. </doc>
  61274. </method>
  61275. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  61276. abstract="false" native="false" synchronized="false"
  61277. static="true" final="false" visibility="public"
  61278. deprecated="not deprecated">
  61279. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61280. <param name="namedOutput" type="java.lang.String"/>
  61281. <doc>
  61282. <![CDATA[Returns the named output OutputFormat.
  61283. @param conf job conf
  61284. @param namedOutput named output
  61285. @return namedOutput OutputFormat]]>
  61286. </doc>
  61287. </method>
  61288. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  61289. abstract="false" native="false" synchronized="false"
  61290. static="true" final="false" visibility="public"
  61291. deprecated="not deprecated">
  61292. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61293. <param name="namedOutput" type="java.lang.String"/>
  61294. <doc>
  61295. <![CDATA[Returns the key class for a named output.
  61296. @param conf job conf
  61297. @param namedOutput named output
  61298. @return class for the named output key]]>
  61299. </doc>
  61300. </method>
  61301. <method name="getNamedOutputValueClass" return="java.lang.Class"
  61302. abstract="false" native="false" synchronized="false"
  61303. static="true" final="false" visibility="public"
  61304. deprecated="not deprecated">
  61305. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61306. <param name="namedOutput" type="java.lang.String"/>
  61307. <doc>
  61308. <![CDATA[Returns the value class for a named output.
  61309. @param conf job conf
  61310. @param namedOutput named output
  61311. @return class of named output value]]>
  61312. </doc>
  61313. </method>
  61314. <method name="addNamedOutput"
  61315. abstract="false" native="false" synchronized="false"
  61316. static="true" final="false" visibility="public"
  61317. deprecated="not deprecated">
  61318. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61319. <param name="namedOutput" type="java.lang.String"/>
  61320. <param name="outputFormatClass" type="java.lang.Class"/>
  61321. <param name="keyClass" type="java.lang.Class"/>
  61322. <param name="valueClass" type="java.lang.Class"/>
  61323. <doc>
  61324. <![CDATA[Adds a named output for the job.
  61325. <p/>
  61326. @param conf job conf to add the named output
  61327. @param namedOutput named output name, it has to be a word, letters
  61328. and numbers only, cannot be the word 'part' as
  61329. that is reserved for the
  61330. default output.
  61331. @param outputFormatClass OutputFormat class.
  61332. @param keyClass key class
  61333. @param valueClass value class]]>
  61334. </doc>
  61335. </method>
  61336. <method name="addMultiNamedOutput"
  61337. abstract="false" native="false" synchronized="false"
  61338. static="true" final="false" visibility="public"
  61339. deprecated="not deprecated">
  61340. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61341. <param name="namedOutput" type="java.lang.String"/>
  61342. <param name="outputFormatClass" type="java.lang.Class"/>
  61343. <param name="keyClass" type="java.lang.Class"/>
  61344. <param name="valueClass" type="java.lang.Class"/>
  61345. <doc>
  61346. <![CDATA[Adds a multi named output for the job.
  61347. <p/>
  61348. @param conf job conf to add the named output
  61349. @param namedOutput named output name, it has to be a word, letters
  61350. and numbers only, cannot be the word 'part' as
  61351. that is reserved for the
  61352. default output.
  61353. @param outputFormatClass OutputFormat class.
  61354. @param keyClass key class
  61355. @param valueClass value class]]>
  61356. </doc>
  61357. </method>
  61358. <method name="setCountersEnabled"
  61359. abstract="false" native="false" synchronized="false"
  61360. static="true" final="false" visibility="public"
  61361. deprecated="not deprecated">
  61362. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61363. <param name="enabled" type="boolean"/>
  61364. <doc>
  61365. <![CDATA[Enables or disables counters for the named outputs.
  61366. <p/>
  61367. By default these counters are disabled.
  61368. <p/>
  61369. MultipleOutputs supports counters, by default the are disabled.
  61370. The counters group is the {@link MultipleOutputs} class name.
  61371. </p>
  61372. The names of the counters are the same as the named outputs. For multi
  61373. named outputs the name of the counter is the concatenation of the named
  61374. output, and underscore '_' and the multiname.
  61375. @param conf job conf to enableadd the named output.
  61376. @param enabled indicates if the counters will be enabled or not.]]>
  61377. </doc>
  61378. </method>
  61379. <method name="getCountersEnabled" return="boolean"
  61380. abstract="false" native="false" synchronized="false"
  61381. static="true" final="false" visibility="public"
  61382. deprecated="not deprecated">
  61383. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61384. <doc>
  61385. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  61386. <p/>
  61387. By default these counters are disabled.
  61388. <p/>
  61389. MultipleOutputs supports counters, by default the are disabled.
  61390. The counters group is the {@link MultipleOutputs} class name.
  61391. </p>
  61392. The names of the counters are the same as the named outputs. For multi
  61393. named outputs the name of the counter is the concatenation of the named
  61394. output, and underscore '_' and the multiname.
  61395. @param conf job conf to enableadd the named output.
  61396. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  61397. </doc>
  61398. </method>
  61399. <method name="getNamedOutputs" return="java.util.Iterator"
  61400. abstract="false" native="false" synchronized="false"
  61401. static="false" final="false" visibility="public"
  61402. deprecated="not deprecated">
  61403. <doc>
  61404. <![CDATA[Returns iterator with the defined name outputs.
  61405. @return iterator with the defined named outputs]]>
  61406. </doc>
  61407. </method>
  61408. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  61409. abstract="false" native="false" synchronized="false"
  61410. static="false" final="false" visibility="public"
  61411. deprecated="not deprecated">
  61412. <param name="namedOutput" type="java.lang.String"/>
  61413. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61414. <exception name="IOException" type="java.io.IOException"/>
  61415. <doc>
  61416. <![CDATA[Gets the output collector for a named output.
  61417. <p/>
  61418. @param namedOutput the named output name
  61419. @param reporter the reporter
  61420. @return the output collector for the given named output
  61421. @throws IOException thrown if output collector could not be created]]>
  61422. </doc>
  61423. </method>
  61424. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  61425. abstract="false" native="false" synchronized="false"
  61426. static="false" final="false" visibility="public"
  61427. deprecated="not deprecated">
  61428. <param name="namedOutput" type="java.lang.String"/>
  61429. <param name="multiName" type="java.lang.String"/>
  61430. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61431. <exception name="IOException" type="java.io.IOException"/>
  61432. <doc>
  61433. <![CDATA[Gets the output collector for a multi named output.
  61434. <p/>
  61435. @param namedOutput the named output name
  61436. @param multiName the multi name part
  61437. @param reporter the reporter
  61438. @return the output collector for the given named output
  61439. @throws IOException thrown if output collector could not be created]]>
  61440. </doc>
  61441. </method>
  61442. <method name="close"
  61443. abstract="false" native="false" synchronized="false"
  61444. static="false" final="false" visibility="public"
  61445. deprecated="not deprecated">
  61446. <exception name="IOException" type="java.io.IOException"/>
  61447. <doc>
  61448. <![CDATA[Closes all the opened named outputs.
  61449. <p/>
  61450. If overriden subclasses must invoke <code>super.close()</code> at the
  61451. end of their <code>close()</code>
  61452. @throws java.io.IOException thrown if any of the MultipleOutput files
  61453. could not be closed properly.]]>
  61454. </doc>
  61455. </method>
  61456. <doc>
  61457. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  61458. than the job default output via the <code>OutputCollector</code> passed to
  61459. the <code>map()</code> and <code>reduce()</code> methods of the
  61460. <code>Mapper</code> and <code>Reducer</code> implementations.
  61461. <p/>
  61462. Each additional output, or named output, may be configured with its own
  61463. <code>OutputFormat</code>, with its own key class and with its own value
  61464. class.
  61465. <p/>
  61466. A named output can be a single file or a multi file. The later is refered as
  61467. a multi named output.
  61468. <p/>
  61469. A multi named output is an unbound set of files all sharing the same
  61470. <code>OutputFormat</code>, key class and value class configuration.
  61471. <p/>
  61472. When named outputs are used within a <code>Mapper</code> implementation,
  61473. key/values written to a name output are not part of the reduce phase, only
  61474. key/values written to the job <code>OutputCollector</code> are part of the
  61475. reduce phase.
  61476. <p/>
  61477. MultipleOutputs supports counters, by default the are disabled. The counters
  61478. group is the {@link MultipleOutputs} class name.
  61479. </p>
  61480. The names of the counters are the same as the named outputs. For multi
  61481. named outputs the name of the counter is the concatenation of the named
  61482. output, and underscore '_' and the multiname.
  61483. <p/>
  61484. Job configuration usage pattern is:
  61485. <pre>
  61486. JobConf conf = new JobConf();
  61487. conf.setInputPath(inDir);
  61488. FileOutputFormat.setOutputPath(conf, outDir);
  61489. conf.setMapperClass(MOMap.class);
  61490. conf.setReducerClass(MOReduce.class);
  61491. ...
  61492. // Defines additional single text based output 'text' for the job
  61493. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  61494. LongWritable.class, Text.class);
  61495. // Defines additional multi sequencefile based output 'sequence' for the
  61496. // job
  61497. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  61498. SequenceFileOutputFormat.class,
  61499. LongWritable.class, Text.class);
  61500. ...
  61501. JobClient jc = new JobClient();
  61502. RunningJob job = jc.submitJob(conf);
  61503. ...
  61504. </pre>
  61505. <p/>
  61506. Job configuration usage pattern is:
  61507. <pre>
  61508. public class MOReduce implements
  61509. Reducer&lt;WritableComparable, Writable&gt; {
  61510. private MultipleOutputs mos;
  61511. public void configure(JobConf conf) {
  61512. ...
  61513. mos = new MultipleOutputs(conf);
  61514. }
  61515. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  61516. OutputCollector output, Reporter reporter)
  61517. throws IOException {
  61518. ...
  61519. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  61520. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  61521. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  61522. ...
  61523. }
  61524. public void close() throws IOException {
  61525. mos.close();
  61526. ...
  61527. }
  61528. }
  61529. </pre>]]>
  61530. </doc>
  61531. </class>
  61532. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  61533. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  61534. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  61535. abstract="false"
  61536. static="false" final="false" visibility="public"
  61537. deprecated="not deprecated">
  61538. <constructor name="MultipleSequenceFileOutputFormat"
  61539. static="false" final="false" visibility="public"
  61540. deprecated="not deprecated">
  61541. </constructor>
  61542. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61543. abstract="false" native="false" synchronized="false"
  61544. static="false" final="false" visibility="protected"
  61545. deprecated="not deprecated">
  61546. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61547. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61548. <param name="name" type="java.lang.String"/>
  61549. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61550. <exception name="IOException" type="java.io.IOException"/>
  61551. </method>
  61552. <doc>
  61553. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  61554. to different output files in sequence file output format.]]>
  61555. </doc>
  61556. </class>
  61557. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  61558. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  61559. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  61560. abstract="false"
  61561. static="false" final="false" visibility="public"
  61562. deprecated="not deprecated">
  61563. <constructor name="MultipleTextOutputFormat"
  61564. static="false" final="false" visibility="public"
  61565. deprecated="not deprecated">
  61566. </constructor>
  61567. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61568. abstract="false" native="false" synchronized="false"
  61569. static="false" final="false" visibility="protected"
  61570. deprecated="not deprecated">
  61571. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  61572. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61573. <param name="name" type="java.lang.String"/>
  61574. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  61575. <exception name="IOException" type="java.io.IOException"/>
  61576. </method>
  61577. <doc>
  61578. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  61579. data to different output files in Text output format.]]>
  61580. </doc>
  61581. </class>
  61582. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  61583. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  61584. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  61585. abstract="false"
  61586. static="false" final="false" visibility="public"
  61587. deprecated="not deprecated">
  61588. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  61589. <constructor name="MultithreadedMapRunner"
  61590. static="false" final="false" visibility="public"
  61591. deprecated="not deprecated">
  61592. </constructor>
  61593. <method name="configure"
  61594. abstract="false" native="false" synchronized="false"
  61595. static="false" final="false" visibility="public"
  61596. deprecated="not deprecated">
  61597. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  61598. </method>
  61599. <method name="run"
  61600. abstract="false" native="false" synchronized="false"
  61601. static="false" final="false" visibility="public"
  61602. deprecated="not deprecated">
  61603. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  61604. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61605. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61606. <exception name="IOException" type="java.io.IOException"/>
  61607. </method>
  61608. <doc>
  61609. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  61610. <p>
  61611. It can be used instead of the default implementation,
  61612. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  61613. bound in order to improve throughput.
  61614. <p>
  61615. Map implementations using this MapRunnable must be thread-safe.
  61616. <p>
  61617. The Map-Reduce job has to be configured to use this MapRunnable class (using
  61618. the JobConf.setMapRunnerClass method) and
  61619. the number of thread the thread-pool can use with the
  61620. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  61621. value is 10 threads.
  61622. <p>]]>
  61623. </doc>
  61624. </class>
  61625. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  61626. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  61627. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  61628. abstract="false"
  61629. static="false" final="false" visibility="public"
  61630. deprecated="not deprecated">
  61631. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  61632. <constructor name="NLineInputFormat"
  61633. static="false" final="false" visibility="public"
  61634. deprecated="not deprecated">
  61635. </constructor>
  61636. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  61637. abstract="false" native="false" synchronized="false"
  61638. static="false" final="false" visibility="public"
  61639. deprecated="not deprecated">
  61640. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  61641. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61642. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61643. <exception name="IOException" type="java.io.IOException"/>
  61644. </method>
  61645. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  61646. abstract="false" native="false" synchronized="false"
  61647. static="false" final="false" visibility="public"
  61648. deprecated="not deprecated">
  61649. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61650. <param name="numSplits" type="int"/>
  61651. <exception name="IOException" type="java.io.IOException"/>
  61652. <doc>
  61653. <![CDATA[Logically splits the set of input files for the job, splits N lines
  61654. of the input as one split.
  61655. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  61656. </doc>
  61657. </method>
  61658. <method name="configure"
  61659. abstract="false" native="false" synchronized="false"
  61660. static="false" final="false" visibility="public"
  61661. deprecated="not deprecated">
  61662. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  61663. </method>
  61664. <doc>
  61665. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  61666. In many "pleasantly" parallel applications, each process/mapper
  61667. processes the same input file (s), but with computations are
  61668. controlled by different parameters.(Referred to as "parameter sweeps").
  61669. One way to achieve this, is to specify a set of parameters
  61670. (one set per line) as input in a control file
  61671. (which is the input path to the map-reduce application,
  61672. where as the input dataset is specified
  61673. via a config variable in JobConf.).
  61674. The NLineInputFormat can be used in such applications, that splits
  61675. the input file such that by default, one line is fed as
  61676. a value to one map task, and key is the offset.
  61677. i.e. (k,v) is (LongWritable, Text).
  61678. The location hints will span the whole mapred cluster.]]>
  61679. </doc>
  61680. </class>
  61681. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  61682. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  61683. <class name="NullOutputFormat" extends="java.lang.Object"
  61684. abstract="false"
  61685. static="false" final="false" visibility="public"
  61686. deprecated="not deprecated">
  61687. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  61688. <constructor name="NullOutputFormat"
  61689. static="false" final="false" visibility="public"
  61690. deprecated="not deprecated">
  61691. </constructor>
  61692. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  61693. abstract="false" native="false" synchronized="false"
  61694. static="false" final="false" visibility="public"
  61695. deprecated="not deprecated">
  61696. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  61697. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61698. <param name="name" type="java.lang.String"/>
  61699. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  61700. </method>
  61701. <method name="checkOutputSpecs"
  61702. abstract="false" native="false" synchronized="false"
  61703. static="false" final="false" visibility="public"
  61704. deprecated="not deprecated">
  61705. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  61706. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61707. </method>
  61708. <doc>
  61709. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  61710. </doc>
  61711. </class>
  61712. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  61713. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  61714. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  61715. abstract="false"
  61716. static="false" final="false" visibility="public"
  61717. deprecated="not deprecated">
  61718. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61719. <constructor name="RegexMapper"
  61720. static="false" final="false" visibility="public"
  61721. deprecated="not deprecated">
  61722. </constructor>
  61723. <method name="configure"
  61724. abstract="false" native="false" synchronized="false"
  61725. static="false" final="false" visibility="public"
  61726. deprecated="not deprecated">
  61727. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61728. </method>
  61729. <method name="map"
  61730. abstract="false" native="false" synchronized="false"
  61731. static="false" final="false" visibility="public"
  61732. deprecated="not deprecated">
  61733. <param name="key" type="java.lang.Object"/>
  61734. <param name="value" type="org.apache.hadoop.io.Text"/>
  61735. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61736. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61737. <exception name="IOException" type="java.io.IOException"/>
  61738. </method>
  61739. <doc>
  61740. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  61741. </doc>
  61742. </class>
  61743. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  61744. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  61745. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  61746. abstract="false"
  61747. static="false" final="false" visibility="public"
  61748. deprecated="not deprecated">
  61749. <implements name="org.apache.hadoop.mapred.Mapper"/>
  61750. <constructor name="TokenCountMapper"
  61751. static="false" final="false" visibility="public"
  61752. deprecated="not deprecated">
  61753. </constructor>
  61754. <method name="map"
  61755. abstract="false" native="false" synchronized="false"
  61756. static="false" final="false" visibility="public"
  61757. deprecated="not deprecated">
  61758. <param name="key" type="java.lang.Object"/>
  61759. <param name="value" type="org.apache.hadoop.io.Text"/>
  61760. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  61761. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61762. <exception name="IOException" type="java.io.IOException"/>
  61763. </method>
  61764. <doc>
  61765. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  61766. {@link StringTokenizer} to break text into tokens.]]>
  61767. </doc>
  61768. </class>
  61769. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  61770. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  61771. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  61772. abstract="false"
  61773. static="false" final="false" visibility="public"
  61774. deprecated="not deprecated">
  61775. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  61776. <constructor name="TotalOrderPartitioner"
  61777. static="false" final="false" visibility="public"
  61778. deprecated="not deprecated">
  61779. </constructor>
  61780. <method name="configure"
  61781. abstract="false" native="false" synchronized="false"
  61782. static="false" final="false" visibility="public"
  61783. deprecated="not deprecated">
  61784. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61785. <doc>
  61786. <![CDATA[Read in the partition file and build indexing data structures.
  61787. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  61788. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  61789. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  61790. will be built. Otherwise, keys will be located using a binary search of
  61791. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  61792. defined for this job. The input file must be sorted with the same
  61793. comparator and contain {@link
  61794. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  61795. </doc>
  61796. </method>
  61797. <method name="getPartition" return="int"
  61798. abstract="false" native="false" synchronized="false"
  61799. static="false" final="false" visibility="public"
  61800. deprecated="not deprecated">
  61801. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61802. <param name="value" type="java.lang.Object"/>
  61803. <param name="numPartitions" type="int"/>
  61804. </method>
  61805. <method name="setPartitionFile"
  61806. abstract="false" native="false" synchronized="false"
  61807. static="true" final="false" visibility="public"
  61808. deprecated="not deprecated">
  61809. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61810. <param name="p" type="org.apache.hadoop.fs.Path"/>
  61811. <doc>
  61812. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  61813. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  61814. keys in the SequenceFile.]]>
  61815. </doc>
  61816. </method>
  61817. <method name="getPartitionFile" return="java.lang.String"
  61818. abstract="false" native="false" synchronized="false"
  61819. static="true" final="false" visibility="public"
  61820. deprecated="not deprecated">
  61821. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61822. <doc>
  61823. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  61824. @see #setPartitionFile(JobConf,Path)]]>
  61825. </doc>
  61826. </method>
  61827. <field name="DEFAULT_PATH" type="java.lang.String"
  61828. transient="false" volatile="false"
  61829. static="true" final="true" visibility="public"
  61830. deprecated="not deprecated">
  61831. </field>
  61832. <doc>
  61833. <![CDATA[Partitioner effecting a total order by reading split points from
  61834. an externally generated source.]]>
  61835. </doc>
  61836. </class>
  61837. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  61838. </package>
  61839. <package name="org.apache.hadoop.mapred.lib.aggregate">
  61840. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  61841. <class name="DoubleValueSum" extends="java.lang.Object"
  61842. abstract="false"
  61843. static="false" final="false" visibility="public"
  61844. deprecated="not deprecated">
  61845. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61846. <constructor name="DoubleValueSum"
  61847. static="false" final="false" visibility="public"
  61848. deprecated="not deprecated">
  61849. <doc>
  61850. <![CDATA[The default constructor]]>
  61851. </doc>
  61852. </constructor>
  61853. <method name="addNextValue"
  61854. abstract="false" native="false" synchronized="false"
  61855. static="false" final="false" visibility="public"
  61856. deprecated="not deprecated">
  61857. <param name="val" type="java.lang.Object"/>
  61858. <doc>
  61859. <![CDATA[add a value to the aggregator
  61860. @param val
  61861. an object whose string representation represents a double value.]]>
  61862. </doc>
  61863. </method>
  61864. <method name="addNextValue"
  61865. abstract="false" native="false" synchronized="false"
  61866. static="false" final="false" visibility="public"
  61867. deprecated="not deprecated">
  61868. <param name="val" type="double"/>
  61869. <doc>
  61870. <![CDATA[add a value to the aggregator
  61871. @param val
  61872. a double value.]]>
  61873. </doc>
  61874. </method>
  61875. <method name="getReport" return="java.lang.String"
  61876. abstract="false" native="false" synchronized="false"
  61877. static="false" final="false" visibility="public"
  61878. deprecated="not deprecated">
  61879. <doc>
  61880. <![CDATA[@return the string representation of the aggregated value]]>
  61881. </doc>
  61882. </method>
  61883. <method name="getSum" return="double"
  61884. abstract="false" native="false" synchronized="false"
  61885. static="false" final="false" visibility="public"
  61886. deprecated="not deprecated">
  61887. <doc>
  61888. <![CDATA[@return the aggregated value]]>
  61889. </doc>
  61890. </method>
  61891. <method name="reset"
  61892. abstract="false" native="false" synchronized="false"
  61893. static="false" final="false" visibility="public"
  61894. deprecated="not deprecated">
  61895. <doc>
  61896. <![CDATA[reset the aggregator]]>
  61897. </doc>
  61898. </method>
  61899. <method name="getCombinerOutput" return="java.util.ArrayList"
  61900. abstract="false" native="false" synchronized="false"
  61901. static="false" final="false" visibility="public"
  61902. deprecated="not deprecated">
  61903. <doc>
  61904. <![CDATA[@return return an array of one element. The element is a string
  61905. representation of the aggregated value. The return value is
  61906. expected to be used by the a combiner.]]>
  61907. </doc>
  61908. </method>
  61909. <doc>
  61910. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  61911. values.]]>
  61912. </doc>
  61913. </class>
  61914. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  61915. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  61916. <class name="LongValueMax" extends="java.lang.Object"
  61917. abstract="false"
  61918. static="false" final="false" visibility="public"
  61919. deprecated="not deprecated">
  61920. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61921. <constructor name="LongValueMax"
  61922. static="false" final="false" visibility="public"
  61923. deprecated="not deprecated">
  61924. <doc>
  61925. <![CDATA[the default constructor]]>
  61926. </doc>
  61927. </constructor>
  61928. <method name="addNextValue"
  61929. abstract="false" native="false" synchronized="false"
  61930. static="false" final="false" visibility="public"
  61931. deprecated="not deprecated">
  61932. <param name="val" type="java.lang.Object"/>
  61933. <doc>
  61934. <![CDATA[add a value to the aggregator
  61935. @param val
  61936. an object whose string representation represents a long value.]]>
  61937. </doc>
  61938. </method>
  61939. <method name="addNextValue"
  61940. abstract="false" native="false" synchronized="false"
  61941. static="false" final="false" visibility="public"
  61942. deprecated="not deprecated">
  61943. <param name="newVal" type="long"/>
  61944. <doc>
  61945. <![CDATA[add a value to the aggregator
  61946. @param newVal
  61947. a long value.]]>
  61948. </doc>
  61949. </method>
  61950. <method name="getVal" return="long"
  61951. abstract="false" native="false" synchronized="false"
  61952. static="false" final="false" visibility="public"
  61953. deprecated="not deprecated">
  61954. <doc>
  61955. <![CDATA[@return the aggregated value]]>
  61956. </doc>
  61957. </method>
  61958. <method name="getReport" return="java.lang.String"
  61959. abstract="false" native="false" synchronized="false"
  61960. static="false" final="false" visibility="public"
  61961. deprecated="not deprecated">
  61962. <doc>
  61963. <![CDATA[@return the string representation of the aggregated value]]>
  61964. </doc>
  61965. </method>
  61966. <method name="reset"
  61967. abstract="false" native="false" synchronized="false"
  61968. static="false" final="false" visibility="public"
  61969. deprecated="not deprecated">
  61970. <doc>
  61971. <![CDATA[reset the aggregator]]>
  61972. </doc>
  61973. </method>
  61974. <method name="getCombinerOutput" return="java.util.ArrayList"
  61975. abstract="false" native="false" synchronized="false"
  61976. static="false" final="false" visibility="public"
  61977. deprecated="not deprecated">
  61978. <doc>
  61979. <![CDATA[@return return an array of one element. The element is a string
  61980. representation of the aggregated value. The return value is
  61981. expected to be used by the a combiner.]]>
  61982. </doc>
  61983. </method>
  61984. <doc>
  61985. <![CDATA[This class implements a value aggregator that maintain the maximum of
  61986. a sequence of long values.]]>
  61987. </doc>
  61988. </class>
  61989. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  61990. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  61991. <class name="LongValueMin" extends="java.lang.Object"
  61992. abstract="false"
  61993. static="false" final="false" visibility="public"
  61994. deprecated="not deprecated">
  61995. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  61996. <constructor name="LongValueMin"
  61997. static="false" final="false" visibility="public"
  61998. deprecated="not deprecated">
  61999. <doc>
  62000. <![CDATA[the default constructor]]>
  62001. </doc>
  62002. </constructor>
  62003. <method name="addNextValue"
  62004. abstract="false" native="false" synchronized="false"
  62005. static="false" final="false" visibility="public"
  62006. deprecated="not deprecated">
  62007. <param name="val" type="java.lang.Object"/>
  62008. <doc>
  62009. <![CDATA[add a value to the aggregator
  62010. @param val
  62011. an object whose string representation represents a long value.]]>
  62012. </doc>
  62013. </method>
  62014. <method name="addNextValue"
  62015. abstract="false" native="false" synchronized="false"
  62016. static="false" final="false" visibility="public"
  62017. deprecated="not deprecated">
  62018. <param name="newVal" type="long"/>
  62019. <doc>
  62020. <![CDATA[add a value to the aggregator
  62021. @param newVal
  62022. a long value.]]>
  62023. </doc>
  62024. </method>
  62025. <method name="getVal" return="long"
  62026. abstract="false" native="false" synchronized="false"
  62027. static="false" final="false" visibility="public"
  62028. deprecated="not deprecated">
  62029. <doc>
  62030. <![CDATA[@return the aggregated value]]>
  62031. </doc>
  62032. </method>
  62033. <method name="getReport" return="java.lang.String"
  62034. abstract="false" native="false" synchronized="false"
  62035. static="false" final="false" visibility="public"
  62036. deprecated="not deprecated">
  62037. <doc>
  62038. <![CDATA[@return the string representation of the aggregated value]]>
  62039. </doc>
  62040. </method>
  62041. <method name="reset"
  62042. abstract="false" native="false" synchronized="false"
  62043. static="false" final="false" visibility="public"
  62044. deprecated="not deprecated">
  62045. <doc>
  62046. <![CDATA[reset the aggregator]]>
  62047. </doc>
  62048. </method>
  62049. <method name="getCombinerOutput" return="java.util.ArrayList"
  62050. abstract="false" native="false" synchronized="false"
  62051. static="false" final="false" visibility="public"
  62052. deprecated="not deprecated">
  62053. <doc>
  62054. <![CDATA[@return return an array of one element. The element is a string
  62055. representation of the aggregated value. The return value is
  62056. expected to be used by the a combiner.]]>
  62057. </doc>
  62058. </method>
  62059. <doc>
  62060. <![CDATA[This class implements a value aggregator that maintain the minimum of
  62061. a sequence of long values.]]>
  62062. </doc>
  62063. </class>
  62064. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  62065. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  62066. <class name="LongValueSum" extends="java.lang.Object"
  62067. abstract="false"
  62068. static="false" final="false" visibility="public"
  62069. deprecated="not deprecated">
  62070. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62071. <constructor name="LongValueSum"
  62072. static="false" final="false" visibility="public"
  62073. deprecated="not deprecated">
  62074. <doc>
  62075. <![CDATA[the default constructor]]>
  62076. </doc>
  62077. </constructor>
  62078. <method name="addNextValue"
  62079. abstract="false" native="false" synchronized="false"
  62080. static="false" final="false" visibility="public"
  62081. deprecated="not deprecated">
  62082. <param name="val" type="java.lang.Object"/>
  62083. <doc>
  62084. <![CDATA[add a value to the aggregator
  62085. @param val
  62086. an object whose string representation represents a long value.]]>
  62087. </doc>
  62088. </method>
  62089. <method name="addNextValue"
  62090. abstract="false" native="false" synchronized="false"
  62091. static="false" final="false" visibility="public"
  62092. deprecated="not deprecated">
  62093. <param name="val" type="long"/>
  62094. <doc>
  62095. <![CDATA[add a value to the aggregator
  62096. @param val
  62097. a long value.]]>
  62098. </doc>
  62099. </method>
  62100. <method name="getSum" return="long"
  62101. abstract="false" native="false" synchronized="false"
  62102. static="false" final="false" visibility="public"
  62103. deprecated="not deprecated">
  62104. <doc>
  62105. <![CDATA[@return the aggregated value]]>
  62106. </doc>
  62107. </method>
  62108. <method name="getReport" return="java.lang.String"
  62109. abstract="false" native="false" synchronized="false"
  62110. static="false" final="false" visibility="public"
  62111. deprecated="not deprecated">
  62112. <doc>
  62113. <![CDATA[@return the string representation of the aggregated value]]>
  62114. </doc>
  62115. </method>
  62116. <method name="reset"
  62117. abstract="false" native="false" synchronized="false"
  62118. static="false" final="false" visibility="public"
  62119. deprecated="not deprecated">
  62120. <doc>
  62121. <![CDATA[reset the aggregator]]>
  62122. </doc>
  62123. </method>
  62124. <method name="getCombinerOutput" return="java.util.ArrayList"
  62125. abstract="false" native="false" synchronized="false"
  62126. static="false" final="false" visibility="public"
  62127. deprecated="not deprecated">
  62128. <doc>
  62129. <![CDATA[@return return an array of one element. The element is a string
  62130. representation of the aggregated value. The return value is
  62131. expected to be used by the a combiner.]]>
  62132. </doc>
  62133. </method>
  62134. <doc>
  62135. <![CDATA[This class implements a value aggregator that sums up
  62136. a sequence of long values.]]>
  62137. </doc>
  62138. </class>
  62139. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  62140. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  62141. <class name="StringValueMax" extends="java.lang.Object"
  62142. abstract="false"
  62143. static="false" final="false" visibility="public"
  62144. deprecated="not deprecated">
  62145. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62146. <constructor name="StringValueMax"
  62147. static="false" final="false" visibility="public"
  62148. deprecated="not deprecated">
  62149. <doc>
  62150. <![CDATA[the default constructor]]>
  62151. </doc>
  62152. </constructor>
  62153. <method name="addNextValue"
  62154. abstract="false" native="false" synchronized="false"
  62155. static="false" final="false" visibility="public"
  62156. deprecated="not deprecated">
  62157. <param name="val" type="java.lang.Object"/>
  62158. <doc>
  62159. <![CDATA[add a value to the aggregator
  62160. @param val
  62161. a string.]]>
  62162. </doc>
  62163. </method>
  62164. <method name="getVal" return="java.lang.String"
  62165. abstract="false" native="false" synchronized="false"
  62166. static="false" final="false" visibility="public"
  62167. deprecated="not deprecated">
  62168. <doc>
  62169. <![CDATA[@return the aggregated value]]>
  62170. </doc>
  62171. </method>
  62172. <method name="getReport" return="java.lang.String"
  62173. abstract="false" native="false" synchronized="false"
  62174. static="false" final="false" visibility="public"
  62175. deprecated="not deprecated">
  62176. <doc>
  62177. <![CDATA[@return the string representation of the aggregated value]]>
  62178. </doc>
  62179. </method>
  62180. <method name="reset"
  62181. abstract="false" native="false" synchronized="false"
  62182. static="false" final="false" visibility="public"
  62183. deprecated="not deprecated">
  62184. <doc>
  62185. <![CDATA[reset the aggregator]]>
  62186. </doc>
  62187. </method>
  62188. <method name="getCombinerOutput" return="java.util.ArrayList"
  62189. abstract="false" native="false" synchronized="false"
  62190. static="false" final="false" visibility="public"
  62191. deprecated="not deprecated">
  62192. <doc>
  62193. <![CDATA[@return return an array of one element. The element is a string
  62194. representation of the aggregated value. The return value is
  62195. expected to be used by the a combiner.]]>
  62196. </doc>
  62197. </method>
  62198. <doc>
  62199. <![CDATA[This class implements a value aggregator that maintain the biggest of
  62200. a sequence of strings.]]>
  62201. </doc>
  62202. </class>
  62203. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  62204. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  62205. <class name="StringValueMin" extends="java.lang.Object"
  62206. abstract="false"
  62207. static="false" final="false" visibility="public"
  62208. deprecated="not deprecated">
  62209. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62210. <constructor name="StringValueMin"
  62211. static="false" final="false" visibility="public"
  62212. deprecated="not deprecated">
  62213. <doc>
  62214. <![CDATA[the default constructor]]>
  62215. </doc>
  62216. </constructor>
  62217. <method name="addNextValue"
  62218. abstract="false" native="false" synchronized="false"
  62219. static="false" final="false" visibility="public"
  62220. deprecated="not deprecated">
  62221. <param name="val" type="java.lang.Object"/>
  62222. <doc>
  62223. <![CDATA[add a value to the aggregator
  62224. @param val
  62225. a string.]]>
  62226. </doc>
  62227. </method>
  62228. <method name="getVal" return="java.lang.String"
  62229. abstract="false" native="false" synchronized="false"
  62230. static="false" final="false" visibility="public"
  62231. deprecated="not deprecated">
  62232. <doc>
  62233. <![CDATA[@return the aggregated value]]>
  62234. </doc>
  62235. </method>
  62236. <method name="getReport" return="java.lang.String"
  62237. abstract="false" native="false" synchronized="false"
  62238. static="false" final="false" visibility="public"
  62239. deprecated="not deprecated">
  62240. <doc>
  62241. <![CDATA[@return the string representation of the aggregated value]]>
  62242. </doc>
  62243. </method>
  62244. <method name="reset"
  62245. abstract="false" native="false" synchronized="false"
  62246. static="false" final="false" visibility="public"
  62247. deprecated="not deprecated">
  62248. <doc>
  62249. <![CDATA[reset the aggregator]]>
  62250. </doc>
  62251. </method>
  62252. <method name="getCombinerOutput" return="java.util.ArrayList"
  62253. abstract="false" native="false" synchronized="false"
  62254. static="false" final="false" visibility="public"
  62255. deprecated="not deprecated">
  62256. <doc>
  62257. <![CDATA[@return return an array of one element. The element is a string
  62258. representation of the aggregated value. The return value is
  62259. expected to be used by the a combiner.]]>
  62260. </doc>
  62261. </method>
  62262. <doc>
  62263. <![CDATA[This class implements a value aggregator that maintain the smallest of
  62264. a sequence of strings.]]>
  62265. </doc>
  62266. </class>
  62267. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  62268. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  62269. <class name="UniqValueCount" extends="java.lang.Object"
  62270. abstract="false"
  62271. static="false" final="false" visibility="public"
  62272. deprecated="not deprecated">
  62273. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62274. <constructor name="UniqValueCount"
  62275. static="false" final="false" visibility="public"
  62276. deprecated="not deprecated">
  62277. <doc>
  62278. <![CDATA[the default constructor]]>
  62279. </doc>
  62280. </constructor>
  62281. <constructor name="UniqValueCount" type="long"
  62282. static="false" final="false" visibility="public"
  62283. deprecated="not deprecated">
  62284. <doc>
  62285. <![CDATA[constructor
  62286. @param maxNum the limit in the number of unique values to keep.]]>
  62287. </doc>
  62288. </constructor>
  62289. <method name="setMaxItems" return="long"
  62290. abstract="false" native="false" synchronized="false"
  62291. static="false" final="false" visibility="public"
  62292. deprecated="not deprecated">
  62293. <param name="n" type="long"/>
  62294. <doc>
  62295. <![CDATA[Set the limit on the number of unique values
  62296. @param n the desired limit on the number of unique values
  62297. @return the new limit on the number of unique values]]>
  62298. </doc>
  62299. </method>
  62300. <method name="addNextValue"
  62301. abstract="false" native="false" synchronized="false"
  62302. static="false" final="false" visibility="public"
  62303. deprecated="not deprecated">
  62304. <param name="val" type="java.lang.Object"/>
  62305. <doc>
  62306. <![CDATA[add a value to the aggregator
  62307. @param val
  62308. an object.]]>
  62309. </doc>
  62310. </method>
  62311. <method name="getReport" return="java.lang.String"
  62312. abstract="false" native="false" synchronized="false"
  62313. static="false" final="false" visibility="public"
  62314. deprecated="not deprecated">
  62315. <doc>
  62316. <![CDATA[@return return the number of unique objects aggregated]]>
  62317. </doc>
  62318. </method>
  62319. <method name="getUniqueItems" return="java.util.Set"
  62320. abstract="false" native="false" synchronized="false"
  62321. static="false" final="false" visibility="public"
  62322. deprecated="not deprecated">
  62323. <doc>
  62324. <![CDATA[@return the set of the unique objects]]>
  62325. </doc>
  62326. </method>
  62327. <method name="reset"
  62328. abstract="false" native="false" synchronized="false"
  62329. static="false" final="false" visibility="public"
  62330. deprecated="not deprecated">
  62331. <doc>
  62332. <![CDATA[reset the aggregator]]>
  62333. </doc>
  62334. </method>
  62335. <method name="getCombinerOutput" return="java.util.ArrayList"
  62336. abstract="false" native="false" synchronized="false"
  62337. static="false" final="false" visibility="public"
  62338. deprecated="not deprecated">
  62339. <doc>
  62340. <![CDATA[@return return an array of the unique objects. The return value is
  62341. expected to be used by the a combiner.]]>
  62342. </doc>
  62343. </method>
  62344. <doc>
  62345. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  62346. </doc>
  62347. </class>
  62348. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  62349. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  62350. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  62351. abstract="false"
  62352. static="false" final="false" visibility="public"
  62353. deprecated="not deprecated">
  62354. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  62355. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  62356. static="false" final="false" visibility="public"
  62357. deprecated="not deprecated">
  62358. <doc>
  62359. <![CDATA[@param className the class name of the user defined descriptor class
  62360. @param job a configure object used for decriptor configuration]]>
  62361. </doc>
  62362. </constructor>
  62363. <method name="createInstance" return="java.lang.Object"
  62364. abstract="false" native="false" synchronized="false"
  62365. static="true" final="false" visibility="public"
  62366. deprecated="not deprecated">
  62367. <param name="className" type="java.lang.String"/>
  62368. <doc>
  62369. <![CDATA[Create an instance of the given class
  62370. @param className the name of the class
  62371. @return a dynamically created instance of the given class]]>
  62372. </doc>
  62373. </method>
  62374. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62375. abstract="false" native="false" synchronized="false"
  62376. static="false" final="false" visibility="public"
  62377. deprecated="not deprecated">
  62378. <param name="key" type="java.lang.Object"/>
  62379. <param name="val" type="java.lang.Object"/>
  62380. <doc>
  62381. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  62382. by delegating the invocation to the real object.
  62383. @param key
  62384. input key
  62385. @param val
  62386. input value
  62387. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62388. aggregation type which is used to guide the way to aggregate the
  62389. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62390. </doc>
  62391. </method>
  62392. <method name="toString" return="java.lang.String"
  62393. abstract="false" native="false" synchronized="false"
  62394. static="false" final="false" visibility="public"
  62395. deprecated="not deprecated">
  62396. <doc>
  62397. <![CDATA[@return the string representation of this object.]]>
  62398. </doc>
  62399. </method>
  62400. <method name="configure"
  62401. abstract="false" native="false" synchronized="false"
  62402. static="false" final="false" visibility="public"
  62403. deprecated="not deprecated">
  62404. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62405. <doc>
  62406. <![CDATA[Do nothing.]]>
  62407. </doc>
  62408. </method>
  62409. <doc>
  62410. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  62411. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  62412. name of a user defined class that may be dynamically loaded. The other is to
  62413. deligate inviokations of generateKeyValPairs function to the created object.]]>
  62414. </doc>
  62415. </class>
  62416. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  62417. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  62418. <interface name="ValueAggregator" abstract="true"
  62419. static="false" final="false" visibility="public"
  62420. deprecated="not deprecated">
  62421. <method name="addNextValue"
  62422. abstract="false" native="false" synchronized="false"
  62423. static="false" final="false" visibility="public"
  62424. deprecated="not deprecated">
  62425. <param name="val" type="java.lang.Object"/>
  62426. <doc>
  62427. <![CDATA[add a value to the aggregator
  62428. @param val the value to be added]]>
  62429. </doc>
  62430. </method>
  62431. <method name="reset"
  62432. abstract="false" native="false" synchronized="false"
  62433. static="false" final="false" visibility="public"
  62434. deprecated="not deprecated">
  62435. <doc>
  62436. <![CDATA[reset the aggregator]]>
  62437. </doc>
  62438. </method>
  62439. <method name="getReport" return="java.lang.String"
  62440. abstract="false" native="false" synchronized="false"
  62441. static="false" final="false" visibility="public"
  62442. deprecated="not deprecated">
  62443. <doc>
  62444. <![CDATA[@return the string representation of the agregator]]>
  62445. </doc>
  62446. </method>
  62447. <method name="getCombinerOutput" return="java.util.ArrayList"
  62448. abstract="false" native="false" synchronized="false"
  62449. static="false" final="false" visibility="public"
  62450. deprecated="not deprecated">
  62451. <doc>
  62452. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  62453. </doc>
  62454. </method>
  62455. <doc>
  62456. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  62457. </doc>
  62458. </interface>
  62459. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  62460. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  62461. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  62462. abstract="false"
  62463. static="false" final="false" visibility="public"
  62464. deprecated="not deprecated">
  62465. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  62466. <constructor name="ValueAggregatorBaseDescriptor"
  62467. static="false" final="false" visibility="public"
  62468. deprecated="not deprecated">
  62469. </constructor>
  62470. <method name="generateEntry" return="java.util.Map.Entry"
  62471. abstract="false" native="false" synchronized="false"
  62472. static="true" final="false" visibility="public"
  62473. deprecated="not deprecated">
  62474. <param name="type" type="java.lang.String"/>
  62475. <param name="id" type="java.lang.String"/>
  62476. <param name="val" type="org.apache.hadoop.io.Text"/>
  62477. <doc>
  62478. <![CDATA[@param type the aggregation type
  62479. @param id the aggregation id
  62480. @param val the val associated with the id to be aggregated
  62481. @return an Entry whose key is the aggregation id prefixed with
  62482. the aggregation type.]]>
  62483. </doc>
  62484. </method>
  62485. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  62486. abstract="false" native="false" synchronized="false"
  62487. static="true" final="false" visibility="public"
  62488. deprecated="not deprecated">
  62489. <param name="type" type="java.lang.String"/>
  62490. <doc>
  62491. <![CDATA[@param type the aggregation type
  62492. @return a value aggregator of the given type.]]>
  62493. </doc>
  62494. </method>
  62495. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62496. abstract="false" native="false" synchronized="false"
  62497. static="false" final="false" visibility="public"
  62498. deprecated="not deprecated">
  62499. <param name="key" type="java.lang.Object"/>
  62500. <param name="val" type="java.lang.Object"/>
  62501. <doc>
  62502. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  62503. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  62504. its aggregation id. If the input is a file split,
  62505. the second id of the same type will be generated too, with the file name
  62506. as its aggregation id. This achieves the behavior of counting the total number
  62507. of records in the input data, and the number of records in each input file.
  62508. @param key
  62509. input key
  62510. @param val
  62511. input value
  62512. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62513. aggregation type which is used to guide the way to aggregate the
  62514. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62515. </doc>
  62516. </method>
  62517. <method name="configure"
  62518. abstract="false" native="false" synchronized="false"
  62519. static="false" final="false" visibility="public"
  62520. deprecated="not deprecated">
  62521. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62522. <doc>
  62523. <![CDATA[get the input file name.
  62524. @param job a job configuration object]]>
  62525. </doc>
  62526. </method>
  62527. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  62528. transient="false" volatile="false"
  62529. static="true" final="true" visibility="public"
  62530. deprecated="not deprecated">
  62531. </field>
  62532. <field name="LONG_VALUE_SUM" type="java.lang.String"
  62533. transient="false" volatile="false"
  62534. static="true" final="true" visibility="public"
  62535. deprecated="not deprecated">
  62536. </field>
  62537. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  62538. transient="false" volatile="false"
  62539. static="true" final="true" visibility="public"
  62540. deprecated="not deprecated">
  62541. </field>
  62542. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  62543. transient="false" volatile="false"
  62544. static="true" final="true" visibility="public"
  62545. deprecated="not deprecated">
  62546. </field>
  62547. <field name="LONG_VALUE_MAX" type="java.lang.String"
  62548. transient="false" volatile="false"
  62549. static="true" final="true" visibility="public"
  62550. deprecated="not deprecated">
  62551. </field>
  62552. <field name="LONG_VALUE_MIN" type="java.lang.String"
  62553. transient="false" volatile="false"
  62554. static="true" final="true" visibility="public"
  62555. deprecated="not deprecated">
  62556. </field>
  62557. <field name="STRING_VALUE_MAX" type="java.lang.String"
  62558. transient="false" volatile="false"
  62559. static="true" final="true" visibility="public"
  62560. deprecated="not deprecated">
  62561. </field>
  62562. <field name="STRING_VALUE_MIN" type="java.lang.String"
  62563. transient="false" volatile="false"
  62564. static="true" final="true" visibility="public"
  62565. deprecated="not deprecated">
  62566. </field>
  62567. <field name="inputFile" type="java.lang.String"
  62568. transient="false" volatile="false"
  62569. static="false" final="false" visibility="public"
  62570. deprecated="not deprecated">
  62571. </field>
  62572. <doc>
  62573. <![CDATA[This class implements the common functionalities of
  62574. the subclasses of ValueAggregatorDescriptor class.]]>
  62575. </doc>
  62576. </class>
  62577. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  62578. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  62579. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62580. abstract="false"
  62581. static="false" final="false" visibility="public"
  62582. deprecated="not deprecated">
  62583. <constructor name="ValueAggregatorCombiner"
  62584. static="false" final="false" visibility="public"
  62585. deprecated="not deprecated">
  62586. </constructor>
  62587. <method name="configure"
  62588. abstract="false" native="false" synchronized="false"
  62589. static="false" final="false" visibility="public"
  62590. deprecated="not deprecated">
  62591. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62592. <doc>
  62593. <![CDATA[Combiner does not need to configure.]]>
  62594. </doc>
  62595. </method>
  62596. <method name="reduce"
  62597. abstract="false" native="false" synchronized="false"
  62598. static="false" final="false" visibility="public"
  62599. deprecated="not deprecated">
  62600. <param name="key" type="org.apache.hadoop.io.Text"/>
  62601. <param name="values" type="java.util.Iterator"/>
  62602. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62603. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62604. <exception name="IOException" type="java.io.IOException"/>
  62605. <doc>
  62606. <![CDATA[Combines values for a given key.
  62607. @param key the key is expected to be a Text object, whose prefix indicates
  62608. the type of aggregation to aggregate the values.
  62609. @param values the values to combine
  62610. @param output to collect combined values]]>
  62611. </doc>
  62612. </method>
  62613. <method name="close"
  62614. abstract="false" native="false" synchronized="false"
  62615. static="false" final="false" visibility="public"
  62616. deprecated="not deprecated">
  62617. <exception name="IOException" type="java.io.IOException"/>
  62618. <doc>
  62619. <![CDATA[Do nothing.]]>
  62620. </doc>
  62621. </method>
  62622. <method name="map"
  62623. abstract="false" native="false" synchronized="false"
  62624. static="false" final="false" visibility="public"
  62625. deprecated="not deprecated">
  62626. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  62627. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  62628. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62629. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62630. <exception name="IOException" type="java.io.IOException"/>
  62631. <doc>
  62632. <![CDATA[Do nothing. Should not be called.]]>
  62633. </doc>
  62634. </method>
  62635. <doc>
  62636. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  62637. </doc>
  62638. </class>
  62639. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  62640. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  62641. <interface name="ValueAggregatorDescriptor" abstract="true"
  62642. static="false" final="false" visibility="public"
  62643. deprecated="not deprecated">
  62644. <method name="generateKeyValPairs" return="java.util.ArrayList"
  62645. abstract="false" native="false" synchronized="false"
  62646. static="false" final="false" visibility="public"
  62647. deprecated="not deprecated">
  62648. <param name="key" type="java.lang.Object"/>
  62649. <param name="val" type="java.lang.Object"/>
  62650. <doc>
  62651. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  62652. This function is usually called by the mapper of an Aggregate based job.
  62653. @param key
  62654. input key
  62655. @param val
  62656. input value
  62657. @return a list of aggregation id/value pairs. An aggregation id encodes an
  62658. aggregation type which is used to guide the way to aggregate the
  62659. value in the reduce/combiner phrase of an Aggregate based job.]]>
  62660. </doc>
  62661. </method>
  62662. <method name="configure"
  62663. abstract="false" native="false" synchronized="false"
  62664. static="false" final="false" visibility="public"
  62665. deprecated="not deprecated">
  62666. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62667. <doc>
  62668. <![CDATA[Configure the object
  62669. @param job
  62670. a JobConf object that may contain the information that can be used
  62671. to configure the object.]]>
  62672. </doc>
  62673. </method>
  62674. <field name="TYPE_SEPARATOR" type="java.lang.String"
  62675. transient="false" volatile="false"
  62676. static="true" final="true" visibility="public"
  62677. deprecated="not deprecated">
  62678. </field>
  62679. <field name="ONE" type="org.apache.hadoop.io.Text"
  62680. transient="false" volatile="false"
  62681. static="true" final="true" visibility="public"
  62682. deprecated="not deprecated">
  62683. </field>
  62684. <doc>
  62685. <![CDATA[This interface defines the contract a value aggregator descriptor must
  62686. support. Such a descriptor can be configured with a JobConf object. Its main
  62687. function is to generate a list of aggregation-id/value pairs. An aggregation
  62688. id encodes an aggregation type which is used to guide the way to aggregate
  62689. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  62690. an Aggregate based map/reduce job may create one or more of
  62691. ValueAggregatorDescriptor objects at configuration time. For each input
  62692. key/value pair, the mapper will use those objects to create aggregation
  62693. id/value pairs.]]>
  62694. </doc>
  62695. </interface>
  62696. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  62697. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  62698. <class name="ValueAggregatorJob" extends="java.lang.Object"
  62699. abstract="false"
  62700. static="false" final="false" visibility="public"
  62701. deprecated="not deprecated">
  62702. <constructor name="ValueAggregatorJob"
  62703. static="false" final="false" visibility="public"
  62704. deprecated="not deprecated">
  62705. </constructor>
  62706. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  62707. abstract="false" native="false" synchronized="false"
  62708. static="true" final="false" visibility="public"
  62709. deprecated="not deprecated">
  62710. <param name="args" type="java.lang.String[]"/>
  62711. <param name="descriptors" type="java.lang.Class[]"/>
  62712. <exception name="IOException" type="java.io.IOException"/>
  62713. </method>
  62714. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  62715. abstract="false" native="false" synchronized="false"
  62716. static="true" final="false" visibility="public"
  62717. deprecated="not deprecated">
  62718. <param name="args" type="java.lang.String[]"/>
  62719. <exception name="IOException" type="java.io.IOException"/>
  62720. </method>
  62721. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  62722. abstract="false" native="false" synchronized="false"
  62723. static="true" final="false" visibility="public"
  62724. deprecated="not deprecated">
  62725. <param name="args" type="java.lang.String[]"/>
  62726. <exception name="IOException" type="java.io.IOException"/>
  62727. <doc>
  62728. <![CDATA[Create an Aggregate based map/reduce job.
  62729. @param args the arguments used for job creation. Generic hadoop
  62730. arguments are accepted.
  62731. @return a JobConf object ready for submission.
  62732. @throws IOException
  62733. @see GenericOptionsParser]]>
  62734. </doc>
  62735. </method>
  62736. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  62737. abstract="false" native="false" synchronized="false"
  62738. static="true" final="false" visibility="public"
  62739. deprecated="not deprecated">
  62740. <param name="args" type="java.lang.String[]"/>
  62741. <param name="descriptors" type="java.lang.Class[]"/>
  62742. <exception name="IOException" type="java.io.IOException"/>
  62743. </method>
  62744. <method name="setAggregatorDescriptors"
  62745. abstract="false" native="false" synchronized="false"
  62746. static="true" final="false" visibility="public"
  62747. deprecated="not deprecated">
  62748. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62749. <param name="descriptors" type="java.lang.Class[]"/>
  62750. </method>
  62751. <method name="main"
  62752. abstract="false" native="false" synchronized="false"
  62753. static="true" final="false" visibility="public"
  62754. deprecated="not deprecated">
  62755. <param name="args" type="java.lang.String[]"/>
  62756. <exception name="IOException" type="java.io.IOException"/>
  62757. <doc>
  62758. <![CDATA[create and run an Aggregate based map/reduce job.
  62759. @param args the arguments used for job creation
  62760. @throws IOException]]>
  62761. </doc>
  62762. </method>
  62763. <doc>
  62764. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  62765. framework. The Aggregate is a specialization of map/reduce framework,
  62766. specilizing for performing various simple aggregations.
  62767. Generally speaking, in order to implement an application using Map/Reduce
  62768. model, the developer is to implement Map and Reduce functions (and possibly
  62769. combine function). However, a lot of applications related to counting and
  62770. statistics computing have very similar characteristics. Aggregate abstracts
  62771. out the general patterns of these functions and implementing those patterns.
  62772. In particular, the package provides generic mapper/redducer/combiner classes,
  62773. and a set of built-in value aggregators, and a generic utility class that
  62774. helps user create map/reduce jobs using the generic class. The built-in
  62775. aggregators include:
  62776. sum over numeric values count the number of distinct values compute the
  62777. histogram of values compute the minimum, maximum, media,average, standard
  62778. deviation of numeric values
  62779. The developer using Aggregate will need only to provide a plugin class
  62780. conforming to the following interface:
  62781. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  62782. generateKeyValPairs(Object key, Object value); public void
  62783. configure(JobConfjob); }
  62784. The package also provides a base class, ValueAggregatorBaseDescriptor,
  62785. implementing the above interface. The user can extend the base class and
  62786. implement generateKeyValPairs accordingly.
  62787. The primary work of generateKeyValPairs is to emit one or more key/value
  62788. pairs based on the input key/value pair. The key in an output key/value pair
  62789. encode two pieces of information: aggregation type and aggregation id. The
  62790. value will be aggregated onto the aggregation id according the aggregation
  62791. type.
  62792. This class offers a function to generate a map/reduce job using Aggregate
  62793. framework. The function takes the following parameters: input directory spec
  62794. input format (text or sequence file) output directory a file specifying the
  62795. user plugin class]]>
  62796. </doc>
  62797. </class>
  62798. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  62799. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  62800. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  62801. abstract="true"
  62802. static="false" final="false" visibility="public"
  62803. deprecated="not deprecated">
  62804. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62805. <implements name="org.apache.hadoop.mapred.Reducer"/>
  62806. <constructor name="ValueAggregatorJobBase"
  62807. static="false" final="false" visibility="public"
  62808. deprecated="not deprecated">
  62809. </constructor>
  62810. <method name="configure"
  62811. abstract="false" native="false" synchronized="false"
  62812. static="false" final="false" visibility="public"
  62813. deprecated="not deprecated">
  62814. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62815. </method>
  62816. <method name="logSpec"
  62817. abstract="false" native="false" synchronized="false"
  62818. static="false" final="false" visibility="protected"
  62819. deprecated="not deprecated">
  62820. </method>
  62821. <method name="close"
  62822. abstract="false" native="false" synchronized="false"
  62823. static="false" final="false" visibility="public"
  62824. deprecated="not deprecated">
  62825. <exception name="IOException" type="java.io.IOException"/>
  62826. </method>
  62827. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  62828. transient="false" volatile="false"
  62829. static="false" final="false" visibility="protected"
  62830. deprecated="not deprecated">
  62831. </field>
  62832. <doc>
  62833. <![CDATA[This abstract class implements some common functionalities of the
  62834. the generic mapper, reducer and combiner classes of Aggregate.]]>
  62835. </doc>
  62836. </class>
  62837. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  62838. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  62839. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62840. abstract="false"
  62841. static="false" final="false" visibility="public"
  62842. deprecated="not deprecated">
  62843. <constructor name="ValueAggregatorMapper"
  62844. static="false" final="false" visibility="public"
  62845. deprecated="not deprecated">
  62846. </constructor>
  62847. <method name="map"
  62848. abstract="false" native="false" synchronized="false"
  62849. static="false" final="false" visibility="public"
  62850. deprecated="not deprecated">
  62851. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62852. <param name="value" type="org.apache.hadoop.io.Writable"/>
  62853. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62854. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62855. <exception name="IOException" type="java.io.IOException"/>
  62856. <doc>
  62857. <![CDATA[the map function. It iterates through the value aggregator descriptor
  62858. list to generate aggregation id/value pairs and emit them.]]>
  62859. </doc>
  62860. </method>
  62861. <method name="reduce"
  62862. abstract="false" native="false" synchronized="false"
  62863. static="false" final="false" visibility="public"
  62864. deprecated="not deprecated">
  62865. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  62866. <param name="arg1" type="java.util.Iterator"/>
  62867. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62868. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62869. <exception name="IOException" type="java.io.IOException"/>
  62870. <doc>
  62871. <![CDATA[Do nothing. Should not be called.]]>
  62872. </doc>
  62873. </method>
  62874. <doc>
  62875. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  62876. </doc>
  62877. </class>
  62878. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  62879. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  62880. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  62881. abstract="false"
  62882. static="false" final="false" visibility="public"
  62883. deprecated="not deprecated">
  62884. <constructor name="ValueAggregatorReducer"
  62885. static="false" final="false" visibility="public"
  62886. deprecated="not deprecated">
  62887. </constructor>
  62888. <method name="reduce"
  62889. abstract="false" native="false" synchronized="false"
  62890. static="false" final="false" visibility="public"
  62891. deprecated="not deprecated">
  62892. <param name="key" type="org.apache.hadoop.io.Text"/>
  62893. <param name="values" type="java.util.Iterator"/>
  62894. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62895. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62896. <exception name="IOException" type="java.io.IOException"/>
  62897. <doc>
  62898. <![CDATA[@param key
  62899. the key is expected to be a Text object, whose prefix indicates
  62900. the type of aggregation to aggregate the values. In effect, data
  62901. driven computing is achieved. It is assumed that each aggregator's
  62902. getReport method emits appropriate output for the aggregator. This
  62903. may be further customiized.
  62904. @value the values to be aggregated]]>
  62905. </doc>
  62906. </method>
  62907. <method name="map"
  62908. abstract="false" native="false" synchronized="false"
  62909. static="false" final="false" visibility="public"
  62910. deprecated="not deprecated">
  62911. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  62912. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  62913. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  62914. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  62915. <exception name="IOException" type="java.io.IOException"/>
  62916. <doc>
  62917. <![CDATA[Do nothing. Should not be called]]>
  62918. </doc>
  62919. </method>
  62920. <doc>
  62921. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  62922. </doc>
  62923. </class>
  62924. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  62925. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  62926. <class name="ValueHistogram" extends="java.lang.Object"
  62927. abstract="false"
  62928. static="false" final="false" visibility="public"
  62929. deprecated="not deprecated">
  62930. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  62931. <constructor name="ValueHistogram"
  62932. static="false" final="false" visibility="public"
  62933. deprecated="not deprecated">
  62934. </constructor>
  62935. <method name="addNextValue"
  62936. abstract="false" native="false" synchronized="false"
  62937. static="false" final="false" visibility="public"
  62938. deprecated="not deprecated">
  62939. <param name="val" type="java.lang.Object"/>
  62940. <doc>
  62941. <![CDATA[add the given val to the aggregator.
  62942. @param val the value to be added. It is expected to be a string
  62943. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  62944. </doc>
  62945. </method>
  62946. <method name="getReport" return="java.lang.String"
  62947. abstract="false" native="false" synchronized="false"
  62948. static="false" final="false" visibility="public"
  62949. deprecated="not deprecated">
  62950. <doc>
  62951. <![CDATA[@return the string representation of this aggregator.
  62952. It includes the following basic statistics of the histogram:
  62953. the number of unique values
  62954. the minimum value
  62955. the media value
  62956. the maximum value
  62957. the average value
  62958. the standard deviation]]>
  62959. </doc>
  62960. </method>
  62961. <method name="getReportDetails" return="java.lang.String"
  62962. abstract="false" native="false" synchronized="false"
  62963. static="false" final="false" visibility="public"
  62964. deprecated="not deprecated">
  62965. <doc>
  62966. <![CDATA[@return a string representation of the list of value/frequence pairs of
  62967. the histogram]]>
  62968. </doc>
  62969. </method>
  62970. <method name="getCombinerOutput" return="java.util.ArrayList"
  62971. abstract="false" native="false" synchronized="false"
  62972. static="false" final="false" visibility="public"
  62973. deprecated="not deprecated">
  62974. <doc>
  62975. <![CDATA[@return a list value/frequence pairs.
  62976. The return value is expected to be used by the reducer.]]>
  62977. </doc>
  62978. </method>
  62979. <method name="getReportItems" return="java.util.TreeMap"
  62980. abstract="false" native="false" synchronized="false"
  62981. static="false" final="false" visibility="public"
  62982. deprecated="not deprecated">
  62983. <doc>
  62984. <![CDATA[@return a TreeMap representation of the histogram]]>
  62985. </doc>
  62986. </method>
  62987. <method name="reset"
  62988. abstract="false" native="false" synchronized="false"
  62989. static="false" final="false" visibility="public"
  62990. deprecated="not deprecated">
  62991. <doc>
  62992. <![CDATA[reset the aggregator]]>
  62993. </doc>
  62994. </method>
  62995. <doc>
  62996. <![CDATA[This class implements a value aggregator that computes the
  62997. histogram of a sequence of strings.]]>
  62998. </doc>
  62999. </class>
  63000. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  63001. </package>
  63002. <package name="org.apache.hadoop.mapred.lib.db">
  63003. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  63004. <class name="DBConfiguration" extends="java.lang.Object"
  63005. abstract="false"
  63006. static="false" final="false" visibility="public"
  63007. deprecated="not deprecated">
  63008. <method name="configureDB"
  63009. abstract="false" native="false" synchronized="false"
  63010. static="true" final="false" visibility="public"
  63011. deprecated="not deprecated">
  63012. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63013. <param name="driverClass" type="java.lang.String"/>
  63014. <param name="dbUrl" type="java.lang.String"/>
  63015. <param name="userName" type="java.lang.String"/>
  63016. <param name="passwd" type="java.lang.String"/>
  63017. <doc>
  63018. <![CDATA[Sets the DB access related fields in the JobConf.
  63019. @param job the job
  63020. @param driverClass JDBC Driver class name
  63021. @param dbUrl JDBC DB access URL.
  63022. @param userName DB access username
  63023. @param passwd DB access passwd]]>
  63024. </doc>
  63025. </method>
  63026. <method name="configureDB"
  63027. abstract="false" native="false" synchronized="false"
  63028. static="true" final="false" visibility="public"
  63029. deprecated="not deprecated">
  63030. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63031. <param name="driverClass" type="java.lang.String"/>
  63032. <param name="dbUrl" type="java.lang.String"/>
  63033. <doc>
  63034. <![CDATA[Sets the DB access related fields in the JobConf.
  63035. @param job the job
  63036. @param driverClass JDBC Driver class name
  63037. @param dbUrl JDBC DB access URL.]]>
  63038. </doc>
  63039. </method>
  63040. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  63041. transient="false" volatile="false"
  63042. static="true" final="true" visibility="public"
  63043. deprecated="not deprecated">
  63044. <doc>
  63045. <![CDATA[The JDBC Driver class name]]>
  63046. </doc>
  63047. </field>
  63048. <field name="URL_PROPERTY" type="java.lang.String"
  63049. transient="false" volatile="false"
  63050. static="true" final="true" visibility="public"
  63051. deprecated="not deprecated">
  63052. <doc>
  63053. <![CDATA[JDBC Database access URL]]>
  63054. </doc>
  63055. </field>
  63056. <field name="USERNAME_PROPERTY" type="java.lang.String"
  63057. transient="false" volatile="false"
  63058. static="true" final="true" visibility="public"
  63059. deprecated="not deprecated">
  63060. <doc>
  63061. <![CDATA[User name to access the database]]>
  63062. </doc>
  63063. </field>
  63064. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  63065. transient="false" volatile="false"
  63066. static="true" final="true" visibility="public"
  63067. deprecated="not deprecated">
  63068. <doc>
  63069. <![CDATA[Password to access the database]]>
  63070. </doc>
  63071. </field>
  63072. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  63073. transient="false" volatile="false"
  63074. static="true" final="true" visibility="public"
  63075. deprecated="not deprecated">
  63076. <doc>
  63077. <![CDATA[Input table name]]>
  63078. </doc>
  63079. </field>
  63080. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  63081. transient="false" volatile="false"
  63082. static="true" final="true" visibility="public"
  63083. deprecated="not deprecated">
  63084. <doc>
  63085. <![CDATA[Field names in the Input table]]>
  63086. </doc>
  63087. </field>
  63088. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  63089. transient="false" volatile="false"
  63090. static="true" final="true" visibility="public"
  63091. deprecated="not deprecated">
  63092. <doc>
  63093. <![CDATA[WHERE clause in the input SELECT statement]]>
  63094. </doc>
  63095. </field>
  63096. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  63097. transient="false" volatile="false"
  63098. static="true" final="true" visibility="public"
  63099. deprecated="not deprecated">
  63100. <doc>
  63101. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  63102. </doc>
  63103. </field>
  63104. <field name="INPUT_QUERY" type="java.lang.String"
  63105. transient="false" volatile="false"
  63106. static="true" final="true" visibility="public"
  63107. deprecated="not deprecated">
  63108. <doc>
  63109. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  63110. </doc>
  63111. </field>
  63112. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  63113. transient="false" volatile="false"
  63114. static="true" final="true" visibility="public"
  63115. deprecated="not deprecated">
  63116. <doc>
  63117. <![CDATA[Input query to get the count of records]]>
  63118. </doc>
  63119. </field>
  63120. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  63121. transient="false" volatile="false"
  63122. static="true" final="true" visibility="public"
  63123. deprecated="not deprecated">
  63124. <doc>
  63125. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  63126. </doc>
  63127. </field>
  63128. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  63129. transient="false" volatile="false"
  63130. static="true" final="true" visibility="public"
  63131. deprecated="not deprecated">
  63132. <doc>
  63133. <![CDATA[Output table name]]>
  63134. </doc>
  63135. </field>
  63136. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  63137. transient="false" volatile="false"
  63138. static="true" final="true" visibility="public"
  63139. deprecated="not deprecated">
  63140. <doc>
  63141. <![CDATA[Field names in the Output table]]>
  63142. </doc>
  63143. </field>
  63144. <doc>
  63145. <![CDATA[A container for configuration property names for jobs with DB input/output.
  63146. <br>
  63147. The job can be configured using the static methods in this class,
  63148. {@link DBInputFormat}, and {@link DBOutputFormat}.
  63149. <p>
  63150. Alternatively, the properties can be set in the configuration with proper
  63151. values.
  63152. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  63153. @see DBInputFormat#setInput(JobConf, Class, String, String)
  63154. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  63155. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  63156. </doc>
  63157. </class>
  63158. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  63159. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  63160. <class name="DBInputFormat" extends="java.lang.Object"
  63161. abstract="false"
  63162. static="false" final="false" visibility="public"
  63163. deprecated="not deprecated">
  63164. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  63165. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  63166. <constructor name="DBInputFormat"
  63167. static="false" final="false" visibility="public"
  63168. deprecated="not deprecated">
  63169. </constructor>
  63170. <method name="configure"
  63171. abstract="false" native="false" synchronized="false"
  63172. static="false" final="false" visibility="public"
  63173. deprecated="not deprecated">
  63174. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63175. <doc>
  63176. <![CDATA[{@inheritDoc}]]>
  63177. </doc>
  63178. </method>
  63179. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63180. abstract="false" native="false" synchronized="false"
  63181. static="false" final="false" visibility="public"
  63182. deprecated="not deprecated">
  63183. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  63184. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63185. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63186. <exception name="IOException" type="java.io.IOException"/>
  63187. <doc>
  63188. <![CDATA[{@inheritDoc}]]>
  63189. </doc>
  63190. </method>
  63191. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63192. abstract="false" native="false" synchronized="false"
  63193. static="false" final="false" visibility="public"
  63194. deprecated="not deprecated">
  63195. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63196. <param name="chunks" type="int"/>
  63197. <exception name="IOException" type="java.io.IOException"/>
  63198. <doc>
  63199. <![CDATA[{@inheritDoc}]]>
  63200. </doc>
  63201. </method>
  63202. <method name="getCountQuery" return="java.lang.String"
  63203. abstract="false" native="false" synchronized="false"
  63204. static="false" final="false" visibility="protected"
  63205. deprecated="not deprecated">
  63206. <doc>
  63207. <![CDATA[Returns the query for getting the total number of rows,
  63208. subclasses can override this for custom behaviour.]]>
  63209. </doc>
  63210. </method>
  63211. <method name="setInput"
  63212. abstract="false" native="false" synchronized="false"
  63213. static="true" final="false" visibility="public"
  63214. deprecated="not deprecated">
  63215. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63216. <param name="inputClass" type="java.lang.Class"/>
  63217. <param name="tableName" type="java.lang.String"/>
  63218. <param name="conditions" type="java.lang.String"/>
  63219. <param name="orderBy" type="java.lang.String"/>
  63220. <param name="fieldNames" type="java.lang.String[]"/>
  63221. <doc>
  63222. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  63223. @param job The job
  63224. @param inputClass the class object implementing DBWritable, which is the
  63225. Java object holding tuple fields.
  63226. @param tableName The table to read data from
  63227. @param conditions The condition which to select data with, eg. '(updated >
  63228. 20070101 AND length > 0)'
  63229. @param orderBy the fieldNames in the orderBy clause.
  63230. @param fieldNames The field names in the table
  63231. @see #setInput(JobConf, Class, String, String)]]>
  63232. </doc>
  63233. </method>
  63234. <method name="setInput"
  63235. abstract="false" native="false" synchronized="false"
  63236. static="true" final="false" visibility="public"
  63237. deprecated="not deprecated">
  63238. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63239. <param name="inputClass" type="java.lang.Class"/>
  63240. <param name="inputQuery" type="java.lang.String"/>
  63241. <param name="inputCountQuery" type="java.lang.String"/>
  63242. <doc>
  63243. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  63244. @param job The job
  63245. @param inputClass the class object implementing DBWritable, which is the
  63246. Java object holding tuple fields.
  63247. @param inputQuery the input query to select fields. Example :
  63248. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  63249. @param inputCountQuery the input query that returns the number of records in
  63250. the table.
  63251. Example : "SELECT COUNT(f1) FROM Mytable"
  63252. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  63253. </doc>
  63254. </method>
  63255. <doc>
  63256. <![CDATA[A InputFormat that reads input data from an SQL table.
  63257. <p>
  63258. DBInputFormat emits LongWritables containing the record number as
  63259. key and DBWritables as value.
  63260. The SQL query, and input class can be using one of the two
  63261. setInput methods.]]>
  63262. </doc>
  63263. </class>
  63264. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  63265. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  63266. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  63267. abstract="false"
  63268. static="true" final="false" visibility="protected"
  63269. deprecated="not deprecated">
  63270. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  63271. <constructor name="DBInputFormat.DBInputSplit"
  63272. static="false" final="false" visibility="public"
  63273. deprecated="not deprecated">
  63274. <doc>
  63275. <![CDATA[Default Constructor]]>
  63276. </doc>
  63277. </constructor>
  63278. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  63279. static="false" final="false" visibility="public"
  63280. deprecated="not deprecated">
  63281. <doc>
  63282. <![CDATA[Convenience Constructor
  63283. @param start the index of the first row to select
  63284. @param end the index of the last row to select]]>
  63285. </doc>
  63286. </constructor>
  63287. <method name="getLocations" return="java.lang.String[]"
  63288. abstract="false" native="false" synchronized="false"
  63289. static="false" final="false" visibility="public"
  63290. deprecated="not deprecated">
  63291. <exception name="IOException" type="java.io.IOException"/>
  63292. <doc>
  63293. <![CDATA[{@inheritDoc}]]>
  63294. </doc>
  63295. </method>
  63296. <method name="getStart" return="long"
  63297. abstract="false" native="false" synchronized="false"
  63298. static="false" final="false" visibility="public"
  63299. deprecated="not deprecated">
  63300. <doc>
  63301. <![CDATA[@return The index of the first row to select]]>
  63302. </doc>
  63303. </method>
  63304. <method name="getEnd" return="long"
  63305. abstract="false" native="false" synchronized="false"
  63306. static="false" final="false" visibility="public"
  63307. deprecated="not deprecated">
  63308. <doc>
  63309. <![CDATA[@return The index of the last row to select]]>
  63310. </doc>
  63311. </method>
  63312. <method name="getLength" return="long"
  63313. abstract="false" native="false" synchronized="false"
  63314. static="false" final="false" visibility="public"
  63315. deprecated="not deprecated">
  63316. <exception name="IOException" type="java.io.IOException"/>
  63317. <doc>
  63318. <![CDATA[@return The total row count in this split]]>
  63319. </doc>
  63320. </method>
  63321. <method name="readFields"
  63322. abstract="false" native="false" synchronized="false"
  63323. static="false" final="false" visibility="public"
  63324. deprecated="not deprecated">
  63325. <param name="input" type="java.io.DataInput"/>
  63326. <exception name="IOException" type="java.io.IOException"/>
  63327. <doc>
  63328. <![CDATA[{@inheritDoc}]]>
  63329. </doc>
  63330. </method>
  63331. <method name="write"
  63332. abstract="false" native="false" synchronized="false"
  63333. static="false" final="false" visibility="public"
  63334. deprecated="not deprecated">
  63335. <param name="output" type="java.io.DataOutput"/>
  63336. <exception name="IOException" type="java.io.IOException"/>
  63337. <doc>
  63338. <![CDATA[{@inheritDoc}]]>
  63339. </doc>
  63340. </method>
  63341. <doc>
  63342. <![CDATA[A InputSplit that spans a set of rows]]>
  63343. </doc>
  63344. </class>
  63345. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  63346. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  63347. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  63348. abstract="false"
  63349. static="false" final="false" visibility="protected"
  63350. deprecated="not deprecated">
  63351. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  63352. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  63353. static="false" final="false" visibility="protected"
  63354. deprecated="not deprecated">
  63355. <exception name="SQLException" type="java.sql.SQLException"/>
  63356. <doc>
  63357. <![CDATA[@param split The InputSplit to read data for
  63358. @throws SQLException]]>
  63359. </doc>
  63360. </constructor>
  63361. <method name="getSelectQuery" return="java.lang.String"
  63362. abstract="false" native="false" synchronized="false"
  63363. static="false" final="false" visibility="protected"
  63364. deprecated="not deprecated">
  63365. <doc>
  63366. <![CDATA[Returns the query for selecting the records,
  63367. subclasses can override this for custom behaviour.]]>
  63368. </doc>
  63369. </method>
  63370. <method name="close"
  63371. abstract="false" native="false" synchronized="false"
  63372. static="false" final="false" visibility="public"
  63373. deprecated="not deprecated">
  63374. <exception name="IOException" type="java.io.IOException"/>
  63375. <doc>
  63376. <![CDATA[{@inheritDoc}]]>
  63377. </doc>
  63378. </method>
  63379. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  63380. abstract="false" native="false" synchronized="false"
  63381. static="false" final="false" visibility="public"
  63382. deprecated="not deprecated">
  63383. <doc>
  63384. <![CDATA[{@inheritDoc}]]>
  63385. </doc>
  63386. </method>
  63387. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  63388. abstract="false" native="false" synchronized="false"
  63389. static="false" final="false" visibility="public"
  63390. deprecated="not deprecated">
  63391. <doc>
  63392. <![CDATA[{@inheritDoc}]]>
  63393. </doc>
  63394. </method>
  63395. <method name="getPos" return="long"
  63396. abstract="false" native="false" synchronized="false"
  63397. static="false" final="false" visibility="public"
  63398. deprecated="not deprecated">
  63399. <exception name="IOException" type="java.io.IOException"/>
  63400. <doc>
  63401. <![CDATA[{@inheritDoc}]]>
  63402. </doc>
  63403. </method>
  63404. <method name="getProgress" return="float"
  63405. abstract="false" native="false" synchronized="false"
  63406. static="false" final="false" visibility="public"
  63407. deprecated="not deprecated">
  63408. <exception name="IOException" type="java.io.IOException"/>
  63409. <doc>
  63410. <![CDATA[{@inheritDoc}]]>
  63411. </doc>
  63412. </method>
  63413. <method name="next" return="boolean"
  63414. abstract="false" native="false" synchronized="false"
  63415. static="false" final="false" visibility="public"
  63416. deprecated="not deprecated">
  63417. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  63418. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63419. <exception name="IOException" type="java.io.IOException"/>
  63420. <doc>
  63421. <![CDATA[{@inheritDoc}]]>
  63422. </doc>
  63423. </method>
  63424. <doc>
  63425. <![CDATA[A RecordReader that reads records from a SQL table.
  63426. Emits LongWritables containing the record number as
  63427. key and DBWritables as value.]]>
  63428. </doc>
  63429. </class>
  63430. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  63431. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  63432. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  63433. abstract="false"
  63434. static="true" final="false" visibility="public"
  63435. deprecated="not deprecated">
  63436. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63437. <implements name="org.apache.hadoop.io.Writable"/>
  63438. <constructor name="DBInputFormat.NullDBWritable"
  63439. static="false" final="false" visibility="public"
  63440. deprecated="not deprecated">
  63441. </constructor>
  63442. <method name="readFields"
  63443. abstract="false" native="false" synchronized="false"
  63444. static="false" final="false" visibility="public"
  63445. deprecated="not deprecated">
  63446. <param name="in" type="java.io.DataInput"/>
  63447. <exception name="IOException" type="java.io.IOException"/>
  63448. </method>
  63449. <method name="readFields"
  63450. abstract="false" native="false" synchronized="false"
  63451. static="false" final="false" visibility="public"
  63452. deprecated="not deprecated">
  63453. <param name="arg0" type="java.sql.ResultSet"/>
  63454. <exception name="SQLException" type="java.sql.SQLException"/>
  63455. </method>
  63456. <method name="write"
  63457. abstract="false" native="false" synchronized="false"
  63458. static="false" final="false" visibility="public"
  63459. deprecated="not deprecated">
  63460. <param name="out" type="java.io.DataOutput"/>
  63461. <exception name="IOException" type="java.io.IOException"/>
  63462. </method>
  63463. <method name="write"
  63464. abstract="false" native="false" synchronized="false"
  63465. static="false" final="false" visibility="public"
  63466. deprecated="not deprecated">
  63467. <param name="arg0" type="java.sql.PreparedStatement"/>
  63468. <exception name="SQLException" type="java.sql.SQLException"/>
  63469. </method>
  63470. <doc>
  63471. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  63472. </doc>
  63473. </class>
  63474. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  63475. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  63476. <class name="DBOutputFormat" extends="java.lang.Object"
  63477. abstract="false"
  63478. static="false" final="false" visibility="public"
  63479. deprecated="not deprecated">
  63480. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  63481. <constructor name="DBOutputFormat"
  63482. static="false" final="false" visibility="public"
  63483. deprecated="not deprecated">
  63484. </constructor>
  63485. <method name="constructQuery" return="java.lang.String"
  63486. abstract="false" native="false" synchronized="false"
  63487. static="false" final="false" visibility="protected"
  63488. deprecated="not deprecated">
  63489. <param name="table" type="java.lang.String"/>
  63490. <param name="fieldNames" type="java.lang.String[]"/>
  63491. <doc>
  63492. <![CDATA[Constructs the query used as the prepared statement to insert data.
  63493. @param table
  63494. the table to insert into
  63495. @param fieldNames
  63496. the fields to insert into. If field names are unknown, supply an
  63497. array of nulls.]]>
  63498. </doc>
  63499. </method>
  63500. <method name="checkOutputSpecs"
  63501. abstract="false" native="false" synchronized="false"
  63502. static="false" final="false" visibility="public"
  63503. deprecated="not deprecated">
  63504. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  63505. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63506. <exception name="IOException" type="java.io.IOException"/>
  63507. <doc>
  63508. <![CDATA[{@inheritDoc}]]>
  63509. </doc>
  63510. </method>
  63511. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  63512. abstract="false" native="false" synchronized="false"
  63513. static="false" final="false" visibility="public"
  63514. deprecated="not deprecated">
  63515. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  63516. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63517. <param name="name" type="java.lang.String"/>
  63518. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  63519. <exception name="IOException" type="java.io.IOException"/>
  63520. <doc>
  63521. <![CDATA[{@inheritDoc}]]>
  63522. </doc>
  63523. </method>
  63524. <method name="setOutput"
  63525. abstract="false" native="false" synchronized="false"
  63526. static="true" final="false" visibility="public"
  63527. deprecated="not deprecated">
  63528. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63529. <param name="tableName" type="java.lang.String"/>
  63530. <param name="fieldNames" type="java.lang.String[]"/>
  63531. <doc>
  63532. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  63533. @param job
  63534. The job
  63535. @param tableName
  63536. The table to insert data into
  63537. @param fieldNames
  63538. The field names in the table. If unknown, supply the appropriate
  63539. number of nulls.]]>
  63540. </doc>
  63541. </method>
  63542. <doc>
  63543. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  63544. <p>
  63545. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  63546. key has a type extending DBWritable. Returned {@link RecordWriter}
  63547. writes <b>only the key</b> to the database with a batch SQL query.]]>
  63548. </doc>
  63549. </class>
  63550. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  63551. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  63552. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  63553. abstract="false"
  63554. static="false" final="false" visibility="protected"
  63555. deprecated="not deprecated">
  63556. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  63557. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  63558. static="false" final="false" visibility="protected"
  63559. deprecated="not deprecated">
  63560. <exception name="SQLException" type="java.sql.SQLException"/>
  63561. </constructor>
  63562. <method name="close"
  63563. abstract="false" native="false" synchronized="false"
  63564. static="false" final="false" visibility="public"
  63565. deprecated="not deprecated">
  63566. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63567. <exception name="IOException" type="java.io.IOException"/>
  63568. <doc>
  63569. <![CDATA[{@inheritDoc}]]>
  63570. </doc>
  63571. </method>
  63572. <method name="write"
  63573. abstract="false" native="false" synchronized="false"
  63574. static="false" final="false" visibility="public"
  63575. deprecated="not deprecated">
  63576. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  63577. <param name="value" type="java.lang.Object"/>
  63578. <exception name="IOException" type="java.io.IOException"/>
  63579. <doc>
  63580. <![CDATA[{@inheritDoc}]]>
  63581. </doc>
  63582. </method>
  63583. <doc>
  63584. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  63585. </doc>
  63586. </class>
  63587. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  63588. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  63589. <interface name="DBWritable" abstract="true"
  63590. static="false" final="false" visibility="public"
  63591. deprecated="not deprecated">
  63592. <method name="write"
  63593. abstract="false" native="false" synchronized="false"
  63594. static="false" final="false" visibility="public"
  63595. deprecated="not deprecated">
  63596. <param name="statement" type="java.sql.PreparedStatement"/>
  63597. <exception name="SQLException" type="java.sql.SQLException"/>
  63598. <doc>
  63599. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  63600. @param statement the statement that the fields are put into.
  63601. @throws SQLException]]>
  63602. </doc>
  63603. </method>
  63604. <method name="readFields"
  63605. abstract="false" native="false" synchronized="false"
  63606. static="false" final="false" visibility="public"
  63607. deprecated="not deprecated">
  63608. <param name="resultSet" type="java.sql.ResultSet"/>
  63609. <exception name="SQLException" type="java.sql.SQLException"/>
  63610. <doc>
  63611. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  63612. @param resultSet the {@link ResultSet} to get the fields from.
  63613. @throws SQLException]]>
  63614. </doc>
  63615. </method>
  63616. <doc>
  63617. <![CDATA[Objects that are read from/written to a database should implement
  63618. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  63619. except that the {@link #write(PreparedStatement)} method takes a
  63620. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  63621. takes a {@link ResultSet}.
  63622. <p>
  63623. Implementations are responsible for writing the fields of the object
  63624. to PreparedStatement, and reading the fields of the object from the
  63625. ResultSet.
  63626. <p>Example:</p>
  63627. If we have the following table in the database :
  63628. <pre>
  63629. CREATE TABLE MyTable (
  63630. counter INTEGER NOT NULL,
  63631. timestamp BIGINT NOT NULL,
  63632. );
  63633. </pre>
  63634. then we can read/write the tuples from/to the table with :
  63635. <p><pre>
  63636. public class MyWritable implements Writable, DBWritable {
  63637. // Some data
  63638. private int counter;
  63639. private long timestamp;
  63640. //Writable#write() implementation
  63641. public void write(DataOutput out) throws IOException {
  63642. out.writeInt(counter);
  63643. out.writeLong(timestamp);
  63644. }
  63645. //Writable#readFields() implementation
  63646. public void readFields(DataInput in) throws IOException {
  63647. counter = in.readInt();
  63648. timestamp = in.readLong();
  63649. }
  63650. public void write(PreparedStatement statement) throws SQLException {
  63651. statement.setInt(1, counter);
  63652. statement.setLong(2, timestamp);
  63653. }
  63654. public void readFields(ResultSet resultSet) throws SQLException {
  63655. counter = resultSet.getInt(1);
  63656. timestamp = resultSet.getLong(2);
  63657. }
  63658. }
  63659. </pre></p>]]>
  63660. </doc>
  63661. </interface>
  63662. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  63663. </package>
  63664. <package name="org.apache.hadoop.mapred.pipes">
  63665. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  63666. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  63667. abstract="false"
  63668. static="false" final="false" visibility="public"
  63669. deprecated="not deprecated">
  63670. <implements name="org.apache.hadoop.util.Tool"/>
  63671. <constructor name="Submitter"
  63672. static="false" final="false" visibility="public"
  63673. deprecated="not deprecated">
  63674. </constructor>
  63675. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  63676. static="false" final="false" visibility="public"
  63677. deprecated="not deprecated">
  63678. </constructor>
  63679. <method name="getExecutable" return="java.lang.String"
  63680. abstract="false" native="false" synchronized="false"
  63681. static="true" final="false" visibility="public"
  63682. deprecated="not deprecated">
  63683. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63684. <doc>
  63685. <![CDATA[Get the URI of the application's executable.
  63686. @param conf
  63687. @return the URI where the application's executable is located]]>
  63688. </doc>
  63689. </method>
  63690. <method name="setExecutable"
  63691. abstract="false" native="false" synchronized="false"
  63692. static="true" final="false" visibility="public"
  63693. deprecated="not deprecated">
  63694. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63695. <param name="executable" type="java.lang.String"/>
  63696. <doc>
  63697. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  63698. location.
  63699. @param conf
  63700. @param executable The URI of the application's executable.]]>
  63701. </doc>
  63702. </method>
  63703. <method name="setIsJavaRecordReader"
  63704. abstract="false" native="false" synchronized="false"
  63705. static="true" final="false" visibility="public"
  63706. deprecated="not deprecated">
  63707. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63708. <param name="value" type="boolean"/>
  63709. <doc>
  63710. <![CDATA[Set whether the job is using a Java RecordReader.
  63711. @param conf the configuration to modify
  63712. @param value the new value]]>
  63713. </doc>
  63714. </method>
  63715. <method name="getIsJavaRecordReader" return="boolean"
  63716. abstract="false" native="false" synchronized="false"
  63717. static="true" final="false" visibility="public"
  63718. deprecated="not deprecated">
  63719. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63720. <doc>
  63721. <![CDATA[Check whether the job is using a Java RecordReader
  63722. @param conf the configuration to check
  63723. @return is it a Java RecordReader?]]>
  63724. </doc>
  63725. </method>
  63726. <method name="setIsJavaMapper"
  63727. abstract="false" native="false" synchronized="false"
  63728. static="true" final="false" visibility="public"
  63729. deprecated="not deprecated">
  63730. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63731. <param name="value" type="boolean"/>
  63732. <doc>
  63733. <![CDATA[Set whether the Mapper is written in Java.
  63734. @param conf the configuration to modify
  63735. @param value the new value]]>
  63736. </doc>
  63737. </method>
  63738. <method name="getIsJavaMapper" return="boolean"
  63739. abstract="false" native="false" synchronized="false"
  63740. static="true" final="false" visibility="public"
  63741. deprecated="not deprecated">
  63742. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63743. <doc>
  63744. <![CDATA[Check whether the job is using a Java Mapper.
  63745. @param conf the configuration to check
  63746. @return is it a Java Mapper?]]>
  63747. </doc>
  63748. </method>
  63749. <method name="setIsJavaReducer"
  63750. abstract="false" native="false" synchronized="false"
  63751. static="true" final="false" visibility="public"
  63752. deprecated="not deprecated">
  63753. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63754. <param name="value" type="boolean"/>
  63755. <doc>
  63756. <![CDATA[Set whether the Reducer is written in Java.
  63757. @param conf the configuration to modify
  63758. @param value the new value]]>
  63759. </doc>
  63760. </method>
  63761. <method name="getIsJavaReducer" return="boolean"
  63762. abstract="false" native="false" synchronized="false"
  63763. static="true" final="false" visibility="public"
  63764. deprecated="not deprecated">
  63765. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63766. <doc>
  63767. <![CDATA[Check whether the job is using a Java Reducer.
  63768. @param conf the configuration to check
  63769. @return is it a Java Reducer?]]>
  63770. </doc>
  63771. </method>
  63772. <method name="setIsJavaRecordWriter"
  63773. abstract="false" native="false" synchronized="false"
  63774. static="true" final="false" visibility="public"
  63775. deprecated="not deprecated">
  63776. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63777. <param name="value" type="boolean"/>
  63778. <doc>
  63779. <![CDATA[Set whether the job will use a Java RecordWriter.
  63780. @param conf the configuration to modify
  63781. @param value the new value to set]]>
  63782. </doc>
  63783. </method>
  63784. <method name="getIsJavaRecordWriter" return="boolean"
  63785. abstract="false" native="false" synchronized="false"
  63786. static="true" final="false" visibility="public"
  63787. deprecated="not deprecated">
  63788. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63789. <doc>
  63790. <![CDATA[Will the reduce use a Java RecordWriter?
  63791. @param conf the configuration to check
  63792. @return true, if the output of the job will be written by Java]]>
  63793. </doc>
  63794. </method>
  63795. <method name="getKeepCommandFile" return="boolean"
  63796. abstract="false" native="false" synchronized="false"
  63797. static="true" final="false" visibility="public"
  63798. deprecated="not deprecated">
  63799. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63800. <doc>
  63801. <![CDATA[Does the user want to keep the command file for debugging? If this is
  63802. true, pipes will write a copy of the command data to a file in the
  63803. task directory named "downlink.data", which may be used to run the C++
  63804. program under the debugger. You probably also want to set
  63805. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  63806. being deleted.
  63807. To run using the data file, set the environment variable
  63808. "hadoop.pipes.command.file" to point to the file.
  63809. @param conf the configuration to check
  63810. @return will the framework save the command file?]]>
  63811. </doc>
  63812. </method>
  63813. <method name="setKeepCommandFile"
  63814. abstract="false" native="false" synchronized="false"
  63815. static="true" final="false" visibility="public"
  63816. deprecated="not deprecated">
  63817. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63818. <param name="keep" type="boolean"/>
  63819. <doc>
  63820. <![CDATA[Set whether to keep the command file for debugging
  63821. @param conf the configuration to modify
  63822. @param keep the new value]]>
  63823. </doc>
  63824. </method>
  63825. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  63826. abstract="false" native="false" synchronized="false"
  63827. static="true" final="false" visibility="public"
  63828. deprecated="Use {@link Submitter#runJob(JobConf)}">
  63829. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63830. <exception name="IOException" type="java.io.IOException"/>
  63831. <doc>
  63832. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  63833. to the job to run under pipes are made to the configuration.
  63834. @param conf the job to submit to the cluster (MODIFIED)
  63835. @throws IOException
  63836. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  63837. </doc>
  63838. </method>
  63839. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  63840. abstract="false" native="false" synchronized="false"
  63841. static="true" final="false" visibility="public"
  63842. deprecated="not deprecated">
  63843. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63844. <exception name="IOException" type="java.io.IOException"/>
  63845. <doc>
  63846. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  63847. to the job to run under pipes are made to the configuration.
  63848. @param conf the job to submit to the cluster (MODIFIED)
  63849. @throws IOException]]>
  63850. </doc>
  63851. </method>
  63852. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  63853. abstract="false" native="false" synchronized="false"
  63854. static="true" final="false" visibility="public"
  63855. deprecated="not deprecated">
  63856. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63857. <exception name="IOException" type="java.io.IOException"/>
  63858. <doc>
  63859. <![CDATA[Submit a job to the Map-Reduce framework.
  63860. This returns a handle to the {@link RunningJob} which can be used to track
  63861. the running-job.
  63862. @param conf the job configuration.
  63863. @return a handle to the {@link RunningJob} which can be used to track the
  63864. running-job.
  63865. @throws IOException]]>
  63866. </doc>
  63867. </method>
  63868. <method name="run" return="int"
  63869. abstract="false" native="false" synchronized="false"
  63870. static="false" final="false" visibility="public"
  63871. deprecated="not deprecated">
  63872. <param name="args" type="java.lang.String[]"/>
  63873. <exception name="Exception" type="java.lang.Exception"/>
  63874. </method>
  63875. <method name="main"
  63876. abstract="false" native="false" synchronized="false"
  63877. static="true" final="false" visibility="public"
  63878. deprecated="not deprecated">
  63879. <param name="args" type="java.lang.String[]"/>
  63880. <exception name="Exception" type="java.lang.Exception"/>
  63881. <doc>
  63882. <![CDATA[Submit a pipes job based on the command line arguments.
  63883. @param args]]>
  63884. </doc>
  63885. </method>
  63886. <field name="LOG" type="org.apache.commons.logging.Log"
  63887. transient="false" volatile="false"
  63888. static="true" final="true" visibility="protected"
  63889. deprecated="not deprecated">
  63890. </field>
  63891. <doc>
  63892. <![CDATA[The main entry point and job submitter. It may either be used as a command
  63893. line-based or API-based method to launch Pipes jobs.]]>
  63894. </doc>
  63895. </class>
  63896. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  63897. </package>
  63898. <package name="org.apache.hadoop.mapred.tools">
  63899. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  63900. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  63901. abstract="false"
  63902. static="false" final="false" visibility="public"
  63903. deprecated="not deprecated">
  63904. <implements name="org.apache.hadoop.util.Tool"/>
  63905. <constructor name="MRAdmin"
  63906. static="false" final="false" visibility="public"
  63907. deprecated="not deprecated">
  63908. </constructor>
  63909. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  63910. static="false" final="false" visibility="public"
  63911. deprecated="not deprecated">
  63912. </constructor>
  63913. <method name="refreshSuperUserGroupsConfiguration" return="int"
  63914. abstract="false" native="false" synchronized="false"
  63915. static="false" final="false" visibility="public"
  63916. deprecated="not deprecated">
  63917. <exception name="IOException" type="java.io.IOException"/>
  63918. <doc>
  63919. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  63920. @return exitcode 0 on success, non-zero on failure
  63921. @throws IOException]]>
  63922. </doc>
  63923. </method>
  63924. <method name="run" return="int"
  63925. abstract="false" native="false" synchronized="false"
  63926. static="false" final="false" visibility="public"
  63927. deprecated="not deprecated">
  63928. <param name="args" type="java.lang.String[]"/>
  63929. <exception name="Exception" type="java.lang.Exception"/>
  63930. </method>
  63931. <method name="main"
  63932. abstract="false" native="false" synchronized="false"
  63933. static="true" final="false" visibility="public"
  63934. deprecated="not deprecated">
  63935. <param name="args" type="java.lang.String[]"/>
  63936. <exception name="Exception" type="java.lang.Exception"/>
  63937. </method>
  63938. <doc>
  63939. <![CDATA[Administrative access to Hadoop Map-Reduce.
  63940. Currently it only provides the ability to connect to the {@link JobTracker}
  63941. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  63942. properties.]]>
  63943. </doc>
  63944. </class>
  63945. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  63946. </package>
  63947. <package name="org.apache.hadoop.mapreduce">
  63948. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  63949. <class name="ClusterMetrics" extends="java.lang.Object"
  63950. abstract="false"
  63951. static="false" final="false" visibility="public"
  63952. deprecated="not deprecated">
  63953. <implements name="org.apache.hadoop.io.Writable"/>
  63954. <constructor name="ClusterMetrics"
  63955. static="false" final="false" visibility="public"
  63956. deprecated="not deprecated">
  63957. </constructor>
  63958. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  63959. static="false" final="false" visibility="public"
  63960. deprecated="not deprecated">
  63961. </constructor>
  63962. <method name="getRunningMaps" return="int"
  63963. abstract="false" native="false" synchronized="false"
  63964. static="false" final="false" visibility="public"
  63965. deprecated="not deprecated">
  63966. <doc>
  63967. <![CDATA[Get the number of running map tasks in the cluster.
  63968. @return running maps]]>
  63969. </doc>
  63970. </method>
  63971. <method name="getRunningReduces" return="int"
  63972. abstract="false" native="false" synchronized="false"
  63973. static="false" final="false" visibility="public"
  63974. deprecated="not deprecated">
  63975. <doc>
  63976. <![CDATA[Get the number of running reduce tasks in the cluster.
  63977. @return running reduces]]>
  63978. </doc>
  63979. </method>
  63980. <method name="getOccupiedMapSlots" return="int"
  63981. abstract="false" native="false" synchronized="false"
  63982. static="false" final="false" visibility="public"
  63983. deprecated="not deprecated">
  63984. <doc>
  63985. <![CDATA[Get number of occupied map slots in the cluster.
  63986. @return occupied map slot count]]>
  63987. </doc>
  63988. </method>
  63989. <method name="getOccupiedReduceSlots" return="int"
  63990. abstract="false" native="false" synchronized="false"
  63991. static="false" final="false" visibility="public"
  63992. deprecated="not deprecated">
  63993. <doc>
  63994. <![CDATA[Get the number of occupied reduce slots in the cluster.
  63995. @return occupied reduce slot count]]>
  63996. </doc>
  63997. </method>
  63998. <method name="getReservedMapSlots" return="int"
  63999. abstract="false" native="false" synchronized="false"
  64000. static="false" final="false" visibility="public"
  64001. deprecated="not deprecated">
  64002. <doc>
  64003. <![CDATA[Get number of reserved map slots in the cluster.
  64004. @return reserved map slot count]]>
  64005. </doc>
  64006. </method>
  64007. <method name="getReservedReduceSlots" return="int"
  64008. abstract="false" native="false" synchronized="false"
  64009. static="false" final="false" visibility="public"
  64010. deprecated="not deprecated">
  64011. <doc>
  64012. <![CDATA[Get the number of reserved reduce slots in the cluster.
  64013. @return reserved reduce slot count]]>
  64014. </doc>
  64015. </method>
  64016. <method name="getMapSlotCapacity" return="int"
  64017. abstract="false" native="false" synchronized="false"
  64018. static="false" final="false" visibility="public"
  64019. deprecated="not deprecated">
  64020. <doc>
  64021. <![CDATA[Get the total number of map slots in the cluster.
  64022. @return map slot capacity]]>
  64023. </doc>
  64024. </method>
  64025. <method name="getReduceSlotCapacity" return="int"
  64026. abstract="false" native="false" synchronized="false"
  64027. static="false" final="false" visibility="public"
  64028. deprecated="not deprecated">
  64029. <doc>
  64030. <![CDATA[Get the total number of reduce slots in the cluster.
  64031. @return reduce slot capacity]]>
  64032. </doc>
  64033. </method>
  64034. <method name="getTotalJobSubmissions" return="int"
  64035. abstract="false" native="false" synchronized="false"
  64036. static="false" final="false" visibility="public"
  64037. deprecated="not deprecated">
  64038. <doc>
  64039. <![CDATA[Get the total number of job submissions in the cluster.
  64040. @return total number of job submissions]]>
  64041. </doc>
  64042. </method>
  64043. <method name="getTaskTrackerCount" return="int"
  64044. abstract="false" native="false" synchronized="false"
  64045. static="false" final="false" visibility="public"
  64046. deprecated="not deprecated">
  64047. <doc>
  64048. <![CDATA[Get the number of active trackers in the cluster.
  64049. @return active tracker count.]]>
  64050. </doc>
  64051. </method>
  64052. <method name="getBlackListedTaskTrackerCount" return="int"
  64053. abstract="false" native="false" synchronized="false"
  64054. static="false" final="false" visibility="public"
  64055. deprecated="not deprecated">
  64056. <doc>
  64057. <![CDATA[Get the number of blacklisted trackers in the cluster.
  64058. @return blacklisted tracker count]]>
  64059. </doc>
  64060. </method>
  64061. <method name="getGrayListedTaskTrackerCount" return="int"
  64062. abstract="false" native="false" synchronized="false"
  64063. static="false" final="false" visibility="public"
  64064. deprecated="not deprecated">
  64065. <doc>
  64066. <![CDATA[Get the number of graylisted trackers in the cluster.
  64067. @return graylisted tracker count]]>
  64068. </doc>
  64069. </method>
  64070. <method name="getDecommissionedTaskTrackerCount" return="int"
  64071. abstract="false" native="false" synchronized="false"
  64072. static="false" final="false" visibility="public"
  64073. deprecated="not deprecated">
  64074. <doc>
  64075. <![CDATA[Get the number of decommissioned trackers in the cluster.
  64076. @return decommissioned tracker count]]>
  64077. </doc>
  64078. </method>
  64079. <method name="readFields"
  64080. abstract="false" native="false" synchronized="false"
  64081. static="false" final="false" visibility="public"
  64082. deprecated="not deprecated">
  64083. <param name="in" type="java.io.DataInput"/>
  64084. <exception name="IOException" type="java.io.IOException"/>
  64085. </method>
  64086. <method name="write"
  64087. abstract="false" native="false" synchronized="false"
  64088. static="false" final="false" visibility="public"
  64089. deprecated="not deprecated">
  64090. <param name="out" type="java.io.DataOutput"/>
  64091. <exception name="IOException" type="java.io.IOException"/>
  64092. </method>
  64093. <doc>
  64094. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  64095. <p><code>ClusterMetrics</code> provides clients with information such as:
  64096. <ol>
  64097. <li>
  64098. Size of the cluster.
  64099. </li>
  64100. <li>
  64101. Number of blacklisted and decommissioned trackers.
  64102. </li>
  64103. <li>
  64104. Slot capacity of the cluster.
  64105. </li>
  64106. <li>
  64107. The number of currently occupied/reserved map & reduce slots.
  64108. </li>
  64109. <li>
  64110. The number of currently running map & reduce tasks.
  64111. </li>
  64112. <li>
  64113. The number of job submissions.
  64114. </li>
  64115. </ol></p>]]>
  64116. </doc>
  64117. </class>
  64118. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  64119. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  64120. <class name="Counter" extends="java.lang.Object"
  64121. abstract="false"
  64122. static="false" final="false" visibility="public"
  64123. deprecated="not deprecated">
  64124. <implements name="org.apache.hadoop.io.Writable"/>
  64125. <constructor name="Counter"
  64126. static="false" final="false" visibility="protected"
  64127. deprecated="not deprecated">
  64128. </constructor>
  64129. <constructor name="Counter" type="java.lang.String, java.lang.String"
  64130. static="false" final="false" visibility="protected"
  64131. deprecated="not deprecated">
  64132. </constructor>
  64133. <method name="setDisplayName"
  64134. abstract="false" native="false" synchronized="true"
  64135. static="false" final="false" visibility="protected"
  64136. deprecated="not deprecated">
  64137. <param name="displayName" type="java.lang.String"/>
  64138. </method>
  64139. <method name="readFields"
  64140. abstract="false" native="false" synchronized="true"
  64141. static="false" final="false" visibility="public"
  64142. deprecated="not deprecated">
  64143. <param name="in" type="java.io.DataInput"/>
  64144. <exception name="IOException" type="java.io.IOException"/>
  64145. <doc>
  64146. <![CDATA[Read the binary representation of the counter]]>
  64147. </doc>
  64148. </method>
  64149. <method name="write"
  64150. abstract="false" native="false" synchronized="true"
  64151. static="false" final="false" visibility="public"
  64152. deprecated="not deprecated">
  64153. <param name="out" type="java.io.DataOutput"/>
  64154. <exception name="IOException" type="java.io.IOException"/>
  64155. <doc>
  64156. <![CDATA[Write the binary representation of the counter]]>
  64157. </doc>
  64158. </method>
  64159. <method name="getName" return="java.lang.String"
  64160. abstract="false" native="false" synchronized="true"
  64161. static="false" final="false" visibility="public"
  64162. deprecated="not deprecated">
  64163. </method>
  64164. <method name="getDisplayName" return="java.lang.String"
  64165. abstract="false" native="false" synchronized="true"
  64166. static="false" final="false" visibility="public"
  64167. deprecated="not deprecated">
  64168. <doc>
  64169. <![CDATA[Get the name of the counter.
  64170. @return the user facing name of the counter]]>
  64171. </doc>
  64172. </method>
  64173. <method name="getValue" return="long"
  64174. abstract="false" native="false" synchronized="true"
  64175. static="false" final="false" visibility="public"
  64176. deprecated="not deprecated">
  64177. <doc>
  64178. <![CDATA[What is the current value of this counter?
  64179. @return the current value]]>
  64180. </doc>
  64181. </method>
  64182. <method name="setValue"
  64183. abstract="false" native="false" synchronized="true"
  64184. static="false" final="false" visibility="public"
  64185. deprecated="not deprecated">
  64186. <param name="value" type="long"/>
  64187. <doc>
  64188. <![CDATA[Set this counter by the given value
  64189. @param value the value to set]]>
  64190. </doc>
  64191. </method>
  64192. <method name="increment"
  64193. abstract="false" native="false" synchronized="true"
  64194. static="false" final="false" visibility="public"
  64195. deprecated="not deprecated">
  64196. <param name="incr" type="long"/>
  64197. <doc>
  64198. <![CDATA[Increment this counter by the given value
  64199. @param incr the value to increase this counter by]]>
  64200. </doc>
  64201. </method>
  64202. <method name="equals" return="boolean"
  64203. abstract="false" native="false" synchronized="true"
  64204. static="false" final="false" visibility="public"
  64205. deprecated="not deprecated">
  64206. <param name="genericRight" type="java.lang.Object"/>
  64207. </method>
  64208. <method name="hashCode" return="int"
  64209. abstract="false" native="false" synchronized="true"
  64210. static="false" final="false" visibility="public"
  64211. deprecated="not deprecated">
  64212. </method>
  64213. <doc>
  64214. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  64215. <p><code>Counters</code> represent global counters, defined either by the
  64216. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  64217. an {@link Enum} and has a long for the value.</p>
  64218. <p><code>Counters</code> are bunched into Groups, each comprising of
  64219. counters from a particular <code>Enum</code> class.]]>
  64220. </doc>
  64221. </class>
  64222. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  64223. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  64224. <class name="CounterGroup" extends="java.lang.Object"
  64225. abstract="false"
  64226. static="false" final="false" visibility="public"
  64227. deprecated="not deprecated">
  64228. <implements name="org.apache.hadoop.io.Writable"/>
  64229. <implements name="java.lang.Iterable"/>
  64230. <constructor name="CounterGroup" type="java.lang.String"
  64231. static="false" final="false" visibility="protected"
  64232. deprecated="not deprecated">
  64233. </constructor>
  64234. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  64235. static="false" final="false" visibility="protected"
  64236. deprecated="not deprecated">
  64237. </constructor>
  64238. <method name="getName" return="java.lang.String"
  64239. abstract="false" native="false" synchronized="true"
  64240. static="false" final="false" visibility="public"
  64241. deprecated="not deprecated">
  64242. <doc>
  64243. <![CDATA[Get the internal name of the group
  64244. @return the internal name]]>
  64245. </doc>
  64246. </method>
  64247. <method name="getDisplayName" return="java.lang.String"
  64248. abstract="false" native="false" synchronized="true"
  64249. static="false" final="false" visibility="public"
  64250. deprecated="not deprecated">
  64251. <doc>
  64252. <![CDATA[Get the display name of the group.
  64253. @return the human readable name]]>
  64254. </doc>
  64255. </method>
  64256. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64257. abstract="false" native="false" synchronized="false"
  64258. static="false" final="false" visibility="protected"
  64259. deprecated="not deprecated">
  64260. <param name="counterName" type="java.lang.String"/>
  64261. <param name="displayName" type="java.lang.String"/>
  64262. <doc>
  64263. <![CDATA[Internal to find a counter in a group.
  64264. @param counterName the name of the counter
  64265. @param displayName the display name of the counter
  64266. @return the counter that was found or added]]>
  64267. </doc>
  64268. </method>
  64269. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64270. abstract="false" native="false" synchronized="true"
  64271. static="false" final="false" visibility="public"
  64272. deprecated="not deprecated">
  64273. <param name="counterName" type="java.lang.String"/>
  64274. </method>
  64275. <method name="iterator" return="java.util.Iterator"
  64276. abstract="false" native="false" synchronized="true"
  64277. static="false" final="false" visibility="public"
  64278. deprecated="not deprecated">
  64279. </method>
  64280. <method name="write"
  64281. abstract="false" native="false" synchronized="true"
  64282. static="false" final="false" visibility="public"
  64283. deprecated="not deprecated">
  64284. <param name="out" type="java.io.DataOutput"/>
  64285. <exception name="IOException" type="java.io.IOException"/>
  64286. </method>
  64287. <method name="readFields"
  64288. abstract="false" native="false" synchronized="true"
  64289. static="false" final="false" visibility="public"
  64290. deprecated="not deprecated">
  64291. <param name="in" type="java.io.DataInput"/>
  64292. <exception name="IOException" type="java.io.IOException"/>
  64293. </method>
  64294. <method name="size" return="int"
  64295. abstract="false" native="false" synchronized="true"
  64296. static="false" final="false" visibility="public"
  64297. deprecated="not deprecated">
  64298. <doc>
  64299. <![CDATA[Returns the number of counters in this group.]]>
  64300. </doc>
  64301. </method>
  64302. <method name="equals" return="boolean"
  64303. abstract="false" native="false" synchronized="true"
  64304. static="false" final="false" visibility="public"
  64305. deprecated="not deprecated">
  64306. <param name="genericRight" type="java.lang.Object"/>
  64307. </method>
  64308. <method name="hashCode" return="int"
  64309. abstract="false" native="false" synchronized="true"
  64310. static="false" final="false" visibility="public"
  64311. deprecated="not deprecated">
  64312. </method>
  64313. <method name="incrAllCounters"
  64314. abstract="false" native="false" synchronized="true"
  64315. static="false" final="false" visibility="public"
  64316. deprecated="not deprecated">
  64317. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  64318. </method>
  64319. <doc>
  64320. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  64321. it is an {@link Enum} subclass and the counters are the values.]]>
  64322. </doc>
  64323. </class>
  64324. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  64325. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  64326. <class name="Counters" extends="java.lang.Object"
  64327. abstract="false"
  64328. static="false" final="false" visibility="public"
  64329. deprecated="not deprecated">
  64330. <implements name="org.apache.hadoop.io.Writable"/>
  64331. <implements name="java.lang.Iterable"/>
  64332. <constructor name="Counters"
  64333. static="false" final="false" visibility="public"
  64334. deprecated="not deprecated">
  64335. </constructor>
  64336. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  64337. static="false" final="false" visibility="public"
  64338. deprecated="not deprecated">
  64339. </constructor>
  64340. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64341. abstract="false" native="false" synchronized="false"
  64342. static="false" final="false" visibility="public"
  64343. deprecated="not deprecated">
  64344. <param name="groupName" type="java.lang.String"/>
  64345. <param name="counterName" type="java.lang.String"/>
  64346. </method>
  64347. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  64348. abstract="false" native="false" synchronized="true"
  64349. static="false" final="false" visibility="public"
  64350. deprecated="not deprecated">
  64351. <param name="key" type="java.lang.Enum"/>
  64352. <doc>
  64353. <![CDATA[Find the counter for the given enum. The same enum will always return the
  64354. same counter.
  64355. @param key the counter key
  64356. @return the matching counter object]]>
  64357. </doc>
  64358. </method>
  64359. <method name="getGroupNames" return="java.util.Collection"
  64360. abstract="false" native="false" synchronized="true"
  64361. static="false" final="false" visibility="public"
  64362. deprecated="not deprecated">
  64363. <doc>
  64364. <![CDATA[Returns the names of all counter classes.
  64365. @return Set of counter names.]]>
  64366. </doc>
  64367. </method>
  64368. <method name="iterator" return="java.util.Iterator"
  64369. abstract="false" native="false" synchronized="false"
  64370. static="false" final="false" visibility="public"
  64371. deprecated="not deprecated">
  64372. </method>
  64373. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  64374. abstract="false" native="false" synchronized="true"
  64375. static="false" final="false" visibility="public"
  64376. deprecated="not deprecated">
  64377. <param name="groupName" type="java.lang.String"/>
  64378. <doc>
  64379. <![CDATA[Returns the named counter group, or an empty group if there is none
  64380. with the specified name.]]>
  64381. </doc>
  64382. </method>
  64383. <method name="countCounters" return="int"
  64384. abstract="false" native="false" synchronized="true"
  64385. static="false" final="false" visibility="public"
  64386. deprecated="not deprecated">
  64387. <doc>
  64388. <![CDATA[Returns the total number of counters, by summing the number of counters
  64389. in each group.]]>
  64390. </doc>
  64391. </method>
  64392. <method name="write"
  64393. abstract="false" native="false" synchronized="true"
  64394. static="false" final="false" visibility="public"
  64395. deprecated="not deprecated">
  64396. <param name="out" type="java.io.DataOutput"/>
  64397. <exception name="IOException" type="java.io.IOException"/>
  64398. <doc>
  64399. <![CDATA[Write the set of groups.
  64400. The external format is:
  64401. #groups (groupName group)*
  64402. i.e. the number of groups followed by 0 or more groups, where each
  64403. group is of the form:
  64404. groupDisplayName #counters (false | true counter)*
  64405. where each counter is of the form:
  64406. name (false | true displayName) value]]>
  64407. </doc>
  64408. </method>
  64409. <method name="readFields"
  64410. abstract="false" native="false" synchronized="true"
  64411. static="false" final="false" visibility="public"
  64412. deprecated="not deprecated">
  64413. <param name="in" type="java.io.DataInput"/>
  64414. <exception name="IOException" type="java.io.IOException"/>
  64415. <doc>
  64416. <![CDATA[Read a set of groups.]]>
  64417. </doc>
  64418. </method>
  64419. <method name="toString" return="java.lang.String"
  64420. abstract="false" native="false" synchronized="true"
  64421. static="false" final="false" visibility="public"
  64422. deprecated="not deprecated">
  64423. <doc>
  64424. <![CDATA[Return textual representation of the counter values.]]>
  64425. </doc>
  64426. </method>
  64427. <method name="incrAllCounters"
  64428. abstract="false" native="false" synchronized="true"
  64429. static="false" final="false" visibility="public"
  64430. deprecated="not deprecated">
  64431. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  64432. <doc>
  64433. <![CDATA[Increments multiple counters by their amounts in another Counters
  64434. instance.
  64435. @param other the other Counters instance]]>
  64436. </doc>
  64437. </method>
  64438. <method name="equals" return="boolean"
  64439. abstract="false" native="false" synchronized="false"
  64440. static="false" final="false" visibility="public"
  64441. deprecated="not deprecated">
  64442. <param name="genericRight" type="java.lang.Object"/>
  64443. </method>
  64444. <method name="hashCode" return="int"
  64445. abstract="false" native="false" synchronized="false"
  64446. static="false" final="false" visibility="public"
  64447. deprecated="not deprecated">
  64448. </method>
  64449. </class>
  64450. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  64451. <!-- start class org.apache.hadoop.mapreduce.ID -->
  64452. <class name="ID" extends="java.lang.Object"
  64453. abstract="true"
  64454. static="false" final="false" visibility="public"
  64455. deprecated="not deprecated">
  64456. <implements name="org.apache.hadoop.io.WritableComparable"/>
  64457. <constructor name="ID" type="int"
  64458. static="false" final="false" visibility="public"
  64459. deprecated="not deprecated">
  64460. <doc>
  64461. <![CDATA[constructs an ID object from the given int]]>
  64462. </doc>
  64463. </constructor>
  64464. <constructor name="ID"
  64465. static="false" final="false" visibility="protected"
  64466. deprecated="not deprecated">
  64467. </constructor>
  64468. <method name="getId" return="int"
  64469. abstract="false" native="false" synchronized="false"
  64470. static="false" final="false" visibility="public"
  64471. deprecated="not deprecated">
  64472. <doc>
  64473. <![CDATA[returns the int which represents the identifier]]>
  64474. </doc>
  64475. </method>
  64476. <method name="toString" return="java.lang.String"
  64477. abstract="false" native="false" synchronized="false"
  64478. static="false" final="false" visibility="public"
  64479. deprecated="not deprecated">
  64480. </method>
  64481. <method name="hashCode" return="int"
  64482. abstract="false" native="false" synchronized="false"
  64483. static="false" final="false" visibility="public"
  64484. deprecated="not deprecated">
  64485. </method>
  64486. <method name="equals" return="boolean"
  64487. abstract="false" native="false" synchronized="false"
  64488. static="false" final="false" visibility="public"
  64489. deprecated="not deprecated">
  64490. <param name="o" type="java.lang.Object"/>
  64491. </method>
  64492. <method name="compareTo" return="int"
  64493. abstract="false" native="false" synchronized="false"
  64494. static="false" final="false" visibility="public"
  64495. deprecated="not deprecated">
  64496. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  64497. <doc>
  64498. <![CDATA[Compare IDs by associated numbers]]>
  64499. </doc>
  64500. </method>
  64501. <method name="readFields"
  64502. abstract="false" native="false" synchronized="false"
  64503. static="false" final="false" visibility="public"
  64504. deprecated="not deprecated">
  64505. <param name="in" type="java.io.DataInput"/>
  64506. <exception name="IOException" type="java.io.IOException"/>
  64507. </method>
  64508. <method name="write"
  64509. abstract="false" native="false" synchronized="false"
  64510. static="false" final="false" visibility="public"
  64511. deprecated="not deprecated">
  64512. <param name="out" type="java.io.DataOutput"/>
  64513. <exception name="IOException" type="java.io.IOException"/>
  64514. </method>
  64515. <field name="SEPARATOR" type="char"
  64516. transient="false" volatile="false"
  64517. static="true" final="true" visibility="protected"
  64518. deprecated="not deprecated">
  64519. </field>
  64520. <field name="id" type="int"
  64521. transient="false" volatile="false"
  64522. static="false" final="false" visibility="protected"
  64523. deprecated="not deprecated">
  64524. </field>
  64525. <doc>
  64526. <![CDATA[A general identifier, which internally stores the id
  64527. as an integer. This is the super class of {@link JobID},
  64528. {@link TaskID} and {@link TaskAttemptID}.
  64529. @see JobID
  64530. @see TaskID
  64531. @see TaskAttemptID]]>
  64532. </doc>
  64533. </class>
  64534. <!-- end class org.apache.hadoop.mapreduce.ID -->
  64535. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  64536. <class name="InputFormat" extends="java.lang.Object"
  64537. abstract="true"
  64538. static="false" final="false" visibility="public"
  64539. deprecated="not deprecated">
  64540. <constructor name="InputFormat"
  64541. static="false" final="false" visibility="public"
  64542. deprecated="not deprecated">
  64543. </constructor>
  64544. <method name="getSplits" return="java.util.List"
  64545. abstract="true" native="false" synchronized="false"
  64546. static="false" final="false" visibility="public"
  64547. deprecated="not deprecated">
  64548. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  64549. <exception name="IOException" type="java.io.IOException"/>
  64550. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64551. <doc>
  64552. <![CDATA[Logically split the set of input files for the job.
  64553. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  64554. for processing.</p>
  64555. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  64556. input files are not physically split into chunks. For e.g. a split could
  64557. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  64558. also creates the {@link RecordReader} to read the {@link InputSplit}.
  64559. @param context job configuration.
  64560. @return an array of {@link InputSplit}s for the job.]]>
  64561. </doc>
  64562. </method>
  64563. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  64564. abstract="true" native="false" synchronized="false"
  64565. static="false" final="false" visibility="public"
  64566. deprecated="not deprecated">
  64567. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  64568. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  64569. <exception name="IOException" type="java.io.IOException"/>
  64570. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64571. <doc>
  64572. <![CDATA[Create a record reader for a given split. The framework will call
  64573. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  64574. the split is used.
  64575. @param split the split to be read
  64576. @param context the information about the task
  64577. @return a new record reader
  64578. @throws IOException
  64579. @throws InterruptedException]]>
  64580. </doc>
  64581. </method>
  64582. <doc>
  64583. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  64584. Map-Reduce job.
  64585. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  64586. job to:<p>
  64587. <ol>
  64588. <li>
  64589. Validate the input-specification of the job.
  64590. <li>
  64591. Split-up the input file(s) into logical {@link InputSplit}s, each of
  64592. which is then assigned to an individual {@link Mapper}.
  64593. </li>
  64594. <li>
  64595. Provide the {@link RecordReader} implementation to be used to glean
  64596. input records from the logical <code>InputSplit</code> for processing by
  64597. the {@link Mapper}.
  64598. </li>
  64599. </ol>
  64600. <p>The default behavior of file-based {@link InputFormat}s, typically
  64601. sub-classes of {@link FileInputFormat}, is to split the
  64602. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  64603. bytes, of the input files. However, the {@link FileSystem} blocksize of
  64604. the input files is treated as an upper bound for input splits. A lower bound
  64605. on the split size can be set via
  64606. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  64607. mapred.min.split.size</a>.</p>
  64608. <p>Clearly, logical splits based on input-size is insufficient for many
  64609. applications since record boundaries are to respected. In such cases, the
  64610. application has to also implement a {@link RecordReader} on whom lies the
  64611. responsibility to respect record-boundaries and present a record-oriented
  64612. view of the logical <code>InputSplit</code> to the individual task.
  64613. @see InputSplit
  64614. @see RecordReader
  64615. @see FileInputFormat]]>
  64616. </doc>
  64617. </class>
  64618. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  64619. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  64620. <class name="InputSplit" extends="java.lang.Object"
  64621. abstract="true"
  64622. static="false" final="false" visibility="public"
  64623. deprecated="not deprecated">
  64624. <constructor name="InputSplit"
  64625. static="false" final="false" visibility="public"
  64626. deprecated="not deprecated">
  64627. </constructor>
  64628. <method name="getLength" return="long"
  64629. abstract="true" native="false" synchronized="false"
  64630. static="false" final="false" visibility="public"
  64631. deprecated="not deprecated">
  64632. <exception name="IOException" type="java.io.IOException"/>
  64633. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64634. <doc>
  64635. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  64636. @return the number of bytes in the split
  64637. @throws IOException
  64638. @throws InterruptedException]]>
  64639. </doc>
  64640. </method>
  64641. <method name="getLocations" return="java.lang.String[]"
  64642. abstract="true" native="false" synchronized="false"
  64643. static="false" final="false" visibility="public"
  64644. deprecated="not deprecated">
  64645. <exception name="IOException" type="java.io.IOException"/>
  64646. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  64647. <doc>
  64648. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  64649. The locations do not need to be serialized.
  64650. @return a new array of the node nodes.
  64651. @throws IOException
  64652. @throws InterruptedException]]>
  64653. </doc>
  64654. </method>
  64655. <doc>
  64656. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  64657. individual {@link Mapper}.
  64658. <p>Typically, it presents a byte-oriented view on the input and is the
  64659. responsibility of {@link RecordReader} of the job to process this and present
  64660. a record-oriented view.
  64661. @see InputFormat
  64662. @see RecordReader]]>
  64663. </doc>
  64664. </class>
  64665. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  64666. <!-- start class org.apache.hadoop.mapreduce.Job -->
  64667. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  64668. abstract="false"
  64669. static="false" final="false" visibility="public"
  64670. deprecated="not deprecated">
  64671. <constructor name="Job"
  64672. static="false" final="false" visibility="public"
  64673. deprecated="not deprecated">
  64674. <exception name="IOException" type="java.io.IOException"/>
  64675. </constructor>
  64676. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  64677. static="false" final="false" visibility="public"
  64678. deprecated="not deprecated">
  64679. <exception name="IOException" type="java.io.IOException"/>
  64680. </constructor>
  64681. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  64682. static="false" final="false" visibility="public"
  64683. deprecated="not deprecated">
  64684. <exception name="IOException" type="java.io.IOException"/>
  64685. </constructor>
  64686. <method name="setNumReduceTasks"
  64687. abstract="false" native="false" synchronized="false"
  64688. static="false" final="false" visibility="public"
  64689. deprecated="not deprecated">
  64690. <param name="tasks" type="int"/>
  64691. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64692. <doc>
  64693. <![CDATA[Set the number of reduce tasks for the job.
  64694. @param tasks the number of reduce tasks
  64695. @throws IllegalStateException if the job is submitted]]>
  64696. </doc>
  64697. </method>
  64698. <method name="setWorkingDirectory"
  64699. abstract="false" native="false" synchronized="false"
  64700. static="false" final="false" visibility="public"
  64701. deprecated="not deprecated">
  64702. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  64703. <exception name="IOException" type="java.io.IOException"/>
  64704. <doc>
  64705. <![CDATA[Set the current working directory for the default file system.
  64706. @param dir the new current working directory.
  64707. @throws IllegalStateException if the job is submitted]]>
  64708. </doc>
  64709. </method>
  64710. <method name="setInputFormatClass"
  64711. abstract="false" native="false" synchronized="false"
  64712. static="false" final="false" visibility="public"
  64713. deprecated="not deprecated">
  64714. <param name="cls" type="java.lang.Class"/>
  64715. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64716. <doc>
  64717. <![CDATA[Set the {@link InputFormat} for the job.
  64718. @param cls the <code>InputFormat</code> to use
  64719. @throws IllegalStateException if the job is submitted]]>
  64720. </doc>
  64721. </method>
  64722. <method name="setOutputFormatClass"
  64723. abstract="false" native="false" synchronized="false"
  64724. static="false" final="false" visibility="public"
  64725. deprecated="not deprecated">
  64726. <param name="cls" type="java.lang.Class"/>
  64727. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64728. <doc>
  64729. <![CDATA[Set the {@link OutputFormat} for the job.
  64730. @param cls the <code>OutputFormat</code> to use
  64731. @throws IllegalStateException if the job is submitted]]>
  64732. </doc>
  64733. </method>
  64734. <method name="setMapperClass"
  64735. abstract="false" native="false" synchronized="false"
  64736. static="false" final="false" visibility="public"
  64737. deprecated="not deprecated">
  64738. <param name="cls" type="java.lang.Class"/>
  64739. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64740. <doc>
  64741. <![CDATA[Set the {@link Mapper} for the job.
  64742. @param cls the <code>Mapper</code> to use
  64743. @throws IllegalStateException if the job is submitted]]>
  64744. </doc>
  64745. </method>
  64746. <method name="setJarByClass"
  64747. abstract="false" native="false" synchronized="false"
  64748. static="false" final="false" visibility="public"
  64749. deprecated="not deprecated">
  64750. <param name="cls" type="java.lang.Class"/>
  64751. <doc>
  64752. <![CDATA[Set the Jar by finding where a given class came from.
  64753. @param cls the example class]]>
  64754. </doc>
  64755. </method>
  64756. <method name="getJar" return="java.lang.String"
  64757. abstract="false" native="false" synchronized="false"
  64758. static="false" final="false" visibility="public"
  64759. deprecated="not deprecated">
  64760. <doc>
  64761. <![CDATA[Get the pathname of the job's jar.
  64762. @return the pathname]]>
  64763. </doc>
  64764. </method>
  64765. <method name="setCombinerClass"
  64766. abstract="false" native="false" synchronized="false"
  64767. static="false" final="false" visibility="public"
  64768. deprecated="not deprecated">
  64769. <param name="cls" type="java.lang.Class"/>
  64770. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64771. <doc>
  64772. <![CDATA[Set the combiner class for the job.
  64773. @param cls the combiner to use
  64774. @throws IllegalStateException if the job is submitted]]>
  64775. </doc>
  64776. </method>
  64777. <method name="setReducerClass"
  64778. abstract="false" native="false" synchronized="false"
  64779. static="false" final="false" visibility="public"
  64780. deprecated="not deprecated">
  64781. <param name="cls" type="java.lang.Class"/>
  64782. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64783. <doc>
  64784. <![CDATA[Set the {@link Reducer} for the job.
  64785. @param cls the <code>Reducer</code> to use
  64786. @throws IllegalStateException if the job is submitted]]>
  64787. </doc>
  64788. </method>
  64789. <method name="setPartitionerClass"
  64790. abstract="false" native="false" synchronized="false"
  64791. static="false" final="false" visibility="public"
  64792. deprecated="not deprecated">
  64793. <param name="cls" type="java.lang.Class"/>
  64794. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64795. <doc>
  64796. <![CDATA[Set the {@link Partitioner} for the job.
  64797. @param cls the <code>Partitioner</code> to use
  64798. @throws IllegalStateException if the job is submitted]]>
  64799. </doc>
  64800. </method>
  64801. <method name="setMapOutputKeyClass"
  64802. abstract="false" native="false" synchronized="false"
  64803. static="false" final="false" visibility="public"
  64804. deprecated="not deprecated">
  64805. <param name="theClass" type="java.lang.Class"/>
  64806. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64807. <doc>
  64808. <![CDATA[Set the key class for the map output data. This allows the user to
  64809. specify the map output key class to be different than the final output
  64810. value class.
  64811. @param theClass the map output key class.
  64812. @throws IllegalStateException if the job is submitted]]>
  64813. </doc>
  64814. </method>
  64815. <method name="setMapOutputValueClass"
  64816. abstract="false" native="false" synchronized="false"
  64817. static="false" final="false" visibility="public"
  64818. deprecated="not deprecated">
  64819. <param name="theClass" type="java.lang.Class"/>
  64820. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64821. <doc>
  64822. <![CDATA[Set the value class for the map output data. This allows the user to
  64823. specify the map output value class to be different than the final output
  64824. value class.
  64825. @param theClass the map output value class.
  64826. @throws IllegalStateException if the job is submitted]]>
  64827. </doc>
  64828. </method>
  64829. <method name="setOutputKeyClass"
  64830. abstract="false" native="false" synchronized="false"
  64831. static="false" final="false" visibility="public"
  64832. deprecated="not deprecated">
  64833. <param name="theClass" type="java.lang.Class"/>
  64834. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64835. <doc>
  64836. <![CDATA[Set the key class for the job output data.
  64837. @param theClass the key class for the job output data.
  64838. @throws IllegalStateException if the job is submitted]]>
  64839. </doc>
  64840. </method>
  64841. <method name="setOutputValueClass"
  64842. abstract="false" native="false" synchronized="false"
  64843. static="false" final="false" visibility="public"
  64844. deprecated="not deprecated">
  64845. <param name="theClass" type="java.lang.Class"/>
  64846. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64847. <doc>
  64848. <![CDATA[Set the value class for job outputs.
  64849. @param theClass the value class for job outputs.
  64850. @throws IllegalStateException if the job is submitted]]>
  64851. </doc>
  64852. </method>
  64853. <method name="setSortComparatorClass"
  64854. abstract="false" native="false" synchronized="false"
  64855. static="false" final="false" visibility="public"
  64856. deprecated="not deprecated">
  64857. <param name="cls" type="java.lang.Class"/>
  64858. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64859. <doc>
  64860. <![CDATA[Define the comparator that controls how the keys are sorted before they
  64861. are passed to the {@link Reducer}.
  64862. @param cls the raw comparator
  64863. @throws IllegalStateException if the job is submitted]]>
  64864. </doc>
  64865. </method>
  64866. <method name="setGroupingComparatorClass"
  64867. abstract="false" native="false" synchronized="false"
  64868. static="false" final="false" visibility="public"
  64869. deprecated="not deprecated">
  64870. <param name="cls" type="java.lang.Class"/>
  64871. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64872. <doc>
  64873. <![CDATA[Define the comparator that controls which keys are grouped together
  64874. for a single call to
  64875. {@link Reducer#reduce(Object, Iterable,
  64876. org.apache.hadoop.mapreduce.Reducer.Context)}
  64877. @param cls the raw comparator to use
  64878. @throws IllegalStateException if the job is submitted]]>
  64879. </doc>
  64880. </method>
  64881. <method name="setJobName"
  64882. abstract="false" native="false" synchronized="false"
  64883. static="false" final="false" visibility="public"
  64884. deprecated="not deprecated">
  64885. <param name="name" type="java.lang.String"/>
  64886. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  64887. <doc>
  64888. <![CDATA[Set the user-specified job name.
  64889. @param name the job's new name.
  64890. @throws IllegalStateException if the job is submitted]]>
  64891. </doc>
  64892. </method>
  64893. <method name="getTrackingURL" return="java.lang.String"
  64894. abstract="false" native="false" synchronized="false"
  64895. static="false" final="false" visibility="public"
  64896. deprecated="not deprecated">
  64897. <doc>
  64898. <![CDATA[Get the URL where some job progress information will be displayed.
  64899. @return the URL where some job progress information will be displayed.]]>
  64900. </doc>
  64901. </method>
  64902. <method name="setupProgress" return="float"
  64903. abstract="false" native="false" synchronized="false"
  64904. static="false" final="false" visibility="public"
  64905. deprecated="not deprecated">
  64906. <exception name="IOException" type="java.io.IOException"/>
  64907. <doc>
  64908. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  64909. and 1.0. When the job setup is completed, the function returns 1.0.
  64910. @return the progress of the job's setup.
  64911. @throws IOException]]>
  64912. </doc>
  64913. </method>
  64914. <method name="mapProgress" return="float"
  64915. abstract="false" native="false" synchronized="false"
  64916. static="false" final="false" visibility="public"
  64917. deprecated="not deprecated">
  64918. <exception name="IOException" type="java.io.IOException"/>
  64919. <doc>
  64920. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  64921. and 1.0. When all map tasks have completed, the function returns 1.0.
  64922. @return the progress of the job's map-tasks.
  64923. @throws IOException]]>
  64924. </doc>
  64925. </method>
  64926. <method name="reduceProgress" return="float"
  64927. abstract="false" native="false" synchronized="false"
  64928. static="false" final="false" visibility="public"
  64929. deprecated="not deprecated">
  64930. <exception name="IOException" type="java.io.IOException"/>
  64931. <doc>
  64932. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  64933. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  64934. @return the progress of the job's reduce-tasks.
  64935. @throws IOException]]>
  64936. </doc>
  64937. </method>
  64938. <method name="isComplete" return="boolean"
  64939. abstract="false" native="false" synchronized="false"
  64940. static="false" final="false" visibility="public"
  64941. deprecated="not deprecated">
  64942. <exception name="IOException" type="java.io.IOException"/>
  64943. <doc>
  64944. <![CDATA[Check if the job is finished or not.
  64945. This is a non-blocking call.
  64946. @return <code>true</code> if the job is complete, else <code>false</code>.
  64947. @throws IOException]]>
  64948. </doc>
  64949. </method>
  64950. <method name="isSuccessful" return="boolean"
  64951. abstract="false" native="false" synchronized="false"
  64952. static="false" final="false" visibility="public"
  64953. deprecated="not deprecated">
  64954. <exception name="IOException" type="java.io.IOException"/>
  64955. <doc>
  64956. <![CDATA[Check if the job completed successfully.
  64957. @return <code>true</code> if the job succeeded, else <code>false</code>.
  64958. @throws IOException]]>
  64959. </doc>
  64960. </method>
  64961. <method name="killJob"
  64962. abstract="false" native="false" synchronized="false"
  64963. static="false" final="false" visibility="public"
  64964. deprecated="not deprecated">
  64965. <exception name="IOException" type="java.io.IOException"/>
  64966. <doc>
  64967. <![CDATA[Kill the running job. Blocks until all job tasks have been
  64968. killed as well. If the job is no longer running, it simply returns.
  64969. @throws IOException]]>
  64970. </doc>
  64971. </method>
  64972. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  64973. abstract="false" native="false" synchronized="false"
  64974. static="false" final="false" visibility="public"
  64975. deprecated="not deprecated">
  64976. <param name="startFrom" type="int"/>
  64977. <exception name="IOException" type="java.io.IOException"/>
  64978. <doc>
  64979. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  64980. @param startFrom index to start fetching events from
  64981. @return an array of {@link TaskCompletionEvent}s
  64982. @throws IOException]]>
  64983. </doc>
  64984. </method>
  64985. <method name="killTask"
  64986. abstract="false" native="false" synchronized="false"
  64987. static="false" final="false" visibility="public"
  64988. deprecated="not deprecated">
  64989. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  64990. <exception name="IOException" type="java.io.IOException"/>
  64991. <doc>
  64992. <![CDATA[Kill indicated task attempt.
  64993. @param taskId the id of the task to be terminated.
  64994. @throws IOException]]>
  64995. </doc>
  64996. </method>
  64997. <method name="failTask"
  64998. abstract="false" native="false" synchronized="false"
  64999. static="false" final="false" visibility="public"
  65000. deprecated="not deprecated">
  65001. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  65002. <exception name="IOException" type="java.io.IOException"/>
  65003. <doc>
  65004. <![CDATA[Fail indicated task attempt.
  65005. @param taskId the id of the task to be terminated.
  65006. @throws IOException]]>
  65007. </doc>
  65008. </method>
  65009. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  65010. abstract="false" native="false" synchronized="false"
  65011. static="false" final="false" visibility="public"
  65012. deprecated="not deprecated">
  65013. <exception name="IOException" type="java.io.IOException"/>
  65014. <doc>
  65015. <![CDATA[Gets the counters for this job.
  65016. @return the counters for this job.
  65017. @throws IOException]]>
  65018. </doc>
  65019. </method>
  65020. <method name="setCancelDelegationTokenUponJobCompletion"
  65021. abstract="false" native="false" synchronized="false"
  65022. static="false" final="false" visibility="public"
  65023. deprecated="not deprecated">
  65024. <param name="value" type="boolean"/>
  65025. <doc>
  65026. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  65027. tokens upon job completion. Defaults to true.]]>
  65028. </doc>
  65029. </method>
  65030. <method name="submit"
  65031. abstract="false" native="false" synchronized="false"
  65032. static="false" final="false" visibility="public"
  65033. deprecated="not deprecated">
  65034. <exception name="IOException" type="java.io.IOException"/>
  65035. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65036. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65037. <doc>
  65038. <![CDATA[Submit the job to the cluster and return immediately.
  65039. @throws IOException]]>
  65040. </doc>
  65041. </method>
  65042. <method name="waitForCompletion" return="boolean"
  65043. abstract="false" native="false" synchronized="false"
  65044. static="false" final="false" visibility="public"
  65045. deprecated="not deprecated">
  65046. <param name="verbose" type="boolean"/>
  65047. <exception name="IOException" type="java.io.IOException"/>
  65048. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65049. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65050. <doc>
  65051. <![CDATA[Submit the job to the cluster and wait for it to finish.
  65052. @param verbose print the progress to the user
  65053. @return true if the job succeeded
  65054. @throws IOException thrown if the communication with the
  65055. <code>JobTracker</code> is lost]]>
  65056. </doc>
  65057. </method>
  65058. <doc>
  65059. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  65060. job, submit it, control its execution, and query the state. The set methods
  65061. only work until the job is submitted, afterwards they will throw an
  65062. IllegalStateException.]]>
  65063. </doc>
  65064. </class>
  65065. <!-- end class org.apache.hadoop.mapreduce.Job -->
  65066. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  65067. <class name="Job.JobState" extends="java.lang.Enum"
  65068. abstract="false"
  65069. static="true" final="true" visibility="public"
  65070. deprecated="not deprecated">
  65071. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  65072. abstract="false" native="false" synchronized="false"
  65073. static="true" final="false" visibility="public"
  65074. deprecated="not deprecated">
  65075. </method>
  65076. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  65077. abstract="false" native="false" synchronized="false"
  65078. static="true" final="false" visibility="public"
  65079. deprecated="not deprecated">
  65080. <param name="name" type="java.lang.String"/>
  65081. </method>
  65082. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  65083. transient="false" volatile="false"
  65084. static="true" final="true" visibility="public"
  65085. deprecated="not deprecated">
  65086. </field>
  65087. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  65088. transient="false" volatile="false"
  65089. static="true" final="true" visibility="public"
  65090. deprecated="not deprecated">
  65091. </field>
  65092. </class>
  65093. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  65094. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  65095. <class name="JobACL" extends="java.lang.Enum"
  65096. abstract="false"
  65097. static="false" final="true" visibility="public"
  65098. deprecated="not deprecated">
  65099. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  65100. abstract="false" native="false" synchronized="false"
  65101. static="true" final="false" visibility="public"
  65102. deprecated="not deprecated">
  65103. </method>
  65104. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  65105. abstract="false" native="false" synchronized="false"
  65106. static="true" final="false" visibility="public"
  65107. deprecated="not deprecated">
  65108. <param name="name" type="java.lang.String"/>
  65109. </method>
  65110. <method name="getAclName" return="java.lang.String"
  65111. abstract="false" native="false" synchronized="false"
  65112. static="false" final="false" visibility="public"
  65113. deprecated="not deprecated">
  65114. <doc>
  65115. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  65116. property for specifying the ACL for the job.
  65117. @return aclName]]>
  65118. </doc>
  65119. </method>
  65120. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  65121. transient="false" volatile="false"
  65122. static="true" final="true" visibility="public"
  65123. deprecated="not deprecated">
  65124. <doc>
  65125. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  65126. related details.]]>
  65127. </doc>
  65128. </field>
  65129. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  65130. transient="false" volatile="false"
  65131. static="true" final="true" visibility="public"
  65132. deprecated="not deprecated">
  65133. <doc>
  65134. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  65135. killing the job, killing/failing a task of the job or setting priority of
  65136. the job.]]>
  65137. </doc>
  65138. </field>
  65139. <doc>
  65140. <![CDATA[Job related ACLs]]>
  65141. </doc>
  65142. </class>
  65143. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  65144. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  65145. <class name="JobContext" extends="java.lang.Object"
  65146. abstract="false"
  65147. static="false" final="false" visibility="public"
  65148. deprecated="not deprecated">
  65149. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  65150. static="false" final="false" visibility="public"
  65151. deprecated="not deprecated">
  65152. </constructor>
  65153. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  65154. abstract="false" native="false" synchronized="false"
  65155. static="false" final="false" visibility="public"
  65156. deprecated="not deprecated">
  65157. <doc>
  65158. <![CDATA[Return the configuration for the job.
  65159. @return the shared configuration object]]>
  65160. </doc>
  65161. </method>
  65162. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  65163. abstract="false" native="false" synchronized="false"
  65164. static="false" final="false" visibility="public"
  65165. deprecated="not deprecated">
  65166. <doc>
  65167. <![CDATA[Get credentials for the job.
  65168. @return credentials for the job]]>
  65169. </doc>
  65170. </method>
  65171. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  65172. abstract="false" native="false" synchronized="false"
  65173. static="false" final="false" visibility="public"
  65174. deprecated="not deprecated">
  65175. <doc>
  65176. <![CDATA[Get the unique ID for the job.
  65177. @return the object with the job id]]>
  65178. </doc>
  65179. </method>
  65180. <method name="getNumReduceTasks" return="int"
  65181. abstract="false" native="false" synchronized="false"
  65182. static="false" final="false" visibility="public"
  65183. deprecated="not deprecated">
  65184. <doc>
  65185. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  65186. <code>1</code>.
  65187. @return the number of reduce tasks for this job.]]>
  65188. </doc>
  65189. </method>
  65190. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  65191. abstract="false" native="false" synchronized="false"
  65192. static="false" final="false" visibility="public"
  65193. deprecated="not deprecated">
  65194. <exception name="IOException" type="java.io.IOException"/>
  65195. <doc>
  65196. <![CDATA[Get the current working directory for the default file system.
  65197. @return the directory name.]]>
  65198. </doc>
  65199. </method>
  65200. <method name="getOutputKeyClass" return="java.lang.Class"
  65201. abstract="false" native="false" synchronized="false"
  65202. static="false" final="false" visibility="public"
  65203. deprecated="not deprecated">
  65204. <doc>
  65205. <![CDATA[Get the key class for the job output data.
  65206. @return the key class for the job output data.]]>
  65207. </doc>
  65208. </method>
  65209. <method name="getOutputValueClass" return="java.lang.Class"
  65210. abstract="false" native="false" synchronized="false"
  65211. static="false" final="false" visibility="public"
  65212. deprecated="not deprecated">
  65213. <doc>
  65214. <![CDATA[Get the value class for job outputs.
  65215. @return the value class for job outputs.]]>
  65216. </doc>
  65217. </method>
  65218. <method name="getMapOutputKeyClass" return="java.lang.Class"
  65219. abstract="false" native="false" synchronized="false"
  65220. static="false" final="false" visibility="public"
  65221. deprecated="not deprecated">
  65222. <doc>
  65223. <![CDATA[Get the key class for the map output data. If it is not set, use the
  65224. (final) output key class. This allows the map output key class to be
  65225. different than the final output key class.
  65226. @return the map output key class.]]>
  65227. </doc>
  65228. </method>
  65229. <method name="getMapOutputValueClass" return="java.lang.Class"
  65230. abstract="false" native="false" synchronized="false"
  65231. static="false" final="false" visibility="public"
  65232. deprecated="not deprecated">
  65233. <doc>
  65234. <![CDATA[Get the value class for the map output data. If it is not set, use the
  65235. (final) output value class This allows the map output value class to be
  65236. different than the final output value class.
  65237. @return the map output value class.]]>
  65238. </doc>
  65239. </method>
  65240. <method name="getJobName" return="java.lang.String"
  65241. abstract="false" native="false" synchronized="false"
  65242. static="false" final="false" visibility="public"
  65243. deprecated="not deprecated">
  65244. <doc>
  65245. <![CDATA[Get the user-specified job name. This is only used to identify the
  65246. job to the user.
  65247. @return the job's name, defaulting to "".]]>
  65248. </doc>
  65249. </method>
  65250. <method name="getInputFormatClass" return="java.lang.Class"
  65251. abstract="false" native="false" synchronized="false"
  65252. static="false" final="false" visibility="public"
  65253. deprecated="not deprecated">
  65254. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65255. <doc>
  65256. <![CDATA[Get the {@link InputFormat} class for the job.
  65257. @return the {@link InputFormat} class for the job.]]>
  65258. </doc>
  65259. </method>
  65260. <method name="getMapperClass" return="java.lang.Class"
  65261. abstract="false" native="false" synchronized="false"
  65262. static="false" final="false" visibility="public"
  65263. deprecated="not deprecated">
  65264. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65265. <doc>
  65266. <![CDATA[Get the {@link Mapper} class for the job.
  65267. @return the {@link Mapper} class for the job.]]>
  65268. </doc>
  65269. </method>
  65270. <method name="getCombinerClass" return="java.lang.Class"
  65271. abstract="false" native="false" synchronized="false"
  65272. static="false" final="false" visibility="public"
  65273. deprecated="not deprecated">
  65274. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65275. <doc>
  65276. <![CDATA[Get the combiner class for the job.
  65277. @return the combiner class for the job.]]>
  65278. </doc>
  65279. </method>
  65280. <method name="getReducerClass" return="java.lang.Class"
  65281. abstract="false" native="false" synchronized="false"
  65282. static="false" final="false" visibility="public"
  65283. deprecated="not deprecated">
  65284. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65285. <doc>
  65286. <![CDATA[Get the {@link Reducer} class for the job.
  65287. @return the {@link Reducer} class for the job.]]>
  65288. </doc>
  65289. </method>
  65290. <method name="getOutputFormatClass" return="java.lang.Class"
  65291. abstract="false" native="false" synchronized="false"
  65292. static="false" final="false" visibility="public"
  65293. deprecated="not deprecated">
  65294. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65295. <doc>
  65296. <![CDATA[Get the {@link OutputFormat} class for the job.
  65297. @return the {@link OutputFormat} class for the job.]]>
  65298. </doc>
  65299. </method>
  65300. <method name="getPartitionerClass" return="java.lang.Class"
  65301. abstract="false" native="false" synchronized="false"
  65302. static="false" final="false" visibility="public"
  65303. deprecated="not deprecated">
  65304. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  65305. <doc>
  65306. <![CDATA[Get the {@link Partitioner} class for the job.
  65307. @return the {@link Partitioner} class for the job.]]>
  65308. </doc>
  65309. </method>
  65310. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  65311. abstract="false" native="false" synchronized="false"
  65312. static="false" final="false" visibility="public"
  65313. deprecated="not deprecated">
  65314. <doc>
  65315. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  65316. @return the {@link RawComparator} comparator used to compare keys.]]>
  65317. </doc>
  65318. </method>
  65319. <method name="getJar" return="java.lang.String"
  65320. abstract="false" native="false" synchronized="false"
  65321. static="false" final="false" visibility="public"
  65322. deprecated="not deprecated">
  65323. <doc>
  65324. <![CDATA[Get the pathname of the job's jar.
  65325. @return the pathname]]>
  65326. </doc>
  65327. </method>
  65328. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  65329. abstract="false" native="false" synchronized="false"
  65330. static="false" final="false" visibility="public"
  65331. deprecated="not deprecated">
  65332. <doc>
  65333. <![CDATA[Get the user defined {@link RawComparator} comparator for
  65334. grouping keys of inputs to the reduce.
  65335. @return comparator set by the user for grouping values.
  65336. @see Job#setGroupingComparatorClass(Class) for details.]]>
  65337. </doc>
  65338. </method>
  65339. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  65340. transient="false" volatile="false"
  65341. static="true" final="true" visibility="protected"
  65342. deprecated="not deprecated">
  65343. </field>
  65344. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  65345. transient="false" volatile="false"
  65346. static="true" final="true" visibility="protected"
  65347. deprecated="not deprecated">
  65348. </field>
  65349. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  65350. transient="false" volatile="false"
  65351. static="true" final="true" visibility="protected"
  65352. deprecated="not deprecated">
  65353. </field>
  65354. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  65355. transient="false" volatile="false"
  65356. static="true" final="true" visibility="protected"
  65357. deprecated="not deprecated">
  65358. </field>
  65359. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  65360. transient="false" volatile="false"
  65361. static="true" final="true" visibility="protected"
  65362. deprecated="not deprecated">
  65363. </field>
  65364. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  65365. transient="false" volatile="false"
  65366. static="true" final="true" visibility="protected"
  65367. deprecated="not deprecated">
  65368. </field>
  65369. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  65370. transient="false" volatile="false"
  65371. static="false" final="true" visibility="protected"
  65372. deprecated="not deprecated">
  65373. </field>
  65374. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  65375. transient="false" volatile="false"
  65376. static="false" final="true" visibility="protected"
  65377. deprecated="not deprecated">
  65378. </field>
  65379. <field name="JOB_NAMENODES" type="java.lang.String"
  65380. transient="false" volatile="false"
  65381. static="true" final="true" visibility="public"
  65382. deprecated="not deprecated">
  65383. </field>
  65384. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  65385. transient="false" volatile="false"
  65386. static="true" final="true" visibility="public"
  65387. deprecated="not deprecated">
  65388. </field>
  65389. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  65390. transient="false" volatile="false"
  65391. static="true" final="true" visibility="public"
  65392. deprecated="not deprecated">
  65393. </field>
  65394. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  65395. transient="false" volatile="false"
  65396. static="true" final="true" visibility="public"
  65397. deprecated="not deprecated">
  65398. </field>
  65399. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  65400. transient="false" volatile="false"
  65401. static="true" final="true" visibility="public"
  65402. deprecated="not deprecated">
  65403. </field>
  65404. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  65405. transient="false" volatile="false"
  65406. static="true" final="true" visibility="public"
  65407. deprecated="not deprecated">
  65408. </field>
  65409. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  65410. transient="false" volatile="false"
  65411. static="true" final="true" visibility="public"
  65412. deprecated="not deprecated">
  65413. </field>
  65414. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  65415. transient="false" volatile="false"
  65416. static="false" final="false" visibility="protected"
  65417. deprecated="not deprecated">
  65418. <doc>
  65419. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  65420. </doc>
  65421. </field>
  65422. <doc>
  65423. <![CDATA[A read-only view of the job that is provided to the tasks while they
  65424. are running.]]>
  65425. </doc>
  65426. </class>
  65427. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  65428. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  65429. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  65430. abstract="false"
  65431. static="false" final="false" visibility="public"
  65432. deprecated="not deprecated">
  65433. <implements name="java.lang.Comparable"/>
  65434. <constructor name="JobID" type="java.lang.String, int"
  65435. static="false" final="false" visibility="public"
  65436. deprecated="not deprecated">
  65437. <doc>
  65438. <![CDATA[Constructs a JobID object
  65439. @param jtIdentifier jobTracker identifier
  65440. @param id job number]]>
  65441. </doc>
  65442. </constructor>
  65443. <constructor name="JobID"
  65444. static="false" final="false" visibility="public"
  65445. deprecated="not deprecated">
  65446. </constructor>
  65447. <method name="getJtIdentifier" return="java.lang.String"
  65448. abstract="false" native="false" synchronized="false"
  65449. static="false" final="false" visibility="public"
  65450. deprecated="not deprecated">
  65451. </method>
  65452. <method name="equals" return="boolean"
  65453. abstract="false" native="false" synchronized="false"
  65454. static="false" final="false" visibility="public"
  65455. deprecated="not deprecated">
  65456. <param name="o" type="java.lang.Object"/>
  65457. </method>
  65458. <method name="compareTo" return="int"
  65459. abstract="false" native="false" synchronized="false"
  65460. static="false" final="false" visibility="public"
  65461. deprecated="not deprecated">
  65462. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  65463. <doc>
  65464. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  65465. </doc>
  65466. </method>
  65467. <method name="appendTo" return="java.lang.StringBuilder"
  65468. abstract="false" native="false" synchronized="false"
  65469. static="false" final="false" visibility="public"
  65470. deprecated="not deprecated">
  65471. <param name="builder" type="java.lang.StringBuilder"/>
  65472. <doc>
  65473. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  65474. because the sub-ids use this substring at the start of their string.
  65475. @param builder the builder to append to
  65476. @return the builder that was passed in]]>
  65477. </doc>
  65478. </method>
  65479. <method name="hashCode" return="int"
  65480. abstract="false" native="false" synchronized="false"
  65481. static="false" final="false" visibility="public"
  65482. deprecated="not deprecated">
  65483. </method>
  65484. <method name="toString" return="java.lang.String"
  65485. abstract="false" native="false" synchronized="false"
  65486. static="false" final="false" visibility="public"
  65487. deprecated="not deprecated">
  65488. </method>
  65489. <method name="readFields"
  65490. abstract="false" native="false" synchronized="false"
  65491. static="false" final="false" visibility="public"
  65492. deprecated="not deprecated">
  65493. <param name="in" type="java.io.DataInput"/>
  65494. <exception name="IOException" type="java.io.IOException"/>
  65495. </method>
  65496. <method name="write"
  65497. abstract="false" native="false" synchronized="false"
  65498. static="false" final="false" visibility="public"
  65499. deprecated="not deprecated">
  65500. <param name="out" type="java.io.DataOutput"/>
  65501. <exception name="IOException" type="java.io.IOException"/>
  65502. </method>
  65503. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  65504. abstract="false" native="false" synchronized="false"
  65505. static="true" final="false" visibility="public"
  65506. deprecated="not deprecated">
  65507. <param name="str" type="java.lang.String"/>
  65508. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  65509. <doc>
  65510. <![CDATA[Construct a JobId object from given string
  65511. @return constructed JobId object or null if the given String is null
  65512. @throws IllegalArgumentException if the given string is malformed]]>
  65513. </doc>
  65514. </method>
  65515. <field name="JOB" type="java.lang.String"
  65516. transient="false" volatile="false"
  65517. static="true" final="true" visibility="protected"
  65518. deprecated="not deprecated">
  65519. </field>
  65520. <field name="JOBID_REGEX" type="java.lang.String"
  65521. transient="false" volatile="false"
  65522. static="true" final="true" visibility="public"
  65523. deprecated="not deprecated">
  65524. </field>
  65525. <field name="idFormat" type="java.text.NumberFormat"
  65526. transient="false" volatile="false"
  65527. static="true" final="true" visibility="protected"
  65528. deprecated="not deprecated">
  65529. </field>
  65530. <doc>
  65531. <![CDATA[JobID represents the immutable and unique identifier for
  65532. the job. JobID consists of two parts. First part
  65533. represents the jobtracker identifier, so that jobID to jobtracker map
  65534. is defined. For cluster setup this string is the jobtracker
  65535. start time, for local setting, it is "local".
  65536. Second part of the JobID is the job number. <br>
  65537. An example JobID is :
  65538. <code>job_200707121733_0003</code> , which represents the third job
  65539. running at the jobtracker started at <code>200707121733</code>.
  65540. <p>
  65541. Applications should never construct or parse JobID strings, but rather
  65542. use appropriate constructors or {@link #forName(String)} method.
  65543. @see TaskID
  65544. @see TaskAttemptID
  65545. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  65546. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  65547. </doc>
  65548. </class>
  65549. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  65550. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  65551. <class name="JobStatus" extends="java.lang.Object"
  65552. abstract="false"
  65553. static="false" final="false" visibility="public"
  65554. deprecated="not deprecated">
  65555. <constructor name="JobStatus"
  65556. static="false" final="false" visibility="public"
  65557. deprecated="not deprecated">
  65558. </constructor>
  65559. <doc>
  65560. <![CDATA[Describes the current status of a job.]]>
  65561. </doc>
  65562. </class>
  65563. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  65564. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  65565. <class name="JobStatus.State" extends="java.lang.Enum"
  65566. abstract="false"
  65567. static="true" final="true" visibility="public"
  65568. deprecated="not deprecated">
  65569. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  65570. abstract="false" native="false" synchronized="false"
  65571. static="true" final="false" visibility="public"
  65572. deprecated="not deprecated">
  65573. </method>
  65574. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  65575. abstract="false" native="false" synchronized="false"
  65576. static="true" final="false" visibility="public"
  65577. deprecated="not deprecated">
  65578. <param name="name" type="java.lang.String"/>
  65579. </method>
  65580. <method name="getValue" return="int"
  65581. abstract="false" native="false" synchronized="false"
  65582. static="false" final="false" visibility="public"
  65583. deprecated="not deprecated">
  65584. </method>
  65585. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65586. transient="false" volatile="false"
  65587. static="true" final="true" visibility="public"
  65588. deprecated="not deprecated">
  65589. </field>
  65590. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65591. transient="false" volatile="false"
  65592. static="true" final="true" visibility="public"
  65593. deprecated="not deprecated">
  65594. </field>
  65595. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65596. transient="false" volatile="false"
  65597. static="true" final="true" visibility="public"
  65598. deprecated="not deprecated">
  65599. </field>
  65600. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65601. transient="false" volatile="false"
  65602. static="true" final="true" visibility="public"
  65603. deprecated="not deprecated">
  65604. </field>
  65605. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  65606. transient="false" volatile="false"
  65607. static="true" final="true" visibility="public"
  65608. deprecated="not deprecated">
  65609. </field>
  65610. <doc>
  65611. <![CDATA[Current state of the job]]>
  65612. </doc>
  65613. </class>
  65614. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  65615. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  65616. <class name="JobSubmissionFiles" extends="java.lang.Object"
  65617. abstract="false"
  65618. static="false" final="false" visibility="public"
  65619. deprecated="not deprecated">
  65620. <constructor name="JobSubmissionFiles"
  65621. static="false" final="false" visibility="public"
  65622. deprecated="not deprecated">
  65623. </constructor>
  65624. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  65625. abstract="false" native="false" synchronized="false"
  65626. static="true" final="false" visibility="public"
  65627. deprecated="not deprecated">
  65628. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  65629. </method>
  65630. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  65631. abstract="false" native="false" synchronized="false"
  65632. static="true" final="false" visibility="public"
  65633. deprecated="not deprecated">
  65634. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  65635. </method>
  65636. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  65637. abstract="false" native="false" synchronized="false"
  65638. static="true" final="false" visibility="public"
  65639. deprecated="not deprecated">
  65640. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65641. <doc>
  65642. <![CDATA[Get the job conf path.]]>
  65643. </doc>
  65644. </method>
  65645. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  65646. abstract="false" native="false" synchronized="false"
  65647. static="true" final="false" visibility="public"
  65648. deprecated="not deprecated">
  65649. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65650. <doc>
  65651. <![CDATA[Get the job jar path.]]>
  65652. </doc>
  65653. </method>
  65654. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  65655. abstract="false" native="false" synchronized="false"
  65656. static="true" final="false" visibility="public"
  65657. deprecated="not deprecated">
  65658. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65659. <doc>
  65660. <![CDATA[Get the job distributed cache files path.
  65661. @param jobSubmitDir]]>
  65662. </doc>
  65663. </method>
  65664. <method name="getJobDistCacheArchives" return="org.apache.hadoop.fs.Path"
  65665. abstract="false" native="false" synchronized="false"
  65666. static="true" final="false" visibility="public"
  65667. deprecated="not deprecated">
  65668. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65669. <doc>
  65670. <![CDATA[Get the job distributed cache archives path.
  65671. @param jobSubmitDir]]>
  65672. </doc>
  65673. </method>
  65674. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  65675. abstract="false" native="false" synchronized="false"
  65676. static="true" final="false" visibility="public"
  65677. deprecated="not deprecated">
  65678. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  65679. <doc>
  65680. <![CDATA[Get the job distributed cache libjars path.
  65681. @param jobSubmitDir]]>
  65682. </doc>
  65683. </method>
  65684. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  65685. abstract="false" native="false" synchronized="false"
  65686. static="true" final="false" visibility="public"
  65687. deprecated="not deprecated">
  65688. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  65689. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  65690. <exception name="IOException" type="java.io.IOException"/>
  65691. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65692. <doc>
  65693. <![CDATA[Initializes the staging directory and returns the path. It also
  65694. keeps track of all necessary ownership & permissions
  65695. @param client
  65696. @param conf]]>
  65697. </doc>
  65698. </method>
  65699. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  65700. transient="false" volatile="false"
  65701. static="true" final="true" visibility="public"
  65702. deprecated="not deprecated">
  65703. </field>
  65704. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  65705. transient="false" volatile="false"
  65706. static="true" final="true" visibility="public"
  65707. deprecated="not deprecated">
  65708. </field>
  65709. <doc>
  65710. <![CDATA[A utility to manage job submission files.<br/>
  65711. <b><i>Note that this class is for framework internal usage only and is
  65712. not to be used by users directly.</i></b>]]>
  65713. </doc>
  65714. </class>
  65715. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  65716. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  65717. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  65718. abstract="false"
  65719. static="false" final="false" visibility="public"
  65720. deprecated="not deprecated">
  65721. <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"
  65722. static="false" final="false" visibility="public"
  65723. deprecated="not deprecated">
  65724. </constructor>
  65725. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  65726. abstract="false" native="false" synchronized="false"
  65727. static="false" final="false" visibility="public"
  65728. deprecated="not deprecated">
  65729. <doc>
  65730. <![CDATA[Get the input split for this map.]]>
  65731. </doc>
  65732. </method>
  65733. <method name="getCurrentKey" return="java.lang.Object"
  65734. abstract="false" native="false" synchronized="false"
  65735. static="false" final="false" visibility="public"
  65736. deprecated="not deprecated">
  65737. <exception name="IOException" type="java.io.IOException"/>
  65738. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65739. </method>
  65740. <method name="getCurrentValue" return="java.lang.Object"
  65741. abstract="false" native="false" synchronized="false"
  65742. static="false" final="false" visibility="public"
  65743. deprecated="not deprecated">
  65744. <exception name="IOException" type="java.io.IOException"/>
  65745. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65746. </method>
  65747. <method name="nextKeyValue" return="boolean"
  65748. abstract="false" native="false" synchronized="false"
  65749. static="false" final="false" visibility="public"
  65750. deprecated="not deprecated">
  65751. <exception name="IOException" type="java.io.IOException"/>
  65752. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65753. </method>
  65754. <doc>
  65755. <![CDATA[The context that is given to the {@link Mapper}.
  65756. @param <KEYIN> the key input type to the Mapper
  65757. @param <VALUEIN> the value input type to the Mapper
  65758. @param <KEYOUT> the key output type from the Mapper
  65759. @param <VALUEOUT> the value output type from the Mapper]]>
  65760. </doc>
  65761. </class>
  65762. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  65763. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  65764. <class name="Mapper" extends="java.lang.Object"
  65765. abstract="false"
  65766. static="false" final="false" visibility="public"
  65767. deprecated="not deprecated">
  65768. <constructor name="Mapper"
  65769. static="false" final="false" visibility="public"
  65770. deprecated="not deprecated">
  65771. </constructor>
  65772. <method name="setup"
  65773. abstract="false" native="false" synchronized="false"
  65774. static="false" final="false" visibility="protected"
  65775. deprecated="not deprecated">
  65776. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65777. <exception name="IOException" type="java.io.IOException"/>
  65778. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65779. <doc>
  65780. <![CDATA[Called once at the beginning of the task.]]>
  65781. </doc>
  65782. </method>
  65783. <method name="map"
  65784. abstract="false" native="false" synchronized="false"
  65785. static="false" final="false" visibility="protected"
  65786. deprecated="not deprecated">
  65787. <param name="key" type="java.lang.Object"/>
  65788. <param name="value" type="java.lang.Object"/>
  65789. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65790. <exception name="IOException" type="java.io.IOException"/>
  65791. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65792. <doc>
  65793. <![CDATA[Called once for each key/value pair in the input split. Most applications
  65794. should override this, but the default is the identity function.]]>
  65795. </doc>
  65796. </method>
  65797. <method name="cleanup"
  65798. abstract="false" native="false" synchronized="false"
  65799. static="false" final="false" visibility="protected"
  65800. deprecated="not deprecated">
  65801. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65802. <exception name="IOException" type="java.io.IOException"/>
  65803. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65804. <doc>
  65805. <![CDATA[Called once at the end of the task.]]>
  65806. </doc>
  65807. </method>
  65808. <method name="run"
  65809. abstract="false" native="false" synchronized="false"
  65810. static="false" final="false" visibility="public"
  65811. deprecated="not deprecated">
  65812. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  65813. <exception name="IOException" type="java.io.IOException"/>
  65814. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65815. <doc>
  65816. <![CDATA[Expert users can override this method for more complete control over the
  65817. execution of the Mapper.
  65818. @param context
  65819. @throws IOException]]>
  65820. </doc>
  65821. </method>
  65822. <doc>
  65823. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  65824. <p>Maps are the individual tasks which transform input records into a
  65825. intermediate records. The transformed intermediate records need not be of
  65826. the same type as the input records. A given input pair may map to zero or
  65827. many output pairs.</p>
  65828. <p>The Hadoop Map-Reduce framework spawns one map task for each
  65829. {@link InputSplit} generated by the {@link InputFormat} for the job.
  65830. <code>Mapper</code> implementations can access the {@link Configuration} for
  65831. the job via the {@link JobContext#getConfiguration()}.
  65832. <p>The framework first calls
  65833. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  65834. {@link #map(Object, Object, Context)}
  65835. for each key/value pair in the <code>InputSplit</code>. Finally
  65836. {@link #cleanup(Context)} is called.</p>
  65837. <p>All intermediate values associated with a given output key are
  65838. subsequently grouped by the framework, and passed to a {@link Reducer} to
  65839. determine the final output. Users can control the sorting and grouping by
  65840. specifying two key {@link RawComparator} classes.</p>
  65841. <p>The <code>Mapper</code> outputs are partitioned per
  65842. <code>Reducer</code>. Users can control which keys (and hence records) go to
  65843. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  65844. <p>Users can optionally specify a <code>combiner</code>, via
  65845. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  65846. intermediate outputs, which helps to cut down the amount of data transferred
  65847. from the <code>Mapper</code> to the <code>Reducer</code>.
  65848. <p>Applications can specify if and how the intermediate
  65849. outputs are to be compressed and which {@link CompressionCodec}s are to be
  65850. used via the <code>Configuration</code>.</p>
  65851. <p>If the job has zero
  65852. reduces then the output of the <code>Mapper</code> is directly written
  65853. to the {@link OutputFormat} without sorting by keys.</p>
  65854. <p>Example:</p>
  65855. <p><blockquote><pre>
  65856. public class TokenCounterMapper
  65857. extends Mapper<Object, Text, Text, IntWritable>{
  65858. private final static IntWritable one = new IntWritable(1);
  65859. private Text word = new Text();
  65860. public void map(Object key, Text value, Context context) throws IOException {
  65861. StringTokenizer itr = new StringTokenizer(value.toString());
  65862. while (itr.hasMoreTokens()) {
  65863. word.set(itr.nextToken());
  65864. context.collect(word, one);
  65865. }
  65866. }
  65867. }
  65868. </pre></blockquote></p>
  65869. <p>Applications may override the {@link #run(Context)} method to exert
  65870. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  65871. etc.</p>
  65872. @see InputFormat
  65873. @see JobContext
  65874. @see Partitioner
  65875. @see Reducer]]>
  65876. </doc>
  65877. </class>
  65878. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  65879. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  65880. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  65881. abstract="false"
  65882. static="false" final="false" visibility="public"
  65883. deprecated="not deprecated">
  65884. <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"
  65885. static="false" final="false" visibility="public"
  65886. deprecated="not deprecated">
  65887. <exception name="IOException" type="java.io.IOException"/>
  65888. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  65889. </constructor>
  65890. </class>
  65891. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  65892. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  65893. <class name="OutputCommitter" extends="java.lang.Object"
  65894. abstract="true"
  65895. static="false" final="false" visibility="public"
  65896. deprecated="not deprecated">
  65897. <constructor name="OutputCommitter"
  65898. static="false" final="false" visibility="public"
  65899. deprecated="not deprecated">
  65900. </constructor>
  65901. <method name="setupJob"
  65902. abstract="true" native="false" synchronized="false"
  65903. static="false" final="false" visibility="public"
  65904. deprecated="not deprecated">
  65905. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65906. <exception name="IOException" type="java.io.IOException"/>
  65907. <doc>
  65908. <![CDATA[For the framework to setup the job output during initialization
  65909. @param jobContext Context of the job whose output is being written.
  65910. @throws IOException if temporary output could not be created]]>
  65911. </doc>
  65912. </method>
  65913. <method name="commitJob"
  65914. abstract="false" native="false" synchronized="false"
  65915. static="false" final="false" visibility="public"
  65916. deprecated="not deprecated">
  65917. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65918. <exception name="IOException" type="java.io.IOException"/>
  65919. <doc>
  65920. <![CDATA[For cleaning up the job's output after job completion. Note that this
  65921. is invoked for jobs with final run state as
  65922. {@link JobStatus.State#SUCCEEDED}
  65923. @param jobContext Context of the job whose output is being written.
  65924. @throws IOException]]>
  65925. </doc>
  65926. </method>
  65927. <method name="cleanupJob"
  65928. abstract="false" native="false" synchronized="false"
  65929. static="false" final="false" visibility="public"
  65930. deprecated="use {@link #commitJob(JobContext)} or
  65931. {@link #abortJob(JobContext, JobStatus.State)} instead">
  65932. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  65933. <exception name="IOException" type="java.io.IOException"/>
  65934. <doc>
  65935. <![CDATA[For cleaning up the job's output after job completion
  65936. @deprecated use {@link #commitJob(JobContext)} or
  65937. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  65938. </doc>
  65939. </method>
  65940. <method name="abortJob"
  65941. abstract="false" native="false" synchronized="false"
  65942. static="false" final="false" visibility="public"
  65943. deprecated="not deprecated">
  65944. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  65945. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  65946. <exception name="IOException" type="java.io.IOException"/>
  65947. <doc>
  65948. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  65949. jobs with final run state as {@link JobStatus.State#FAILED} or
  65950. {@link JobStatus.State#KILLED}.
  65951. @param jobContext Context of the job whose output is being written.
  65952. @param state final run state of the job, should be either
  65953. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  65954. @throws IOException]]>
  65955. </doc>
  65956. </method>
  65957. <method name="setupTask"
  65958. abstract="true" native="false" synchronized="false"
  65959. static="false" final="false" visibility="public"
  65960. deprecated="not deprecated">
  65961. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65962. <exception name="IOException" type="java.io.IOException"/>
  65963. <doc>
  65964. <![CDATA[Sets up output for the task.
  65965. @param taskContext Context of the task whose output is being written.
  65966. @throws IOException]]>
  65967. </doc>
  65968. </method>
  65969. <method name="needsTaskCommit" return="boolean"
  65970. abstract="true" native="false" synchronized="false"
  65971. static="false" final="false" visibility="public"
  65972. deprecated="not deprecated">
  65973. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65974. <exception name="IOException" type="java.io.IOException"/>
  65975. <doc>
  65976. <![CDATA[Check whether task needs a commit
  65977. @param taskContext
  65978. @return true/false
  65979. @throws IOException]]>
  65980. </doc>
  65981. </method>
  65982. <method name="commitTask"
  65983. abstract="true" native="false" synchronized="false"
  65984. static="false" final="false" visibility="public"
  65985. deprecated="not deprecated">
  65986. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  65987. <exception name="IOException" type="java.io.IOException"/>
  65988. <doc>
  65989. <![CDATA[To promote the task's temporary output to final output location
  65990. The task's output is moved to the job's output directory.
  65991. @param taskContext Context of the task whose output is being written.
  65992. @throws IOException if commit is not]]>
  65993. </doc>
  65994. </method>
  65995. <method name="abortTask"
  65996. abstract="true" native="false" synchronized="false"
  65997. static="false" final="false" visibility="public"
  65998. deprecated="not deprecated">
  65999. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66000. <exception name="IOException" type="java.io.IOException"/>
  66001. <doc>
  66002. <![CDATA[Discard the task output
  66003. @param taskContext
  66004. @throws IOException]]>
  66005. </doc>
  66006. </method>
  66007. <doc>
  66008. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  66009. Map-Reduce job.
  66010. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  66011. the job to:<p>
  66012. <ol>
  66013. <li>
  66014. Setup the job during initialization. For example, create the temporary
  66015. output directory for the job during the initialization of the job.
  66016. </li>
  66017. <li>
  66018. Cleanup the job after the job completion. For example, remove the
  66019. temporary output directory after the job completion.
  66020. </li>
  66021. <li>
  66022. Setup the task temporary output.
  66023. </li>
  66024. <li>
  66025. Check whether a task needs a commit. This is to avoid the commit
  66026. procedure if a task does not need commit.
  66027. </li>
  66028. <li>
  66029. Commit of the task output.
  66030. </li>
  66031. <li>
  66032. Discard the task commit.
  66033. </li>
  66034. </ol>
  66035. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  66036. @see JobContext
  66037. @see TaskAttemptContext]]>
  66038. </doc>
  66039. </class>
  66040. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  66041. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  66042. <class name="OutputFormat" extends="java.lang.Object"
  66043. abstract="true"
  66044. static="false" final="false" visibility="public"
  66045. deprecated="not deprecated">
  66046. <constructor name="OutputFormat"
  66047. static="false" final="false" visibility="public"
  66048. deprecated="not deprecated">
  66049. </constructor>
  66050. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  66051. abstract="true" native="false" synchronized="false"
  66052. static="false" final="false" visibility="public"
  66053. deprecated="not deprecated">
  66054. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66055. <exception name="IOException" type="java.io.IOException"/>
  66056. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66057. <doc>
  66058. <![CDATA[Get the {@link RecordWriter} for the given task.
  66059. @param context the information about the current task.
  66060. @return a {@link RecordWriter} to write the output for the job.
  66061. @throws IOException]]>
  66062. </doc>
  66063. </method>
  66064. <method name="checkOutputSpecs"
  66065. abstract="true" native="false" synchronized="false"
  66066. static="false" final="false" visibility="public"
  66067. deprecated="not deprecated">
  66068. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  66069. <exception name="IOException" type="java.io.IOException"/>
  66070. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66071. <doc>
  66072. <![CDATA[Check for validity of the output-specification for the job.
  66073. <p>This is to validate the output specification for the job when it is
  66074. a job is submitted. Typically checks that it does not already exist,
  66075. throwing an exception when it already exists, so that output is not
  66076. overwritten.</p>
  66077. @param context information about the job
  66078. @throws IOException when output should not be attempted]]>
  66079. </doc>
  66080. </method>
  66081. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  66082. abstract="true" native="false" synchronized="false"
  66083. static="false" final="false" visibility="public"
  66084. deprecated="not deprecated">
  66085. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66086. <exception name="IOException" type="java.io.IOException"/>
  66087. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66088. <doc>
  66089. <![CDATA[Get the output committer for this output format. This is responsible
  66090. for ensuring the output is committed correctly.
  66091. @param context the task context
  66092. @return an output committer
  66093. @throws IOException
  66094. @throws InterruptedException]]>
  66095. </doc>
  66096. </method>
  66097. <doc>
  66098. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  66099. Map-Reduce job.
  66100. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  66101. job to:<p>
  66102. <ol>
  66103. <li>
  66104. Validate the output-specification of the job. For e.g. check that the
  66105. output directory doesn't already exist.
  66106. <li>
  66107. Provide the {@link RecordWriter} implementation to be used to write out
  66108. the output files of the job. Output files are stored in a
  66109. {@link FileSystem}.
  66110. </li>
  66111. </ol>
  66112. @see RecordWriter]]>
  66113. </doc>
  66114. </class>
  66115. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  66116. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  66117. <class name="Partitioner" extends="java.lang.Object"
  66118. abstract="true"
  66119. static="false" final="false" visibility="public"
  66120. deprecated="not deprecated">
  66121. <constructor name="Partitioner"
  66122. static="false" final="false" visibility="public"
  66123. deprecated="not deprecated">
  66124. </constructor>
  66125. <method name="getPartition" return="int"
  66126. abstract="true" native="false" synchronized="false"
  66127. static="false" final="false" visibility="public"
  66128. deprecated="not deprecated">
  66129. <param name="key" type="java.lang.Object"/>
  66130. <param name="value" type="java.lang.Object"/>
  66131. <param name="numPartitions" type="int"/>
  66132. <doc>
  66133. <![CDATA[Get the partition number for a given key (hence record) given the total
  66134. number of partitions i.e. number of reduce-tasks for the job.
  66135. <p>Typically a hash function on a all or a subset of the key.</p>
  66136. @param key the key to be partioned.
  66137. @param value the entry value.
  66138. @param numPartitions the total number of partitions.
  66139. @return the partition number for the <code>key</code>.]]>
  66140. </doc>
  66141. </method>
  66142. <doc>
  66143. <![CDATA[Partitions the key space.
  66144. <p><code>Partitioner</code> controls the partitioning of the keys of the
  66145. intermediate map-outputs. The key (or a subset of the key) is used to derive
  66146. the partition, typically by a hash function. The total number of partitions
  66147. is the same as the number of reduce tasks for the job. Hence this controls
  66148. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  66149. record) is sent for reduction.</p>
  66150. @see Reducer]]>
  66151. </doc>
  66152. </class>
  66153. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  66154. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  66155. <class name="RecordReader" extends="java.lang.Object"
  66156. abstract="true"
  66157. static="false" final="false" visibility="public"
  66158. deprecated="not deprecated">
  66159. <implements name="java.io.Closeable"/>
  66160. <constructor name="RecordReader"
  66161. static="false" final="false" visibility="public"
  66162. deprecated="not deprecated">
  66163. </constructor>
  66164. <method name="initialize"
  66165. abstract="true" native="false" synchronized="false"
  66166. static="false" final="false" visibility="public"
  66167. deprecated="not deprecated">
  66168. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  66169. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66170. <exception name="IOException" type="java.io.IOException"/>
  66171. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66172. <doc>
  66173. <![CDATA[Called once at initialization.
  66174. @param split the split that defines the range of records to read
  66175. @param context the information about the task
  66176. @throws IOException
  66177. @throws InterruptedException]]>
  66178. </doc>
  66179. </method>
  66180. <method name="nextKeyValue" return="boolean"
  66181. abstract="true" native="false" synchronized="false"
  66182. static="false" final="false" visibility="public"
  66183. deprecated="not deprecated">
  66184. <exception name="IOException" type="java.io.IOException"/>
  66185. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66186. <doc>
  66187. <![CDATA[Read the next key, value pair.
  66188. @return true if a key/value pair was read
  66189. @throws IOException
  66190. @throws InterruptedException]]>
  66191. </doc>
  66192. </method>
  66193. <method name="getCurrentKey" return="java.lang.Object"
  66194. abstract="true" native="false" synchronized="false"
  66195. static="false" final="false" visibility="public"
  66196. deprecated="not deprecated">
  66197. <exception name="IOException" type="java.io.IOException"/>
  66198. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66199. <doc>
  66200. <![CDATA[Get the current key
  66201. @return the current key or null if there is no current key
  66202. @throws IOException
  66203. @throws InterruptedException]]>
  66204. </doc>
  66205. </method>
  66206. <method name="getCurrentValue" return="java.lang.Object"
  66207. abstract="true" native="false" synchronized="false"
  66208. static="false" final="false" visibility="public"
  66209. deprecated="not deprecated">
  66210. <exception name="IOException" type="java.io.IOException"/>
  66211. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66212. <doc>
  66213. <![CDATA[Get the current value.
  66214. @return the object that was read
  66215. @throws IOException
  66216. @throws InterruptedException]]>
  66217. </doc>
  66218. </method>
  66219. <method name="getProgress" return="float"
  66220. abstract="true" native="false" synchronized="false"
  66221. static="false" final="false" visibility="public"
  66222. deprecated="not deprecated">
  66223. <exception name="IOException" type="java.io.IOException"/>
  66224. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66225. <doc>
  66226. <![CDATA[The current progress of the record reader through its data.
  66227. @return a number between 0.0 and 1.0 that is the fraction of the data read
  66228. @throws IOException
  66229. @throws InterruptedException]]>
  66230. </doc>
  66231. </method>
  66232. <method name="close"
  66233. abstract="true" native="false" synchronized="false"
  66234. static="false" final="false" visibility="public"
  66235. deprecated="not deprecated">
  66236. <exception name="IOException" type="java.io.IOException"/>
  66237. <doc>
  66238. <![CDATA[Close the record reader.]]>
  66239. </doc>
  66240. </method>
  66241. <doc>
  66242. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  66243. {@link Mapper}.
  66244. @param <KEYIN>
  66245. @param <VALUEIN>]]>
  66246. </doc>
  66247. </class>
  66248. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  66249. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  66250. <class name="RecordWriter" extends="java.lang.Object"
  66251. abstract="true"
  66252. static="false" final="false" visibility="public"
  66253. deprecated="not deprecated">
  66254. <constructor name="RecordWriter"
  66255. static="false" final="false" visibility="public"
  66256. deprecated="not deprecated">
  66257. </constructor>
  66258. <method name="write"
  66259. abstract="true" native="false" synchronized="false"
  66260. static="false" final="false" visibility="public"
  66261. deprecated="not deprecated">
  66262. <param name="key" type="java.lang.Object"/>
  66263. <param name="value" type="java.lang.Object"/>
  66264. <exception name="IOException" type="java.io.IOException"/>
  66265. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66266. <doc>
  66267. <![CDATA[Writes a key/value pair.
  66268. @param key the key to write.
  66269. @param value the value to write.
  66270. @throws IOException]]>
  66271. </doc>
  66272. </method>
  66273. <method name="close"
  66274. abstract="true" native="false" synchronized="false"
  66275. static="false" final="false" visibility="public"
  66276. deprecated="not deprecated">
  66277. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  66278. <exception name="IOException" type="java.io.IOException"/>
  66279. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66280. <doc>
  66281. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  66282. @param context the context of the task
  66283. @throws IOException]]>
  66284. </doc>
  66285. </method>
  66286. <doc>
  66287. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  66288. to an output file.
  66289. <p><code>RecordWriter</code> implementations write the job outputs to the
  66290. {@link FileSystem}.
  66291. @see OutputFormat]]>
  66292. </doc>
  66293. </class>
  66294. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  66295. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  66296. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  66297. abstract="false"
  66298. static="false" final="false" visibility="public"
  66299. deprecated="not deprecated">
  66300. <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"
  66301. static="false" final="false" visibility="public"
  66302. deprecated="not deprecated">
  66303. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66304. <exception name="IOException" type="java.io.IOException"/>
  66305. </constructor>
  66306. <method name="nextKey" return="boolean"
  66307. abstract="false" native="false" synchronized="false"
  66308. static="false" final="false" visibility="public"
  66309. deprecated="not deprecated">
  66310. <exception name="IOException" type="java.io.IOException"/>
  66311. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66312. <doc>
  66313. <![CDATA[Start processing next unique key.]]>
  66314. </doc>
  66315. </method>
  66316. <method name="nextKeyValue" return="boolean"
  66317. abstract="false" native="false" synchronized="false"
  66318. static="false" final="false" visibility="public"
  66319. deprecated="not deprecated">
  66320. <exception name="IOException" type="java.io.IOException"/>
  66321. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66322. <doc>
  66323. <![CDATA[Advance to the next key/value pair.]]>
  66324. </doc>
  66325. </method>
  66326. <method name="getCurrentKey" return="java.lang.Object"
  66327. abstract="false" native="false" synchronized="false"
  66328. static="false" final="false" visibility="public"
  66329. deprecated="not deprecated">
  66330. </method>
  66331. <method name="getCurrentValue" return="java.lang.Object"
  66332. abstract="false" native="false" synchronized="false"
  66333. static="false" final="false" visibility="public"
  66334. deprecated="not deprecated">
  66335. </method>
  66336. <method name="getValues" return="java.lang.Iterable"
  66337. abstract="false" native="false" synchronized="false"
  66338. static="false" final="false" visibility="public"
  66339. deprecated="not deprecated">
  66340. <exception name="IOException" type="java.io.IOException"/>
  66341. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66342. <doc>
  66343. <![CDATA[Iterate through the values for the current key, reusing the same value
  66344. object, which is stored in the context.
  66345. @return the series of values associated with the current key. All of the
  66346. objects returned directly and indirectly from this method are reused.]]>
  66347. </doc>
  66348. </method>
  66349. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  66350. transient="false" volatile="false"
  66351. static="false" final="false" visibility="protected"
  66352. deprecated="not deprecated">
  66353. </field>
  66354. <doc>
  66355. <![CDATA[The context passed to the {@link Reducer}.
  66356. @param <KEYIN> the class of the input keys
  66357. @param <VALUEIN> the class of the input values
  66358. @param <KEYOUT> the class of the output keys
  66359. @param <VALUEOUT> the class of the output values]]>
  66360. </doc>
  66361. </class>
  66362. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  66363. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  66364. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  66365. abstract="false"
  66366. static="false" final="false" visibility="protected"
  66367. deprecated="not deprecated">
  66368. <implements name="java.lang.Iterable"/>
  66369. <constructor name="ReduceContext.ValueIterable"
  66370. static="false" final="false" visibility="protected"
  66371. deprecated="not deprecated">
  66372. </constructor>
  66373. <method name="iterator" return="java.util.Iterator"
  66374. abstract="false" native="false" synchronized="false"
  66375. static="false" final="false" visibility="public"
  66376. deprecated="not deprecated">
  66377. </method>
  66378. </class>
  66379. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  66380. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  66381. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  66382. abstract="false"
  66383. static="false" final="false" visibility="protected"
  66384. deprecated="not deprecated">
  66385. <implements name="java.util.Iterator"/>
  66386. <constructor name="ReduceContext.ValueIterator"
  66387. static="false" final="false" visibility="protected"
  66388. deprecated="not deprecated">
  66389. </constructor>
  66390. <method name="hasNext" return="boolean"
  66391. abstract="false" native="false" synchronized="false"
  66392. static="false" final="false" visibility="public"
  66393. deprecated="not deprecated">
  66394. </method>
  66395. <method name="next" return="java.lang.Object"
  66396. abstract="false" native="false" synchronized="false"
  66397. static="false" final="false" visibility="public"
  66398. deprecated="not deprecated">
  66399. </method>
  66400. <method name="remove"
  66401. abstract="false" native="false" synchronized="false"
  66402. static="false" final="false" visibility="public"
  66403. deprecated="not deprecated">
  66404. </method>
  66405. </class>
  66406. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  66407. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  66408. <class name="Reducer" extends="java.lang.Object"
  66409. abstract="false"
  66410. static="false" final="false" visibility="public"
  66411. deprecated="not deprecated">
  66412. <constructor name="Reducer"
  66413. static="false" final="false" visibility="public"
  66414. deprecated="not deprecated">
  66415. </constructor>
  66416. <method name="setup"
  66417. abstract="false" native="false" synchronized="false"
  66418. static="false" final="false" visibility="protected"
  66419. deprecated="not deprecated">
  66420. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66421. <exception name="IOException" type="java.io.IOException"/>
  66422. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66423. <doc>
  66424. <![CDATA[Called once at the start of the task.]]>
  66425. </doc>
  66426. </method>
  66427. <method name="reduce"
  66428. abstract="false" native="false" synchronized="false"
  66429. static="false" final="false" visibility="protected"
  66430. deprecated="not deprecated">
  66431. <param name="key" type="java.lang.Object"/>
  66432. <param name="values" type="java.lang.Iterable"/>
  66433. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66434. <exception name="IOException" type="java.io.IOException"/>
  66435. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66436. <doc>
  66437. <![CDATA[This method is called once for each key. Most applications will define
  66438. their reduce class by overriding this method. The default implementation
  66439. is an identity function.]]>
  66440. </doc>
  66441. </method>
  66442. <method name="cleanup"
  66443. abstract="false" native="false" synchronized="false"
  66444. static="false" final="false" visibility="protected"
  66445. deprecated="not deprecated">
  66446. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66447. <exception name="IOException" type="java.io.IOException"/>
  66448. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66449. <doc>
  66450. <![CDATA[Called once at the end of the task.]]>
  66451. </doc>
  66452. </method>
  66453. <method name="run"
  66454. abstract="false" native="false" synchronized="false"
  66455. static="false" final="false" visibility="public"
  66456. deprecated="not deprecated">
  66457. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  66458. <exception name="IOException" type="java.io.IOException"/>
  66459. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66460. <doc>
  66461. <![CDATA[Advanced application writers can use the
  66462. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  66463. control how the reduce task works.]]>
  66464. </doc>
  66465. </method>
  66466. <doc>
  66467. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  66468. values.
  66469. <p><code>Reducer</code> implementations
  66470. can access the {@link Configuration} for the job via the
  66471. {@link JobContext#getConfiguration()} method.</p>
  66472. <p><code>Reducer</code> has 3 primary phases:</p>
  66473. <ol>
  66474. <li>
  66475. <h4 id="Shuffle">Shuffle</h4>
  66476. <p>The <code>Reducer</code> copies the sorted output from each
  66477. {@link Mapper} using HTTP across the network.</p>
  66478. </li>
  66479. <li>
  66480. <h4 id="Sort">Sort</h4>
  66481. <p>The framework merge sorts <code>Reducer</code> inputs by
  66482. <code>key</code>s
  66483. (since different <code>Mapper</code>s may have output the same key).</p>
  66484. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  66485. being fetched they are merged.</p>
  66486. <h5 id="SecondarySort">SecondarySort</h5>
  66487. <p>To achieve a secondary sort on the values returned by the value
  66488. iterator, the application should extend the key with the secondary
  66489. key and define a grouping comparator. The keys will be sorted using the
  66490. entire key, but will be grouped using the grouping comparator to decide
  66491. which keys and values are sent in the same call to reduce.The grouping
  66492. comparator is specified via
  66493. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  66494. controlled by
  66495. {@link Job#setSortComparatorClass(Class)}.</p>
  66496. For example, say that you want to find duplicate web pages and tag them
  66497. all with the url of the "best" known example. You would set up the job
  66498. like:
  66499. <ul>
  66500. <li>Map Input Key: url</li>
  66501. <li>Map Input Value: document</li>
  66502. <li>Map Output Key: document checksum, url pagerank</li>
  66503. <li>Map Output Value: url</li>
  66504. <li>Partitioner: by checksum</li>
  66505. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  66506. <li>OutputValueGroupingComparator: by checksum</li>
  66507. </ul>
  66508. </li>
  66509. <li>
  66510. <h4 id="Reduce">Reduce</h4>
  66511. <p>In this phase the
  66512. {@link #reduce(Object, Iterable, Context)}
  66513. method is called for each <code>&lt;key, (collection of values)></code> in
  66514. the sorted inputs.</p>
  66515. <p>The output of the reduce task is typically written to a
  66516. {@link RecordWriter} via
  66517. {@link Context#write(Object, Object)}.</p>
  66518. </li>
  66519. </ol>
  66520. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  66521. <p>Example:</p>
  66522. <p><blockquote><pre>
  66523. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  66524. Key,IntWritable> {
  66525. private IntWritable result = new IntWritable();
  66526. public void reduce(Key key, Iterable<IntWritable> values,
  66527. Context context) throws IOException {
  66528. int sum = 0;
  66529. for (IntWritable val : values) {
  66530. sum += val.get();
  66531. }
  66532. result.set(sum);
  66533. context.collect(key, result);
  66534. }
  66535. }
  66536. </pre></blockquote></p>
  66537. @see Mapper
  66538. @see Partitioner]]>
  66539. </doc>
  66540. </class>
  66541. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  66542. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  66543. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  66544. abstract="false"
  66545. static="false" final="false" visibility="public"
  66546. deprecated="not deprecated">
  66547. <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"
  66548. static="false" final="false" visibility="public"
  66549. deprecated="not deprecated">
  66550. <exception name="IOException" type="java.io.IOException"/>
  66551. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66552. </constructor>
  66553. </class>
  66554. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  66555. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  66556. <class name="StatusReporter" extends="java.lang.Object"
  66557. abstract="true"
  66558. static="false" final="false" visibility="public"
  66559. deprecated="not deprecated">
  66560. <constructor name="StatusReporter"
  66561. static="false" final="false" visibility="public"
  66562. deprecated="not deprecated">
  66563. </constructor>
  66564. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66565. abstract="true" native="false" synchronized="false"
  66566. static="false" final="false" visibility="public"
  66567. deprecated="not deprecated">
  66568. <param name="name" type="java.lang.Enum"/>
  66569. </method>
  66570. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66571. abstract="true" native="false" synchronized="false"
  66572. static="false" final="false" visibility="public"
  66573. deprecated="not deprecated">
  66574. <param name="group" type="java.lang.String"/>
  66575. <param name="name" type="java.lang.String"/>
  66576. </method>
  66577. <method name="progress"
  66578. abstract="true" native="false" synchronized="false"
  66579. static="false" final="false" visibility="public"
  66580. deprecated="not deprecated">
  66581. </method>
  66582. <method name="setStatus"
  66583. abstract="true" native="false" synchronized="false"
  66584. static="false" final="false" visibility="public"
  66585. deprecated="not deprecated">
  66586. <param name="status" type="java.lang.String"/>
  66587. </method>
  66588. </class>
  66589. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  66590. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  66591. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  66592. abstract="false"
  66593. static="false" final="false" visibility="public"
  66594. deprecated="not deprecated">
  66595. <implements name="org.apache.hadoop.util.Progressable"/>
  66596. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  66597. static="false" final="false" visibility="public"
  66598. deprecated="not deprecated">
  66599. </constructor>
  66600. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  66601. abstract="false" native="false" synchronized="false"
  66602. static="false" final="false" visibility="public"
  66603. deprecated="not deprecated">
  66604. <doc>
  66605. <![CDATA[Get the unique name for this task attempt.]]>
  66606. </doc>
  66607. </method>
  66608. <method name="setStatus"
  66609. abstract="false" native="false" synchronized="false"
  66610. static="false" final="false" visibility="public"
  66611. deprecated="not deprecated">
  66612. <param name="msg" type="java.lang.String"/>
  66613. <exception name="IOException" type="java.io.IOException"/>
  66614. <doc>
  66615. <![CDATA[Set the current status of the task to the given string.]]>
  66616. </doc>
  66617. </method>
  66618. <method name="getStatus" return="java.lang.String"
  66619. abstract="false" native="false" synchronized="false"
  66620. static="false" final="false" visibility="public"
  66621. deprecated="not deprecated">
  66622. <doc>
  66623. <![CDATA[Get the last set status message.
  66624. @return the current status message]]>
  66625. </doc>
  66626. </method>
  66627. <method name="progress"
  66628. abstract="false" native="false" synchronized="false"
  66629. static="false" final="false" visibility="public"
  66630. deprecated="not deprecated">
  66631. <doc>
  66632. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  66633. </doc>
  66634. </method>
  66635. <doc>
  66636. <![CDATA[The context for task attempts.]]>
  66637. </doc>
  66638. </class>
  66639. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  66640. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  66641. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  66642. abstract="false"
  66643. static="false" final="false" visibility="public"
  66644. deprecated="not deprecated">
  66645. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  66646. static="false" final="false" visibility="public"
  66647. deprecated="not deprecated">
  66648. <doc>
  66649. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  66650. @param taskId TaskID that this task belongs to
  66651. @param id the task attempt number]]>
  66652. </doc>
  66653. </constructor>
  66654. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  66655. static="false" final="false" visibility="public"
  66656. deprecated="not deprecated">
  66657. <doc>
  66658. <![CDATA[Constructs a TaskId object from given parts.
  66659. @param jtIdentifier jobTracker identifier
  66660. @param jobId job number
  66661. @param isMap whether the tip is a map
  66662. @param taskId taskId number
  66663. @param id the task attempt number]]>
  66664. </doc>
  66665. </constructor>
  66666. <constructor name="TaskAttemptID"
  66667. static="false" final="false" visibility="public"
  66668. deprecated="not deprecated">
  66669. </constructor>
  66670. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  66671. abstract="false" native="false" synchronized="false"
  66672. static="false" final="false" visibility="public"
  66673. deprecated="not deprecated">
  66674. <doc>
  66675. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  66676. </doc>
  66677. </method>
  66678. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  66679. abstract="false" native="false" synchronized="false"
  66680. static="false" final="false" visibility="public"
  66681. deprecated="not deprecated">
  66682. <doc>
  66683. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  66684. </doc>
  66685. </method>
  66686. <method name="isMap" return="boolean"
  66687. abstract="false" native="false" synchronized="false"
  66688. static="false" final="false" visibility="public"
  66689. deprecated="not deprecated">
  66690. <doc>
  66691. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  66692. </doc>
  66693. </method>
  66694. <method name="equals" return="boolean"
  66695. abstract="false" native="false" synchronized="false"
  66696. static="false" final="false" visibility="public"
  66697. deprecated="not deprecated">
  66698. <param name="o" type="java.lang.Object"/>
  66699. </method>
  66700. <method name="appendTo" return="java.lang.StringBuilder"
  66701. abstract="false" native="false" synchronized="false"
  66702. static="false" final="false" visibility="protected"
  66703. deprecated="not deprecated">
  66704. <param name="builder" type="java.lang.StringBuilder"/>
  66705. <doc>
  66706. <![CDATA[Add the unique string to the StringBuilder
  66707. @param builder the builder to append ot
  66708. @return the builder that was passed in.]]>
  66709. </doc>
  66710. </method>
  66711. <method name="readFields"
  66712. abstract="false" native="false" synchronized="false"
  66713. static="false" final="false" visibility="public"
  66714. deprecated="not deprecated">
  66715. <param name="in" type="java.io.DataInput"/>
  66716. <exception name="IOException" type="java.io.IOException"/>
  66717. </method>
  66718. <method name="write"
  66719. abstract="false" native="false" synchronized="false"
  66720. static="false" final="false" visibility="public"
  66721. deprecated="not deprecated">
  66722. <param name="out" type="java.io.DataOutput"/>
  66723. <exception name="IOException" type="java.io.IOException"/>
  66724. </method>
  66725. <method name="hashCode" return="int"
  66726. abstract="false" native="false" synchronized="false"
  66727. static="false" final="false" visibility="public"
  66728. deprecated="not deprecated">
  66729. </method>
  66730. <method name="compareTo" return="int"
  66731. abstract="false" native="false" synchronized="false"
  66732. static="false" final="false" visibility="public"
  66733. deprecated="not deprecated">
  66734. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  66735. <doc>
  66736. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  66737. </doc>
  66738. </method>
  66739. <method name="toString" return="java.lang.String"
  66740. abstract="false" native="false" synchronized="false"
  66741. static="false" final="false" visibility="public"
  66742. deprecated="not deprecated">
  66743. </method>
  66744. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  66745. abstract="false" native="false" synchronized="false"
  66746. static="true" final="false" visibility="public"
  66747. deprecated="not deprecated">
  66748. <param name="str" type="java.lang.String"/>
  66749. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  66750. <doc>
  66751. <![CDATA[Construct a TaskAttemptID object from given string
  66752. @return constructed TaskAttemptID object or null if the given String is null
  66753. @throws IllegalArgumentException if the given string is malformed]]>
  66754. </doc>
  66755. </method>
  66756. <field name="ATTEMPT" type="java.lang.String"
  66757. transient="false" volatile="false"
  66758. static="true" final="true" visibility="protected"
  66759. deprecated="not deprecated">
  66760. </field>
  66761. <doc>
  66762. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  66763. a task attempt. Each task attempt is one particular instance of a Map or
  66764. Reduce Task identified by its TaskID.
  66765. TaskAttemptID consists of 2 parts. First part is the
  66766. {@link TaskID}, that this TaskAttemptID belongs to.
  66767. Second part is the task attempt number. <br>
  66768. An example TaskAttemptID is :
  66769. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  66770. zeroth task attempt for the fifth map task in the third job
  66771. running at the jobtracker started at <code>200707121733</code>.
  66772. <p>
  66773. Applications should never construct or parse TaskAttemptID strings
  66774. , but rather use appropriate constructors or {@link #forName(String)}
  66775. method.
  66776. @see JobID
  66777. @see TaskID]]>
  66778. </doc>
  66779. </class>
  66780. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  66781. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  66782. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  66783. abstract="false"
  66784. static="false" final="false" visibility="public"
  66785. deprecated="not deprecated">
  66786. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  66787. static="false" final="false" visibility="public"
  66788. deprecated="not deprecated">
  66789. <doc>
  66790. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  66791. @param jobId JobID that this tip belongs to
  66792. @param isMap whether the tip is a map
  66793. @param id the tip number]]>
  66794. </doc>
  66795. </constructor>
  66796. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  66797. static="false" final="false" visibility="public"
  66798. deprecated="not deprecated">
  66799. <doc>
  66800. <![CDATA[Constructs a TaskInProgressId object from given parts.
  66801. @param jtIdentifier jobTracker identifier
  66802. @param jobId job number
  66803. @param isMap whether the tip is a map
  66804. @param id the tip number]]>
  66805. </doc>
  66806. </constructor>
  66807. <constructor name="TaskID"
  66808. static="false" final="false" visibility="public"
  66809. deprecated="not deprecated">
  66810. </constructor>
  66811. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  66812. abstract="false" native="false" synchronized="false"
  66813. static="false" final="false" visibility="public"
  66814. deprecated="not deprecated">
  66815. <doc>
  66816. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  66817. </doc>
  66818. </method>
  66819. <method name="isMap" return="boolean"
  66820. abstract="false" native="false" synchronized="false"
  66821. static="false" final="false" visibility="public"
  66822. deprecated="not deprecated">
  66823. <doc>
  66824. <![CDATA[Returns whether this TaskID is a map ID]]>
  66825. </doc>
  66826. </method>
  66827. <method name="equals" return="boolean"
  66828. abstract="false" native="false" synchronized="false"
  66829. static="false" final="false" visibility="public"
  66830. deprecated="not deprecated">
  66831. <param name="o" type="java.lang.Object"/>
  66832. </method>
  66833. <method name="compareTo" return="int"
  66834. abstract="false" native="false" synchronized="false"
  66835. static="false" final="false" visibility="public"
  66836. deprecated="not deprecated">
  66837. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  66838. <doc>
  66839. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  66840. defined as greater then maps.]]>
  66841. </doc>
  66842. </method>
  66843. <method name="toString" return="java.lang.String"
  66844. abstract="false" native="false" synchronized="false"
  66845. static="false" final="false" visibility="public"
  66846. deprecated="not deprecated">
  66847. </method>
  66848. <method name="appendTo" return="java.lang.StringBuilder"
  66849. abstract="false" native="false" synchronized="false"
  66850. static="false" final="false" visibility="protected"
  66851. deprecated="not deprecated">
  66852. <param name="builder" type="java.lang.StringBuilder"/>
  66853. <doc>
  66854. <![CDATA[Add the unique string to the given builder.
  66855. @param builder the builder to append to
  66856. @return the builder that was passed in]]>
  66857. </doc>
  66858. </method>
  66859. <method name="hashCode" return="int"
  66860. abstract="false" native="false" synchronized="false"
  66861. static="false" final="false" visibility="public"
  66862. deprecated="not deprecated">
  66863. </method>
  66864. <method name="readFields"
  66865. abstract="false" native="false" synchronized="false"
  66866. static="false" final="false" visibility="public"
  66867. deprecated="not deprecated">
  66868. <param name="in" type="java.io.DataInput"/>
  66869. <exception name="IOException" type="java.io.IOException"/>
  66870. </method>
  66871. <method name="write"
  66872. abstract="false" native="false" synchronized="false"
  66873. static="false" final="false" visibility="public"
  66874. deprecated="not deprecated">
  66875. <param name="out" type="java.io.DataOutput"/>
  66876. <exception name="IOException" type="java.io.IOException"/>
  66877. </method>
  66878. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  66879. abstract="false" native="false" synchronized="false"
  66880. static="true" final="false" visibility="public"
  66881. deprecated="not deprecated">
  66882. <param name="str" type="java.lang.String"/>
  66883. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  66884. <doc>
  66885. <![CDATA[Construct a TaskID object from given string
  66886. @return constructed TaskID object or null if the given String is null
  66887. @throws IllegalArgumentException if the given string is malformed]]>
  66888. </doc>
  66889. </method>
  66890. <field name="TASK" type="java.lang.String"
  66891. transient="false" volatile="false"
  66892. static="true" final="true" visibility="protected"
  66893. deprecated="not deprecated">
  66894. </field>
  66895. <field name="idFormat" type="java.text.NumberFormat"
  66896. transient="false" volatile="false"
  66897. static="true" final="true" visibility="protected"
  66898. deprecated="not deprecated">
  66899. </field>
  66900. <doc>
  66901. <![CDATA[TaskID represents the immutable and unique identifier for
  66902. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  66903. execute the Map or Reduce Task, each of which are uniquely indentified by
  66904. their TaskAttemptID.
  66905. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  66906. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  66907. representing whether the task is a map task or a reduce task.
  66908. And the third part is the task number. <br>
  66909. An example TaskID is :
  66910. <code>task_200707121733_0003_m_000005</code> , which represents the
  66911. fifth map task in the third job running at the jobtracker
  66912. started at <code>200707121733</code>.
  66913. <p>
  66914. Applications should never construct or parse TaskID strings
  66915. , but rather use appropriate constructors or {@link #forName(String)}
  66916. method.
  66917. @see JobID
  66918. @see TaskAttemptID]]>
  66919. </doc>
  66920. </class>
  66921. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  66922. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  66923. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  66924. abstract="true"
  66925. static="false" final="false" visibility="public"
  66926. deprecated="not deprecated">
  66927. <implements name="org.apache.hadoop.util.Progressable"/>
  66928. <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"
  66929. static="false" final="false" visibility="public"
  66930. deprecated="not deprecated">
  66931. </constructor>
  66932. <method name="nextKeyValue" return="boolean"
  66933. abstract="true" native="false" synchronized="false"
  66934. static="false" final="false" visibility="public"
  66935. deprecated="not deprecated">
  66936. <exception name="IOException" type="java.io.IOException"/>
  66937. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66938. <doc>
  66939. <![CDATA[Advance to the next key, value pair, returning null if at end.
  66940. @return the key object that was read into, or null if no more]]>
  66941. </doc>
  66942. </method>
  66943. <method name="getCurrentKey" return="java.lang.Object"
  66944. abstract="true" native="false" synchronized="false"
  66945. static="false" final="false" visibility="public"
  66946. deprecated="not deprecated">
  66947. <exception name="IOException" type="java.io.IOException"/>
  66948. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66949. <doc>
  66950. <![CDATA[Get the current key.
  66951. @return the current key object or null if there isn't one
  66952. @throws IOException
  66953. @throws InterruptedException]]>
  66954. </doc>
  66955. </method>
  66956. <method name="getCurrentValue" return="java.lang.Object"
  66957. abstract="true" native="false" synchronized="false"
  66958. static="false" final="false" visibility="public"
  66959. deprecated="not deprecated">
  66960. <exception name="IOException" type="java.io.IOException"/>
  66961. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66962. <doc>
  66963. <![CDATA[Get the current value.
  66964. @return the value object that was read into
  66965. @throws IOException
  66966. @throws InterruptedException]]>
  66967. </doc>
  66968. </method>
  66969. <method name="write"
  66970. abstract="false" native="false" synchronized="false"
  66971. static="false" final="false" visibility="public"
  66972. deprecated="not deprecated">
  66973. <param name="key" type="java.lang.Object"/>
  66974. <param name="value" type="java.lang.Object"/>
  66975. <exception name="IOException" type="java.io.IOException"/>
  66976. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  66977. <doc>
  66978. <![CDATA[Generate an output key/value pair.]]>
  66979. </doc>
  66980. </method>
  66981. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66982. abstract="false" native="false" synchronized="false"
  66983. static="false" final="false" visibility="public"
  66984. deprecated="not deprecated">
  66985. <param name="counterName" type="java.lang.Enum"/>
  66986. </method>
  66987. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  66988. abstract="false" native="false" synchronized="false"
  66989. static="false" final="false" visibility="public"
  66990. deprecated="not deprecated">
  66991. <param name="groupName" type="java.lang.String"/>
  66992. <param name="counterName" type="java.lang.String"/>
  66993. </method>
  66994. <method name="progress"
  66995. abstract="false" native="false" synchronized="false"
  66996. static="false" final="false" visibility="public"
  66997. deprecated="not deprecated">
  66998. </method>
  66999. <method name="setStatus"
  67000. abstract="false" native="false" synchronized="false"
  67001. static="false" final="false" visibility="public"
  67002. deprecated="not deprecated">
  67003. <param name="status" type="java.lang.String"/>
  67004. </method>
  67005. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  67006. abstract="false" native="false" synchronized="false"
  67007. static="false" final="false" visibility="public"
  67008. deprecated="not deprecated">
  67009. </method>
  67010. <doc>
  67011. <![CDATA[A context object that allows input and output from the task. It is only
  67012. supplied to the {@link Mapper} or {@link Reducer}.
  67013. @param <KEYIN> the input key type for the task
  67014. @param <VALUEIN> the input value type for the task
  67015. @param <KEYOUT> the output key type for the task
  67016. @param <VALUEOUT> the output value type for the task]]>
  67017. </doc>
  67018. </class>
  67019. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  67020. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  67021. <class name="TaskType" extends="java.lang.Enum"
  67022. abstract="false"
  67023. static="false" final="true" visibility="public"
  67024. deprecated="not deprecated">
  67025. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  67026. abstract="false" native="false" synchronized="false"
  67027. static="true" final="false" visibility="public"
  67028. deprecated="not deprecated">
  67029. </method>
  67030. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  67031. abstract="false" native="false" synchronized="false"
  67032. static="true" final="false" visibility="public"
  67033. deprecated="not deprecated">
  67034. <param name="name" type="java.lang.String"/>
  67035. </method>
  67036. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  67037. transient="false" volatile="false"
  67038. static="true" final="true" visibility="public"
  67039. deprecated="not deprecated">
  67040. </field>
  67041. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  67042. transient="false" volatile="false"
  67043. static="true" final="true" visibility="public"
  67044. deprecated="not deprecated">
  67045. </field>
  67046. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  67047. transient="false" volatile="false"
  67048. static="true" final="true" visibility="public"
  67049. deprecated="not deprecated">
  67050. </field>
  67051. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  67052. transient="false" volatile="false"
  67053. static="true" final="true" visibility="public"
  67054. deprecated="not deprecated">
  67055. </field>
  67056. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  67057. transient="false" volatile="false"
  67058. static="true" final="true" visibility="public"
  67059. deprecated="not deprecated">
  67060. </field>
  67061. <doc>
  67062. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  67063. </doc>
  67064. </class>
  67065. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  67066. </package>
  67067. <package name="org.apache.hadoop.mapreduce.lib.input">
  67068. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  67069. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  67070. abstract="true"
  67071. static="false" final="false" visibility="public"
  67072. deprecated="not deprecated">
  67073. <constructor name="FileInputFormat"
  67074. static="false" final="false" visibility="public"
  67075. deprecated="not deprecated">
  67076. </constructor>
  67077. <method name="getFormatMinSplitSize" return="long"
  67078. abstract="false" native="false" synchronized="false"
  67079. static="false" final="false" visibility="protected"
  67080. deprecated="not deprecated">
  67081. <doc>
  67082. <![CDATA[Get the lower bound on split size imposed by the format.
  67083. @return the number of bytes of the minimal split for this format]]>
  67084. </doc>
  67085. </method>
  67086. <method name="isSplitable" return="boolean"
  67087. abstract="false" native="false" synchronized="false"
  67088. static="false" final="false" visibility="protected"
  67089. deprecated="not deprecated">
  67090. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67091. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  67092. <doc>
  67093. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  67094. stream compressed, it will not be.
  67095. <code>FileInputFormat</code> implementations can override this and return
  67096. <code>false</code> to ensure that individual input files are never split-up
  67097. so that {@link Mapper}s process entire files.
  67098. @param context the job context
  67099. @param filename the file name to check
  67100. @return is this file splitable?]]>
  67101. </doc>
  67102. </method>
  67103. <method name="setInputPathFilter"
  67104. abstract="false" native="false" synchronized="false"
  67105. static="true" final="false" visibility="public"
  67106. deprecated="not deprecated">
  67107. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67108. <param name="filter" type="java.lang.Class"/>
  67109. <doc>
  67110. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  67111. @param job the job to modify
  67112. @param filter the PathFilter class use for filtering the input paths.]]>
  67113. </doc>
  67114. </method>
  67115. <method name="setMinInputSplitSize"
  67116. abstract="false" native="false" synchronized="false"
  67117. static="true" final="false" visibility="public"
  67118. deprecated="not deprecated">
  67119. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67120. <param name="size" type="long"/>
  67121. <doc>
  67122. <![CDATA[Set the minimum input split size
  67123. @param job the job to modify
  67124. @param size the minimum size]]>
  67125. </doc>
  67126. </method>
  67127. <method name="getMinSplitSize" return="long"
  67128. abstract="false" native="false" synchronized="false"
  67129. static="true" final="false" visibility="public"
  67130. deprecated="not deprecated">
  67131. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67132. <doc>
  67133. <![CDATA[Get the minimum split size
  67134. @param job the job
  67135. @return the minimum number of bytes that can be in a split]]>
  67136. </doc>
  67137. </method>
  67138. <method name="setMaxInputSplitSize"
  67139. abstract="false" native="false" synchronized="false"
  67140. static="true" final="false" visibility="public"
  67141. deprecated="not deprecated">
  67142. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67143. <param name="size" type="long"/>
  67144. <doc>
  67145. <![CDATA[Set the maximum split size
  67146. @param job the job to modify
  67147. @param size the maximum split size]]>
  67148. </doc>
  67149. </method>
  67150. <method name="getMaxSplitSize" return="long"
  67151. abstract="false" native="false" synchronized="false"
  67152. static="true" final="false" visibility="public"
  67153. deprecated="not deprecated">
  67154. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67155. <doc>
  67156. <![CDATA[Get the maximum split size.
  67157. @param context the job to look at.
  67158. @return the maximum number of bytes a split can include]]>
  67159. </doc>
  67160. </method>
  67161. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  67162. abstract="false" native="false" synchronized="false"
  67163. static="true" final="false" visibility="public"
  67164. deprecated="not deprecated">
  67165. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67166. <doc>
  67167. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  67168. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  67169. </doc>
  67170. </method>
  67171. <method name="listStatus" return="java.util.List"
  67172. abstract="false" native="false" synchronized="false"
  67173. static="false" final="false" visibility="protected"
  67174. deprecated="not deprecated">
  67175. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67176. <exception name="IOException" type="java.io.IOException"/>
  67177. <doc>
  67178. <![CDATA[List input directories.
  67179. Subclasses may override to, e.g., select only files matching a regular
  67180. expression.
  67181. @param job the job to list input paths for
  67182. @return array of FileStatus objects
  67183. @throws IOException if zero items.]]>
  67184. </doc>
  67185. </method>
  67186. <method name="getSplits" return="java.util.List"
  67187. abstract="false" native="false" synchronized="false"
  67188. static="false" final="false" visibility="public"
  67189. deprecated="not deprecated">
  67190. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67191. <exception name="IOException" type="java.io.IOException"/>
  67192. <doc>
  67193. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  67194. </doc>
  67195. </method>
  67196. <method name="computeSplitSize" return="long"
  67197. abstract="false" native="false" synchronized="false"
  67198. static="false" final="false" visibility="protected"
  67199. deprecated="not deprecated">
  67200. <param name="blockSize" type="long"/>
  67201. <param name="minSize" type="long"/>
  67202. <param name="maxSize" type="long"/>
  67203. </method>
  67204. <method name="getBlockIndex" return="int"
  67205. abstract="false" native="false" synchronized="false"
  67206. static="false" final="false" visibility="protected"
  67207. deprecated="not deprecated">
  67208. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  67209. <param name="offset" type="long"/>
  67210. </method>
  67211. <method name="setInputPaths"
  67212. abstract="false" native="false" synchronized="false"
  67213. static="true" final="false" visibility="public"
  67214. deprecated="not deprecated">
  67215. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67216. <param name="commaSeparatedPaths" type="java.lang.String"/>
  67217. <exception name="IOException" type="java.io.IOException"/>
  67218. <doc>
  67219. <![CDATA[Sets the given comma separated paths as the list of inputs
  67220. for the map-reduce job.
  67221. @param job the job
  67222. @param commaSeparatedPaths Comma separated paths to be set as
  67223. the list of inputs for the map-reduce job.]]>
  67224. </doc>
  67225. </method>
  67226. <method name="addInputPaths"
  67227. abstract="false" native="false" synchronized="false"
  67228. static="true" final="false" visibility="public"
  67229. deprecated="not deprecated">
  67230. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67231. <param name="commaSeparatedPaths" type="java.lang.String"/>
  67232. <exception name="IOException" type="java.io.IOException"/>
  67233. <doc>
  67234. <![CDATA[Add the given comma separated paths to the list of inputs for
  67235. the map-reduce job.
  67236. @param job The job to modify
  67237. @param commaSeparatedPaths Comma separated paths to be added to
  67238. the list of inputs for the map-reduce job.]]>
  67239. </doc>
  67240. </method>
  67241. <method name="setInputPaths"
  67242. abstract="false" native="false" synchronized="false"
  67243. static="true" final="false" visibility="public"
  67244. deprecated="not deprecated">
  67245. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67246. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  67247. <exception name="IOException" type="java.io.IOException"/>
  67248. <doc>
  67249. <![CDATA[Set the array of {@link Path}s as the list of inputs
  67250. for the map-reduce job.
  67251. @param job The job to modify
  67252. @param inputPaths the {@link Path}s of the input directories/files
  67253. for the map-reduce job.]]>
  67254. </doc>
  67255. </method>
  67256. <method name="addInputPath"
  67257. abstract="false" native="false" synchronized="false"
  67258. static="true" final="false" visibility="public"
  67259. deprecated="not deprecated">
  67260. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67261. <param name="path" type="org.apache.hadoop.fs.Path"/>
  67262. <exception name="IOException" type="java.io.IOException"/>
  67263. <doc>
  67264. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  67265. @param job The {@link Job} to modify
  67266. @param path {@link Path} to be added to the list of inputs for
  67267. the map-reduce job.]]>
  67268. </doc>
  67269. </method>
  67270. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  67271. abstract="false" native="false" synchronized="false"
  67272. static="true" final="false" visibility="public"
  67273. deprecated="not deprecated">
  67274. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67275. <doc>
  67276. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  67277. @param context The job
  67278. @return the list of input {@link Path}s for the map-reduce job.]]>
  67279. </doc>
  67280. </method>
  67281. <doc>
  67282. <![CDATA[A base class for file-based {@link InputFormat}s.
  67283. <p><code>FileInputFormat</code> is the base class for all file-based
  67284. <code>InputFormat</code>s. This provides a generic implementation of
  67285. {@link #getSplits(JobContext)}.
  67286. Subclasses of <code>FileInputFormat</code> can also override the
  67287. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  67288. not split-up and are processed as a whole by {@link Mapper}s.]]>
  67289. </doc>
  67290. </class>
  67291. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  67292. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  67293. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  67294. abstract="false"
  67295. static="true" final="true" visibility="public"
  67296. deprecated="not deprecated">
  67297. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  67298. abstract="false" native="false" synchronized="false"
  67299. static="true" final="false" visibility="public"
  67300. deprecated="not deprecated">
  67301. </method>
  67302. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  67303. abstract="false" native="false" synchronized="false"
  67304. static="true" final="false" visibility="public"
  67305. deprecated="not deprecated">
  67306. <param name="name" type="java.lang.String"/>
  67307. </method>
  67308. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  67309. transient="false" volatile="false"
  67310. static="true" final="true" visibility="public"
  67311. deprecated="not deprecated">
  67312. </field>
  67313. </class>
  67314. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  67315. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  67316. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  67317. abstract="false"
  67318. static="false" final="false" visibility="public"
  67319. deprecated="not deprecated">
  67320. <implements name="org.apache.hadoop.io.Writable"/>
  67321. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  67322. static="false" final="false" visibility="public"
  67323. deprecated="not deprecated">
  67324. <doc>
  67325. <![CDATA[Constructs a split with host information
  67326. @param file the file name
  67327. @param start the position of the first byte in the file to process
  67328. @param length the number of bytes in the file to process
  67329. @param hosts the list of hosts containing the block, possibly null]]>
  67330. </doc>
  67331. </constructor>
  67332. <method name="getPath" return="org.apache.hadoop.fs.Path"
  67333. abstract="false" native="false" synchronized="false"
  67334. static="false" final="false" visibility="public"
  67335. deprecated="not deprecated">
  67336. <doc>
  67337. <![CDATA[The file containing this split's data.]]>
  67338. </doc>
  67339. </method>
  67340. <method name="getStart" return="long"
  67341. abstract="false" native="false" synchronized="false"
  67342. static="false" final="false" visibility="public"
  67343. deprecated="not deprecated">
  67344. <doc>
  67345. <![CDATA[The position of the first byte in the file to process.]]>
  67346. </doc>
  67347. </method>
  67348. <method name="getLength" return="long"
  67349. abstract="false" native="false" synchronized="false"
  67350. static="false" final="false" visibility="public"
  67351. deprecated="not deprecated">
  67352. <doc>
  67353. <![CDATA[The number of bytes in the file to process.]]>
  67354. </doc>
  67355. </method>
  67356. <method name="toString" return="java.lang.String"
  67357. abstract="false" native="false" synchronized="false"
  67358. static="false" final="false" visibility="public"
  67359. deprecated="not deprecated">
  67360. </method>
  67361. <method name="write"
  67362. abstract="false" native="false" synchronized="false"
  67363. static="false" final="false" visibility="public"
  67364. deprecated="not deprecated">
  67365. <param name="out" type="java.io.DataOutput"/>
  67366. <exception name="IOException" type="java.io.IOException"/>
  67367. </method>
  67368. <method name="readFields"
  67369. abstract="false" native="false" synchronized="false"
  67370. static="false" final="false" visibility="public"
  67371. deprecated="not deprecated">
  67372. <param name="in" type="java.io.DataInput"/>
  67373. <exception name="IOException" type="java.io.IOException"/>
  67374. </method>
  67375. <method name="getLocations" return="java.lang.String[]"
  67376. abstract="false" native="false" synchronized="false"
  67377. static="false" final="false" visibility="public"
  67378. deprecated="not deprecated">
  67379. <exception name="IOException" type="java.io.IOException"/>
  67380. </method>
  67381. <doc>
  67382. <![CDATA[A section of an input file. Returned by {@link
  67383. InputFormat#getSplits(JobContext)} and passed to
  67384. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  67385. </doc>
  67386. </class>
  67387. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  67388. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  67389. <class name="InvalidInputException" extends="java.io.IOException"
  67390. abstract="false"
  67391. static="false" final="false" visibility="public"
  67392. deprecated="not deprecated">
  67393. <constructor name="InvalidInputException" type="java.util.List"
  67394. static="false" final="false" visibility="public"
  67395. deprecated="not deprecated">
  67396. <doc>
  67397. <![CDATA[Create the exception with the given list.
  67398. @param probs the list of problems to report. this list is not copied.]]>
  67399. </doc>
  67400. </constructor>
  67401. <method name="getProblems" return="java.util.List"
  67402. abstract="false" native="false" synchronized="false"
  67403. static="false" final="false" visibility="public"
  67404. deprecated="not deprecated">
  67405. <doc>
  67406. <![CDATA[Get the complete list of the problems reported.
  67407. @return the list of problems, which must not be modified]]>
  67408. </doc>
  67409. </method>
  67410. <method name="getMessage" return="java.lang.String"
  67411. abstract="false" native="false" synchronized="false"
  67412. static="false" final="false" visibility="public"
  67413. deprecated="not deprecated">
  67414. <doc>
  67415. <![CDATA[Get a summary message of the problems found.
  67416. @return the concatenated messages from all of the problems.]]>
  67417. </doc>
  67418. </method>
  67419. <doc>
  67420. <![CDATA[This class wraps a list of problems with the input, so that the user
  67421. can get a list of problems together instead of finding and fixing them one
  67422. by one.]]>
  67423. </doc>
  67424. </class>
  67425. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  67426. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  67427. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  67428. abstract="false"
  67429. static="false" final="false" visibility="public"
  67430. deprecated="not deprecated">
  67431. <constructor name="LineRecordReader"
  67432. static="false" final="false" visibility="public"
  67433. deprecated="not deprecated">
  67434. </constructor>
  67435. <method name="initialize"
  67436. abstract="false" native="false" synchronized="false"
  67437. static="false" final="false" visibility="public"
  67438. deprecated="not deprecated">
  67439. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67440. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67441. <exception name="IOException" type="java.io.IOException"/>
  67442. </method>
  67443. <method name="nextKeyValue" return="boolean"
  67444. abstract="false" native="false" synchronized="false"
  67445. static="false" final="false" visibility="public"
  67446. deprecated="not deprecated">
  67447. <exception name="IOException" type="java.io.IOException"/>
  67448. </method>
  67449. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  67450. abstract="false" native="false" synchronized="false"
  67451. static="false" final="false" visibility="public"
  67452. deprecated="not deprecated">
  67453. </method>
  67454. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  67455. abstract="false" native="false" synchronized="false"
  67456. static="false" final="false" visibility="public"
  67457. deprecated="not deprecated">
  67458. </method>
  67459. <method name="getProgress" return="float"
  67460. abstract="false" native="false" synchronized="false"
  67461. static="false" final="false" visibility="public"
  67462. deprecated="not deprecated">
  67463. <doc>
  67464. <![CDATA[Get the progress within the split]]>
  67465. </doc>
  67466. </method>
  67467. <method name="close"
  67468. abstract="false" native="false" synchronized="true"
  67469. static="false" final="false" visibility="public"
  67470. deprecated="not deprecated">
  67471. <exception name="IOException" type="java.io.IOException"/>
  67472. </method>
  67473. <doc>
  67474. <![CDATA[Treats keys as offset in file and value as line.]]>
  67475. </doc>
  67476. </class>
  67477. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  67478. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  67479. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  67480. abstract="false"
  67481. static="false" final="false" visibility="public"
  67482. deprecated="not deprecated">
  67483. <constructor name="SequenceFileInputFormat"
  67484. static="false" final="false" visibility="public"
  67485. deprecated="not deprecated">
  67486. </constructor>
  67487. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67488. abstract="false" native="false" synchronized="false"
  67489. static="false" final="false" visibility="public"
  67490. deprecated="not deprecated">
  67491. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67492. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67493. <exception name="IOException" type="java.io.IOException"/>
  67494. </method>
  67495. <method name="getFormatMinSplitSize" return="long"
  67496. abstract="false" native="false" synchronized="false"
  67497. static="false" final="false" visibility="protected"
  67498. deprecated="not deprecated">
  67499. </method>
  67500. <method name="listStatus" return="java.util.List"
  67501. abstract="false" native="false" synchronized="false"
  67502. static="false" final="false" visibility="protected"
  67503. deprecated="not deprecated">
  67504. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67505. <exception name="IOException" type="java.io.IOException"/>
  67506. </method>
  67507. <doc>
  67508. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  67509. </doc>
  67510. </class>
  67511. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  67512. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  67513. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  67514. abstract="false"
  67515. static="false" final="false" visibility="public"
  67516. deprecated="not deprecated">
  67517. <constructor name="SequenceFileRecordReader"
  67518. static="false" final="false" visibility="public"
  67519. deprecated="not deprecated">
  67520. </constructor>
  67521. <method name="initialize"
  67522. abstract="false" native="false" synchronized="false"
  67523. static="false" final="false" visibility="public"
  67524. deprecated="not deprecated">
  67525. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67526. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67527. <exception name="IOException" type="java.io.IOException"/>
  67528. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67529. </method>
  67530. <method name="nextKeyValue" return="boolean"
  67531. abstract="false" native="false" synchronized="false"
  67532. static="false" final="false" visibility="public"
  67533. deprecated="not deprecated">
  67534. <exception name="IOException" type="java.io.IOException"/>
  67535. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67536. </method>
  67537. <method name="getCurrentKey" return="java.lang.Object"
  67538. abstract="false" native="false" synchronized="false"
  67539. static="false" final="false" visibility="public"
  67540. deprecated="not deprecated">
  67541. </method>
  67542. <method name="getCurrentValue" return="java.lang.Object"
  67543. abstract="false" native="false" synchronized="false"
  67544. static="false" final="false" visibility="public"
  67545. deprecated="not deprecated">
  67546. </method>
  67547. <method name="getProgress" return="float"
  67548. abstract="false" native="false" synchronized="false"
  67549. static="false" final="false" visibility="public"
  67550. deprecated="not deprecated">
  67551. <exception name="IOException" type="java.io.IOException"/>
  67552. <doc>
  67553. <![CDATA[Return the progress within the input split
  67554. @return 0.0 to 1.0 of the input byte range]]>
  67555. </doc>
  67556. </method>
  67557. <method name="close"
  67558. abstract="false" native="false" synchronized="true"
  67559. static="false" final="false" visibility="public"
  67560. deprecated="not deprecated">
  67561. <exception name="IOException" type="java.io.IOException"/>
  67562. </method>
  67563. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  67564. transient="false" volatile="false"
  67565. static="false" final="false" visibility="protected"
  67566. deprecated="not deprecated">
  67567. </field>
  67568. <doc>
  67569. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  67570. </doc>
  67571. </class>
  67572. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  67573. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  67574. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  67575. abstract="false"
  67576. static="false" final="false" visibility="public"
  67577. deprecated="not deprecated">
  67578. <constructor name="TextInputFormat"
  67579. static="false" final="false" visibility="public"
  67580. deprecated="not deprecated">
  67581. </constructor>
  67582. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67583. abstract="false" native="false" synchronized="false"
  67584. static="false" final="false" visibility="public"
  67585. deprecated="not deprecated">
  67586. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67587. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67588. </method>
  67589. <method name="isSplitable" return="boolean"
  67590. abstract="false" native="false" synchronized="false"
  67591. static="false" final="false" visibility="protected"
  67592. deprecated="not deprecated">
  67593. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67594. <param name="file" type="org.apache.hadoop.fs.Path"/>
  67595. </method>
  67596. <doc>
  67597. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  67598. Either linefeed or carriage-return are used to signal end of line. Keys are
  67599. the position in the file, and values are the line of text..]]>
  67600. </doc>
  67601. </class>
  67602. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  67603. </package>
  67604. <package name="org.apache.hadoop.mapreduce.lib.map">
  67605. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  67606. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  67607. abstract="false"
  67608. static="false" final="false" visibility="public"
  67609. deprecated="not deprecated">
  67610. <constructor name="InverseMapper"
  67611. static="false" final="false" visibility="public"
  67612. deprecated="not deprecated">
  67613. </constructor>
  67614. <method name="map"
  67615. abstract="false" native="false" synchronized="false"
  67616. static="false" final="false" visibility="public"
  67617. deprecated="not deprecated">
  67618. <param name="key" type="java.lang.Object"/>
  67619. <param name="value" type="java.lang.Object"/>
  67620. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67621. <exception name="IOException" type="java.io.IOException"/>
  67622. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67623. <doc>
  67624. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  67625. </doc>
  67626. </method>
  67627. <doc>
  67628. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  67629. </doc>
  67630. </class>
  67631. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  67632. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  67633. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  67634. abstract="false"
  67635. static="false" final="false" visibility="public"
  67636. deprecated="not deprecated">
  67637. <constructor name="MultithreadedMapper"
  67638. static="false" final="false" visibility="public"
  67639. deprecated="not deprecated">
  67640. </constructor>
  67641. <method name="getNumberOfThreads" return="int"
  67642. abstract="false" native="false" synchronized="false"
  67643. static="true" final="false" visibility="public"
  67644. deprecated="not deprecated">
  67645. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67646. <doc>
  67647. <![CDATA[The number of threads in the thread pool that will run the map function.
  67648. @param job the job
  67649. @return the number of threads]]>
  67650. </doc>
  67651. </method>
  67652. <method name="setNumberOfThreads"
  67653. abstract="false" native="false" synchronized="false"
  67654. static="true" final="false" visibility="public"
  67655. deprecated="not deprecated">
  67656. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67657. <param name="threads" type="int"/>
  67658. <doc>
  67659. <![CDATA[Set the number of threads in the pool for running maps.
  67660. @param job the job to modify
  67661. @param threads the new number of threads]]>
  67662. </doc>
  67663. </method>
  67664. <method name="getMapperClass" return="java.lang.Class"
  67665. abstract="false" native="false" synchronized="false"
  67666. static="true" final="false" visibility="public"
  67667. deprecated="not deprecated">
  67668. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67669. <doc>
  67670. <![CDATA[Get the application's mapper class.
  67671. @param <K1> the map's input key type
  67672. @param <V1> the map's input value type
  67673. @param <K2> the map's output key type
  67674. @param <V2> the map's output value type
  67675. @param job the job
  67676. @return the mapper class to run]]>
  67677. </doc>
  67678. </method>
  67679. <method name="setMapperClass"
  67680. abstract="false" native="false" synchronized="false"
  67681. static="true" final="false" visibility="public"
  67682. deprecated="not deprecated">
  67683. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67684. <param name="cls" type="java.lang.Class"/>
  67685. <doc>
  67686. <![CDATA[Set the application's mapper class.
  67687. @param <K1> the map input key type
  67688. @param <V1> the map input value type
  67689. @param <K2> the map output key type
  67690. @param <V2> the map output value type
  67691. @param job the job to modify
  67692. @param cls the class to use as the mapper]]>
  67693. </doc>
  67694. </method>
  67695. <method name="run"
  67696. abstract="false" native="false" synchronized="false"
  67697. static="false" final="false" visibility="public"
  67698. deprecated="not deprecated">
  67699. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67700. <exception name="IOException" type="java.io.IOException"/>
  67701. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67702. <doc>
  67703. <![CDATA[Run the application's maps using a thread pool.]]>
  67704. </doc>
  67705. </method>
  67706. <doc>
  67707. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  67708. <p>
  67709. It can be used instead of the default implementation,
  67710. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  67711. bound in order to improve throughput.
  67712. <p>
  67713. Mapper implementations using this MapRunnable must be thread-safe.
  67714. <p>
  67715. The Map-Reduce job has to be configured with the mapper to use via
  67716. {@link #setMapperClass(Configuration, Class)} and
  67717. the number of thread the thread-pool can use with the
  67718. {@link #getNumberOfThreads(Configuration) method. The default
  67719. value is 10 threads.
  67720. <p>]]>
  67721. </doc>
  67722. </class>
  67723. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  67724. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  67725. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  67726. abstract="false"
  67727. static="false" final="false" visibility="public"
  67728. deprecated="not deprecated">
  67729. <constructor name="TokenCounterMapper"
  67730. static="false" final="false" visibility="public"
  67731. deprecated="not deprecated">
  67732. </constructor>
  67733. <method name="map"
  67734. abstract="false" native="false" synchronized="false"
  67735. static="false" final="false" visibility="public"
  67736. deprecated="not deprecated">
  67737. <param name="key" type="java.lang.Object"/>
  67738. <param name="value" type="org.apache.hadoop.io.Text"/>
  67739. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  67740. <exception name="IOException" type="java.io.IOException"/>
  67741. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67742. </method>
  67743. <doc>
  67744. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  67745. </doc>
  67746. </class>
  67747. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  67748. </package>
  67749. <package name="org.apache.hadoop.mapreduce.lib.output">
  67750. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  67751. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  67752. abstract="false"
  67753. static="false" final="false" visibility="public"
  67754. deprecated="not deprecated">
  67755. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  67756. static="false" final="false" visibility="public"
  67757. deprecated="not deprecated">
  67758. <exception name="IOException" type="java.io.IOException"/>
  67759. <doc>
  67760. <![CDATA[Create a file output committer
  67761. @param outputPath the job's output path
  67762. @param context the task's context
  67763. @throws IOException]]>
  67764. </doc>
  67765. </constructor>
  67766. <method name="setupJob"
  67767. abstract="false" native="false" synchronized="false"
  67768. static="false" final="false" visibility="public"
  67769. deprecated="not deprecated">
  67770. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67771. <exception name="IOException" type="java.io.IOException"/>
  67772. <doc>
  67773. <![CDATA[Create the temporary directory that is the root of all of the task
  67774. work directories.
  67775. @param context the job's context]]>
  67776. </doc>
  67777. </method>
  67778. <method name="commitJob"
  67779. abstract="false" native="false" synchronized="false"
  67780. static="false" final="false" visibility="public"
  67781. deprecated="not deprecated">
  67782. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67783. <exception name="IOException" type="java.io.IOException"/>
  67784. <doc>
  67785. <![CDATA[Delete the temporary directory, including all of the work directories.
  67786. This is called for all jobs whose final run state is SUCCEEDED
  67787. @param context the job's context.]]>
  67788. </doc>
  67789. </method>
  67790. <method name="cleanupJob"
  67791. abstract="false" native="false" synchronized="false"
  67792. static="false" final="false" visibility="public"
  67793. deprecated="not deprecated">
  67794. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67795. <exception name="IOException" type="java.io.IOException"/>
  67796. </method>
  67797. <method name="abortJob"
  67798. abstract="false" native="false" synchronized="false"
  67799. static="false" final="false" visibility="public"
  67800. deprecated="not deprecated">
  67801. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67802. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  67803. <exception name="IOException" type="java.io.IOException"/>
  67804. <doc>
  67805. <![CDATA[Delete the temporary directory, including all of the work directories.
  67806. @param context the job's context
  67807. @param state final run state of the job, should be FAILED or KILLED]]>
  67808. </doc>
  67809. </method>
  67810. <method name="setupTask"
  67811. abstract="false" native="false" synchronized="false"
  67812. static="false" final="false" visibility="public"
  67813. deprecated="not deprecated">
  67814. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67815. <exception name="IOException" type="java.io.IOException"/>
  67816. <doc>
  67817. <![CDATA[No task setup required.]]>
  67818. </doc>
  67819. </method>
  67820. <method name="commitTask"
  67821. abstract="false" native="false" synchronized="false"
  67822. static="false" final="false" visibility="public"
  67823. deprecated="not deprecated">
  67824. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67825. <exception name="IOException" type="java.io.IOException"/>
  67826. <doc>
  67827. <![CDATA[Move the files from the work directory to the job output directory
  67828. @param context the task context]]>
  67829. </doc>
  67830. </method>
  67831. <method name="abortTask"
  67832. abstract="false" native="false" synchronized="false"
  67833. static="false" final="false" visibility="public"
  67834. deprecated="not deprecated">
  67835. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67836. <doc>
  67837. <![CDATA[Delete the work directory]]>
  67838. </doc>
  67839. </method>
  67840. <method name="needsTaskCommit" return="boolean"
  67841. abstract="false" native="false" synchronized="false"
  67842. static="false" final="false" visibility="public"
  67843. deprecated="not deprecated">
  67844. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67845. <exception name="IOException" type="java.io.IOException"/>
  67846. <doc>
  67847. <![CDATA[Did this task write any files in the work directory?
  67848. @param context the task's context]]>
  67849. </doc>
  67850. </method>
  67851. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  67852. abstract="false" native="false" synchronized="false"
  67853. static="false" final="false" visibility="public"
  67854. deprecated="not deprecated">
  67855. <exception name="IOException" type="java.io.IOException"/>
  67856. <doc>
  67857. <![CDATA[Get the directory that the task should write results into
  67858. @return the work directory
  67859. @throws IOException]]>
  67860. </doc>
  67861. </method>
  67862. <field name="TEMP_DIR_NAME" type="java.lang.String"
  67863. transient="false" volatile="false"
  67864. static="true" final="true" visibility="protected"
  67865. deprecated="not deprecated">
  67866. <doc>
  67867. <![CDATA[Temporary directory name]]>
  67868. </doc>
  67869. </field>
  67870. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  67871. transient="false" volatile="false"
  67872. static="true" final="true" visibility="public"
  67873. deprecated="not deprecated">
  67874. </field>
  67875. <doc>
  67876. <![CDATA[An {@link OutputCommitter} that commits files specified
  67877. in job output directory i.e. ${mapred.output.dir}.]]>
  67878. </doc>
  67879. </class>
  67880. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  67881. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  67882. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  67883. abstract="true"
  67884. static="false" final="false" visibility="public"
  67885. deprecated="not deprecated">
  67886. <constructor name="FileOutputFormat"
  67887. static="false" final="false" visibility="public"
  67888. deprecated="not deprecated">
  67889. </constructor>
  67890. <method name="setCompressOutput"
  67891. abstract="false" native="false" synchronized="false"
  67892. static="true" final="false" visibility="public"
  67893. deprecated="not deprecated">
  67894. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67895. <param name="compress" type="boolean"/>
  67896. <doc>
  67897. <![CDATA[Set whether the output of the job is compressed.
  67898. @param job the job to modify
  67899. @param compress should the output of the job be compressed?]]>
  67900. </doc>
  67901. </method>
  67902. <method name="getCompressOutput" return="boolean"
  67903. abstract="false" native="false" synchronized="false"
  67904. static="true" final="false" visibility="public"
  67905. deprecated="not deprecated">
  67906. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67907. <doc>
  67908. <![CDATA[Is the job output compressed?
  67909. @param job the Job to look in
  67910. @return <code>true</code> if the job output should be compressed,
  67911. <code>false</code> otherwise]]>
  67912. </doc>
  67913. </method>
  67914. <method name="setOutputCompressorClass"
  67915. abstract="false" native="false" synchronized="false"
  67916. static="true" final="false" visibility="public"
  67917. deprecated="not deprecated">
  67918. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67919. <param name="codecClass" type="java.lang.Class"/>
  67920. <doc>
  67921. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  67922. @param job the job to modify
  67923. @param codecClass the {@link CompressionCodec} to be used to
  67924. compress the job outputs]]>
  67925. </doc>
  67926. </method>
  67927. <method name="getOutputCompressorClass" return="java.lang.Class"
  67928. abstract="false" native="false" synchronized="false"
  67929. static="true" final="false" visibility="public"
  67930. deprecated="not deprecated">
  67931. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67932. <param name="defaultValue" type="java.lang.Class"/>
  67933. <doc>
  67934. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  67935. @param job the {@link Job} to look in
  67936. @param defaultValue the {@link CompressionCodec} to return if not set
  67937. @return the {@link CompressionCodec} to be used to compress the
  67938. job outputs
  67939. @throws IllegalArgumentException if the class was specified, but not found]]>
  67940. </doc>
  67941. </method>
  67942. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  67943. abstract="true" native="false" synchronized="false"
  67944. static="false" final="false" visibility="public"
  67945. deprecated="not deprecated">
  67946. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67947. <exception name="IOException" type="java.io.IOException"/>
  67948. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67949. </method>
  67950. <method name="checkOutputSpecs"
  67951. abstract="false" native="false" synchronized="false"
  67952. static="false" final="false" visibility="public"
  67953. deprecated="not deprecated">
  67954. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67955. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  67956. <exception name="IOException" type="java.io.IOException"/>
  67957. </method>
  67958. <method name="setOutputPath"
  67959. abstract="false" native="false" synchronized="false"
  67960. static="true" final="false" visibility="public"
  67961. deprecated="not deprecated">
  67962. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  67963. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  67964. <doc>
  67965. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  67966. @param job The job to modify
  67967. @param outputDir the {@link Path} of the output directory for
  67968. the map-reduce job.]]>
  67969. </doc>
  67970. </method>
  67971. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  67972. abstract="false" native="false" synchronized="false"
  67973. static="true" final="false" visibility="public"
  67974. deprecated="not deprecated">
  67975. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  67976. <doc>
  67977. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  67978. @return the {@link Path} to the output directory for the map-reduce job.
  67979. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  67980. </doc>
  67981. </method>
  67982. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  67983. abstract="false" native="false" synchronized="false"
  67984. static="true" final="false" visibility="public"
  67985. deprecated="not deprecated">
  67986. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  67987. <exception name="IOException" type="java.io.IOException"/>
  67988. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67989. <doc>
  67990. <![CDATA[Get the {@link Path} to the task's temporary output directory
  67991. for the map-reduce job
  67992. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  67993. <p>Some applications need to create/write-to side-files, which differ from
  67994. the actual job-outputs.
  67995. <p>In such cases there could be issues with 2 instances of the same TIP
  67996. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  67997. same file (path) on HDFS. Hence the application-writer will have to pick
  67998. unique names per task-attempt (e.g. using the attemptid, say
  67999. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  68000. <p>To get around this the Map-Reduce framework helps the application-writer
  68001. out by maintaining a special
  68002. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  68003. sub-directory for each task-attempt on HDFS where the output of the
  68004. task-attempt goes. On successful completion of the task-attempt the files
  68005. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  68006. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  68007. framework discards the sub-directory of unsuccessful task-attempts. This
  68008. is completely transparent to the application.</p>
  68009. <p>The application-writer can take advantage of this by creating any
  68010. side-files required in a work directory during execution
  68011. of his task i.e. via
  68012. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  68013. the framework will move them out similarly - thus she doesn't have to pick
  68014. unique paths per task-attempt.</p>
  68015. <p>The entire discussion holds true for maps of jobs with
  68016. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  68017. goes directly to HDFS.</p>
  68018. @return the {@link Path} to the task's temporary output directory
  68019. for the map-reduce job.]]>
  68020. </doc>
  68021. </method>
  68022. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  68023. abstract="false" native="false" synchronized="false"
  68024. static="true" final="false" visibility="public"
  68025. deprecated="not deprecated">
  68026. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  68027. <param name="name" type="java.lang.String"/>
  68028. <param name="extension" type="java.lang.String"/>
  68029. <exception name="IOException" type="java.io.IOException"/>
  68030. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68031. <doc>
  68032. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  68033. the task within the job output directory.
  68034. <p>The path can be used to create custom files from within the map and
  68035. reduce tasks. The path name will be unique for each task. The path parent
  68036. will be the job output directory.</p>ls
  68037. <p>This method uses the {@link #getUniqueFile} method to make the file name
  68038. unique for the task.</p>
  68039. @param context the context for the task.
  68040. @param name the name for the file.
  68041. @param extension the extension for the file
  68042. @return a unique path accross all tasks of the job.]]>
  68043. </doc>
  68044. </method>
  68045. <method name="getUniqueFile" return="java.lang.String"
  68046. abstract="false" native="false" synchronized="true"
  68047. static="true" final="false" visibility="public"
  68048. deprecated="not deprecated">
  68049. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68050. <param name="name" type="java.lang.String"/>
  68051. <param name="extension" type="java.lang.String"/>
  68052. <doc>
  68053. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  68054. @param context the task that is calling this
  68055. @param name the base filename
  68056. @param extension the filename extension
  68057. @return a string like $name-[mr]-$id$extension]]>
  68058. </doc>
  68059. </method>
  68060. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  68061. abstract="false" native="false" synchronized="false"
  68062. static="false" final="false" visibility="public"
  68063. deprecated="not deprecated">
  68064. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68065. <param name="extension" type="java.lang.String"/>
  68066. <exception name="IOException" type="java.io.IOException"/>
  68067. <doc>
  68068. <![CDATA[Get the default path and filename for the output format.
  68069. @param context the task context
  68070. @param extension an extension to add to the filename
  68071. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  68072. @throws IOException]]>
  68073. </doc>
  68074. </method>
  68075. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  68076. abstract="false" native="false" synchronized="true"
  68077. static="false" final="false" visibility="public"
  68078. deprecated="not deprecated">
  68079. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68080. <exception name="IOException" type="java.io.IOException"/>
  68081. </method>
  68082. <doc>
  68083. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  68084. </doc>
  68085. </class>
  68086. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  68087. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  68088. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  68089. abstract="false"
  68090. static="true" final="true" visibility="public"
  68091. deprecated="not deprecated">
  68092. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  68093. abstract="false" native="false" synchronized="false"
  68094. static="true" final="false" visibility="public"
  68095. deprecated="not deprecated">
  68096. </method>
  68097. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  68098. abstract="false" native="false" synchronized="false"
  68099. static="true" final="false" visibility="public"
  68100. deprecated="not deprecated">
  68101. <param name="name" type="java.lang.String"/>
  68102. </method>
  68103. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  68104. transient="false" volatile="false"
  68105. static="true" final="true" visibility="public"
  68106. deprecated="not deprecated">
  68107. </field>
  68108. </class>
  68109. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  68110. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  68111. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  68112. abstract="false"
  68113. static="false" final="false" visibility="public"
  68114. deprecated="not deprecated">
  68115. <constructor name="NullOutputFormat"
  68116. static="false" final="false" visibility="public"
  68117. deprecated="not deprecated">
  68118. </constructor>
  68119. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  68120. abstract="false" native="false" synchronized="false"
  68121. static="false" final="false" visibility="public"
  68122. deprecated="not deprecated">
  68123. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68124. </method>
  68125. <method name="checkOutputSpecs"
  68126. abstract="false" native="false" synchronized="false"
  68127. static="false" final="false" visibility="public"
  68128. deprecated="not deprecated">
  68129. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  68130. </method>
  68131. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  68132. abstract="false" native="false" synchronized="false"
  68133. static="false" final="false" visibility="public"
  68134. deprecated="not deprecated">
  68135. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68136. </method>
  68137. <doc>
  68138. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  68139. </doc>
  68140. </class>
  68141. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  68142. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  68143. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  68144. abstract="false"
  68145. static="false" final="false" visibility="public"
  68146. deprecated="not deprecated">
  68147. <constructor name="SequenceFileOutputFormat"
  68148. static="false" final="false" visibility="public"
  68149. deprecated="not deprecated">
  68150. </constructor>
  68151. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  68152. abstract="false" native="false" synchronized="false"
  68153. static="false" final="false" visibility="public"
  68154. deprecated="not deprecated">
  68155. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68156. <exception name="IOException" type="java.io.IOException"/>
  68157. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68158. </method>
  68159. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  68160. abstract="false" native="false" synchronized="false"
  68161. static="true" final="false" visibility="public"
  68162. deprecated="not deprecated">
  68163. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  68164. <doc>
  68165. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  68166. @param job the {@link Job}
  68167. @return the {@link CompressionType} for the output {@link SequenceFile},
  68168. defaulting to {@link CompressionType#RECORD}]]>
  68169. </doc>
  68170. </method>
  68171. <method name="setOutputCompressionType"
  68172. abstract="false" native="false" synchronized="false"
  68173. static="true" final="false" visibility="public"
  68174. deprecated="not deprecated">
  68175. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  68176. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  68177. <doc>
  68178. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  68179. @param job the {@link Job} to modify
  68180. @param style the {@link CompressionType} for the output
  68181. {@link SequenceFile}]]>
  68182. </doc>
  68183. </method>
  68184. <doc>
  68185. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  68186. </doc>
  68187. </class>
  68188. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  68189. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  68190. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  68191. abstract="false"
  68192. static="false" final="false" visibility="public"
  68193. deprecated="not deprecated">
  68194. <constructor name="TextOutputFormat"
  68195. static="false" final="false" visibility="public"
  68196. deprecated="not deprecated">
  68197. </constructor>
  68198. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  68199. abstract="false" native="false" synchronized="false"
  68200. static="false" final="false" visibility="public"
  68201. deprecated="not deprecated">
  68202. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68203. <exception name="IOException" type="java.io.IOException"/>
  68204. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68205. </method>
  68206. <doc>
  68207. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  68208. </doc>
  68209. </class>
  68210. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  68211. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  68212. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  68213. abstract="false"
  68214. static="true" final="false" visibility="protected"
  68215. deprecated="not deprecated">
  68216. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  68217. static="false" final="false" visibility="public"
  68218. deprecated="not deprecated">
  68219. </constructor>
  68220. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  68221. static="false" final="false" visibility="public"
  68222. deprecated="not deprecated">
  68223. </constructor>
  68224. <method name="write"
  68225. abstract="false" native="false" synchronized="true"
  68226. static="false" final="false" visibility="public"
  68227. deprecated="not deprecated">
  68228. <param name="key" type="java.lang.Object"/>
  68229. <param name="value" type="java.lang.Object"/>
  68230. <exception name="IOException" type="java.io.IOException"/>
  68231. </method>
  68232. <method name="close"
  68233. abstract="false" native="false" synchronized="true"
  68234. static="false" final="false" visibility="public"
  68235. deprecated="not deprecated">
  68236. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  68237. <exception name="IOException" type="java.io.IOException"/>
  68238. </method>
  68239. <field name="out" type="java.io.DataOutputStream"
  68240. transient="false" volatile="false"
  68241. static="false" final="false" visibility="protected"
  68242. deprecated="not deprecated">
  68243. </field>
  68244. </class>
  68245. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  68246. </package>
  68247. <package name="org.apache.hadoop.mapreduce.lib.partition">
  68248. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  68249. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  68250. abstract="false"
  68251. static="false" final="false" visibility="public"
  68252. deprecated="not deprecated">
  68253. <constructor name="HashPartitioner"
  68254. static="false" final="false" visibility="public"
  68255. deprecated="not deprecated">
  68256. </constructor>
  68257. <method name="getPartition" return="int"
  68258. abstract="false" native="false" synchronized="false"
  68259. static="false" final="false" visibility="public"
  68260. deprecated="not deprecated">
  68261. <param name="key" type="java.lang.Object"/>
  68262. <param name="value" type="java.lang.Object"/>
  68263. <param name="numReduceTasks" type="int"/>
  68264. <doc>
  68265. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  68266. </doc>
  68267. </method>
  68268. <doc>
  68269. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  68270. </doc>
  68271. </class>
  68272. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  68273. </package>
  68274. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  68275. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  68276. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  68277. abstract="false"
  68278. static="false" final="false" visibility="public"
  68279. deprecated="not deprecated">
  68280. <constructor name="IntSumReducer"
  68281. static="false" final="false" visibility="public"
  68282. deprecated="not deprecated">
  68283. </constructor>
  68284. <method name="reduce"
  68285. abstract="false" native="false" synchronized="false"
  68286. static="false" final="false" visibility="public"
  68287. deprecated="not deprecated">
  68288. <param name="key" type="java.lang.Object"/>
  68289. <param name="values" type="java.lang.Iterable"/>
  68290. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68291. <exception name="IOException" type="java.io.IOException"/>
  68292. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68293. </method>
  68294. </class>
  68295. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  68296. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  68297. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  68298. abstract="false"
  68299. static="false" final="false" visibility="public"
  68300. deprecated="not deprecated">
  68301. <constructor name="LongSumReducer"
  68302. static="false" final="false" visibility="public"
  68303. deprecated="not deprecated">
  68304. </constructor>
  68305. <method name="reduce"
  68306. abstract="false" native="false" synchronized="false"
  68307. static="false" final="false" visibility="public"
  68308. deprecated="not deprecated">
  68309. <param name="key" type="java.lang.Object"/>
  68310. <param name="values" type="java.lang.Iterable"/>
  68311. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  68312. <exception name="IOException" type="java.io.IOException"/>
  68313. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68314. </method>
  68315. </class>
  68316. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  68317. </package>
  68318. <package name="org.apache.hadoop.mapreduce.security">
  68319. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  68320. <class name="SecureShuffleUtils" extends="java.lang.Object"
  68321. abstract="false"
  68322. static="false" final="false" visibility="public"
  68323. deprecated="not deprecated">
  68324. <constructor name="SecureShuffleUtils"
  68325. static="false" final="false" visibility="public"
  68326. deprecated="not deprecated">
  68327. </constructor>
  68328. <method name="generateHash" return="java.lang.String"
  68329. abstract="false" native="false" synchronized="false"
  68330. static="true" final="false" visibility="public"
  68331. deprecated="not deprecated">
  68332. <param name="msg" type="byte[]"/>
  68333. <param name="key" type="javax.crypto.SecretKey"/>
  68334. <doc>
  68335. <![CDATA[Base64 encoded hash of msg
  68336. @param msg]]>
  68337. </doc>
  68338. </method>
  68339. <method name="hashFromString" return="java.lang.String"
  68340. abstract="false" native="false" synchronized="false"
  68341. static="true" final="false" visibility="public"
  68342. deprecated="not deprecated">
  68343. <param name="enc_str" type="java.lang.String"/>
  68344. <param name="key" type="javax.crypto.SecretKey"/>
  68345. <exception name="IOException" type="java.io.IOException"/>
  68346. <doc>
  68347. <![CDATA[Aux util to calculate hash of a String
  68348. @param enc_str
  68349. @param key
  68350. @return Base64 encodedHash
  68351. @throws IOException]]>
  68352. </doc>
  68353. </method>
  68354. <method name="verifyReply"
  68355. abstract="false" native="false" synchronized="false"
  68356. static="true" final="false" visibility="public"
  68357. deprecated="not deprecated">
  68358. <param name="base64Hash" type="java.lang.String"/>
  68359. <param name="msg" type="java.lang.String"/>
  68360. <param name="key" type="javax.crypto.SecretKey"/>
  68361. <exception name="IOException" type="java.io.IOException"/>
  68362. <doc>
  68363. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  68364. @param base64Hash (Base64 encoded hash)
  68365. @param msg
  68366. @throws IOException if not the same]]>
  68367. </doc>
  68368. </method>
  68369. <method name="buildMsgFrom" return="java.lang.String"
  68370. abstract="false" native="false" synchronized="false"
  68371. static="true" final="false" visibility="public"
  68372. deprecated="not deprecated">
  68373. <param name="url" type="java.net.URL"/>
  68374. <doc>
  68375. <![CDATA[Shuffle specific utils - build string for encoding from URL
  68376. @param url
  68377. @return string for encoding]]>
  68378. </doc>
  68379. </method>
  68380. <method name="buildMsgFrom" return="java.lang.String"
  68381. abstract="false" native="false" synchronized="false"
  68382. static="true" final="false" visibility="public"
  68383. deprecated="not deprecated">
  68384. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  68385. <doc>
  68386. <![CDATA[Shuffle specific utils - build string for encoding from URL
  68387. @param request
  68388. @return string for encoding]]>
  68389. </doc>
  68390. </method>
  68391. <method name="toHex" return="java.lang.String"
  68392. abstract="false" native="false" synchronized="false"
  68393. static="true" final="false" visibility="public"
  68394. deprecated="not deprecated">
  68395. <param name="ba" type="byte[]"/>
  68396. <doc>
  68397. <![CDATA[byte array to Hex String
  68398. @param ba
  68399. @return string with HEX value of the key]]>
  68400. </doc>
  68401. </method>
  68402. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  68403. transient="false" volatile="false"
  68404. static="true" final="true" visibility="public"
  68405. deprecated="not deprecated">
  68406. </field>
  68407. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  68408. transient="false" volatile="false"
  68409. static="true" final="true" visibility="public"
  68410. deprecated="not deprecated">
  68411. </field>
  68412. <doc>
  68413. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  68414. </doc>
  68415. </class>
  68416. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  68417. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  68418. <class name="TokenCache" extends="java.lang.Object"
  68419. abstract="false"
  68420. static="false" final="false" visibility="public"
  68421. deprecated="not deprecated">
  68422. <constructor name="TokenCache"
  68423. static="false" final="false" visibility="public"
  68424. deprecated="not deprecated">
  68425. </constructor>
  68426. <method name="getSecretKey" return="byte[]"
  68427. abstract="false" native="false" synchronized="false"
  68428. static="true" final="false" visibility="public"
  68429. deprecated="not deprecated">
  68430. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68431. <param name="alias" type="org.apache.hadoop.io.Text"/>
  68432. <doc>
  68433. <![CDATA[auxiliary method to get user's secret keys..
  68434. @param alias
  68435. @return secret key from the storage]]>
  68436. </doc>
  68437. </method>
  68438. <method name="obtainTokensForNamenodes"
  68439. abstract="false" native="false" synchronized="false"
  68440. static="true" final="false" visibility="public"
  68441. deprecated="not deprecated">
  68442. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68443. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  68444. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68445. <exception name="IOException" type="java.io.IOException"/>
  68446. <doc>
  68447. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  68448. corresponding to the paths passed.
  68449. @param ps array of paths
  68450. @param conf configuration
  68451. @throws IOException]]>
  68452. </doc>
  68453. </method>
  68454. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  68455. abstract="false" native="false" synchronized="false"
  68456. static="true" final="false" visibility="public"
  68457. deprecated="not deprecated">
  68458. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68459. <param name="namenode" type="java.lang.String"/>
  68460. <doc>
  68461. <![CDATA[@param namenode
  68462. @return delegation token]]>
  68463. </doc>
  68464. </method>
  68465. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  68466. abstract="false" native="false" synchronized="false"
  68467. static="true" final="false" visibility="public"
  68468. deprecated="not deprecated">
  68469. <param name="jobTokenFile" type="java.lang.String"/>
  68470. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68471. <exception name="IOException" type="java.io.IOException"/>
  68472. <doc>
  68473. <![CDATA[load job token from a file
  68474. @param conf
  68475. @throws IOException]]>
  68476. </doc>
  68477. </method>
  68478. <method name="setJobToken"
  68479. abstract="false" native="false" synchronized="false"
  68480. static="true" final="false" visibility="public"
  68481. deprecated="not deprecated">
  68482. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  68483. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68484. <doc>
  68485. <![CDATA[store job token
  68486. @param t]]>
  68487. </doc>
  68488. </method>
  68489. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  68490. abstract="false" native="false" synchronized="false"
  68491. static="true" final="false" visibility="public"
  68492. deprecated="not deprecated">
  68493. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  68494. <doc>
  68495. <![CDATA[@return job token]]>
  68496. </doc>
  68497. </method>
  68498. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  68499. transient="false" volatile="false"
  68500. static="true" final="true" visibility="public"
  68501. deprecated="not deprecated">
  68502. <doc>
  68503. <![CDATA[file name used on HDFS for generated job token]]>
  68504. </doc>
  68505. </field>
  68506. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  68507. transient="false" volatile="false"
  68508. static="true" final="true" visibility="public"
  68509. deprecated="not deprecated">
  68510. <doc>
  68511. <![CDATA[conf setting for job tokens cache file name]]>
  68512. </doc>
  68513. </field>
  68514. <doc>
  68515. <![CDATA[This class provides user facing APIs for transferring secrets from
  68516. the job client to the tasks.
  68517. The secrets can be stored just before submission of jobs and read during
  68518. the task execution.]]>
  68519. </doc>
  68520. </class>
  68521. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  68522. </package>
  68523. <package name="org.apache.hadoop.mapreduce.security.token">
  68524. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  68525. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  68526. abstract="false"
  68527. static="false" final="false" visibility="public"
  68528. deprecated="not deprecated">
  68529. <constructor name="DelegationTokenRenewal"
  68530. static="false" final="false" visibility="public"
  68531. deprecated="not deprecated">
  68532. </constructor>
  68533. <method name="registerDelegationTokensForRenewal"
  68534. abstract="false" native="false" synchronized="true"
  68535. static="true" final="false" visibility="public"
  68536. deprecated="not deprecated">
  68537. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  68538. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  68539. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  68540. <exception name="IOException" type="java.io.IOException"/>
  68541. </method>
  68542. <method name="close"
  68543. abstract="false" native="false" synchronized="false"
  68544. static="true" final="false" visibility="public"
  68545. deprecated="not deprecated">
  68546. <doc>
  68547. <![CDATA[removing all tokens renewals]]>
  68548. </doc>
  68549. </method>
  68550. <method name="removeDelegationTokenRenewalForJob"
  68551. abstract="false" native="false" synchronized="false"
  68552. static="true" final="false" visibility="public"
  68553. deprecated="not deprecated">
  68554. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  68555. <doc>
  68556. <![CDATA[removing DT for completed jobs
  68557. @param jobId]]>
  68558. </doc>
  68559. </method>
  68560. <field name="SCHEME" type="java.lang.String"
  68561. transient="false" volatile="false"
  68562. static="true" final="true" visibility="public"
  68563. deprecated="not deprecated">
  68564. </field>
  68565. </class>
  68566. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  68567. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  68568. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  68569. abstract="false"
  68570. static="false" final="false" visibility="public"
  68571. deprecated="not deprecated">
  68572. <constructor name="JobTokenIdentifier"
  68573. static="false" final="false" visibility="public"
  68574. deprecated="not deprecated">
  68575. <doc>
  68576. <![CDATA[Default constructor]]>
  68577. </doc>
  68578. </constructor>
  68579. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  68580. static="false" final="false" visibility="public"
  68581. deprecated="not deprecated">
  68582. <doc>
  68583. <![CDATA[Create a job token identifier from a jobid
  68584. @param jobid the jobid to use]]>
  68585. </doc>
  68586. </constructor>
  68587. <method name="getKind" return="org.apache.hadoop.io.Text"
  68588. abstract="false" native="false" synchronized="false"
  68589. static="false" final="false" visibility="public"
  68590. deprecated="not deprecated">
  68591. <doc>
  68592. <![CDATA[{@inheritDoc}]]>
  68593. </doc>
  68594. </method>
  68595. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  68596. abstract="false" native="false" synchronized="false"
  68597. static="false" final="false" visibility="public"
  68598. deprecated="not deprecated">
  68599. <doc>
  68600. <![CDATA[{@inheritDoc}]]>
  68601. </doc>
  68602. </method>
  68603. <method name="getJobId" return="org.apache.hadoop.io.Text"
  68604. abstract="false" native="false" synchronized="false"
  68605. static="false" final="false" visibility="public"
  68606. deprecated="not deprecated">
  68607. <doc>
  68608. <![CDATA[Get the jobid
  68609. @return the jobid]]>
  68610. </doc>
  68611. </method>
  68612. <method name="readFields"
  68613. abstract="false" native="false" synchronized="false"
  68614. static="false" final="false" visibility="public"
  68615. deprecated="not deprecated">
  68616. <param name="in" type="java.io.DataInput"/>
  68617. <exception name="IOException" type="java.io.IOException"/>
  68618. <doc>
  68619. <![CDATA[{@inheritDoc}]]>
  68620. </doc>
  68621. </method>
  68622. <method name="write"
  68623. abstract="false" native="false" synchronized="false"
  68624. static="false" final="false" visibility="public"
  68625. deprecated="not deprecated">
  68626. <param name="out" type="java.io.DataOutput"/>
  68627. <exception name="IOException" type="java.io.IOException"/>
  68628. <doc>
  68629. <![CDATA[{@inheritDoc}]]>
  68630. </doc>
  68631. </method>
  68632. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  68633. transient="false" volatile="false"
  68634. static="true" final="true" visibility="public"
  68635. deprecated="not deprecated">
  68636. </field>
  68637. <doc>
  68638. <![CDATA[The token identifier for job token]]>
  68639. </doc>
  68640. </class>
  68641. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  68642. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  68643. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  68644. abstract="false"
  68645. static="true" final="false" visibility="public"
  68646. deprecated="not deprecated">
  68647. <constructor name="JobTokenIdentifier.Renewer"
  68648. static="false" final="false" visibility="public"
  68649. deprecated="not deprecated">
  68650. </constructor>
  68651. <method name="getKind" return="org.apache.hadoop.io.Text"
  68652. abstract="false" native="false" synchronized="false"
  68653. static="false" final="false" visibility="protected"
  68654. deprecated="not deprecated">
  68655. </method>
  68656. </class>
  68657. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  68658. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  68659. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  68660. abstract="false"
  68661. static="false" final="false" visibility="public"
  68662. deprecated="not deprecated">
  68663. <constructor name="JobTokenSecretManager"
  68664. static="false" final="false" visibility="public"
  68665. deprecated="not deprecated">
  68666. <doc>
  68667. <![CDATA[Default constructor]]>
  68668. </doc>
  68669. </constructor>
  68670. <method name="createSecretKey" return="javax.crypto.SecretKey"
  68671. abstract="false" native="false" synchronized="false"
  68672. static="true" final="false" visibility="public"
  68673. deprecated="not deprecated">
  68674. <param name="key" type="byte[]"/>
  68675. <doc>
  68676. <![CDATA[Convert the byte[] to a secret key
  68677. @param key the byte[] to create the secret key from
  68678. @return the secret key]]>
  68679. </doc>
  68680. </method>
  68681. <method name="computeHash" return="byte[]"
  68682. abstract="false" native="false" synchronized="false"
  68683. static="true" final="false" visibility="public"
  68684. deprecated="not deprecated">
  68685. <param name="msg" type="byte[]"/>
  68686. <param name="key" type="javax.crypto.SecretKey"/>
  68687. <doc>
  68688. <![CDATA[Compute the HMAC hash of the message using the key
  68689. @param msg the message to hash
  68690. @param key the key to use
  68691. @return the computed hash]]>
  68692. </doc>
  68693. </method>
  68694. <method name="createPassword" return="byte[]"
  68695. abstract="false" native="false" synchronized="false"
  68696. static="false" final="false" visibility="public"
  68697. deprecated="not deprecated">
  68698. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  68699. <doc>
  68700. <![CDATA[Create a new password/secret for the given job token identifier.
  68701. @param identifier the job token identifier
  68702. @return token password/secret]]>
  68703. </doc>
  68704. </method>
  68705. <method name="addTokenForJob"
  68706. abstract="false" native="false" synchronized="false"
  68707. static="false" final="false" visibility="public"
  68708. deprecated="not deprecated">
  68709. <param name="jobId" type="java.lang.String"/>
  68710. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  68711. <doc>
  68712. <![CDATA[Add the job token of a job to cache
  68713. @param jobId the job that owns the token
  68714. @param token the job token]]>
  68715. </doc>
  68716. </method>
  68717. <method name="removeTokenForJob"
  68718. abstract="false" native="false" synchronized="false"
  68719. static="false" final="false" visibility="public"
  68720. deprecated="not deprecated">
  68721. <param name="jobId" type="java.lang.String"/>
  68722. <doc>
  68723. <![CDATA[Remove the cached job token of a job from cache
  68724. @param jobId the job whose token is to be removed]]>
  68725. </doc>
  68726. </method>
  68727. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  68728. abstract="false" native="false" synchronized="false"
  68729. static="false" final="false" visibility="public"
  68730. deprecated="not deprecated">
  68731. <param name="jobId" type="java.lang.String"/>
  68732. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  68733. <doc>
  68734. <![CDATA[Look up the token password/secret for the given jobId.
  68735. @param jobId the jobId to look up
  68736. @return token password/secret as SecretKey
  68737. @throws InvalidToken]]>
  68738. </doc>
  68739. </method>
  68740. <method name="retrievePassword" return="byte[]"
  68741. abstract="false" native="false" synchronized="false"
  68742. static="false" final="false" visibility="public"
  68743. deprecated="not deprecated">
  68744. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  68745. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  68746. <doc>
  68747. <![CDATA[Look up the token password/secret for the given job token identifier.
  68748. @param identifier the job token identifier to look up
  68749. @return token password/secret as byte[]
  68750. @throws InvalidToken]]>
  68751. </doc>
  68752. </method>
  68753. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  68754. abstract="false" native="false" synchronized="false"
  68755. static="false" final="false" visibility="public"
  68756. deprecated="not deprecated">
  68757. <doc>
  68758. <![CDATA[Create an empty job token identifier
  68759. @return a newly created empty job token identifier]]>
  68760. </doc>
  68761. </method>
  68762. <doc>
  68763. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  68764. </doc>
  68765. </class>
  68766. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  68767. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  68768. <class name="JobTokenSelector" extends="java.lang.Object"
  68769. abstract="false"
  68770. static="false" final="false" visibility="public"
  68771. deprecated="not deprecated">
  68772. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  68773. <constructor name="JobTokenSelector"
  68774. static="false" final="false" visibility="public"
  68775. deprecated="not deprecated">
  68776. </constructor>
  68777. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  68778. abstract="false" native="false" synchronized="false"
  68779. static="false" final="false" visibility="public"
  68780. deprecated="not deprecated">
  68781. <param name="service" type="org.apache.hadoop.io.Text"/>
  68782. <param name="tokens" type="java.util.Collection"/>
  68783. </method>
  68784. <doc>
  68785. <![CDATA[Look through tokens to find the first job token that matches the service
  68786. and return it.]]>
  68787. </doc>
  68788. </class>
  68789. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  68790. </package>
  68791. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  68792. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  68793. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  68794. abstract="false"
  68795. static="false" final="false" visibility="public"
  68796. deprecated="not deprecated">
  68797. <constructor name="DelegationTokenIdentifier"
  68798. static="false" final="false" visibility="public"
  68799. deprecated="not deprecated">
  68800. <doc>
  68801. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  68802. </doc>
  68803. </constructor>
  68804. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  68805. static="false" final="false" visibility="public"
  68806. deprecated="not deprecated">
  68807. <doc>
  68808. <![CDATA[Create a new delegation token identifier
  68809. @param owner the effective username of the token owner
  68810. @param renewer the username of the renewer
  68811. @param realUser the real username of the token owner]]>
  68812. </doc>
  68813. </constructor>
  68814. <method name="getKind" return="org.apache.hadoop.io.Text"
  68815. abstract="false" native="false" synchronized="false"
  68816. static="false" final="false" visibility="public"
  68817. deprecated="not deprecated">
  68818. </method>
  68819. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  68820. transient="false" volatile="false"
  68821. static="true" final="true" visibility="public"
  68822. deprecated="not deprecated">
  68823. </field>
  68824. <doc>
  68825. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  68826. </doc>
  68827. </class>
  68828. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  68829. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  68830. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  68831. abstract="false"
  68832. static="false" final="false" visibility="public"
  68833. deprecated="not deprecated">
  68834. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  68835. static="false" final="false" visibility="public"
  68836. deprecated="not deprecated">
  68837. <doc>
  68838. <![CDATA[Create a secret manager
  68839. @param delegationKeyUpdateInterval the number of seconds for rolling new
  68840. secret keys.
  68841. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  68842. tokens
  68843. @param delegationTokenRenewInterval how often the tokens must be renewed
  68844. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  68845. for expired tokens]]>
  68846. </doc>
  68847. </constructor>
  68848. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  68849. abstract="false" native="false" synchronized="false"
  68850. static="false" final="false" visibility="public"
  68851. deprecated="not deprecated">
  68852. </method>
  68853. <doc>
  68854. <![CDATA[A MapReduce specific delegation token secret manager.
  68855. The secret manager is responsible for generating and accepting the password
  68856. for each token.]]>
  68857. </doc>
  68858. </class>
  68859. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  68860. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  68861. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  68862. abstract="false"
  68863. static="false" final="false" visibility="public"
  68864. deprecated="not deprecated">
  68865. <constructor name="DelegationTokenSelector"
  68866. static="false" final="false" visibility="public"
  68867. deprecated="not deprecated">
  68868. </constructor>
  68869. <doc>
  68870. <![CDATA[A delegation token that is specialized for MapReduce]]>
  68871. </doc>
  68872. </class>
  68873. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  68874. </package>
  68875. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  68876. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  68877. <class name="TaskTracker" extends="java.lang.Object"
  68878. abstract="false"
  68879. static="false" final="false" visibility="public"
  68880. deprecated="not deprecated">
  68881. <constructor name="TaskTracker" type="java.lang.String"
  68882. static="false" final="false" visibility="public"
  68883. deprecated="not deprecated">
  68884. <doc>
  68885. <![CDATA[Create a new {@link TaskTracker}.
  68886. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  68887. </doc>
  68888. </constructor>
  68889. <method name="getTrackerName" return="java.lang.String"
  68890. abstract="false" native="false" synchronized="false"
  68891. static="false" final="false" visibility="public"
  68892. deprecated="not deprecated">
  68893. <doc>
  68894. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  68895. @return the unique identifier for the <code>TaskTracker</code>]]>
  68896. </doc>
  68897. </method>
  68898. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  68899. abstract="false" native="false" synchronized="false"
  68900. static="false" final="false" visibility="public"
  68901. deprecated="not deprecated">
  68902. <doc>
  68903. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  68904. @return the current <code>TaskTrackerStatus</code> of the
  68905. <code>TaskTracker</code>]]>
  68906. </doc>
  68907. </method>
  68908. <method name="setStatus"
  68909. abstract="false" native="false" synchronized="false"
  68910. static="false" final="false" visibility="public"
  68911. deprecated="not deprecated">
  68912. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  68913. <doc>
  68914. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  68915. @param status the current <code>TaskTrackerStatus</code> of the
  68916. <code>TaskTracker</code>]]>
  68917. </doc>
  68918. </method>
  68919. <method name="getAvailableSlots" return="int"
  68920. abstract="false" native="false" synchronized="false"
  68921. static="false" final="false" visibility="public"
  68922. deprecated="not deprecated">
  68923. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  68924. <doc>
  68925. <![CDATA[Get the number of currently available slots on this tasktracker for the
  68926. given type of the task.
  68927. @param taskType the {@link TaskType} to check for number of available slots
  68928. @return the number of currently available slots for the given
  68929. <code>taskType</code>]]>
  68930. </doc>
  68931. </method>
  68932. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  68933. abstract="false" native="false" synchronized="false"
  68934. static="false" final="false" visibility="public"
  68935. deprecated="not deprecated">
  68936. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  68937. <doc>
  68938. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  68939. @param taskType {@link TaskType} of the task
  68940. @return the task for which the fallow slot(s) are held,
  68941. <code>null</code> if there are no fallow slots]]>
  68942. </doc>
  68943. </method>
  68944. <method name="reserveSlots"
  68945. abstract="false" native="false" synchronized="false"
  68946. static="false" final="false" visibility="public"
  68947. deprecated="not deprecated">
  68948. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  68949. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  68950. <param name="numSlots" type="int"/>
  68951. <doc>
  68952. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  68953. @param taskType {@link TaskType} of the task
  68954. @param job the job for which slots on this <code>TaskTracker</code>
  68955. are to be reserved
  68956. @param numSlots number of slots to be reserved]]>
  68957. </doc>
  68958. </method>
  68959. <method name="unreserveSlots"
  68960. abstract="false" native="false" synchronized="false"
  68961. static="false" final="false" visibility="public"
  68962. deprecated="not deprecated">
  68963. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  68964. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  68965. <doc>
  68966. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  68967. <code>taskType</code>.
  68968. @param taskType {@link TaskType} of the task
  68969. @param job job whose slots are being un-reserved]]>
  68970. </doc>
  68971. </method>
  68972. <method name="cancelAllReservations"
  68973. abstract="false" native="false" synchronized="false"
  68974. static="false" final="false" visibility="public"
  68975. deprecated="not deprecated">
  68976. <doc>
  68977. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  68978. by the JobTracker.
  68979. The method assumes that the lock on the {@link JobTracker} is obtained
  68980. by the caller.]]>
  68981. </doc>
  68982. </method>
  68983. <doc>
  68984. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  68985. the {@link JobTracker}.]]>
  68986. </doc>
  68987. </class>
  68988. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  68989. </package>
  68990. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  68991. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  68992. <class name="JVMInfo" extends="java.lang.Object"
  68993. abstract="false"
  68994. static="false" final="false" visibility="public"
  68995. deprecated="not deprecated">
  68996. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  68997. static="false" final="false" visibility="public"
  68998. deprecated="not deprecated">
  68999. </constructor>
  69000. <method name="getLogLocation" return="java.io.File"
  69001. abstract="false" native="false" synchronized="false"
  69002. static="false" final="false" visibility="public"
  69003. deprecated="not deprecated">
  69004. </method>
  69005. <method name="getAllAttempts" return="java.util.List"
  69006. abstract="false" native="false" synchronized="false"
  69007. static="false" final="false" visibility="public"
  69008. deprecated="not deprecated">
  69009. </method>
  69010. </class>
  69011. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  69012. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  69013. <class name="Localizer" extends="java.lang.Object"
  69014. abstract="false"
  69015. static="false" final="false" visibility="public"
  69016. deprecated="not deprecated">
  69017. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  69018. static="false" final="false" visibility="public"
  69019. deprecated="not deprecated">
  69020. <doc>
  69021. <![CDATA[Create a Localizer instance
  69022. @param fileSys
  69023. @param lDirs]]>
  69024. </doc>
  69025. </constructor>
  69026. <method name="initializeUserDirs"
  69027. abstract="false" native="false" synchronized="false"
  69028. static="false" final="false" visibility="public"
  69029. deprecated="not deprecated">
  69030. <param name="user" type="java.lang.String"/>
  69031. <exception name="IOException" type="java.io.IOException"/>
  69032. <doc>
  69033. <![CDATA[Initialize the local directories for a particular user on this TT. This
  69034. involves creation and setting permissions of the following directories
  69035. <ul>
  69036. <li>$mapred.local.dir/taskTracker/$user</li>
  69037. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  69038. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  69039. </ul>
  69040. @param user
  69041. @throws IOException]]>
  69042. </doc>
  69043. </method>
  69044. <method name="initializeAttemptDirs"
  69045. abstract="false" native="false" synchronized="false"
  69046. static="false" final="false" visibility="public"
  69047. deprecated="not deprecated">
  69048. <param name="user" type="java.lang.String"/>
  69049. <param name="jobId" type="java.lang.String"/>
  69050. <param name="attemptId" type="java.lang.String"/>
  69051. <exception name="IOException" type="java.io.IOException"/>
  69052. <doc>
  69053. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  69054. LinuxTaskController is in use, child might wish to balance load across
  69055. disks but cannot itself create attempt directory because of the fact that
  69056. job directory is writable only by the TT.
  69057. @param user
  69058. @param jobId
  69059. @param attemptId
  69060. @throws IOException]]>
  69061. </doc>
  69062. </method>
  69063. <doc>
  69064. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  69065. </doc>
  69066. </class>
  69067. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  69068. </package>
  69069. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  69070. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  69071. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  69072. abstract="false"
  69073. static="false" final="false" visibility="public"
  69074. deprecated="not deprecated">
  69075. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  69076. static="false" final="false" visibility="public"
  69077. deprecated="not deprecated">
  69078. <doc>
  69079. <![CDATA[Create the event to delete job log directory.
  69080. @param jobid
  69081. The {@link JobID} whose logs should be deleted.]]>
  69082. </doc>
  69083. </constructor>
  69084. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  69085. abstract="false" native="false" synchronized="false"
  69086. static="false" final="false" visibility="public"
  69087. deprecated="not deprecated">
  69088. <doc>
  69089. <![CDATA[Get the jobid.
  69090. @return object of {@link JobID}]]>
  69091. </doc>
  69092. </method>
  69093. <doc>
  69094. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  69095. </doc>
  69096. </class>
  69097. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  69098. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  69099. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  69100. abstract="false"
  69101. static="false" final="false" visibility="public"
  69102. deprecated="not deprecated">
  69103. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  69104. static="false" final="false" visibility="public"
  69105. deprecated="not deprecated">
  69106. <doc>
  69107. <![CDATA[Create the event for job completion.
  69108. @param jobid
  69109. The completed {@link JobID} .
  69110. @param jobCompletionTime
  69111. The job completion time.
  69112. @param retainHours
  69113. The number of hours for which the job logs should be retained]]>
  69114. </doc>
  69115. </constructor>
  69116. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  69117. abstract="false" native="false" synchronized="false"
  69118. static="false" final="false" visibility="public"
  69119. deprecated="not deprecated">
  69120. <doc>
  69121. <![CDATA[Get the job id.
  69122. @return object of {@link JobID}]]>
  69123. </doc>
  69124. </method>
  69125. <method name="getJobCompletionTime" return="long"
  69126. abstract="false" native="false" synchronized="false"
  69127. static="false" final="false" visibility="public"
  69128. deprecated="not deprecated">
  69129. <doc>
  69130. <![CDATA[Get the job completion time-stamp in milli-seconds.
  69131. @return job completion time.]]>
  69132. </doc>
  69133. </method>
  69134. <method name="getRetainHours" return="int"
  69135. abstract="false" native="false" synchronized="false"
  69136. static="false" final="false" visibility="public"
  69137. deprecated="not deprecated">
  69138. <doc>
  69139. <![CDATA[Get the number of hours for which job logs should be retained.
  69140. @return retainHours]]>
  69141. </doc>
  69142. </method>
  69143. <doc>
  69144. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  69145. </doc>
  69146. </class>
  69147. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  69148. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  69149. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  69150. abstract="false"
  69151. static="false" final="false" visibility="public"
  69152. deprecated="not deprecated">
  69153. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  69154. static="false" final="false" visibility="public"
  69155. deprecated="not deprecated">
  69156. <doc>
  69157. <![CDATA[Create the event to inform the job has started.
  69158. @param jobid
  69159. The {@link JobID} which started]]>
  69160. </doc>
  69161. </constructor>
  69162. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  69163. abstract="false" native="false" synchronized="false"
  69164. static="false" final="false" visibility="public"
  69165. deprecated="not deprecated">
  69166. <doc>
  69167. <![CDATA[Get the job id.
  69168. @return object of {@link JobID}]]>
  69169. </doc>
  69170. </method>
  69171. <doc>
  69172. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  69173. </doc>
  69174. </class>
  69175. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  69176. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  69177. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  69178. abstract="false"
  69179. static="false" final="false" visibility="public"
  69180. deprecated="not deprecated">
  69181. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  69182. static="false" final="false" visibility="public"
  69183. deprecated="not deprecated">
  69184. <doc>
  69185. <![CDATA[Create the event to inform that the jvm has finished.
  69186. @param jvmInfo
  69187. The finished {@link JVMInfo}]]>
  69188. </doc>
  69189. </constructor>
  69190. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  69191. abstract="false" native="false" synchronized="false"
  69192. static="false" final="false" visibility="public"
  69193. deprecated="not deprecated">
  69194. <doc>
  69195. <![CDATA[Get the jvm info.
  69196. @return object of {@link JVMInfo}]]>
  69197. </doc>
  69198. </method>
  69199. <doc>
  69200. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  69201. </doc>
  69202. </class>
  69203. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  69204. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  69205. <class name="UserLogEvent" extends="java.lang.Object"
  69206. abstract="true"
  69207. static="false" final="false" visibility="public"
  69208. deprecated="not deprecated">
  69209. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69210. static="false" final="false" visibility="protected"
  69211. deprecated="not deprecated">
  69212. </constructor>
  69213. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69214. abstract="false" native="false" synchronized="false"
  69215. static="false" final="false" visibility="public"
  69216. deprecated="not deprecated">
  69217. <doc>
  69218. <![CDATA[Return the {@link EventType}.
  69219. @return the {@link EventType}.]]>
  69220. </doc>
  69221. </method>
  69222. <doc>
  69223. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  69224. {@link UserLogManager} to inform about an event.]]>
  69225. </doc>
  69226. </class>
  69227. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  69228. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  69229. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  69230. abstract="false"
  69231. static="true" final="true" visibility="public"
  69232. deprecated="not deprecated">
  69233. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  69234. abstract="false" native="false" synchronized="false"
  69235. static="true" final="false" visibility="public"
  69236. deprecated="not deprecated">
  69237. </method>
  69238. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69239. abstract="false" native="false" synchronized="false"
  69240. static="true" final="false" visibility="public"
  69241. deprecated="not deprecated">
  69242. <param name="name" type="java.lang.String"/>
  69243. </method>
  69244. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69245. transient="false" volatile="false"
  69246. static="true" final="true" visibility="public"
  69247. deprecated="not deprecated">
  69248. </field>
  69249. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69250. transient="false" volatile="false"
  69251. static="true" final="true" visibility="public"
  69252. deprecated="not deprecated">
  69253. </field>
  69254. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69255. transient="false" volatile="false"
  69256. static="true" final="true" visibility="public"
  69257. deprecated="not deprecated">
  69258. </field>
  69259. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  69260. transient="false" volatile="false"
  69261. static="true" final="true" visibility="public"
  69262. deprecated="not deprecated">
  69263. </field>
  69264. </class>
  69265. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  69266. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  69267. <class name="UserLogManager" extends="java.lang.Object"
  69268. abstract="false"
  69269. static="false" final="false" visibility="public"
  69270. deprecated="not deprecated">
  69271. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  69272. static="false" final="false" visibility="public"
  69273. deprecated="not deprecated">
  69274. <exception name="IOException" type="java.io.IOException"/>
  69275. <doc>
  69276. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  69277. It should be explicitly started using {@link #start()} to start functioning
  69278. @param conf The {@link Configuration}
  69279. @param taskController The task controller to delete the log files
  69280. @throws IOException]]>
  69281. </doc>
  69282. </constructor>
  69283. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  69284. static="false" final="false" visibility="public"
  69285. deprecated="not deprecated">
  69286. <exception name="IOException" type="java.io.IOException"/>
  69287. <doc>
  69288. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  69289. This constructor is there mainly for unit tests.
  69290. @param conf The {@link Configuration}
  69291. @throws IOException]]>
  69292. </doc>
  69293. </constructor>
  69294. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  69295. abstract="false" native="false" synchronized="false"
  69296. static="false" final="false" visibility="public"
  69297. deprecated="not deprecated">
  69298. <doc>
  69299. <![CDATA[Get the taskController for deleting logs.
  69300. @return the TaskController]]>
  69301. </doc>
  69302. </method>
  69303. <method name="start"
  69304. abstract="false" native="false" synchronized="false"
  69305. static="false" final="false" visibility="public"
  69306. deprecated="not deprecated">
  69307. <doc>
  69308. <![CDATA[Starts managing the logs]]>
  69309. </doc>
  69310. </method>
  69311. <method name="monitor"
  69312. abstract="false" native="false" synchronized="false"
  69313. static="false" final="false" visibility="protected"
  69314. deprecated="not deprecated">
  69315. <exception name="Exception" type="java.lang.Exception"/>
  69316. </method>
  69317. <method name="processEvent"
  69318. abstract="false" native="false" synchronized="false"
  69319. static="false" final="false" visibility="protected"
  69320. deprecated="not deprecated">
  69321. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  69322. <exception name="IOException" type="java.io.IOException"/>
  69323. </method>
  69324. <method name="clearOldUserLogs"
  69325. abstract="false" native="false" synchronized="false"
  69326. static="false" final="false" visibility="public"
  69327. deprecated="not deprecated">
  69328. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69329. <exception name="IOException" type="java.io.IOException"/>
  69330. <doc>
  69331. <![CDATA[Called during TaskTracker restart/re-init.
  69332. @param conf
  69333. TT's conf
  69334. @throws IOException]]>
  69335. </doc>
  69336. </method>
  69337. <method name="addLogEvent"
  69338. abstract="false" native="false" synchronized="false"
  69339. static="false" final="false" visibility="public"
  69340. deprecated="not deprecated">
  69341. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  69342. <doc>
  69343. <![CDATA[Add the {@link UserLogEvent} for processing.
  69344. @param event]]>
  69345. </doc>
  69346. </method>
  69347. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  69348. abstract="false" native="false" synchronized="false"
  69349. static="false" final="false" visibility="public"
  69350. deprecated="not deprecated">
  69351. <doc>
  69352. <![CDATA[Get {@link UserLogCleaner}.
  69353. This method is called only from unit tests.
  69354. @return {@link UserLogCleaner}]]>
  69355. </doc>
  69356. </method>
  69357. <doc>
  69358. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  69359. </doc>
  69360. </class>
  69361. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  69362. </package>
  69363. <package name="org.apache.hadoop.mapreduce.split">
  69364. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  69365. <class name="JobSplit" extends="java.lang.Object"
  69366. abstract="false"
  69367. static="false" final="false" visibility="public"
  69368. deprecated="not deprecated">
  69369. <constructor name="JobSplit"
  69370. static="false" final="false" visibility="public"
  69371. deprecated="not deprecated">
  69372. </constructor>
  69373. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  69374. transient="false" volatile="false"
  69375. static="true" final="true" visibility="public"
  69376. deprecated="not deprecated">
  69377. </field>
  69378. <doc>
  69379. <![CDATA[This class groups the fundamental classes associated with
  69380. reading/writing splits. The split information is divided into
  69381. two parts based on the consumer of the information. The two
  69382. parts are the split meta information, and the raw split
  69383. information. The first part is consumed by the JobTracker to
  69384. create the tasks' locality data structures. The second part is
  69385. used by the maps at runtime to know what to do!
  69386. These pieces of information are written to two separate files.
  69387. The metainformation file is slurped by the JobTracker during
  69388. job initialization. A map task gets the meta information during
  69389. the launch and it reads the raw split bytes directly from the
  69390. file.]]>
  69391. </doc>
  69392. </class>
  69393. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  69394. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  69395. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  69396. abstract="false"
  69397. static="true" final="false" visibility="public"
  69398. deprecated="not deprecated">
  69399. <implements name="org.apache.hadoop.io.Writable"/>
  69400. <constructor name="JobSplit.SplitMetaInfo"
  69401. static="false" final="false" visibility="public"
  69402. deprecated="not deprecated">
  69403. </constructor>
  69404. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  69405. static="false" final="false" visibility="public"
  69406. deprecated="not deprecated">
  69407. </constructor>
  69408. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  69409. static="false" final="false" visibility="public"
  69410. deprecated="not deprecated">
  69411. <exception name="IOException" type="java.io.IOException"/>
  69412. </constructor>
  69413. <method name="getLocations" return="java.lang.String[]"
  69414. abstract="false" native="false" synchronized="false"
  69415. static="false" final="false" visibility="public"
  69416. deprecated="not deprecated">
  69417. </method>
  69418. <method name="getStartOffset" return="long"
  69419. abstract="false" native="false" synchronized="false"
  69420. static="false" final="false" visibility="public"
  69421. deprecated="not deprecated">
  69422. </method>
  69423. <method name="getInputDataLength" return="long"
  69424. abstract="false" native="false" synchronized="false"
  69425. static="false" final="false" visibility="public"
  69426. deprecated="not deprecated">
  69427. </method>
  69428. <method name="setInputDataLocations"
  69429. abstract="false" native="false" synchronized="false"
  69430. static="false" final="false" visibility="public"
  69431. deprecated="not deprecated">
  69432. <param name="locations" type="java.lang.String[]"/>
  69433. </method>
  69434. <method name="setInputDataLength"
  69435. abstract="false" native="false" synchronized="false"
  69436. static="false" final="false" visibility="public"
  69437. deprecated="not deprecated">
  69438. <param name="length" type="long"/>
  69439. </method>
  69440. <method name="readFields"
  69441. abstract="false" native="false" synchronized="false"
  69442. static="false" final="false" visibility="public"
  69443. deprecated="not deprecated">
  69444. <param name="in" type="java.io.DataInput"/>
  69445. <exception name="IOException" type="java.io.IOException"/>
  69446. </method>
  69447. <method name="write"
  69448. abstract="false" native="false" synchronized="false"
  69449. static="false" final="false" visibility="public"
  69450. deprecated="not deprecated">
  69451. <param name="out" type="java.io.DataOutput"/>
  69452. <exception name="IOException" type="java.io.IOException"/>
  69453. </method>
  69454. <method name="toString" return="java.lang.String"
  69455. abstract="false" native="false" synchronized="false"
  69456. static="false" final="false" visibility="public"
  69457. deprecated="not deprecated">
  69458. </method>
  69459. <doc>
  69460. <![CDATA[This represents the meta information about the task split.
  69461. The main fields are
  69462. - start offset in actual split
  69463. - data length that will be processed in this split
  69464. - hosts on which this split is local]]>
  69465. </doc>
  69466. </class>
  69467. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  69468. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  69469. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  69470. abstract="false"
  69471. static="true" final="false" visibility="public"
  69472. deprecated="not deprecated">
  69473. <constructor name="JobSplit.TaskSplitIndex"
  69474. static="false" final="false" visibility="public"
  69475. deprecated="not deprecated">
  69476. </constructor>
  69477. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  69478. static="false" final="false" visibility="public"
  69479. deprecated="not deprecated">
  69480. </constructor>
  69481. <method name="getStartOffset" return="long"
  69482. abstract="false" native="false" synchronized="false"
  69483. static="false" final="false" visibility="public"
  69484. deprecated="not deprecated">
  69485. </method>
  69486. <method name="getSplitLocation" return="java.lang.String"
  69487. abstract="false" native="false" synchronized="false"
  69488. static="false" final="false" visibility="public"
  69489. deprecated="not deprecated">
  69490. </method>
  69491. <method name="readFields"
  69492. abstract="false" native="false" synchronized="false"
  69493. static="false" final="false" visibility="public"
  69494. deprecated="not deprecated">
  69495. <param name="in" type="java.io.DataInput"/>
  69496. <exception name="IOException" type="java.io.IOException"/>
  69497. </method>
  69498. <method name="write"
  69499. abstract="false" native="false" synchronized="false"
  69500. static="false" final="false" visibility="public"
  69501. deprecated="not deprecated">
  69502. <param name="out" type="java.io.DataOutput"/>
  69503. <exception name="IOException" type="java.io.IOException"/>
  69504. </method>
  69505. <doc>
  69506. <![CDATA[This represents the meta information about the task split that the
  69507. task gets]]>
  69508. </doc>
  69509. </class>
  69510. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  69511. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  69512. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  69513. abstract="false"
  69514. static="true" final="false" visibility="public"
  69515. deprecated="not deprecated">
  69516. <constructor name="JobSplit.TaskSplitMetaInfo"
  69517. static="false" final="false" visibility="public"
  69518. deprecated="not deprecated">
  69519. </constructor>
  69520. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  69521. static="false" final="false" visibility="public"
  69522. deprecated="not deprecated">
  69523. </constructor>
  69524. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  69525. static="false" final="false" visibility="public"
  69526. deprecated="not deprecated">
  69527. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69528. <exception name="IOException" type="java.io.IOException"/>
  69529. </constructor>
  69530. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  69531. static="false" final="false" visibility="public"
  69532. deprecated="not deprecated">
  69533. </constructor>
  69534. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  69535. abstract="false" native="false" synchronized="false"
  69536. static="false" final="false" visibility="public"
  69537. deprecated="not deprecated">
  69538. </method>
  69539. <method name="getSplitLocation" return="java.lang.String"
  69540. abstract="false" native="false" synchronized="false"
  69541. static="false" final="false" visibility="public"
  69542. deprecated="not deprecated">
  69543. </method>
  69544. <method name="getInputDataLength" return="long"
  69545. abstract="false" native="false" synchronized="false"
  69546. static="false" final="false" visibility="public"
  69547. deprecated="not deprecated">
  69548. </method>
  69549. <method name="getLocations" return="java.lang.String[]"
  69550. abstract="false" native="false" synchronized="false"
  69551. static="false" final="false" visibility="public"
  69552. deprecated="not deprecated">
  69553. </method>
  69554. <method name="getStartOffset" return="long"
  69555. abstract="false" native="false" synchronized="false"
  69556. static="false" final="false" visibility="public"
  69557. deprecated="not deprecated">
  69558. </method>
  69559. <doc>
  69560. <![CDATA[This represents the meta information about the task split that the
  69561. JobTracker creates]]>
  69562. </doc>
  69563. </class>
  69564. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  69565. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  69566. <class name="JobSplitWriter" extends="java.lang.Object"
  69567. abstract="false"
  69568. static="false" final="false" visibility="public"
  69569. deprecated="not deprecated">
  69570. <constructor name="JobSplitWriter"
  69571. static="false" final="false" visibility="public"
  69572. deprecated="not deprecated">
  69573. </constructor>
  69574. <method name="createSplitFiles"
  69575. abstract="false" native="false" synchronized="false"
  69576. static="true" final="false" visibility="public"
  69577. deprecated="not deprecated">
  69578. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  69579. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69580. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69581. <param name="splits" type="java.util.List"/>
  69582. <exception name="IOException" type="java.io.IOException"/>
  69583. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69584. </method>
  69585. <method name="createSplitFiles"
  69586. abstract="false" native="false" synchronized="false"
  69587. static="true" final="false" visibility="public"
  69588. deprecated="not deprecated">
  69589. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  69590. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69591. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69592. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  69593. <exception name="IOException" type="java.io.IOException"/>
  69594. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69595. </method>
  69596. <method name="createSplitFiles"
  69597. abstract="false" native="false" synchronized="false"
  69598. static="true" final="false" visibility="public"
  69599. deprecated="not deprecated">
  69600. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  69601. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69602. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69603. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  69604. <exception name="IOException" type="java.io.IOException"/>
  69605. </method>
  69606. <doc>
  69607. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  69608. and the raw bytes parts)]]>
  69609. </doc>
  69610. </class>
  69611. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  69612. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  69613. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  69614. abstract="false"
  69615. static="false" final="false" visibility="public"
  69616. deprecated="not deprecated">
  69617. <constructor name="SplitMetaInfoReader"
  69618. static="false" final="false" visibility="public"
  69619. deprecated="not deprecated">
  69620. </constructor>
  69621. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  69622. abstract="false" native="false" synchronized="false"
  69623. static="true" final="false" visibility="public"
  69624. deprecated="not deprecated">
  69625. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  69626. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  69627. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69628. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  69629. <exception name="IOException" type="java.io.IOException"/>
  69630. </method>
  69631. <doc>
  69632. <![CDATA[A (internal) utility that reads the split meta info and creates
  69633. split meta info objects]]>
  69634. </doc>
  69635. </class>
  69636. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  69637. </package>
  69638. <package name="org.apache.hadoop.tools">
  69639. <!-- start class org.apache.hadoop.tools.DistCh -->
  69640. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  69641. abstract="false"
  69642. static="false" final="false" visibility="public"
  69643. deprecated="not deprecated">
  69644. <method name="run" return="int"
  69645. abstract="false" native="false" synchronized="false"
  69646. static="false" final="false" visibility="public"
  69647. deprecated="not deprecated">
  69648. <param name="args" type="java.lang.String[]"/>
  69649. <exception name="Exception" type="java.lang.Exception"/>
  69650. <doc>
  69651. <![CDATA[This is the main driver for recursively changing files properties.]]>
  69652. </doc>
  69653. </method>
  69654. <method name="main"
  69655. abstract="false" native="false" synchronized="false"
  69656. static="true" final="false" visibility="public"
  69657. deprecated="not deprecated">
  69658. <param name="args" type="java.lang.String[]"/>
  69659. <exception name="Exception" type="java.lang.Exception"/>
  69660. </method>
  69661. <doc>
  69662. <![CDATA[A Map-reduce program to recursively change files properties
  69663. such as owner, group and permission.]]>
  69664. </doc>
  69665. </class>
  69666. <!-- end class org.apache.hadoop.tools.DistCh -->
  69667. <!-- start class org.apache.hadoop.tools.DistCp -->
  69668. <class name="DistCp" extends="java.lang.Object"
  69669. abstract="false"
  69670. static="false" final="false" visibility="public"
  69671. deprecated="not deprecated">
  69672. <implements name="org.apache.hadoop.util.Tool"/>
  69673. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  69674. static="false" final="false" visibility="public"
  69675. deprecated="not deprecated">
  69676. </constructor>
  69677. <method name="setConf"
  69678. abstract="false" native="false" synchronized="false"
  69679. static="false" final="false" visibility="public"
  69680. deprecated="not deprecated">
  69681. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69682. </method>
  69683. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69684. abstract="false" native="false" synchronized="false"
  69685. static="false" final="false" visibility="public"
  69686. deprecated="not deprecated">
  69687. </method>
  69688. <method name="copy"
  69689. abstract="false" native="false" synchronized="false"
  69690. static="true" final="false" visibility="public"
  69691. deprecated="not deprecated">
  69692. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69693. <param name="srcPath" type="java.lang.String"/>
  69694. <param name="destPath" type="java.lang.String"/>
  69695. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  69696. <param name="srcAsList" type="boolean"/>
  69697. <param name="ignoreReadFailures" type="boolean"/>
  69698. <exception name="IOException" type="java.io.IOException"/>
  69699. </method>
  69700. <method name="run" return="int"
  69701. abstract="false" native="false" synchronized="false"
  69702. static="false" final="false" visibility="public"
  69703. deprecated="not deprecated">
  69704. <param name="args" type="java.lang.String[]"/>
  69705. <doc>
  69706. <![CDATA[This is the main driver for recursively copying directories
  69707. across file systems. It takes at least two cmdline parameters. A source
  69708. URL and a destination URL. It then essentially does an "ls -lR" on the
  69709. source URL, and writes the output in a round-robin manner to all the map
  69710. input files. The mapper actually copies the files allotted to it. The
  69711. reduce is empty.]]>
  69712. </doc>
  69713. </method>
  69714. <method name="main"
  69715. abstract="false" native="false" synchronized="false"
  69716. static="true" final="false" visibility="public"
  69717. deprecated="not deprecated">
  69718. <param name="args" type="java.lang.String[]"/>
  69719. <exception name="Exception" type="java.lang.Exception"/>
  69720. </method>
  69721. <method name="getRandomId" return="java.lang.String"
  69722. abstract="false" native="false" synchronized="false"
  69723. static="true" final="false" visibility="public"
  69724. deprecated="not deprecated">
  69725. </method>
  69726. <field name="LOG" type="org.apache.commons.logging.Log"
  69727. transient="false" volatile="false"
  69728. static="true" final="true" visibility="public"
  69729. deprecated="not deprecated">
  69730. </field>
  69731. <doc>
  69732. <![CDATA[A Map-reduce program to recursively copy directories between
  69733. different file-systems.]]>
  69734. </doc>
  69735. </class>
  69736. <!-- end class org.apache.hadoop.tools.DistCp -->
  69737. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  69738. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  69739. abstract="false"
  69740. static="true" final="false" visibility="public"
  69741. deprecated="not deprecated">
  69742. <field name="ERROR_CODE" type="int"
  69743. transient="false" volatile="false"
  69744. static="true" final="true" visibility="public"
  69745. deprecated="not deprecated">
  69746. <doc>
  69747. <![CDATA[Error code for this exception]]>
  69748. </doc>
  69749. </field>
  69750. <doc>
  69751. <![CDATA[An exception class for duplicated source files.]]>
  69752. </doc>
  69753. </class>
  69754. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  69755. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  69756. <class name="HadoopArchives" extends="java.lang.Object"
  69757. abstract="false"
  69758. static="false" final="false" visibility="public"
  69759. deprecated="not deprecated">
  69760. <implements name="org.apache.hadoop.util.Tool"/>
  69761. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  69762. static="false" final="false" visibility="public"
  69763. deprecated="not deprecated">
  69764. </constructor>
  69765. <method name="setConf"
  69766. abstract="false" native="false" synchronized="false"
  69767. static="false" final="false" visibility="public"
  69768. deprecated="not deprecated">
  69769. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69770. </method>
  69771. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69772. abstract="false" native="false" synchronized="false"
  69773. static="false" final="false" visibility="public"
  69774. deprecated="not deprecated">
  69775. </method>
  69776. <method name="run" return="int"
  69777. abstract="false" native="false" synchronized="false"
  69778. static="false" final="false" visibility="public"
  69779. deprecated="not deprecated">
  69780. <param name="args" type="java.lang.String[]"/>
  69781. <exception name="Exception" type="java.lang.Exception"/>
  69782. <doc>
  69783. <![CDATA[the main driver for creating the archives
  69784. it takes at least three command line parameters. The parent path,
  69785. The src and the dest. It does an lsr on the source paths.
  69786. The mapper created archuves and the reducer creates
  69787. the archive index.]]>
  69788. </doc>
  69789. </method>
  69790. <method name="main"
  69791. abstract="false" native="false" synchronized="false"
  69792. static="true" final="false" visibility="public"
  69793. deprecated="not deprecated">
  69794. <param name="args" type="java.lang.String[]"/>
  69795. <doc>
  69796. <![CDATA[the main functions]]>
  69797. </doc>
  69798. </method>
  69799. <field name="VERSION" type="int"
  69800. transient="false" volatile="false"
  69801. static="true" final="true" visibility="public"
  69802. deprecated="not deprecated">
  69803. </field>
  69804. <doc>
  69805. <![CDATA[a archive creation utility.
  69806. This class provides methods that can be used
  69807. to create hadoop archives. For understanding of
  69808. Hadoop archives look at {@link HarFileSystem}.]]>
  69809. </doc>
  69810. </class>
  69811. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  69812. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  69813. <class name="Logalyzer" extends="java.lang.Object"
  69814. abstract="false"
  69815. static="false" final="false" visibility="public"
  69816. deprecated="not deprecated">
  69817. <constructor name="Logalyzer"
  69818. static="false" final="false" visibility="public"
  69819. deprecated="not deprecated">
  69820. </constructor>
  69821. <method name="doArchive"
  69822. abstract="false" native="false" synchronized="false"
  69823. static="false" final="false" visibility="public"
  69824. deprecated="not deprecated">
  69825. <param name="logListURI" type="java.lang.String"/>
  69826. <param name="archiveDirectory" type="java.lang.String"/>
  69827. <exception name="IOException" type="java.io.IOException"/>
  69828. <doc>
  69829. <![CDATA[doArchive: Workhorse function to archive log-files.
  69830. @param logListURI : The uri which will serve list of log-files to archive.
  69831. @param archiveDirectory : The directory to store archived logfiles.
  69832. @throws IOException]]>
  69833. </doc>
  69834. </method>
  69835. <method name="doAnalyze"
  69836. abstract="false" native="false" synchronized="false"
  69837. static="false" final="false" visibility="public"
  69838. deprecated="not deprecated">
  69839. <param name="inputFilesDirectory" type="java.lang.String"/>
  69840. <param name="outputDirectory" type="java.lang.String"/>
  69841. <param name="grepPattern" type="java.lang.String"/>
  69842. <param name="sortColumns" type="java.lang.String"/>
  69843. <param name="columnSeparator" type="java.lang.String"/>
  69844. <exception name="IOException" type="java.io.IOException"/>
  69845. <doc>
  69846. <![CDATA[doAnalyze:
  69847. @param inputFilesDirectory : Directory containing the files to be analyzed.
  69848. @param outputDirectory : Directory to store analysis (output).
  69849. @param grepPattern : Pattern to *grep* for.
  69850. @param sortColumns : Sort specification for output.
  69851. @param columnSeparator : Column separator.
  69852. @throws IOException]]>
  69853. </doc>
  69854. </method>
  69855. <method name="main"
  69856. abstract="false" native="false" synchronized="false"
  69857. static="true" final="false" visibility="public"
  69858. deprecated="not deprecated">
  69859. <param name="args" type="java.lang.String[]"/>
  69860. </method>
  69861. <doc>
  69862. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  69863. <p>
  69864. This tool supports archiving and anaylzing (sort/grep) of log-files.
  69865. It takes as input
  69866. a) Input uri which will serve uris of the logs to be archived.
  69867. b) Output directory (not mandatory).
  69868. b) Directory on dfs to archive the logs.
  69869. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  69870. Usage:
  69871. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  69872. <p>]]>
  69873. </doc>
  69874. </class>
  69875. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  69876. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  69877. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  69878. abstract="false"
  69879. static="true" final="false" visibility="public"
  69880. deprecated="not deprecated">
  69881. <implements name="org.apache.hadoop.conf.Configurable"/>
  69882. <constructor name="Logalyzer.LogComparator"
  69883. static="false" final="false" visibility="public"
  69884. deprecated="not deprecated">
  69885. </constructor>
  69886. <method name="setConf"
  69887. abstract="false" native="false" synchronized="false"
  69888. static="false" final="false" visibility="public"
  69889. deprecated="not deprecated">
  69890. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69891. </method>
  69892. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  69893. abstract="false" native="false" synchronized="false"
  69894. static="false" final="false" visibility="public"
  69895. deprecated="not deprecated">
  69896. </method>
  69897. <method name="compare" return="int"
  69898. abstract="false" native="false" synchronized="false"
  69899. static="false" final="false" visibility="public"
  69900. deprecated="not deprecated">
  69901. <param name="b1" type="byte[]"/>
  69902. <param name="s1" type="int"/>
  69903. <param name="l1" type="int"/>
  69904. <param name="b2" type="byte[]"/>
  69905. <param name="s2" type="int"/>
  69906. <param name="l2" type="int"/>
  69907. </method>
  69908. <doc>
  69909. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  69910. </doc>
  69911. </class>
  69912. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  69913. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  69914. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  69915. abstract="false"
  69916. static="true" final="false" visibility="public"
  69917. deprecated="not deprecated">
  69918. <implements name="org.apache.hadoop.mapred.Mapper"/>
  69919. <constructor name="Logalyzer.LogRegexMapper"
  69920. static="false" final="false" visibility="public"
  69921. deprecated="not deprecated">
  69922. </constructor>
  69923. <method name="configure"
  69924. abstract="false" native="false" synchronized="false"
  69925. static="false" final="false" visibility="public"
  69926. deprecated="not deprecated">
  69927. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  69928. </method>
  69929. <method name="map"
  69930. abstract="false" native="false" synchronized="false"
  69931. static="false" final="false" visibility="public"
  69932. deprecated="not deprecated">
  69933. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  69934. <param name="value" type="org.apache.hadoop.io.Text"/>
  69935. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  69936. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  69937. <exception name="IOException" type="java.io.IOException"/>
  69938. </method>
  69939. <doc>
  69940. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  69941. </doc>
  69942. </class>
  69943. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  69944. </package>
  69945. <package name="org.apache.hadoop.tools.rumen">
  69946. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  69947. <class name="AbstractClusterStory" extends="java.lang.Object"
  69948. abstract="true"
  69949. static="false" final="false" visibility="public"
  69950. deprecated="not deprecated">
  69951. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  69952. <constructor name="AbstractClusterStory"
  69953. static="false" final="false" visibility="public"
  69954. deprecated="not deprecated">
  69955. </constructor>
  69956. <method name="getMachines" return="java.util.Set"
  69957. abstract="false" native="false" synchronized="false"
  69958. static="false" final="false" visibility="public"
  69959. deprecated="not deprecated">
  69960. </method>
  69961. <method name="getRacks" return="java.util.Set"
  69962. abstract="false" native="false" synchronized="true"
  69963. static="false" final="false" visibility="public"
  69964. deprecated="not deprecated">
  69965. </method>
  69966. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  69967. abstract="false" native="false" synchronized="true"
  69968. static="false" final="false" visibility="public"
  69969. deprecated="not deprecated">
  69970. <param name="expected" type="int"/>
  69971. <param name="random" type="java.util.Random"/>
  69972. </method>
  69973. <method name="buildMachineNodeMap"
  69974. abstract="false" native="false" synchronized="true"
  69975. static="false" final="false" visibility="protected"
  69976. deprecated="not deprecated">
  69977. </method>
  69978. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  69979. abstract="false" native="false" synchronized="false"
  69980. static="false" final="false" visibility="public"
  69981. deprecated="not deprecated">
  69982. <param name="name" type="java.lang.String"/>
  69983. </method>
  69984. <method name="distance" return="int"
  69985. abstract="false" native="false" synchronized="false"
  69986. static="false" final="false" visibility="public"
  69987. deprecated="not deprecated">
  69988. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  69989. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  69990. </method>
  69991. <method name="buildRackNodeMap"
  69992. abstract="false" native="false" synchronized="true"
  69993. static="false" final="false" visibility="protected"
  69994. deprecated="not deprecated">
  69995. </method>
  69996. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  69997. abstract="false" native="false" synchronized="false"
  69998. static="false" final="false" visibility="public"
  69999. deprecated="not deprecated">
  70000. <param name="name" type="java.lang.String"/>
  70001. </method>
  70002. <method name="getMaximumDistance" return="int"
  70003. abstract="false" native="false" synchronized="false"
  70004. static="false" final="false" visibility="public"
  70005. deprecated="not deprecated">
  70006. </method>
  70007. <method name="parseTopologyTree"
  70008. abstract="false" native="false" synchronized="true"
  70009. static="false" final="false" visibility="protected"
  70010. deprecated="not deprecated">
  70011. </method>
  70012. <field name="machineNodes" type="java.util.Set"
  70013. transient="false" volatile="false"
  70014. static="false" final="false" visibility="protected"
  70015. deprecated="not deprecated">
  70016. </field>
  70017. <field name="rackNodes" type="java.util.Set"
  70018. transient="false" volatile="false"
  70019. static="false" final="false" visibility="protected"
  70020. deprecated="not deprecated">
  70021. </field>
  70022. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  70023. transient="false" volatile="false"
  70024. static="false" final="false" visibility="protected"
  70025. deprecated="not deprecated">
  70026. </field>
  70027. <field name="mNodeMap" type="java.util.Map"
  70028. transient="false" volatile="false"
  70029. static="false" final="false" visibility="protected"
  70030. deprecated="not deprecated">
  70031. </field>
  70032. <field name="rNodeMap" type="java.util.Map"
  70033. transient="false" volatile="false"
  70034. static="false" final="false" visibility="protected"
  70035. deprecated="not deprecated">
  70036. </field>
  70037. <field name="maximumDistance" type="int"
  70038. transient="false" volatile="false"
  70039. static="false" final="false" visibility="protected"
  70040. deprecated="not deprecated">
  70041. </field>
  70042. <doc>
  70043. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  70044. {@link ClusterStory} by parsing the topology tree.]]>
  70045. </doc>
  70046. </class>
  70047. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  70048. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  70049. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  70050. abstract="false"
  70051. static="false" final="false" visibility="public"
  70052. deprecated="not deprecated">
  70053. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  70054. static="false" final="false" visibility="public"
  70055. deprecated="not deprecated">
  70056. <doc>
  70057. <![CDATA[@param cdf
  70058. builds a CDFRandomValue engine around this
  70059. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  70060. </doc>
  70061. </constructor>
  70062. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  70063. static="false" final="false" visibility="public"
  70064. deprecated="not deprecated">
  70065. <doc>
  70066. <![CDATA[@param cdf
  70067. builds a CDFRandomValue engine around this
  70068. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  70069. @param seed
  70070. the random number generator seed]]>
  70071. </doc>
  70072. </constructor>
  70073. <method name="valueAt" return="long"
  70074. abstract="false" native="false" synchronized="false"
  70075. static="false" final="false" visibility="public"
  70076. deprecated="not deprecated">
  70077. <param name="probability" type="double"/>
  70078. <doc>
  70079. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  70080. epistomological minimum resp. maximum. This is probably okay for the
  70081. minimum, because that likely represents a task where everything went well,
  70082. but for the maximum we may want to develop a way of extrapolating past the
  70083. maximum.]]>
  70084. </doc>
  70085. </method>
  70086. </class>
  70087. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  70088. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  70089. <class name="CDFRandomGenerator" extends="java.lang.Object"
  70090. abstract="true"
  70091. static="false" final="false" visibility="public"
  70092. deprecated="not deprecated">
  70093. <method name="initializeTables"
  70094. abstract="false" native="false" synchronized="false"
  70095. static="false" final="true" visibility="protected"
  70096. deprecated="not deprecated">
  70097. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  70098. </method>
  70099. <method name="floorIndex" return="int"
  70100. abstract="false" native="false" synchronized="false"
  70101. static="false" final="false" visibility="protected"
  70102. deprecated="not deprecated">
  70103. <param name="probe" type="double"/>
  70104. </method>
  70105. <method name="getRankingAt" return="double"
  70106. abstract="false" native="false" synchronized="false"
  70107. static="false" final="false" visibility="protected"
  70108. deprecated="not deprecated">
  70109. <param name="index" type="int"/>
  70110. </method>
  70111. <method name="getDatumAt" return="long"
  70112. abstract="false" native="false" synchronized="false"
  70113. static="false" final="false" visibility="protected"
  70114. deprecated="not deprecated">
  70115. <param name="index" type="int"/>
  70116. </method>
  70117. <method name="randomValue" return="long"
  70118. abstract="false" native="false" synchronized="false"
  70119. static="false" final="false" visibility="public"
  70120. deprecated="not deprecated">
  70121. </method>
  70122. <method name="valueAt" return="long"
  70123. abstract="true" native="false" synchronized="false"
  70124. static="false" final="false" visibility="public"
  70125. deprecated="not deprecated">
  70126. <param name="probability" type="double"/>
  70127. </method>
  70128. <doc>
  70129. <![CDATA[An instance of this class generates random values that confirm to the
  70130. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  70131. approximation of the "real" CDF. We therefore have a choice of interpolation
  70132. rules.
  70133. A concrete subclass of this abstract class will implement valueAt(double)
  70134. using a class-dependent interpolation rule.]]>
  70135. </doc>
  70136. </class>
  70137. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  70138. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  70139. <interface name="ClusterStory" abstract="true"
  70140. static="false" final="false" visibility="public"
  70141. deprecated="not deprecated">
  70142. <method name="getMachines" return="java.util.Set"
  70143. abstract="false" native="false" synchronized="false"
  70144. static="false" final="false" visibility="public"
  70145. deprecated="not deprecated">
  70146. <doc>
  70147. <![CDATA[Get all machines of the cluster.
  70148. @return A read-only set that contains all machines of the cluster.]]>
  70149. </doc>
  70150. </method>
  70151. <method name="getRacks" return="java.util.Set"
  70152. abstract="false" native="false" synchronized="false"
  70153. static="false" final="false" visibility="public"
  70154. deprecated="not deprecated">
  70155. <doc>
  70156. <![CDATA[Get all racks of the cluster.
  70157. @return A read-only set that contains all racks of the cluster.]]>
  70158. </doc>
  70159. </method>
  70160. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  70161. abstract="false" native="false" synchronized="false"
  70162. static="false" final="false" visibility="public"
  70163. deprecated="not deprecated">
  70164. <doc>
  70165. <![CDATA[Get the cluster topology tree.
  70166. @return The root node of the cluster topology tree.]]>
  70167. </doc>
  70168. </method>
  70169. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  70170. abstract="false" native="false" synchronized="false"
  70171. static="false" final="false" visibility="public"
  70172. deprecated="not deprecated">
  70173. <param name="expected" type="int"/>
  70174. <param name="random" type="java.util.Random"/>
  70175. <doc>
  70176. <![CDATA[Select a random set of machines.
  70177. @param expected The expected sample size.
  70178. @param random Random number generator to use.
  70179. @return An array of up to expected number of {@link MachineNode}s.]]>
  70180. </doc>
  70181. </method>
  70182. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  70183. abstract="false" native="false" synchronized="false"
  70184. static="false" final="false" visibility="public"
  70185. deprecated="not deprecated">
  70186. <param name="name" type="java.lang.String"/>
  70187. <doc>
  70188. <![CDATA[Get {@link MachineNode} by its host name.
  70189. @return The {@line MachineNode} with the same name. Or null if not found.]]>
  70190. </doc>
  70191. </method>
  70192. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  70193. abstract="false" native="false" synchronized="false"
  70194. static="false" final="false" visibility="public"
  70195. deprecated="not deprecated">
  70196. <param name="name" type="java.lang.String"/>
  70197. <doc>
  70198. <![CDATA[Get {@link RackNode} by its name.
  70199. @return The {@line RackNode} with the same name. Or null if not found.]]>
  70200. </doc>
  70201. </method>
  70202. <method name="distance" return="int"
  70203. abstract="false" native="false" synchronized="false"
  70204. static="false" final="false" visibility="public"
  70205. deprecated="not deprecated">
  70206. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  70207. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  70208. <doc>
  70209. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  70210. is loosely defined as the length of the longer path for either a or b to
  70211. reach their common ancestor.
  70212. @param a
  70213. @param b
  70214. @return The distance between {@link Node} a and {@link Node} b.]]>
  70215. </doc>
  70216. </method>
  70217. <method name="getMaximumDistance" return="int"
  70218. abstract="false" native="false" synchronized="false"
  70219. static="false" final="false" visibility="public"
  70220. deprecated="not deprecated">
  70221. <doc>
  70222. <![CDATA[Get the maximum distance possible between any two nodes.
  70223. @return the maximum distance possible between any two nodes.]]>
  70224. </doc>
  70225. </method>
  70226. <doc>
  70227. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  70228. including nodes, network topology, and slot configurations.]]>
  70229. </doc>
  70230. </interface>
  70231. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  70232. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  70233. <class name="ClusterTopologyReader" extends="java.lang.Object"
  70234. abstract="false"
  70235. static="false" final="false" visibility="public"
  70236. deprecated="not deprecated">
  70237. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  70238. static="false" final="false" visibility="public"
  70239. deprecated="not deprecated">
  70240. <exception name="IOException" type="java.io.IOException"/>
  70241. <doc>
  70242. <![CDATA[Constructor.
  70243. @param path
  70244. Path to the JSON-encoded topology file, possibly compressed.
  70245. @param conf
  70246. @throws IOException]]>
  70247. </doc>
  70248. </constructor>
  70249. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  70250. static="false" final="false" visibility="public"
  70251. deprecated="not deprecated">
  70252. <exception name="IOException" type="java.io.IOException"/>
  70253. <doc>
  70254. <![CDATA[Constructor.
  70255. @param input
  70256. The input stream for the JSON-encoded topology data.]]>
  70257. </doc>
  70258. </constructor>
  70259. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  70260. abstract="false" native="false" synchronized="false"
  70261. static="false" final="false" visibility="public"
  70262. deprecated="not deprecated">
  70263. <doc>
  70264. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  70265. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  70266. </doc>
  70267. </method>
  70268. <doc>
  70269. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  70270. {@link LoggedNetworkTopology} object.]]>
  70271. </doc>
  70272. </class>
  70273. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  70274. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  70275. <interface name="DeepCompare" abstract="true"
  70276. static="false" final="false" visibility="public"
  70277. deprecated="not deprecated">
  70278. <method name="deepCompare"
  70279. abstract="false" native="false" synchronized="false"
  70280. static="false" final="false" visibility="public"
  70281. deprecated="not deprecated">
  70282. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  70283. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  70284. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  70285. <doc>
  70286. <![CDATA[@param other
  70287. the other comparand that's being compared to me
  70288. @param myLocation
  70289. the path that got to me. In the root, myLocation is null. To
  70290. process the scalar {@code foo} field of the root we will make a
  70291. recursive call with a {@link TreePath} whose {@code fieldName} is
  70292. {@code "bar"} and whose {@code index} is -1 and whose {@code
  70293. parent} is {@code null}. To process the plural {@code bar} field
  70294. of the root we will make a recursive call with a {@link TreePath}
  70295. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  70296. whose {@code parent} is also {@code null}.
  70297. @throws DeepInequalityException]]>
  70298. </doc>
  70299. </method>
  70300. <doc>
  70301. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  70302. not order] with another instance. They do a deep compare. If there is any
  70303. semantically significant difference, an implementer throws an Exception to be
  70304. thrown with a chain of causes describing the chain of field references and
  70305. indices that get you to the miscompared point.]]>
  70306. </doc>
  70307. </interface>
  70308. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  70309. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  70310. <class name="DeepInequalityException" extends="java.lang.Exception"
  70311. abstract="false"
  70312. static="false" final="false" visibility="public"
  70313. deprecated="not deprecated">
  70314. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  70315. static="false" final="false" visibility="public"
  70316. deprecated="not deprecated">
  70317. <doc>
  70318. <![CDATA[@param message
  70319. an exception message
  70320. @param path
  70321. the path that gets from the root to the inequality
  70322. This is the constructor that I intend to have used for this
  70323. exception.]]>
  70324. </doc>
  70325. </constructor>
  70326. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  70327. static="false" final="false" visibility="public"
  70328. deprecated="not deprecated">
  70329. <doc>
  70330. <![CDATA[@param message
  70331. an exception message
  70332. @param path
  70333. the path that gets from the root to the inequality
  70334. This is the constructor that I intend to have used for this
  70335. exception.]]>
  70336. </doc>
  70337. </constructor>
  70338. <doc>
  70339. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  70340. when we run the]]>
  70341. </doc>
  70342. </class>
  70343. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  70344. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  70345. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  70346. abstract="false"
  70347. static="false" final="false" visibility="public"
  70348. deprecated="not deprecated">
  70349. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  70350. <constructor name="DefaultInputDemuxer"
  70351. static="false" final="false" visibility="public"
  70352. deprecated="not deprecated">
  70353. </constructor>
  70354. <method name="bindTo"
  70355. abstract="false" native="false" synchronized="false"
  70356. static="false" final="false" visibility="public"
  70357. deprecated="not deprecated">
  70358. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70359. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70360. <exception name="IOException" type="java.io.IOException"/>
  70361. </method>
  70362. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  70363. abstract="false" native="false" synchronized="false"
  70364. static="false" final="false" visibility="public"
  70365. deprecated="not deprecated">
  70366. <exception name="IOException" type="java.io.IOException"/>
  70367. </method>
  70368. <method name="close"
  70369. abstract="false" native="false" synchronized="false"
  70370. static="false" final="false" visibility="public"
  70371. deprecated="not deprecated">
  70372. <exception name="IOException" type="java.io.IOException"/>
  70373. </method>
  70374. <doc>
  70375. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  70376. each file and returns back the input stream. If the input is compressed, it
  70377. would return a decompression stream.]]>
  70378. </doc>
  70379. </class>
  70380. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  70381. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  70382. <class name="DefaultOutputter" extends="java.lang.Object"
  70383. abstract="false"
  70384. static="false" final="false" visibility="public"
  70385. deprecated="not deprecated">
  70386. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  70387. <constructor name="DefaultOutputter"
  70388. static="false" final="false" visibility="public"
  70389. deprecated="not deprecated">
  70390. </constructor>
  70391. <method name="init"
  70392. abstract="false" native="false" synchronized="false"
  70393. static="false" final="false" visibility="public"
  70394. deprecated="not deprecated">
  70395. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70396. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70397. <exception name="IOException" type="java.io.IOException"/>
  70398. </method>
  70399. <method name="output"
  70400. abstract="false" native="false" synchronized="false"
  70401. static="false" final="false" visibility="public"
  70402. deprecated="not deprecated">
  70403. <param name="object" type="java.lang.Object"/>
  70404. <exception name="IOException" type="java.io.IOException"/>
  70405. </method>
  70406. <method name="close"
  70407. abstract="false" native="false" synchronized="false"
  70408. static="false" final="false" visibility="public"
  70409. deprecated="not deprecated">
  70410. <exception name="IOException" type="java.io.IOException"/>
  70411. </method>
  70412. <doc>
  70413. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  70414. will be applied if the path has the right suffix.]]>
  70415. </doc>
  70416. </class>
  70417. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  70418. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  70419. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  70420. abstract="false"
  70421. static="false" final="false" visibility="public"
  70422. deprecated="not deprecated">
  70423. <implements name="java.io.Closeable"/>
  70424. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  70425. static="false" final="false" visibility="public"
  70426. deprecated="not deprecated">
  70427. <exception name="IOException" type="java.io.IOException"/>
  70428. <doc>
  70429. <![CDATA[Constructor.
  70430. @param reader
  70431. the {@link JobTraceReader} that's being protected
  70432. @param skewBufferSize
  70433. [the number of late jobs that can preced a later out-of-order
  70434. earlier job
  70435. @throws IOException]]>
  70436. </doc>
  70437. </constructor>
  70438. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  70439. static="false" final="false" visibility="public"
  70440. deprecated="not deprecated">
  70441. <exception name="IOException" type="java.io.IOException"/>
  70442. </constructor>
  70443. <method name="close"
  70444. abstract="false" native="false" synchronized="false"
  70445. static="false" final="false" visibility="public"
  70446. deprecated="not deprecated">
  70447. <exception name="IOException" type="java.io.IOException"/>
  70448. </method>
  70449. </class>
  70450. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  70451. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  70452. <class name="EventType" extends="java.lang.Enum"
  70453. abstract="false"
  70454. static="false" final="true" visibility="public"
  70455. deprecated="not deprecated">
  70456. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  70457. abstract="false" native="false" synchronized="false"
  70458. static="true" final="false" visibility="public"
  70459. deprecated="not deprecated">
  70460. </method>
  70461. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  70462. abstract="false" native="false" synchronized="false"
  70463. static="true" final="false" visibility="public"
  70464. deprecated="not deprecated">
  70465. <param name="name" type="java.lang.String"/>
  70466. </method>
  70467. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  70468. transient="false" volatile="false"
  70469. static="true" final="true" visibility="public"
  70470. deprecated="not deprecated">
  70471. </field>
  70472. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  70473. transient="false" volatile="false"
  70474. static="true" final="true" visibility="public"
  70475. deprecated="not deprecated">
  70476. </field>
  70477. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70478. transient="false" volatile="false"
  70479. static="true" final="true" visibility="public"
  70480. deprecated="not deprecated">
  70481. </field>
  70482. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  70483. transient="false" volatile="false"
  70484. static="true" final="true" visibility="public"
  70485. deprecated="not deprecated">
  70486. </field>
  70487. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  70488. transient="false" volatile="false"
  70489. static="true" final="true" visibility="public"
  70490. deprecated="not deprecated">
  70491. </field>
  70492. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70493. transient="false" volatile="false"
  70494. static="true" final="true" visibility="public"
  70495. deprecated="not deprecated">
  70496. </field>
  70497. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70498. transient="false" volatile="false"
  70499. static="true" final="true" visibility="public"
  70500. deprecated="not deprecated">
  70501. </field>
  70502. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  70503. transient="false" volatile="false"
  70504. static="true" final="true" visibility="public"
  70505. deprecated="not deprecated">
  70506. </field>
  70507. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70508. transient="false" volatile="false"
  70509. static="true" final="true" visibility="public"
  70510. deprecated="not deprecated">
  70511. </field>
  70512. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70513. transient="false" volatile="false"
  70514. static="true" final="true" visibility="public"
  70515. deprecated="not deprecated">
  70516. </field>
  70517. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70518. transient="false" volatile="false"
  70519. static="true" final="true" visibility="public"
  70520. deprecated="not deprecated">
  70521. </field>
  70522. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  70523. transient="false" volatile="false"
  70524. static="true" final="true" visibility="public"
  70525. deprecated="not deprecated">
  70526. </field>
  70527. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70528. transient="false" volatile="false"
  70529. static="true" final="true" visibility="public"
  70530. deprecated="not deprecated">
  70531. </field>
  70532. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70533. transient="false" volatile="false"
  70534. static="true" final="true" visibility="public"
  70535. deprecated="not deprecated">
  70536. </field>
  70537. <field name="MAP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70538. transient="false" volatile="false"
  70539. static="true" final="true" visibility="public"
  70540. deprecated="not deprecated">
  70541. </field>
  70542. <field name="MAP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70543. transient="false" volatile="false"
  70544. static="true" final="true" visibility="public"
  70545. deprecated="not deprecated">
  70546. </field>
  70547. <field name="REDUCE_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70548. transient="false" volatile="false"
  70549. static="true" final="true" visibility="public"
  70550. deprecated="not deprecated">
  70551. </field>
  70552. <field name="REDUCE_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70553. transient="false" volatile="false"
  70554. static="true" final="true" visibility="public"
  70555. deprecated="not deprecated">
  70556. </field>
  70557. <field name="REDUCE_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70558. transient="false" volatile="false"
  70559. static="true" final="true" visibility="public"
  70560. deprecated="not deprecated">
  70561. </field>
  70562. <field name="REDUCE_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70563. transient="false" volatile="false"
  70564. static="true" final="true" visibility="public"
  70565. deprecated="not deprecated">
  70566. </field>
  70567. <field name="SETUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70568. transient="false" volatile="false"
  70569. static="true" final="true" visibility="public"
  70570. deprecated="not deprecated">
  70571. </field>
  70572. <field name="SETUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70573. transient="false" volatile="false"
  70574. static="true" final="true" visibility="public"
  70575. deprecated="not deprecated">
  70576. </field>
  70577. <field name="SETUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70578. transient="false" volatile="false"
  70579. static="true" final="true" visibility="public"
  70580. deprecated="not deprecated">
  70581. </field>
  70582. <field name="SETUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70583. transient="false" volatile="false"
  70584. static="true" final="true" visibility="public"
  70585. deprecated="not deprecated">
  70586. </field>
  70587. <field name="CLEANUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  70588. transient="false" volatile="false"
  70589. static="true" final="true" visibility="public"
  70590. deprecated="not deprecated">
  70591. </field>
  70592. <field name="CLEANUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  70593. transient="false" volatile="false"
  70594. static="true" final="true" visibility="public"
  70595. deprecated="not deprecated">
  70596. </field>
  70597. <field name="CLEANUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  70598. transient="false" volatile="false"
  70599. static="true" final="true" visibility="public"
  70600. deprecated="not deprecated">
  70601. </field>
  70602. <field name="CLEANUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  70603. transient="false" volatile="false"
  70604. static="true" final="true" visibility="public"
  70605. deprecated="not deprecated">
  70606. </field>
  70607. </class>
  70608. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  70609. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  70610. <class name="Hadoop20JHParser" extends="java.lang.Object"
  70611. abstract="false"
  70612. static="false" final="false" visibility="public"
  70613. deprecated="not deprecated">
  70614. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  70615. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  70616. static="false" final="false" visibility="public"
  70617. deprecated="not deprecated">
  70618. <exception name="IOException" type="java.io.IOException"/>
  70619. </constructor>
  70620. <method name="canParse" return="boolean"
  70621. abstract="false" native="false" synchronized="false"
  70622. static="true" final="false" visibility="public"
  70623. deprecated="not deprecated">
  70624. <param name="input" type="java.io.InputStream"/>
  70625. <exception name="IOException" type="java.io.IOException"/>
  70626. <doc>
  70627. <![CDATA[Can this parser parse the input?
  70628. @param input
  70629. @return Whether this parser can parse the input.
  70630. @throws IOException
  70631. We will deem a stream to be a good 0.20 job history stream if the
  70632. first line is exactly "Meta VERSION=\"1\" ."]]>
  70633. </doc>
  70634. </method>
  70635. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  70636. abstract="false" native="false" synchronized="false"
  70637. static="false" final="false" visibility="public"
  70638. deprecated="not deprecated">
  70639. </method>
  70640. <method name="close"
  70641. abstract="false" native="false" synchronized="false"
  70642. static="false" final="false" visibility="public"
  70643. deprecated="not deprecated">
  70644. <exception name="IOException" type="java.io.IOException"/>
  70645. </method>
  70646. <doc>
  70647. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  70648. </doc>
  70649. </class>
  70650. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  70651. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  70652. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  70653. abstract="false"
  70654. static="false" final="false" visibility="public"
  70655. deprecated="not deprecated">
  70656. <implements name="org.apache.hadoop.util.Tool"/>
  70657. <constructor name="HadoopLogsAnalyzer"
  70658. static="false" final="false" visibility="public"
  70659. deprecated="not deprecated">
  70660. </constructor>
  70661. <method name="run" return="int"
  70662. abstract="false" native="false" synchronized="false"
  70663. static="false" final="false" visibility="public"
  70664. deprecated="not deprecated">
  70665. <param name="args" type="java.lang.String[]"/>
  70666. <exception name="IOException" type="java.io.IOException"/>
  70667. </method>
  70668. <method name="main"
  70669. abstract="false" native="false" synchronized="false"
  70670. static="true" final="false" visibility="public"
  70671. deprecated="not deprecated">
  70672. <param name="args" type="java.lang.String[]"/>
  70673. <doc>
  70674. <![CDATA[@param args
  70675. Last arg is the input file. That file can be a directory, in which
  70676. case you get all the files in sorted order. We will decompress
  70677. files whose nmes end in .gz .
  70678. switches: -c collect line types.
  70679. -d debug mode
  70680. -delays print out the delays [interval between job submit time and
  70681. launch time]
  70682. -runtimes print out the job runtimes
  70683. -spreads print out the ratio of 10%ile and 90%ile, of both the
  70684. successful map task attempt run times and the the successful
  70685. reduce task attempt run times
  70686. -tasktimes prints out individual task time distributions
  70687. collects all the line types and prints the first example of each
  70688. one]]>
  70689. </doc>
  70690. </method>
  70691. <doc>
  70692. <![CDATA[This is the main class for rumen log mining functionality.
  70693. It reads a directory of job tracker logs, and computes various information
  70694. about it. See {@code usage()}, below.]]>
  70695. </doc>
  70696. </class>
  70697. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  70698. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  70699. <interface name="HistoryEvent" abstract="true"
  70700. static="false" final="false" visibility="public"
  70701. deprecated="not deprecated">
  70702. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  70703. abstract="false" native="false" synchronized="false"
  70704. static="false" final="false" visibility="public"
  70705. deprecated="not deprecated">
  70706. <doc>
  70707. <![CDATA[Return this event's type.]]>
  70708. </doc>
  70709. </method>
  70710. </interface>
  70711. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  70712. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  70713. <interface name="InputDemuxer" abstract="true"
  70714. static="false" final="false" visibility="public"
  70715. deprecated="not deprecated">
  70716. <implements name="java.io.Closeable"/>
  70717. <method name="bindTo"
  70718. abstract="false" native="false" synchronized="false"
  70719. static="false" final="false" visibility="public"
  70720. deprecated="not deprecated">
  70721. <param name="path" type="org.apache.hadoop.fs.Path"/>
  70722. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70723. <exception name="IOException" type="java.io.IOException"/>
  70724. <doc>
  70725. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  70726. @param path
  70727. The path to the find it should bind to.
  70728. @param conf
  70729. Configuration
  70730. @throws IOException
  70731. Returns true when the binding succeeds. If the file can be read
  70732. but is in the wrong format, returns false. IOException is
  70733. reserved for read errors.]]>
  70734. </doc>
  70735. </method>
  70736. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  70737. abstract="false" native="false" synchronized="false"
  70738. static="false" final="false" visibility="public"
  70739. deprecated="not deprecated">
  70740. <exception name="IOException" type="java.io.IOException"/>
  70741. <doc>
  70742. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  70743. history file or job conf file name. The input object should be closed
  70744. before calling getNext() again. The old input object would be invalid after
  70745. calling getNext() again.
  70746. @return the next <name, input> pair.]]>
  70747. </doc>
  70748. </method>
  70749. <doc>
  70750. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  70751. streams.]]>
  70752. </doc>
  70753. </interface>
  70754. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  70755. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  70756. <class name="JhCounter" extends="java.lang.Object"
  70757. abstract="false"
  70758. static="false" final="false" visibility="public"
  70759. deprecated="not deprecated">
  70760. <constructor name="JhCounter"
  70761. static="false" final="false" visibility="public"
  70762. deprecated="not deprecated">
  70763. </constructor>
  70764. <field name="name" type="java.lang.String"
  70765. transient="false" volatile="false"
  70766. static="false" final="false" visibility="public"
  70767. deprecated="not deprecated">
  70768. </field>
  70769. <field name="displayName" type="java.lang.String"
  70770. transient="false" volatile="false"
  70771. static="false" final="false" visibility="public"
  70772. deprecated="not deprecated">
  70773. </field>
  70774. <field name="value" type="long"
  70775. transient="false" volatile="false"
  70776. static="false" final="false" visibility="public"
  70777. deprecated="not deprecated">
  70778. </field>
  70779. </class>
  70780. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  70781. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  70782. <class name="JhCounterGroup" extends="java.lang.Object"
  70783. abstract="false"
  70784. static="false" final="false" visibility="public"
  70785. deprecated="not deprecated">
  70786. <constructor name="JhCounterGroup"
  70787. static="false" final="false" visibility="public"
  70788. deprecated="not deprecated">
  70789. </constructor>
  70790. <field name="name" type="java.lang.String"
  70791. transient="false" volatile="false"
  70792. static="false" final="false" visibility="public"
  70793. deprecated="not deprecated">
  70794. </field>
  70795. <field name="displayName" type="java.lang.String"
  70796. transient="false" volatile="false"
  70797. static="false" final="false" visibility="public"
  70798. deprecated="not deprecated">
  70799. </field>
  70800. <field name="counts" type="java.util.List"
  70801. transient="false" volatile="false"
  70802. static="false" final="false" visibility="public"
  70803. deprecated="not deprecated">
  70804. </field>
  70805. </class>
  70806. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  70807. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  70808. <class name="JhCounters" extends="java.lang.Object"
  70809. abstract="false"
  70810. static="false" final="false" visibility="public"
  70811. deprecated="not deprecated">
  70812. <field name="name" type="java.lang.String"
  70813. transient="false" volatile="false"
  70814. static="false" final="false" visibility="public"
  70815. deprecated="not deprecated">
  70816. </field>
  70817. <field name="groups" type="java.util.List"
  70818. transient="false" volatile="false"
  70819. static="false" final="false" visibility="public"
  70820. deprecated="not deprecated">
  70821. </field>
  70822. </class>
  70823. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  70824. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  70825. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  70826. abstract="false"
  70827. static="false" final="false" visibility="public"
  70828. deprecated="not deprecated">
  70829. </class>
  70830. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  70831. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  70832. <class name="JobBuilder" extends="java.lang.Object"
  70833. abstract="false"
  70834. static="false" final="false" visibility="public"
  70835. deprecated="not deprecated">
  70836. <constructor name="JobBuilder" type="java.lang.String"
  70837. static="false" final="false" visibility="public"
  70838. deprecated="not deprecated">
  70839. </constructor>
  70840. <method name="getJobID" return="java.lang.String"
  70841. abstract="false" native="false" synchronized="false"
  70842. static="false" final="false" visibility="public"
  70843. deprecated="not deprecated">
  70844. </method>
  70845. <method name="process"
  70846. abstract="false" native="false" synchronized="false"
  70847. static="false" final="false" visibility="public"
  70848. deprecated="not deprecated">
  70849. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  70850. <doc>
  70851. <![CDATA[Process one {@link HistoryEvent}
  70852. @param event
  70853. The {@link HistoryEvent} to be processed.]]>
  70854. </doc>
  70855. </method>
  70856. <method name="process"
  70857. abstract="false" native="false" synchronized="false"
  70858. static="false" final="false" visibility="public"
  70859. deprecated="not deprecated">
  70860. <param name="conf" type="java.util.Properties"/>
  70861. <doc>
  70862. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  70863. to be called once. It is okay to process a conf before, during or after the
  70864. events.
  70865. @param conf
  70866. The job conf properties to be added.]]>
  70867. </doc>
  70868. </method>
  70869. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedJob"
  70870. abstract="false" native="false" synchronized="false"
  70871. static="false" final="false" visibility="public"
  70872. deprecated="not deprecated">
  70873. <doc>
  70874. <![CDATA[Request the builder to build the final object. Once called, the
  70875. {@link JobBuilder} would accept no more events or job-conf properties.
  70876. @return Parsed {@link LoggedJob} object.]]>
  70877. </doc>
  70878. </method>
  70879. <doc>
  70880. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  70881. {@link HistoryEvent}s.]]>
  70882. </doc>
  70883. </class>
  70884. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  70885. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  70886. <class name="JobConfigurationParser" extends="java.lang.Object"
  70887. abstract="false"
  70888. static="false" final="false" visibility="public"
  70889. deprecated="not deprecated">
  70890. <constructor name="JobConfigurationParser" type="java.util.List"
  70891. static="false" final="false" visibility="public"
  70892. deprecated="not deprecated">
  70893. <doc>
  70894. <![CDATA[Constructor
  70895. @param interested
  70896. properties we should extract from the job configuration xml.]]>
  70897. </doc>
  70898. </constructor>
  70899. <doc>
  70900. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  70901. extracts various framework specific properties. It parses the file using a
  70902. stream-parser and thus is more memory efficient. [This optimization may be
  70903. postponed for a future release]]]>
  70904. </doc>
  70905. </class>
  70906. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  70907. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  70908. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  70909. abstract="false"
  70910. static="false" final="true" visibility="public"
  70911. deprecated="not deprecated">
  70912. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  70913. abstract="false" native="false" synchronized="false"
  70914. static="true" final="false" visibility="public"
  70915. deprecated="not deprecated">
  70916. </method>
  70917. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70918. abstract="false" native="false" synchronized="false"
  70919. static="true" final="false" visibility="public"
  70920. deprecated="not deprecated">
  70921. <param name="name" type="java.lang.String"/>
  70922. </method>
  70923. <method name="getCandidates" return="java.lang.String[]"
  70924. abstract="false" native="false" synchronized="false"
  70925. static="false" final="false" visibility="public"
  70926. deprecated="not deprecated">
  70927. </method>
  70928. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70929. transient="false" volatile="false"
  70930. static="true" final="true" visibility="public"
  70931. deprecated="not deprecated">
  70932. </field>
  70933. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70934. transient="false" volatile="false"
  70935. static="true" final="true" visibility="public"
  70936. deprecated="not deprecated">
  70937. </field>
  70938. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70939. transient="false" volatile="false"
  70940. static="true" final="true" visibility="public"
  70941. deprecated="not deprecated">
  70942. </field>
  70943. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70944. transient="false" volatile="false"
  70945. static="true" final="true" visibility="public"
  70946. deprecated="not deprecated">
  70947. </field>
  70948. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  70949. transient="false" volatile="false"
  70950. static="true" final="true" visibility="public"
  70951. deprecated="not deprecated">
  70952. </field>
  70953. </class>
  70954. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  70955. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  70956. <class name="JobFinishedEvent" extends="java.lang.Object"
  70957. abstract="false"
  70958. static="false" final="false" visibility="public"
  70959. deprecated="not deprecated">
  70960. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  70961. <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"
  70962. static="false" final="false" visibility="public"
  70963. deprecated="not deprecated">
  70964. <doc>
  70965. <![CDATA[Create an event to record successful job completion
  70966. @param id Job ID
  70967. @param finishTime Finish time of the job
  70968. @param finishedMaps The number of finished maps
  70969. @param finishedReduces The number of finished reduces
  70970. @param failedMaps The number of failed maps
  70971. @param failedReduces The number of failed reduces
  70972. @param mapCounters Map Counters for the job
  70973. @param reduceCounters Reduce Counters for the job
  70974. @param totalCounters Total Counters for the job]]>
  70975. </doc>
  70976. </constructor>
  70977. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  70978. abstract="false" native="false" synchronized="false"
  70979. static="false" final="false" visibility="public"
  70980. deprecated="not deprecated">
  70981. </method>
  70982. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  70983. abstract="false" native="false" synchronized="false"
  70984. static="false" final="false" visibility="public"
  70985. deprecated="not deprecated">
  70986. <doc>
  70987. <![CDATA[Get the Job ID]]>
  70988. </doc>
  70989. </method>
  70990. <method name="getFinishTime" return="long"
  70991. abstract="false" native="false" synchronized="false"
  70992. static="false" final="false" visibility="public"
  70993. deprecated="not deprecated">
  70994. <doc>
  70995. <![CDATA[Get the job finish time]]>
  70996. </doc>
  70997. </method>
  70998. <method name="getFinishedMaps" return="int"
  70999. abstract="false" native="false" synchronized="false"
  71000. static="false" final="false" visibility="public"
  71001. deprecated="not deprecated">
  71002. <doc>
  71003. <![CDATA[Get the number of finished maps for the job]]>
  71004. </doc>
  71005. </method>
  71006. <method name="getFinishedReduces" return="int"
  71007. abstract="false" native="false" synchronized="false"
  71008. static="false" final="false" visibility="public"
  71009. deprecated="not deprecated">
  71010. <doc>
  71011. <![CDATA[Get the number of finished reducers for the job]]>
  71012. </doc>
  71013. </method>
  71014. <method name="getFailedMaps" return="int"
  71015. abstract="false" native="false" synchronized="false"
  71016. static="false" final="false" visibility="public"
  71017. deprecated="not deprecated">
  71018. <doc>
  71019. <![CDATA[Get the number of failed maps for the job]]>
  71020. </doc>
  71021. </method>
  71022. <method name="getFailedReduces" return="int"
  71023. abstract="false" native="false" synchronized="false"
  71024. static="false" final="false" visibility="public"
  71025. deprecated="not deprecated">
  71026. <doc>
  71027. <![CDATA[Get the number of failed reducers for the job]]>
  71028. </doc>
  71029. </method>
  71030. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  71031. abstract="false" native="false" synchronized="false"
  71032. static="false" final="false" visibility="public"
  71033. deprecated="not deprecated">
  71034. <doc>
  71035. <![CDATA[Get the counters for the job]]>
  71036. </doc>
  71037. </method>
  71038. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  71039. abstract="false" native="false" synchronized="false"
  71040. static="false" final="false" visibility="public"
  71041. deprecated="not deprecated">
  71042. <doc>
  71043. <![CDATA[Get the Map counters for the job]]>
  71044. </doc>
  71045. </method>
  71046. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  71047. abstract="false" native="false" synchronized="false"
  71048. static="false" final="false" visibility="public"
  71049. deprecated="not deprecated">
  71050. <doc>
  71051. <![CDATA[Get the reduce counters for the job]]>
  71052. </doc>
  71053. </method>
  71054. <doc>
  71055. <![CDATA[Event to record successful completion of job]]>
  71056. </doc>
  71057. </class>
  71058. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  71059. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  71060. <interface name="JobHistoryParser" abstract="true"
  71061. static="false" final="false" visibility="public"
  71062. deprecated="not deprecated">
  71063. <implements name="java.io.Closeable"/>
  71064. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  71065. abstract="false" native="false" synchronized="false"
  71066. static="false" final="false" visibility="public"
  71067. deprecated="not deprecated">
  71068. <exception name="IOException" type="java.io.IOException"/>
  71069. <doc>
  71070. <![CDATA[Get the next {@link HistoryEvent}
  71071. @return the next {@link HistoryEvent}. If no more events left, return null.
  71072. @throws IOException]]>
  71073. </doc>
  71074. </method>
  71075. <doc>
  71076. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  71077. </doc>
  71078. </interface>
  71079. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  71080. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  71081. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  71082. abstract="false"
  71083. static="false" final="false" visibility="public"
  71084. deprecated="not deprecated">
  71085. <constructor name="JobHistoryParserFactory"
  71086. static="false" final="false" visibility="public"
  71087. deprecated="not deprecated">
  71088. </constructor>
  71089. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  71090. abstract="false" native="false" synchronized="false"
  71091. static="true" final="false" visibility="public"
  71092. deprecated="not deprecated">
  71093. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  71094. <exception name="IOException" type="java.io.IOException"/>
  71095. </method>
  71096. <doc>
  71097. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  71098. determine the version of job history and return a proper parser.]]>
  71099. </doc>
  71100. </class>
  71101. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  71102. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  71103. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  71104. abstract="false"
  71105. static="false" final="false" visibility="public"
  71106. deprecated="not deprecated">
  71107. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71108. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  71109. static="false" final="false" visibility="public"
  71110. deprecated="not deprecated">
  71111. <doc>
  71112. <![CDATA[Create a event to record the submit and launch time of a job
  71113. @param id Job Id
  71114. @param submitTime Submit time of the job
  71115. @param launchTime Launch time of the job]]>
  71116. </doc>
  71117. </constructor>
  71118. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71119. abstract="false" native="false" synchronized="false"
  71120. static="false" final="false" visibility="public"
  71121. deprecated="not deprecated">
  71122. <doc>
  71123. <![CDATA[Get the Job ID]]>
  71124. </doc>
  71125. </method>
  71126. <method name="getSubmitTime" return="long"
  71127. abstract="false" native="false" synchronized="false"
  71128. static="false" final="false" visibility="public"
  71129. deprecated="not deprecated">
  71130. <doc>
  71131. <![CDATA[Get the Job submit time]]>
  71132. </doc>
  71133. </method>
  71134. <method name="getLaunchTime" return="long"
  71135. abstract="false" native="false" synchronized="false"
  71136. static="false" final="false" visibility="public"
  71137. deprecated="not deprecated">
  71138. <doc>
  71139. <![CDATA[Get the Job launch time]]>
  71140. </doc>
  71141. </method>
  71142. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71143. abstract="false" native="false" synchronized="false"
  71144. static="false" final="false" visibility="public"
  71145. deprecated="not deprecated">
  71146. </method>
  71147. <doc>
  71148. <![CDATA[Event to record changes in the submit and launch time of
  71149. a job]]>
  71150. </doc>
  71151. </class>
  71152. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  71153. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  71154. <class name="JobInitedEvent" extends="java.lang.Object"
  71155. abstract="false"
  71156. static="false" final="false" visibility="public"
  71157. deprecated="not deprecated">
  71158. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71159. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  71160. static="false" final="false" visibility="public"
  71161. deprecated="not deprecated">
  71162. <doc>
  71163. <![CDATA[Create an event to record job initialization
  71164. @param id
  71165. @param launchTime
  71166. @param totalMaps
  71167. @param totalReduces
  71168. @param jobStatus]]>
  71169. </doc>
  71170. </constructor>
  71171. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71172. abstract="false" native="false" synchronized="false"
  71173. static="false" final="false" visibility="public"
  71174. deprecated="not deprecated">
  71175. <doc>
  71176. <![CDATA[Get the job ID]]>
  71177. </doc>
  71178. </method>
  71179. <method name="getLaunchTime" return="long"
  71180. abstract="false" native="false" synchronized="false"
  71181. static="false" final="false" visibility="public"
  71182. deprecated="not deprecated">
  71183. <doc>
  71184. <![CDATA[Get the launch time]]>
  71185. </doc>
  71186. </method>
  71187. <method name="getTotalMaps" return="int"
  71188. abstract="false" native="false" synchronized="false"
  71189. static="false" final="false" visibility="public"
  71190. deprecated="not deprecated">
  71191. <doc>
  71192. <![CDATA[Get the total number of maps]]>
  71193. </doc>
  71194. </method>
  71195. <method name="getTotalReduces" return="int"
  71196. abstract="false" native="false" synchronized="false"
  71197. static="false" final="false" visibility="public"
  71198. deprecated="not deprecated">
  71199. <doc>
  71200. <![CDATA[Get the total number of reduces]]>
  71201. </doc>
  71202. </method>
  71203. <method name="getStatus" return="java.lang.String"
  71204. abstract="false" native="false" synchronized="false"
  71205. static="false" final="false" visibility="public"
  71206. deprecated="not deprecated">
  71207. <doc>
  71208. <![CDATA[Get the status]]>
  71209. </doc>
  71210. </method>
  71211. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71212. abstract="false" native="false" synchronized="false"
  71213. static="false" final="false" visibility="public"
  71214. deprecated="not deprecated">
  71215. <doc>
  71216. <![CDATA[Get the event type]]>
  71217. </doc>
  71218. </method>
  71219. <doc>
  71220. <![CDATA[Event to record the initialization of a job]]>
  71221. </doc>
  71222. </class>
  71223. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  71224. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  71225. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  71226. abstract="false"
  71227. static="false" final="false" visibility="public"
  71228. deprecated="not deprecated">
  71229. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71230. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  71231. static="false" final="false" visibility="public"
  71232. deprecated="not deprecated">
  71233. <doc>
  71234. <![CDATA[Generate an event to record changes in Job priority
  71235. @param id Job Id
  71236. @param priority The new priority of the job]]>
  71237. </doc>
  71238. </constructor>
  71239. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71240. abstract="false" native="false" synchronized="false"
  71241. static="false" final="false" visibility="public"
  71242. deprecated="not deprecated">
  71243. <doc>
  71244. <![CDATA[Get the Job ID]]>
  71245. </doc>
  71246. </method>
  71247. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  71248. abstract="false" native="false" synchronized="false"
  71249. static="false" final="false" visibility="public"
  71250. deprecated="not deprecated">
  71251. <doc>
  71252. <![CDATA[Get the job priority]]>
  71253. </doc>
  71254. </method>
  71255. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71256. abstract="false" native="false" synchronized="false"
  71257. static="false" final="false" visibility="public"
  71258. deprecated="not deprecated">
  71259. <doc>
  71260. <![CDATA[Get the event type]]>
  71261. </doc>
  71262. </method>
  71263. <doc>
  71264. <![CDATA[Event to record the change of priority of a job]]>
  71265. </doc>
  71266. </class>
  71267. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  71268. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  71269. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  71270. abstract="false"
  71271. static="false" final="false" visibility="public"
  71272. deprecated="not deprecated">
  71273. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71274. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  71275. static="false" final="false" visibility="public"
  71276. deprecated="not deprecated">
  71277. <doc>
  71278. <![CDATA[Create an event to record the change in the Job Status
  71279. @param id Job ID
  71280. @param jobStatus The new job status]]>
  71281. </doc>
  71282. </constructor>
  71283. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71284. abstract="false" native="false" synchronized="false"
  71285. static="false" final="false" visibility="public"
  71286. deprecated="not deprecated">
  71287. <doc>
  71288. <![CDATA[Get the Job Id]]>
  71289. </doc>
  71290. </method>
  71291. <method name="getStatus" return="java.lang.String"
  71292. abstract="false" native="false" synchronized="false"
  71293. static="false" final="false" visibility="public"
  71294. deprecated="not deprecated">
  71295. <doc>
  71296. <![CDATA[Get the event status]]>
  71297. </doc>
  71298. </method>
  71299. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71300. abstract="false" native="false" synchronized="false"
  71301. static="false" final="false" visibility="public"
  71302. deprecated="not deprecated">
  71303. <doc>
  71304. <![CDATA[Get the event type]]>
  71305. </doc>
  71306. </method>
  71307. <doc>
  71308. <![CDATA[Event to record the change of status for a job]]>
  71309. </doc>
  71310. </class>
  71311. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  71312. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  71313. <interface name="JobStory" abstract="true"
  71314. static="false" final="false" visibility="public"
  71315. deprecated="not deprecated">
  71316. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  71317. abstract="false" native="false" synchronized="false"
  71318. static="false" final="false" visibility="public"
  71319. deprecated="not deprecated">
  71320. <doc>
  71321. <![CDATA[Get the {@link JobConf} for the job.
  71322. @return the <code>JobConf</code> for the job]]>
  71323. </doc>
  71324. </method>
  71325. <method name="getName" return="java.lang.String"
  71326. abstract="false" native="false" synchronized="false"
  71327. static="false" final="false" visibility="public"
  71328. deprecated="not deprecated">
  71329. <doc>
  71330. <![CDATA[Get the job name.
  71331. @return the job name]]>
  71332. </doc>
  71333. </method>
  71334. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  71335. abstract="false" native="false" synchronized="false"
  71336. static="false" final="false" visibility="public"
  71337. deprecated="not deprecated">
  71338. <doc>
  71339. <![CDATA[Get the job ID
  71340. @return the job ID]]>
  71341. </doc>
  71342. </method>
  71343. <method name="getUser" return="java.lang.String"
  71344. abstract="false" native="false" synchronized="false"
  71345. static="false" final="false" visibility="public"
  71346. deprecated="not deprecated">
  71347. <doc>
  71348. <![CDATA[Get the user who ran the job.
  71349. @return the user who ran the job]]>
  71350. </doc>
  71351. </method>
  71352. <method name="getSubmissionTime" return="long"
  71353. abstract="false" native="false" synchronized="false"
  71354. static="false" final="false" visibility="public"
  71355. deprecated="not deprecated">
  71356. <doc>
  71357. <![CDATA[Get the job submission time.
  71358. @return the job submission time]]>
  71359. </doc>
  71360. </method>
  71361. <method name="getNumberMaps" return="int"
  71362. abstract="false" native="false" synchronized="false"
  71363. static="false" final="false" visibility="public"
  71364. deprecated="not deprecated">
  71365. <doc>
  71366. <![CDATA[Get the number of maps in the {@link JobStory}.
  71367. @return the number of maps in the <code>Job</code>]]>
  71368. </doc>
  71369. </method>
  71370. <method name="getNumberReduces" return="int"
  71371. abstract="false" native="false" synchronized="false"
  71372. static="false" final="false" visibility="public"
  71373. deprecated="not deprecated">
  71374. <doc>
  71375. <![CDATA[Get the number of reduce in the {@link JobStory}.
  71376. @return the number of reduces in the <code>Job</code>]]>
  71377. </doc>
  71378. </method>
  71379. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  71380. abstract="false" native="false" synchronized="false"
  71381. static="false" final="false" visibility="public"
  71382. deprecated="not deprecated">
  71383. <doc>
  71384. <![CDATA[Get the input splits for the job.
  71385. @return the input splits for the job]]>
  71386. </doc>
  71387. </method>
  71388. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  71389. abstract="false" native="false" synchronized="false"
  71390. static="false" final="false" visibility="public"
  71391. deprecated="not deprecated">
  71392. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  71393. <param name="taskNumber" type="int"/>
  71394. <doc>
  71395. <![CDATA[Get {@link TaskInfo} for a given task.
  71396. @param taskType {@link TaskType} of the task
  71397. @param taskNumber Partition number of the task
  71398. @return the <code>TaskInfo</code> for the given task]]>
  71399. </doc>
  71400. </method>
  71401. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  71402. abstract="false" native="false" synchronized="false"
  71403. static="false" final="false" visibility="public"
  71404. deprecated="not deprecated">
  71405. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  71406. <param name="taskNumber" type="int"/>
  71407. <param name="taskAttemptNumber" type="int"/>
  71408. <doc>
  71409. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  71410. impact of locality (e.g. not needed to make scheduling decisions).
  71411. @param taskType {@link TaskType} of the task-attempt
  71412. @param taskNumber Partition number of the task-attempt
  71413. @param taskAttemptNumber Attempt number of the task
  71414. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  71415. </doc>
  71416. </method>
  71417. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  71418. abstract="false" native="false" synchronized="false"
  71419. static="false" final="false" visibility="public"
  71420. deprecated="not deprecated">
  71421. <param name="taskNumber" type="int"/>
  71422. <param name="taskAttemptNumber" type="int"/>
  71423. <param name="locality" type="int"/>
  71424. <doc>
  71425. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  71426. of locality.
  71427. @param taskNumber Partition number of the task-attempt
  71428. @param taskAttemptNumber Attempt number of the task
  71429. @param locality Data locality of the task as scheduled in simulation
  71430. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  71431. </doc>
  71432. </method>
  71433. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  71434. abstract="false" native="false" synchronized="false"
  71435. static="false" final="false" visibility="public"
  71436. deprecated="not deprecated">
  71437. <doc>
  71438. <![CDATA[Get the outcome of the job execution.
  71439. @return The outcome of the job execution.]]>
  71440. </doc>
  71441. </method>
  71442. <method name="getQueueName" return="java.lang.String"
  71443. abstract="false" native="false" synchronized="false"
  71444. static="false" final="false" visibility="public"
  71445. deprecated="not deprecated">
  71446. <doc>
  71447. <![CDATA[Get the queue where the job is submitted.
  71448. @return the queue where the job is submitted.]]>
  71449. </doc>
  71450. </method>
  71451. <doc>
  71452. <![CDATA[{@link JobStory} represents the runtime information available for a
  71453. completed Map-Reduce job.]]>
  71454. </doc>
  71455. </interface>
  71456. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  71457. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  71458. <interface name="JobStoryProducer" abstract="true"
  71459. static="false" final="false" visibility="public"
  71460. deprecated="not deprecated">
  71461. <implements name="java.io.Closeable"/>
  71462. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  71463. abstract="false" native="false" synchronized="false"
  71464. static="false" final="false" visibility="public"
  71465. deprecated="not deprecated">
  71466. <exception name="IOException" type="java.io.IOException"/>
  71467. <doc>
  71468. <![CDATA[Get the next job.
  71469. @return The next job. Or null if no more job is available.
  71470. @throws IOException]]>
  71471. </doc>
  71472. </method>
  71473. <doc>
  71474. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  71475. </doc>
  71476. </interface>
  71477. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  71478. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  71479. <class name="JobSubmittedEvent" extends="java.lang.Object"
  71480. abstract="false"
  71481. static="false" final="false" visibility="public"
  71482. deprecated="not deprecated">
  71483. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71484. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  71485. static="false" final="false" visibility="public"
  71486. deprecated="Use
  71487. {@link #JobSubmittedEvent(JobID, String, String, long, String, Map)}
  71488. instead.">
  71489. <doc>
  71490. <![CDATA[@deprecated Use
  71491. {@link #JobSubmittedEvent(JobID, String, String, long, String, Map)}
  71492. instead.]]>
  71493. </doc>
  71494. </constructor>
  71495. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  71496. static="false" final="false" visibility="public"
  71497. deprecated="not deprecated">
  71498. <doc>
  71499. <![CDATA[Create an event to record job submission
  71500. @param id The job Id of the job
  71501. @param jobName Name of the job
  71502. @param userName Name of the user who submitted the job
  71503. @param submitTime Time of submission
  71504. @param jobConfPath Path of the Job Configuration file
  71505. @param jobACLs The configured acls for the job.]]>
  71506. </doc>
  71507. </constructor>
  71508. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71509. abstract="false" native="false" synchronized="false"
  71510. static="false" final="false" visibility="public"
  71511. deprecated="not deprecated">
  71512. <doc>
  71513. <![CDATA[Get the Job Id]]>
  71514. </doc>
  71515. </method>
  71516. <method name="getJobName" return="java.lang.String"
  71517. abstract="false" native="false" synchronized="false"
  71518. static="false" final="false" visibility="public"
  71519. deprecated="not deprecated">
  71520. <doc>
  71521. <![CDATA[Get the Job name]]>
  71522. </doc>
  71523. </method>
  71524. <method name="getUserName" return="java.lang.String"
  71525. abstract="false" native="false" synchronized="false"
  71526. static="false" final="false" visibility="public"
  71527. deprecated="not deprecated">
  71528. <doc>
  71529. <![CDATA[Get the user name]]>
  71530. </doc>
  71531. </method>
  71532. <method name="getSubmitTime" return="long"
  71533. abstract="false" native="false" synchronized="false"
  71534. static="false" final="false" visibility="public"
  71535. deprecated="not deprecated">
  71536. <doc>
  71537. <![CDATA[Get the submit time]]>
  71538. </doc>
  71539. </method>
  71540. <method name="getJobConfPath" return="java.lang.String"
  71541. abstract="false" native="false" synchronized="false"
  71542. static="false" final="false" visibility="public"
  71543. deprecated="not deprecated">
  71544. <doc>
  71545. <![CDATA[Get the Path for the Job Configuration file]]>
  71546. </doc>
  71547. </method>
  71548. <method name="getJobAcls" return="java.util.Map"
  71549. abstract="false" native="false" synchronized="false"
  71550. static="false" final="false" visibility="public"
  71551. deprecated="not deprecated">
  71552. <doc>
  71553. <![CDATA[Get the acls configured for the job]]>
  71554. </doc>
  71555. </method>
  71556. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71557. abstract="false" native="false" synchronized="false"
  71558. static="false" final="false" visibility="public"
  71559. deprecated="not deprecated">
  71560. <doc>
  71561. <![CDATA[Get the event type]]>
  71562. </doc>
  71563. </method>
  71564. <doc>
  71565. <![CDATA[Event to record the submission of a job]]>
  71566. </doc>
  71567. </class>
  71568. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  71569. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  71570. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  71571. abstract="false"
  71572. static="false" final="false" visibility="public"
  71573. deprecated="not deprecated">
  71574. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  71575. static="false" final="false" visibility="public"
  71576. deprecated="not deprecated">
  71577. <exception name="IOException" type="java.io.IOException"/>
  71578. <doc>
  71579. <![CDATA[Constructor.
  71580. @param path
  71581. Path to the JSON trace file, possibly compressed.
  71582. @param conf
  71583. @throws IOException]]>
  71584. </doc>
  71585. </constructor>
  71586. <constructor name="JobTraceReader" type="java.io.InputStream"
  71587. static="false" final="false" visibility="public"
  71588. deprecated="not deprecated">
  71589. <exception name="IOException" type="java.io.IOException"/>
  71590. <doc>
  71591. <![CDATA[Constructor.
  71592. @param input
  71593. The input stream for the JSON trace.]]>
  71594. </doc>
  71595. </constructor>
  71596. <doc>
  71597. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  71598. </doc>
  71599. </class>
  71600. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  71601. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  71602. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  71603. abstract="false"
  71604. static="false" final="false" visibility="public"
  71605. deprecated="not deprecated">
  71606. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  71607. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  71608. static="false" final="false" visibility="public"
  71609. deprecated="not deprecated">
  71610. <doc>
  71611. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  71612. @param id Job ID
  71613. @param finishTime Finish time of the job
  71614. @param finishedMaps Number of finished maps
  71615. @param finishedReduces Number of finished reduces
  71616. @param status Status of the job]]>
  71617. </doc>
  71618. </constructor>
  71619. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  71620. abstract="false" native="false" synchronized="false"
  71621. static="false" final="false" visibility="public"
  71622. deprecated="not deprecated">
  71623. <doc>
  71624. <![CDATA[Get the Job ID]]>
  71625. </doc>
  71626. </method>
  71627. <method name="getFinishTime" return="long"
  71628. abstract="false" native="false" synchronized="false"
  71629. static="false" final="false" visibility="public"
  71630. deprecated="not deprecated">
  71631. <doc>
  71632. <![CDATA[Get the job finish time]]>
  71633. </doc>
  71634. </method>
  71635. <method name="getFinishedMaps" return="int"
  71636. abstract="false" native="false" synchronized="false"
  71637. static="false" final="false" visibility="public"
  71638. deprecated="not deprecated">
  71639. <doc>
  71640. <![CDATA[Get the number of finished maps]]>
  71641. </doc>
  71642. </method>
  71643. <method name="getFinishedReduces" return="int"
  71644. abstract="false" native="false" synchronized="false"
  71645. static="false" final="false" visibility="public"
  71646. deprecated="not deprecated">
  71647. <doc>
  71648. <![CDATA[Get the number of finished reduces]]>
  71649. </doc>
  71650. </method>
  71651. <method name="getStatus" return="java.lang.String"
  71652. abstract="false" native="false" synchronized="false"
  71653. static="false" final="false" visibility="public"
  71654. deprecated="not deprecated">
  71655. <doc>
  71656. <![CDATA[Get the status]]>
  71657. </doc>
  71658. </method>
  71659. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  71660. abstract="false" native="false" synchronized="false"
  71661. static="false" final="false" visibility="public"
  71662. deprecated="not deprecated">
  71663. <doc>
  71664. <![CDATA[Get the event type]]>
  71665. </doc>
  71666. </method>
  71667. <doc>
  71668. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  71669. </doc>
  71670. </class>
  71671. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  71672. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  71673. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  71674. abstract="false"
  71675. static="false" final="false" visibility="public"
  71676. deprecated="not deprecated">
  71677. <implements name="java.io.Closeable"/>
  71678. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  71679. static="false" final="false" visibility="public"
  71680. deprecated="not deprecated">
  71681. <exception name="IOException" type="java.io.IOException"/>
  71682. </constructor>
  71683. <method name="write"
  71684. abstract="false" native="false" synchronized="false"
  71685. static="false" final="false" visibility="public"
  71686. deprecated="not deprecated">
  71687. <param name="object" type="java.lang.Object"/>
  71688. <exception name="IOException" type="java.io.IOException"/>
  71689. </method>
  71690. <method name="close"
  71691. abstract="false" native="false" synchronized="false"
  71692. static="false" final="false" visibility="public"
  71693. deprecated="not deprecated">
  71694. <exception name="IOException" type="java.io.IOException"/>
  71695. </method>
  71696. <doc>
  71697. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  71698. @param <T> The type of the objects to be written.]]>
  71699. </doc>
  71700. </class>
  71701. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  71702. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  71703. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  71704. abstract="false"
  71705. static="false" final="false" visibility="public"
  71706. deprecated="not deprecated">
  71707. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71708. <constructor name="LoggedDiscreteCDF"
  71709. static="false" final="false" visibility="public"
  71710. deprecated="not deprecated">
  71711. </constructor>
  71712. <method name="getMinimum" return="long"
  71713. abstract="false" native="false" synchronized="false"
  71714. static="false" final="false" visibility="public"
  71715. deprecated="not deprecated">
  71716. </method>
  71717. <method name="getRankings" return="java.util.List"
  71718. abstract="false" native="false" synchronized="false"
  71719. static="false" final="false" visibility="public"
  71720. deprecated="not deprecated">
  71721. </method>
  71722. <method name="getMaximum" return="long"
  71723. abstract="false" native="false" synchronized="false"
  71724. static="false" final="false" visibility="public"
  71725. deprecated="not deprecated">
  71726. </method>
  71727. <method name="getNumberValues" return="long"
  71728. abstract="false" native="false" synchronized="false"
  71729. static="false" final="false" visibility="public"
  71730. deprecated="not deprecated">
  71731. </method>
  71732. <method name="deepCompare"
  71733. abstract="false" native="false" synchronized="false"
  71734. static="false" final="false" visibility="public"
  71735. deprecated="not deprecated">
  71736. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71737. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  71738. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  71739. </method>
  71740. <doc>
  71741. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  71742. distribution function, with this class set up to meet the requirements of the
  71743. Jackson JSON parser/generator.
  71744. All of the public methods are simply accessors for the instance variables we
  71745. want to write out in the JSON files.]]>
  71746. </doc>
  71747. </class>
  71748. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  71749. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  71750. <class name="LoggedJob" extends="java.lang.Object"
  71751. abstract="false"
  71752. static="false" final="false" visibility="public"
  71753. deprecated="not deprecated">
  71754. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71755. <method name="setUnknownAttribute"
  71756. abstract="false" native="false" synchronized="false"
  71757. static="false" final="false" visibility="public"
  71758. deprecated="not deprecated">
  71759. <param name="attributeName" type="java.lang.String"/>
  71760. <param name="ignored" type="java.lang.Object"/>
  71761. </method>
  71762. <method name="getUser" return="java.lang.String"
  71763. abstract="false" native="false" synchronized="false"
  71764. static="false" final="false" visibility="public"
  71765. deprecated="not deprecated">
  71766. </method>
  71767. <method name="getJobID" return="java.lang.String"
  71768. abstract="false" native="false" synchronized="false"
  71769. static="false" final="false" visibility="public"
  71770. deprecated="not deprecated">
  71771. </method>
  71772. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71773. abstract="false" native="false" synchronized="false"
  71774. static="false" final="false" visibility="public"
  71775. deprecated="not deprecated">
  71776. </method>
  71777. <method name="getComputonsPerMapInputByte" return="long"
  71778. abstract="false" native="false" synchronized="false"
  71779. static="false" final="false" visibility="public"
  71780. deprecated="not deprecated">
  71781. </method>
  71782. <method name="getComputonsPerMapOutputByte" return="long"
  71783. abstract="false" native="false" synchronized="false"
  71784. static="false" final="false" visibility="public"
  71785. deprecated="not deprecated">
  71786. </method>
  71787. <method name="getComputonsPerReduceInputByte" return="long"
  71788. abstract="false" native="false" synchronized="false"
  71789. static="false" final="false" visibility="public"
  71790. deprecated="not deprecated">
  71791. </method>
  71792. <method name="getComputonsPerReduceOutputByte" return="long"
  71793. abstract="false" native="false" synchronized="false"
  71794. static="false" final="false" visibility="public"
  71795. deprecated="not deprecated">
  71796. </method>
  71797. <method name="getSubmitTime" return="long"
  71798. abstract="false" native="false" synchronized="false"
  71799. static="false" final="false" visibility="public"
  71800. deprecated="not deprecated">
  71801. </method>
  71802. <method name="getLaunchTime" return="long"
  71803. abstract="false" native="false" synchronized="false"
  71804. static="false" final="false" visibility="public"
  71805. deprecated="not deprecated">
  71806. </method>
  71807. <method name="getFinishTime" return="long"
  71808. abstract="false" native="false" synchronized="false"
  71809. static="false" final="false" visibility="public"
  71810. deprecated="not deprecated">
  71811. </method>
  71812. <method name="getHeapMegabytes" return="int"
  71813. abstract="false" native="false" synchronized="false"
  71814. static="false" final="false" visibility="public"
  71815. deprecated="not deprecated">
  71816. </method>
  71817. <method name="getTotalMaps" return="int"
  71818. abstract="false" native="false" synchronized="false"
  71819. static="false" final="false" visibility="public"
  71820. deprecated="not deprecated">
  71821. </method>
  71822. <method name="getTotalReduces" return="int"
  71823. abstract="false" native="false" synchronized="false"
  71824. static="false" final="false" visibility="public"
  71825. deprecated="not deprecated">
  71826. </method>
  71827. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  71828. abstract="false" native="false" synchronized="false"
  71829. static="false" final="false" visibility="public"
  71830. deprecated="not deprecated">
  71831. </method>
  71832. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71833. abstract="false" native="false" synchronized="false"
  71834. static="false" final="false" visibility="public"
  71835. deprecated="not deprecated">
  71836. </method>
  71837. <method name="getDirectDependantJobs" return="java.util.List"
  71838. abstract="false" native="false" synchronized="false"
  71839. static="false" final="false" visibility="public"
  71840. deprecated="not deprecated">
  71841. </method>
  71842. <method name="getMapTasks" return="java.util.List"
  71843. abstract="false" native="false" synchronized="false"
  71844. static="false" final="false" visibility="public"
  71845. deprecated="not deprecated">
  71846. </method>
  71847. <method name="getReduceTasks" return="java.util.List"
  71848. abstract="false" native="false" synchronized="false"
  71849. static="false" final="false" visibility="public"
  71850. deprecated="not deprecated">
  71851. </method>
  71852. <method name="getOtherTasks" return="java.util.List"
  71853. abstract="false" native="false" synchronized="false"
  71854. static="false" final="false" visibility="public"
  71855. deprecated="not deprecated">
  71856. </method>
  71857. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  71858. abstract="false" native="false" synchronized="false"
  71859. static="false" final="false" visibility="public"
  71860. deprecated="not deprecated">
  71861. </method>
  71862. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  71863. abstract="false" native="false" synchronized="false"
  71864. static="false" final="false" visibility="public"
  71865. deprecated="not deprecated">
  71866. </method>
  71867. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  71868. abstract="false" native="false" synchronized="false"
  71869. static="false" final="false" visibility="public"
  71870. deprecated="not deprecated">
  71871. </method>
  71872. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  71873. abstract="false" native="false" synchronized="false"
  71874. static="false" final="false" visibility="public"
  71875. deprecated="not deprecated">
  71876. </method>
  71877. <method name="getMapperTriesToSucceed" return="double[]"
  71878. abstract="false" native="false" synchronized="false"
  71879. static="false" final="false" visibility="public"
  71880. deprecated="not deprecated">
  71881. </method>
  71882. <method name="getFailedMapperFraction" return="double"
  71883. abstract="false" native="false" synchronized="false"
  71884. static="false" final="false" visibility="public"
  71885. deprecated="not deprecated">
  71886. </method>
  71887. <method name="getRelativeTime" return="long"
  71888. abstract="false" native="false" synchronized="false"
  71889. static="false" final="false" visibility="public"
  71890. deprecated="not deprecated">
  71891. </method>
  71892. <method name="getQueue" return="java.lang.String"
  71893. abstract="false" native="false" synchronized="false"
  71894. static="false" final="false" visibility="public"
  71895. deprecated="not deprecated">
  71896. </method>
  71897. <method name="getJobName" return="java.lang.String"
  71898. abstract="false" native="false" synchronized="false"
  71899. static="false" final="false" visibility="public"
  71900. deprecated="not deprecated">
  71901. </method>
  71902. <method name="getClusterMapMB" return="int"
  71903. abstract="false" native="false" synchronized="false"
  71904. static="false" final="false" visibility="public"
  71905. deprecated="not deprecated">
  71906. </method>
  71907. <method name="getClusterReduceMB" return="int"
  71908. abstract="false" native="false" synchronized="false"
  71909. static="false" final="false" visibility="public"
  71910. deprecated="not deprecated">
  71911. </method>
  71912. <method name="getJobMapMB" return="int"
  71913. abstract="false" native="false" synchronized="false"
  71914. static="false" final="false" visibility="public"
  71915. deprecated="not deprecated">
  71916. </method>
  71917. <method name="getJobReduceMB" return="int"
  71918. abstract="false" native="false" synchronized="false"
  71919. static="false" final="false" visibility="public"
  71920. deprecated="not deprecated">
  71921. </method>
  71922. <method name="deepCompare"
  71923. abstract="false" native="false" synchronized="false"
  71924. static="false" final="false" visibility="public"
  71925. deprecated="not deprecated">
  71926. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  71927. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  71928. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  71929. </method>
  71930. <doc>
  71931. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  71932. details of this class set up to meet the requirements of the Jackson JSON
  71933. parser/generator.
  71934. All of the public methods are simply accessors for the instance variables we
  71935. want to write out in the JSON files.]]>
  71936. </doc>
  71937. </class>
  71938. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  71939. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  71940. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  71941. abstract="false"
  71942. static="true" final="true" visibility="public"
  71943. deprecated="not deprecated">
  71944. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  71945. abstract="false" native="false" synchronized="false"
  71946. static="true" final="false" visibility="public"
  71947. deprecated="not deprecated">
  71948. </method>
  71949. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71950. abstract="false" native="false" synchronized="false"
  71951. static="true" final="false" visibility="public"
  71952. deprecated="not deprecated">
  71953. <param name="name" type="java.lang.String"/>
  71954. </method>
  71955. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71956. transient="false" volatile="false"
  71957. static="true" final="true" visibility="public"
  71958. deprecated="not deprecated">
  71959. </field>
  71960. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71961. transient="false" volatile="false"
  71962. static="true" final="true" visibility="public"
  71963. deprecated="not deprecated">
  71964. </field>
  71965. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71966. transient="false" volatile="false"
  71967. static="true" final="true" visibility="public"
  71968. deprecated="not deprecated">
  71969. </field>
  71970. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71971. transient="false" volatile="false"
  71972. static="true" final="true" visibility="public"
  71973. deprecated="not deprecated">
  71974. </field>
  71975. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  71976. transient="false" volatile="false"
  71977. static="true" final="true" visibility="public"
  71978. deprecated="not deprecated">
  71979. </field>
  71980. </class>
  71981. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  71982. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  71983. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  71984. abstract="false"
  71985. static="true" final="true" visibility="public"
  71986. deprecated="not deprecated">
  71987. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  71988. abstract="false" native="false" synchronized="false"
  71989. static="true" final="false" visibility="public"
  71990. deprecated="not deprecated">
  71991. </method>
  71992. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71993. abstract="false" native="false" synchronized="false"
  71994. static="true" final="false" visibility="public"
  71995. deprecated="not deprecated">
  71996. <param name="name" type="java.lang.String"/>
  71997. </method>
  71998. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  71999. transient="false" volatile="false"
  72000. static="true" final="true" visibility="public"
  72001. deprecated="not deprecated">
  72002. </field>
  72003. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  72004. transient="false" volatile="false"
  72005. static="true" final="true" visibility="public"
  72006. deprecated="not deprecated">
  72007. </field>
  72008. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  72009. transient="false" volatile="false"
  72010. static="true" final="true" visibility="public"
  72011. deprecated="not deprecated">
  72012. </field>
  72013. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  72014. transient="false" volatile="false"
  72015. static="true" final="true" visibility="public"
  72016. deprecated="not deprecated">
  72017. </field>
  72018. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  72019. transient="false" volatile="false"
  72020. static="true" final="true" visibility="public"
  72021. deprecated="not deprecated">
  72022. </field>
  72023. </class>
  72024. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  72025. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  72026. <class name="LoggedLocation" extends="java.lang.Object"
  72027. abstract="false"
  72028. static="false" final="false" visibility="public"
  72029. deprecated="not deprecated">
  72030. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72031. <constructor name="LoggedLocation"
  72032. static="false" final="false" visibility="public"
  72033. deprecated="not deprecated">
  72034. </constructor>
  72035. <method name="getLayers" return="java.util.List"
  72036. abstract="false" native="false" synchronized="false"
  72037. static="false" final="false" visibility="public"
  72038. deprecated="not deprecated">
  72039. </method>
  72040. <method name="setUnknownAttribute"
  72041. abstract="false" native="false" synchronized="false"
  72042. static="false" final="false" visibility="public"
  72043. deprecated="not deprecated">
  72044. <param name="attributeName" type="java.lang.String"/>
  72045. <param name="ignored" type="java.lang.Object"/>
  72046. </method>
  72047. <method name="deepCompare"
  72048. abstract="false" native="false" synchronized="false"
  72049. static="false" final="false" visibility="public"
  72050. deprecated="not deprecated">
  72051. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72052. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  72053. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  72054. </method>
  72055. <doc>
  72056. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  72057. network, represented as a series of membership names, broadest first.
  72058. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  72059. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  72060. would be represented with a ArrayList of two layers, with two {@link String}
  72061. s being {@code "rack1"} and {@code "node1"}.
  72062. The details of this class are set up to meet the requirements of the Jackson
  72063. JSON parser/generator.
  72064. All of the public methods are simply accessors for the instance variables we
  72065. want to write out in the JSON files.]]>
  72066. </doc>
  72067. </class>
  72068. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  72069. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  72070. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  72071. abstract="false"
  72072. static="false" final="false" visibility="public"
  72073. deprecated="not deprecated">
  72074. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72075. <constructor name="LoggedNetworkTopology"
  72076. static="false" final="false" visibility="public"
  72077. deprecated="not deprecated">
  72078. </constructor>
  72079. <method name="setUnknownAttribute"
  72080. abstract="false" native="false" synchronized="false"
  72081. static="false" final="false" visibility="public"
  72082. deprecated="not deprecated">
  72083. <param name="attributeName" type="java.lang.String"/>
  72084. <param name="ignored" type="java.lang.Object"/>
  72085. </method>
  72086. <method name="getName" return="java.lang.String"
  72087. abstract="false" native="false" synchronized="false"
  72088. static="false" final="false" visibility="public"
  72089. deprecated="not deprecated">
  72090. </method>
  72091. <method name="getChildren" return="java.util.List"
  72092. abstract="false" native="false" synchronized="false"
  72093. static="false" final="false" visibility="public"
  72094. deprecated="not deprecated">
  72095. </method>
  72096. <method name="deepCompare"
  72097. abstract="false" native="false" synchronized="false"
  72098. static="false" final="false" visibility="public"
  72099. deprecated="not deprecated">
  72100. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72101. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  72102. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  72103. </method>
  72104. <doc>
  72105. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  72106. hierarchy of hosts. The current version requires the tree to have all leaves
  72107. at the same level.
  72108. All of the public methods are simply accessors for the instance variables we
  72109. want to write out in the JSON files.]]>
  72110. </doc>
  72111. </class>
  72112. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  72113. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  72114. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  72115. abstract="false"
  72116. static="false" final="false" visibility="public"
  72117. deprecated="not deprecated">
  72118. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72119. <constructor name="LoggedSingleRelativeRanking"
  72120. static="false" final="false" visibility="public"
  72121. deprecated="not deprecated">
  72122. </constructor>
  72123. <method name="setUnknownAttribute"
  72124. abstract="false" native="false" synchronized="false"
  72125. static="false" final="false" visibility="public"
  72126. deprecated="not deprecated">
  72127. <param name="attributeName" type="java.lang.String"/>
  72128. <param name="ignored" type="java.lang.Object"/>
  72129. </method>
  72130. <method name="getRelativeRanking" return="double"
  72131. abstract="false" native="false" synchronized="false"
  72132. static="false" final="false" visibility="public"
  72133. deprecated="not deprecated">
  72134. </method>
  72135. <method name="getDatum" return="long"
  72136. abstract="false" native="false" synchronized="false"
  72137. static="false" final="false" visibility="public"
  72138. deprecated="not deprecated">
  72139. </method>
  72140. <method name="deepCompare"
  72141. abstract="false" native="false" synchronized="false"
  72142. static="false" final="false" visibility="public"
  72143. deprecated="not deprecated">
  72144. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72145. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  72146. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  72147. </method>
  72148. <doc>
  72149. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  72150. single point in a discrete CDF.
  72151. All of the public methods are simply accessors for the instance variables we
  72152. want to write out in the JSON files.]]>
  72153. </doc>
  72154. </class>
  72155. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  72156. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  72157. <class name="LoggedTask" extends="java.lang.Object"
  72158. abstract="false"
  72159. static="false" final="false" visibility="public"
  72160. deprecated="not deprecated">
  72161. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72162. <method name="setUnknownAttribute"
  72163. abstract="false" native="false" synchronized="false"
  72164. static="false" final="false" visibility="public"
  72165. deprecated="not deprecated">
  72166. <param name="attributeName" type="java.lang.String"/>
  72167. <param name="ignored" type="java.lang.Object"/>
  72168. </method>
  72169. <method name="getInputBytes" return="long"
  72170. abstract="false" native="false" synchronized="false"
  72171. static="false" final="false" visibility="public"
  72172. deprecated="not deprecated">
  72173. </method>
  72174. <method name="getInputRecords" return="long"
  72175. abstract="false" native="false" synchronized="false"
  72176. static="false" final="false" visibility="public"
  72177. deprecated="not deprecated">
  72178. </method>
  72179. <method name="getOutputBytes" return="long"
  72180. abstract="false" native="false" synchronized="false"
  72181. static="false" final="false" visibility="public"
  72182. deprecated="not deprecated">
  72183. </method>
  72184. <method name="getOutputRecords" return="long"
  72185. abstract="false" native="false" synchronized="false"
  72186. static="false" final="false" visibility="public"
  72187. deprecated="not deprecated">
  72188. </method>
  72189. <method name="getTaskID" return="java.lang.String"
  72190. abstract="false" native="false" synchronized="false"
  72191. static="false" final="false" visibility="public"
  72192. deprecated="not deprecated">
  72193. </method>
  72194. <method name="getStartTime" return="long"
  72195. abstract="false" native="false" synchronized="false"
  72196. static="false" final="false" visibility="public"
  72197. deprecated="not deprecated">
  72198. </method>
  72199. <method name="getFinishTime" return="long"
  72200. abstract="false" native="false" synchronized="false"
  72201. static="false" final="false" visibility="public"
  72202. deprecated="not deprecated">
  72203. </method>
  72204. <method name="getAttempts" return="java.util.List"
  72205. abstract="false" native="false" synchronized="false"
  72206. static="false" final="false" visibility="public"
  72207. deprecated="not deprecated">
  72208. </method>
  72209. <method name="getPreferredLocations" return="java.util.List"
  72210. abstract="false" native="false" synchronized="false"
  72211. static="false" final="false" visibility="public"
  72212. deprecated="not deprecated">
  72213. </method>
  72214. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72215. abstract="false" native="false" synchronized="false"
  72216. static="false" final="false" visibility="public"
  72217. deprecated="not deprecated">
  72218. </method>
  72219. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72220. abstract="false" native="false" synchronized="false"
  72221. static="false" final="false" visibility="public"
  72222. deprecated="not deprecated">
  72223. </method>
  72224. <method name="incorporateCounters"
  72225. abstract="false" native="false" synchronized="false"
  72226. static="false" final="false" visibility="public"
  72227. deprecated="not deprecated">
  72228. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  72229. </method>
  72230. <method name="deepCompare"
  72231. abstract="false" native="false" synchronized="false"
  72232. static="false" final="false" visibility="public"
  72233. deprecated="not deprecated">
  72234. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72235. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  72236. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  72237. </method>
  72238. <doc>
  72239. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  72240. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  72241. and its runtime.
  72242. All of the public methods are simply accessors for the instance variables we
  72243. want to write out in the JSON files.]]>
  72244. </doc>
  72245. </class>
  72246. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  72247. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  72248. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  72249. abstract="false"
  72250. static="false" final="false" visibility="public"
  72251. deprecated="not deprecated">
  72252. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72253. <method name="setUnknownAttribute"
  72254. abstract="false" native="false" synchronized="false"
  72255. static="false" final="false" visibility="public"
  72256. deprecated="not deprecated">
  72257. <param name="attributeName" type="java.lang.String"/>
  72258. <param name="ignored" type="java.lang.Object"/>
  72259. </method>
  72260. <method name="getShuffleFinished" return="long"
  72261. abstract="false" native="false" synchronized="false"
  72262. static="false" final="false" visibility="public"
  72263. deprecated="not deprecated">
  72264. </method>
  72265. <method name="getSortFinished" return="long"
  72266. abstract="false" native="false" synchronized="false"
  72267. static="false" final="false" visibility="public"
  72268. deprecated="not deprecated">
  72269. </method>
  72270. <method name="getAttemptID" return="java.lang.String"
  72271. abstract="false" native="false" synchronized="false"
  72272. static="false" final="false" visibility="public"
  72273. deprecated="not deprecated">
  72274. </method>
  72275. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72276. abstract="false" native="false" synchronized="false"
  72277. static="false" final="false" visibility="public"
  72278. deprecated="not deprecated">
  72279. </method>
  72280. <method name="getStartTime" return="long"
  72281. abstract="false" native="false" synchronized="false"
  72282. static="false" final="false" visibility="public"
  72283. deprecated="not deprecated">
  72284. </method>
  72285. <method name="getFinishTime" return="long"
  72286. abstract="false" native="false" synchronized="false"
  72287. static="false" final="false" visibility="public"
  72288. deprecated="not deprecated">
  72289. </method>
  72290. <method name="getHostName" return="java.lang.String"
  72291. abstract="false" native="false" synchronized="false"
  72292. static="false" final="false" visibility="public"
  72293. deprecated="not deprecated">
  72294. </method>
  72295. <method name="getHdfsBytesRead" return="long"
  72296. abstract="false" native="false" synchronized="false"
  72297. static="false" final="false" visibility="public"
  72298. deprecated="not deprecated">
  72299. </method>
  72300. <method name="getHdfsBytesWritten" return="long"
  72301. abstract="false" native="false" synchronized="false"
  72302. static="false" final="false" visibility="public"
  72303. deprecated="not deprecated">
  72304. </method>
  72305. <method name="getFileBytesRead" return="long"
  72306. abstract="false" native="false" synchronized="false"
  72307. static="false" final="false" visibility="public"
  72308. deprecated="not deprecated">
  72309. </method>
  72310. <method name="getFileBytesWritten" return="long"
  72311. abstract="false" native="false" synchronized="false"
  72312. static="false" final="false" visibility="public"
  72313. deprecated="not deprecated">
  72314. </method>
  72315. <method name="getMapInputRecords" return="long"
  72316. abstract="false" native="false" synchronized="false"
  72317. static="false" final="false" visibility="public"
  72318. deprecated="not deprecated">
  72319. </method>
  72320. <method name="getMapOutputBytes" return="long"
  72321. abstract="false" native="false" synchronized="false"
  72322. static="false" final="false" visibility="public"
  72323. deprecated="not deprecated">
  72324. </method>
  72325. <method name="getMapOutputRecords" return="long"
  72326. abstract="false" native="false" synchronized="false"
  72327. static="false" final="false" visibility="public"
  72328. deprecated="not deprecated">
  72329. </method>
  72330. <method name="getCombineInputRecords" return="long"
  72331. abstract="false" native="false" synchronized="false"
  72332. static="false" final="false" visibility="public"
  72333. deprecated="not deprecated">
  72334. </method>
  72335. <method name="getReduceInputGroups" return="long"
  72336. abstract="false" native="false" synchronized="false"
  72337. static="false" final="false" visibility="public"
  72338. deprecated="not deprecated">
  72339. </method>
  72340. <method name="getReduceInputRecords" return="long"
  72341. abstract="false" native="false" synchronized="false"
  72342. static="false" final="false" visibility="public"
  72343. deprecated="not deprecated">
  72344. </method>
  72345. <method name="getReduceShuffleBytes" return="long"
  72346. abstract="false" native="false" synchronized="false"
  72347. static="false" final="false" visibility="public"
  72348. deprecated="not deprecated">
  72349. </method>
  72350. <method name="getReduceOutputRecords" return="long"
  72351. abstract="false" native="false" synchronized="false"
  72352. static="false" final="false" visibility="public"
  72353. deprecated="not deprecated">
  72354. </method>
  72355. <method name="getSpilledRecords" return="long"
  72356. abstract="false" native="false" synchronized="false"
  72357. static="false" final="false" visibility="public"
  72358. deprecated="not deprecated">
  72359. </method>
  72360. <method name="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  72361. abstract="false" native="false" synchronized="false"
  72362. static="false" final="false" visibility="public"
  72363. deprecated="not deprecated">
  72364. </method>
  72365. <method name="getMapInputBytes" return="long"
  72366. abstract="false" native="false" synchronized="false"
  72367. static="false" final="false" visibility="public"
  72368. deprecated="not deprecated">
  72369. </method>
  72370. <method name="incorporateCounters"
  72371. abstract="false" native="false" synchronized="false"
  72372. static="false" final="false" visibility="public"
  72373. deprecated="not deprecated">
  72374. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  72375. </method>
  72376. <method name="deepCompare"
  72377. abstract="false" native="false" synchronized="false"
  72378. static="false" final="false" visibility="public"
  72379. deprecated="not deprecated">
  72380. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  72381. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  72382. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  72383. </method>
  72384. <doc>
  72385. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  72386. hadoop job. Note that a task can have several attempts.
  72387. All of the public methods are simply accessors for the instance variables we
  72388. want to write out in the JSON files.]]>
  72389. </doc>
  72390. </class>
  72391. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  72392. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  72393. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  72394. abstract="false"
  72395. static="false" final="true" visibility="public"
  72396. deprecated="not deprecated">
  72397. <method name="equals" return="boolean"
  72398. abstract="false" native="false" synchronized="false"
  72399. static="false" final="false" visibility="public"
  72400. deprecated="not deprecated">
  72401. <param name="obj" type="java.lang.Object"/>
  72402. </method>
  72403. <method name="hashCode" return="int"
  72404. abstract="false" native="false" synchronized="false"
  72405. static="false" final="false" visibility="public"
  72406. deprecated="not deprecated">
  72407. </method>
  72408. <method name="getMemory" return="long"
  72409. abstract="false" native="false" synchronized="false"
  72410. static="false" final="false" visibility="public"
  72411. deprecated="not deprecated">
  72412. <doc>
  72413. <![CDATA[Get the available physical RAM of the node.
  72414. @return The available physical RAM of the node, in KB.]]>
  72415. </doc>
  72416. </method>
  72417. <method name="getMapSlots" return="int"
  72418. abstract="false" native="false" synchronized="false"
  72419. static="false" final="false" visibility="public"
  72420. deprecated="not deprecated">
  72421. <doc>
  72422. <![CDATA[Get the number of map slots of the node.
  72423. @return The number of map slots of the node.]]>
  72424. </doc>
  72425. </method>
  72426. <method name="getReduceSlots" return="int"
  72427. abstract="false" native="false" synchronized="false"
  72428. static="false" final="false" visibility="public"
  72429. deprecated="not deprecated">
  72430. <doc>
  72431. <![CDATA[Get the number of reduce slots of the node.
  72432. @return The number of reduce slots fo the node.]]>
  72433. </doc>
  72434. </method>
  72435. <method name="getMemoryPerMapSlot" return="long"
  72436. abstract="false" native="false" synchronized="false"
  72437. static="false" final="false" visibility="public"
  72438. deprecated="not deprecated">
  72439. <doc>
  72440. <![CDATA[Get the amount of RAM reserved for each map slot.
  72441. @return the amount of RAM reserved for each map slot, in KB.]]>
  72442. </doc>
  72443. </method>
  72444. <method name="getMemoryPerReduceSlot" return="long"
  72445. abstract="false" native="false" synchronized="false"
  72446. static="false" final="false" visibility="public"
  72447. deprecated="not deprecated">
  72448. <doc>
  72449. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  72450. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  72451. </doc>
  72452. </method>
  72453. <method name="getNumCores" return="int"
  72454. abstract="false" native="false" synchronized="false"
  72455. static="false" final="false" visibility="public"
  72456. deprecated="not deprecated">
  72457. <doc>
  72458. <![CDATA[Get the number of cores of the node.
  72459. @return the number of cores of the node.]]>
  72460. </doc>
  72461. </method>
  72462. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  72463. abstract="false" native="false" synchronized="false"
  72464. static="false" final="false" visibility="public"
  72465. deprecated="not deprecated">
  72466. <doc>
  72467. <![CDATA[Get the rack node that the machine belongs to.
  72468. @return The rack node that the machine belongs to. Returns null if the
  72469. machine does not belong to any rack.]]>
  72470. </doc>
  72471. </method>
  72472. <method name="addChild" return="boolean"
  72473. abstract="false" native="false" synchronized="true"
  72474. static="false" final="false" visibility="public"
  72475. deprecated="not deprecated">
  72476. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  72477. </method>
  72478. <doc>
  72479. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  72480. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  72481. </doc>
  72482. </class>
  72483. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  72484. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  72485. <class name="MachineNode.Builder" extends="java.lang.Object"
  72486. abstract="false"
  72487. static="true" final="true" visibility="public"
  72488. deprecated="not deprecated">
  72489. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  72490. static="false" final="false" visibility="public"
  72491. deprecated="not deprecated">
  72492. <doc>
  72493. <![CDATA[Start building a new NodeInfo object.
  72494. @param name
  72495. Unique name of the node. Typically the fully qualified domain
  72496. name.]]>
  72497. </doc>
  72498. </constructor>
  72499. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72500. abstract="false" native="false" synchronized="false"
  72501. static="false" final="false" visibility="public"
  72502. deprecated="not deprecated">
  72503. <param name="memory" type="long"/>
  72504. <doc>
  72505. <![CDATA[Set the physical memory of the node.
  72506. @param memory Available RAM in KB.]]>
  72507. </doc>
  72508. </method>
  72509. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72510. abstract="false" native="false" synchronized="false"
  72511. static="false" final="false" visibility="public"
  72512. deprecated="not deprecated">
  72513. <param name="mapSlots" type="int"/>
  72514. <doc>
  72515. <![CDATA[Set the number of map slot for the node.
  72516. @param mapSlots The number of map slots for the node.]]>
  72517. </doc>
  72518. </method>
  72519. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72520. abstract="false" native="false" synchronized="false"
  72521. static="false" final="false" visibility="public"
  72522. deprecated="not deprecated">
  72523. <param name="reduceSlots" type="int"/>
  72524. <doc>
  72525. <![CDATA[Set the number of reduce slot for the node.
  72526. @param reduceSlots The number of reduce slots for the node.]]>
  72527. </doc>
  72528. </method>
  72529. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72530. abstract="false" native="false" synchronized="false"
  72531. static="false" final="false" visibility="public"
  72532. deprecated="not deprecated">
  72533. <param name="memoryPerMapSlot" type="long"/>
  72534. <doc>
  72535. <![CDATA[Set the amount of RAM reserved for each map slot.
  72536. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  72537. </doc>
  72538. </method>
  72539. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72540. abstract="false" native="false" synchronized="false"
  72541. static="false" final="false" visibility="public"
  72542. deprecated="not deprecated">
  72543. <param name="memoryPerReduceSlot" type="long"/>
  72544. <doc>
  72545. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  72546. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  72547. </doc>
  72548. </method>
  72549. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72550. abstract="false" native="false" synchronized="false"
  72551. static="false" final="false" visibility="public"
  72552. deprecated="not deprecated">
  72553. <param name="numCores" type="int"/>
  72554. <doc>
  72555. <![CDATA[Set the number of cores for the node.
  72556. @param numCores Number of cores for the node.]]>
  72557. </doc>
  72558. </method>
  72559. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  72560. abstract="false" native="false" synchronized="false"
  72561. static="false" final="false" visibility="public"
  72562. deprecated="not deprecated">
  72563. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  72564. <doc>
  72565. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  72566. @param ref The reference {@link MachineNode} object.]]>
  72567. </doc>
  72568. </method>
  72569. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  72570. abstract="false" native="false" synchronized="false"
  72571. static="false" final="false" visibility="public"
  72572. deprecated="not deprecated">
  72573. <doc>
  72574. <![CDATA[Build the {@link MachineNode} object.
  72575. @return The {@link MachineNode} object being built.]]>
  72576. </doc>
  72577. </method>
  72578. <doc>
  72579. <![CDATA[Builder for a NodeInfo object]]>
  72580. </doc>
  72581. </class>
  72582. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  72583. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  72584. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  72585. abstract="false"
  72586. static="false" final="false" visibility="public"
  72587. deprecated="not deprecated">
  72588. <constructor name="MapAttempt20LineHistoryEventEmitter"
  72589. static="false" final="false" visibility="protected"
  72590. deprecated="not deprecated">
  72591. </constructor>
  72592. </class>
  72593. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  72594. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  72595. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  72596. abstract="false"
  72597. static="false" final="false" visibility="public"
  72598. deprecated="not deprecated">
  72599. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  72600. <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"
  72601. static="false" final="false" visibility="public"
  72602. deprecated="not deprecated">
  72603. <doc>
  72604. <![CDATA[Create an event for successful completion of map attempts
  72605. @param id Task Attempt ID
  72606. @param taskType Type of the task
  72607. @param taskStatus Status of the task
  72608. @param mapFinishTime Finish time of the map phase
  72609. @param finishTime Finish time of the attempt
  72610. @param hostname Name of the host where the map executed
  72611. @param state State string for the attempt
  72612. @param counters Counters for the attempt]]>
  72613. </doc>
  72614. </constructor>
  72615. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  72616. abstract="false" native="false" synchronized="false"
  72617. static="false" final="false" visibility="public"
  72618. deprecated="not deprecated">
  72619. <doc>
  72620. <![CDATA[Get the task ID]]>
  72621. </doc>
  72622. </method>
  72623. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  72624. abstract="false" native="false" synchronized="false"
  72625. static="false" final="false" visibility="public"
  72626. deprecated="not deprecated">
  72627. <doc>
  72628. <![CDATA[Get the attempt id]]>
  72629. </doc>
  72630. </method>
  72631. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  72632. abstract="false" native="false" synchronized="false"
  72633. static="false" final="false" visibility="public"
  72634. deprecated="not deprecated">
  72635. <doc>
  72636. <![CDATA[Get the task type]]>
  72637. </doc>
  72638. </method>
  72639. <method name="getTaskStatus" return="java.lang.String"
  72640. abstract="false" native="false" synchronized="false"
  72641. static="false" final="false" visibility="public"
  72642. deprecated="not deprecated">
  72643. <doc>
  72644. <![CDATA[Get the task status]]>
  72645. </doc>
  72646. </method>
  72647. <method name="getMapFinishTime" return="long"
  72648. abstract="false" native="false" synchronized="false"
  72649. static="false" final="false" visibility="public"
  72650. deprecated="not deprecated">
  72651. <doc>
  72652. <![CDATA[Get the map phase finish time]]>
  72653. </doc>
  72654. </method>
  72655. <method name="getFinishTime" return="long"
  72656. abstract="false" native="false" synchronized="false"
  72657. static="false" final="false" visibility="public"
  72658. deprecated="not deprecated">
  72659. <doc>
  72660. <![CDATA[Get the attempt finish time]]>
  72661. </doc>
  72662. </method>
  72663. <method name="getHostname" return="java.lang.String"
  72664. abstract="false" native="false" synchronized="false"
  72665. static="false" final="false" visibility="public"
  72666. deprecated="not deprecated">
  72667. <doc>
  72668. <![CDATA[Get the host name]]>
  72669. </doc>
  72670. </method>
  72671. <method name="getState" return="java.lang.String"
  72672. abstract="false" native="false" synchronized="false"
  72673. static="false" final="false" visibility="public"
  72674. deprecated="not deprecated">
  72675. <doc>
  72676. <![CDATA[Get the state string]]>
  72677. </doc>
  72678. </method>
  72679. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  72680. abstract="false" native="false" synchronized="false"
  72681. static="false" final="false" visibility="public"
  72682. deprecated="not deprecated">
  72683. <doc>
  72684. <![CDATA[Get the counters]]>
  72685. </doc>
  72686. </method>
  72687. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  72688. abstract="false" native="false" synchronized="false"
  72689. static="false" final="false" visibility="public"
  72690. deprecated="not deprecated">
  72691. <doc>
  72692. <![CDATA[Get the event type]]>
  72693. </doc>
  72694. </method>
  72695. <doc>
  72696. <![CDATA[Event to record successful completion of a map attempt]]>
  72697. </doc>
  72698. </class>
  72699. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  72700. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  72701. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  72702. abstract="false"
  72703. static="false" final="false" visibility="public"
  72704. deprecated="not deprecated">
  72705. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  72706. static="false" final="false" visibility="public"
  72707. deprecated="not deprecated">
  72708. </constructor>
  72709. <method name="getRuntime" return="long"
  72710. abstract="false" native="false" synchronized="false"
  72711. static="false" final="false" visibility="public"
  72712. deprecated="not deprecated">
  72713. </method>
  72714. <method name="getMapRuntime" return="long"
  72715. abstract="false" native="false" synchronized="false"
  72716. static="false" final="false" visibility="public"
  72717. deprecated="not deprecated">
  72718. <doc>
  72719. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  72720. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  72721. </doc>
  72722. </method>
  72723. <doc>
  72724. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  72725. map task attempt.]]>
  72726. </doc>
  72727. </class>
  72728. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  72729. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  72730. <class name="Node" extends="java.lang.Object"
  72731. abstract="false"
  72732. static="false" final="false" visibility="public"
  72733. deprecated="not deprecated">
  72734. <implements name="java.lang.Comparable"/>
  72735. <constructor name="Node" type="java.lang.String, int"
  72736. static="false" final="false" visibility="public"
  72737. deprecated="not deprecated">
  72738. <doc>
  72739. <![CDATA[@param name
  72740. A unique name to identify a node in the cluster.
  72741. @param level
  72742. The level of the node in the cluster]]>
  72743. </doc>
  72744. </constructor>
  72745. <method name="getName" return="java.lang.String"
  72746. abstract="false" native="false" synchronized="false"
  72747. static="false" final="false" visibility="public"
  72748. deprecated="not deprecated">
  72749. <doc>
  72750. <![CDATA[Get the name of the node.
  72751. @return The name of the node.]]>
  72752. </doc>
  72753. </method>
  72754. <method name="getLevel" return="int"
  72755. abstract="false" native="false" synchronized="false"
  72756. static="false" final="false" visibility="public"
  72757. deprecated="not deprecated">
  72758. <doc>
  72759. <![CDATA[Get the level of the node.
  72760. @return The level of the node.]]>
  72761. </doc>
  72762. </method>
  72763. <method name="addChild" return="boolean"
  72764. abstract="false" native="false" synchronized="true"
  72765. static="false" final="false" visibility="public"
  72766. deprecated="not deprecated">
  72767. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  72768. <doc>
  72769. <![CDATA[Add a child node to this node.
  72770. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  72771. @return Boolean indicating whether the node is successfully added.]]>
  72772. </doc>
  72773. </method>
  72774. <method name="hasChildren" return="boolean"
  72775. abstract="false" native="false" synchronized="true"
  72776. static="false" final="false" visibility="public"
  72777. deprecated="not deprecated">
  72778. <doc>
  72779. <![CDATA[Does this node have any children?
  72780. @return Boolean indicate whether this node has any children.]]>
  72781. </doc>
  72782. </method>
  72783. <method name="getChildren" return="java.util.Set"
  72784. abstract="false" native="false" synchronized="true"
  72785. static="false" final="false" visibility="public"
  72786. deprecated="not deprecated">
  72787. <doc>
  72788. <![CDATA[Get the children of this node.
  72789. @return The children of this node. If no child, an empty set will be
  72790. returned. The returned set is read-only.]]>
  72791. </doc>
  72792. </method>
  72793. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  72794. abstract="false" native="false" synchronized="false"
  72795. static="false" final="false" visibility="public"
  72796. deprecated="not deprecated">
  72797. <doc>
  72798. <![CDATA[Get the parent node.
  72799. @return the parent node. If root node, return null.]]>
  72800. </doc>
  72801. </method>
  72802. <method name="hashCode" return="int"
  72803. abstract="false" native="false" synchronized="false"
  72804. static="false" final="false" visibility="public"
  72805. deprecated="not deprecated">
  72806. </method>
  72807. <method name="equals" return="boolean"
  72808. abstract="false" native="false" synchronized="false"
  72809. static="false" final="false" visibility="public"
  72810. deprecated="not deprecated">
  72811. <param name="obj" type="java.lang.Object"/>
  72812. </method>
  72813. <method name="toString" return="java.lang.String"
  72814. abstract="false" native="false" synchronized="false"
  72815. static="false" final="false" visibility="public"
  72816. deprecated="not deprecated">
  72817. </method>
  72818. <method name="compareTo" return="int"
  72819. abstract="false" native="false" synchronized="false"
  72820. static="false" final="false" visibility="public"
  72821. deprecated="not deprecated">
  72822. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  72823. </method>
  72824. <doc>
  72825. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  72826. {@MachineNode}, or a {@link RackNode}, etc.]]>
  72827. </doc>
  72828. </class>
  72829. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  72830. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  72831. <interface name="Outputter" abstract="true"
  72832. static="false" final="false" visibility="public"
  72833. deprecated="not deprecated">
  72834. <implements name="java.io.Closeable"/>
  72835. <method name="init"
  72836. abstract="false" native="false" synchronized="false"
  72837. static="false" final="false" visibility="public"
  72838. deprecated="not deprecated">
  72839. <param name="path" type="org.apache.hadoop.fs.Path"/>
  72840. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  72841. <exception name="IOException" type="java.io.IOException"/>
  72842. <doc>
  72843. <![CDATA[Initialize the {@link Outputter} to a specific path.
  72844. @param path The {@link Path} to the output file.
  72845. @param conf Configuration
  72846. @throws IOException]]>
  72847. </doc>
  72848. </method>
  72849. <method name="output"
  72850. abstract="false" native="false" synchronized="false"
  72851. static="false" final="false" visibility="public"
  72852. deprecated="not deprecated">
  72853. <param name="object" type="java.lang.Object"/>
  72854. <exception name="IOException" type="java.io.IOException"/>
  72855. <doc>
  72856. <![CDATA[Output an object.
  72857. @param object The objecte.
  72858. @throws IOException]]>
  72859. </doc>
  72860. </method>
  72861. <doc>
  72862. <![CDATA[Interface to output a sequence of objects of type T.]]>
  72863. </doc>
  72864. </interface>
  72865. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  72866. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  72867. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  72868. abstract="false"
  72869. static="false" final="false" visibility="public"
  72870. deprecated="not deprecated">
  72871. <constructor name="Pre21JobHistoryConstants"
  72872. static="false" final="false" visibility="public"
  72873. deprecated="not deprecated">
  72874. </constructor>
  72875. </class>
  72876. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  72877. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  72878. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  72879. abstract="false"
  72880. static="true" final="true" visibility="public"
  72881. deprecated="not deprecated">
  72882. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  72883. abstract="false" native="false" synchronized="false"
  72884. static="true" final="false" visibility="public"
  72885. deprecated="not deprecated">
  72886. </method>
  72887. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72888. abstract="false" native="false" synchronized="false"
  72889. static="true" final="false" visibility="public"
  72890. deprecated="not deprecated">
  72891. <param name="name" type="java.lang.String"/>
  72892. </method>
  72893. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72894. transient="false" volatile="false"
  72895. static="true" final="true" visibility="public"
  72896. deprecated="not deprecated">
  72897. </field>
  72898. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72899. transient="false" volatile="false"
  72900. static="true" final="true" visibility="public"
  72901. deprecated="not deprecated">
  72902. </field>
  72903. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72904. transient="false" volatile="false"
  72905. static="true" final="true" visibility="public"
  72906. deprecated="not deprecated">
  72907. </field>
  72908. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72909. transient="false" volatile="false"
  72910. static="true" final="true" visibility="public"
  72911. deprecated="not deprecated">
  72912. </field>
  72913. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72914. transient="false" volatile="false"
  72915. static="true" final="true" visibility="public"
  72916. deprecated="not deprecated">
  72917. </field>
  72918. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72919. transient="false" volatile="false"
  72920. static="true" final="true" visibility="public"
  72921. deprecated="not deprecated">
  72922. </field>
  72923. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72924. transient="false" volatile="false"
  72925. static="true" final="true" visibility="public"
  72926. deprecated="not deprecated">
  72927. </field>
  72928. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72929. transient="false" volatile="false"
  72930. static="true" final="true" visibility="public"
  72931. deprecated="not deprecated">
  72932. </field>
  72933. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  72934. transient="false" volatile="false"
  72935. static="true" final="true" visibility="public"
  72936. deprecated="not deprecated">
  72937. </field>
  72938. <doc>
  72939. <![CDATA[This enum contains some of the values commonly used by history log events.
  72940. since values in history can only be strings - Values.name() is used in
  72941. most places in history file.]]>
  72942. </doc>
  72943. </class>
  72944. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  72945. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  72946. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  72947. abstract="false"
  72948. static="false" final="true" visibility="public"
  72949. deprecated="not deprecated">
  72950. <constructor name="RackNode" type="java.lang.String, int"
  72951. static="false" final="false" visibility="public"
  72952. deprecated="not deprecated">
  72953. </constructor>
  72954. <method name="addChild" return="boolean"
  72955. abstract="false" native="false" synchronized="true"
  72956. static="false" final="false" visibility="public"
  72957. deprecated="not deprecated">
  72958. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  72959. </method>
  72960. <method name="getMachinesInRack" return="java.util.Set"
  72961. abstract="false" native="false" synchronized="false"
  72962. static="false" final="false" visibility="public"
  72963. deprecated="not deprecated">
  72964. <doc>
  72965. <![CDATA[Get the machine nodes that belong to the rack.
  72966. @return The machine nodes that belong to the rack.]]>
  72967. </doc>
  72968. </method>
  72969. <doc>
  72970. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  72971. </doc>
  72972. </class>
  72973. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  72974. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  72975. <class name="RandomSeedGenerator" extends="java.lang.Object"
  72976. abstract="false"
  72977. static="false" final="false" visibility="public"
  72978. deprecated="not deprecated">
  72979. <constructor name="RandomSeedGenerator"
  72980. static="false" final="false" visibility="public"
  72981. deprecated="not deprecated">
  72982. </constructor>
  72983. <method name="getSeed" return="long"
  72984. abstract="false" native="false" synchronized="false"
  72985. static="true" final="false" visibility="public"
  72986. deprecated="not deprecated">
  72987. <param name="streamId" type="java.lang.String"/>
  72988. <param name="masterSeed" type="long"/>
  72989. <doc>
  72990. <![CDATA[Generates a new random seed.
  72991. @param streamId a string identifying the stream of random numbers
  72992. @param masterSeed higher level master random seed
  72993. @return the random seed. Different (streamId, masterSeed) pairs result in
  72994. (vastly) different random seeds.]]>
  72995. </doc>
  72996. </method>
  72997. <doc>
  72998. <![CDATA[The purpose of this class is to generate new random seeds from a master
  72999. seed. This is needed to make the Random().next*() calls in rumen and mumak
  73000. deterministic so that mumak simulations become deterministically replayable.
  73001. In these tools we need many independent streams of random numbers, some of
  73002. which are created dynamically. We seed these streams with the sub-seeds
  73003. returned by RandomSeedGenerator.
  73004. For a slightly more complicated approach to generating multiple streams of
  73005. random numbers with better theoretical guarantees, see
  73006. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  73007. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  73008. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  73009. http://www.iro.umontreal.ca/~lecuyer/papers.html
  73010. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  73011. </doc>
  73012. </class>
  73013. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  73014. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  73015. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  73016. abstract="false"
  73017. static="false" final="false" visibility="public"
  73018. deprecated="not deprecated">
  73019. </class>
  73020. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  73021. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  73022. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  73023. abstract="false"
  73024. static="false" final="false" visibility="public"
  73025. deprecated="not deprecated">
  73026. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73027. <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"
  73028. static="false" final="false" visibility="public"
  73029. deprecated="not deprecated">
  73030. <doc>
  73031. <![CDATA[Create an event to record completion of a reduce attempt
  73032. @param id Attempt Id
  73033. @param taskType Type of task
  73034. @param taskStatus Status of the task
  73035. @param shuffleFinishTime Finish time of the shuffle phase
  73036. @param sortFinishTime Finish time of the sort phase
  73037. @param finishTime Finish time of the attempt
  73038. @param hostname Name of the host where the attempt executed
  73039. @param state State of the attempt
  73040. @param counters Counters for the attempt]]>
  73041. </doc>
  73042. </constructor>
  73043. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73044. abstract="false" native="false" synchronized="false"
  73045. static="false" final="false" visibility="public"
  73046. deprecated="not deprecated">
  73047. <doc>
  73048. <![CDATA[Get the Task ID]]>
  73049. </doc>
  73050. </method>
  73051. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73052. abstract="false" native="false" synchronized="false"
  73053. static="false" final="false" visibility="public"
  73054. deprecated="not deprecated">
  73055. <doc>
  73056. <![CDATA[Get the attempt id]]>
  73057. </doc>
  73058. </method>
  73059. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73060. abstract="false" native="false" synchronized="false"
  73061. static="false" final="false" visibility="public"
  73062. deprecated="not deprecated">
  73063. <doc>
  73064. <![CDATA[Get the task type]]>
  73065. </doc>
  73066. </method>
  73067. <method name="getTaskStatus" return="java.lang.String"
  73068. abstract="false" native="false" synchronized="false"
  73069. static="false" final="false" visibility="public"
  73070. deprecated="not deprecated">
  73071. <doc>
  73072. <![CDATA[Get the task status]]>
  73073. </doc>
  73074. </method>
  73075. <method name="getSortFinishTime" return="long"
  73076. abstract="false" native="false" synchronized="false"
  73077. static="false" final="false" visibility="public"
  73078. deprecated="not deprecated">
  73079. <doc>
  73080. <![CDATA[Get the finish time of the sort phase]]>
  73081. </doc>
  73082. </method>
  73083. <method name="getShuffleFinishTime" return="long"
  73084. abstract="false" native="false" synchronized="false"
  73085. static="false" final="false" visibility="public"
  73086. deprecated="not deprecated">
  73087. <doc>
  73088. <![CDATA[Get the finish time of the shuffle phase]]>
  73089. </doc>
  73090. </method>
  73091. <method name="getFinishTime" return="long"
  73092. abstract="false" native="false" synchronized="false"
  73093. static="false" final="false" visibility="public"
  73094. deprecated="not deprecated">
  73095. <doc>
  73096. <![CDATA[Get the finish time of the attempt]]>
  73097. </doc>
  73098. </method>
  73099. <method name="getHostname" return="java.lang.String"
  73100. abstract="false" native="false" synchronized="false"
  73101. static="false" final="false" visibility="public"
  73102. deprecated="not deprecated">
  73103. <doc>
  73104. <![CDATA[Get the name of the host where the attempt ran]]>
  73105. </doc>
  73106. </method>
  73107. <method name="getState" return="java.lang.String"
  73108. abstract="false" native="false" synchronized="false"
  73109. static="false" final="false" visibility="public"
  73110. deprecated="not deprecated">
  73111. <doc>
  73112. <![CDATA[Get the state string]]>
  73113. </doc>
  73114. </method>
  73115. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  73116. abstract="false" native="false" synchronized="false"
  73117. static="false" final="false" visibility="public"
  73118. deprecated="not deprecated">
  73119. <doc>
  73120. <![CDATA[Get the counters for the attempt]]>
  73121. </doc>
  73122. </method>
  73123. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73124. abstract="false" native="false" synchronized="false"
  73125. static="false" final="false" visibility="public"
  73126. deprecated="not deprecated">
  73127. <doc>
  73128. <![CDATA[Get the event type]]>
  73129. </doc>
  73130. </method>
  73131. <doc>
  73132. <![CDATA[Event to record successful completion of a reduce attempt]]>
  73133. </doc>
  73134. </class>
  73135. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  73136. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  73137. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  73138. abstract="false"
  73139. static="false" final="false" visibility="public"
  73140. deprecated="not deprecated">
  73141. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  73142. static="false" final="false" visibility="public"
  73143. deprecated="not deprecated">
  73144. </constructor>
  73145. <method name="getReduceRuntime" return="long"
  73146. abstract="false" native="false" synchronized="false"
  73147. static="false" final="false" visibility="public"
  73148. deprecated="not deprecated">
  73149. <doc>
  73150. <![CDATA[Get the runtime for the <b>reduce</b> phase of the reduce task-attempt.
  73151. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  73152. </doc>
  73153. </method>
  73154. <method name="getShuffleRuntime" return="long"
  73155. abstract="false" native="false" synchronized="false"
  73156. static="false" final="false" visibility="public"
  73157. deprecated="not deprecated">
  73158. <doc>
  73159. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  73160. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  73161. </doc>
  73162. </method>
  73163. <method name="getMergeRuntime" return="long"
  73164. abstract="false" native="false" synchronized="false"
  73165. static="false" final="false" visibility="public"
  73166. deprecated="not deprecated">
  73167. <doc>
  73168. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  73169. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  73170. </doc>
  73171. </method>
  73172. <method name="getRuntime" return="long"
  73173. abstract="false" native="false" synchronized="false"
  73174. static="false" final="false" visibility="public"
  73175. deprecated="not deprecated">
  73176. </method>
  73177. <doc>
  73178. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  73179. reduce task attempt.]]>
  73180. </doc>
  73181. </class>
  73182. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  73183. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  73184. <class name="RewindableInputStream" extends="java.io.InputStream"
  73185. abstract="false"
  73186. static="false" final="false" visibility="public"
  73187. deprecated="not deprecated">
  73188. <constructor name="RewindableInputStream" type="java.io.InputStream"
  73189. static="false" final="false" visibility="public"
  73190. deprecated="not deprecated">
  73191. <doc>
  73192. <![CDATA[Constructor.
  73193. @param input]]>
  73194. </doc>
  73195. </constructor>
  73196. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  73197. static="false" final="false" visibility="public"
  73198. deprecated="not deprecated">
  73199. <doc>
  73200. <![CDATA[Constructor
  73201. @param input
  73202. input stream.
  73203. @param maxBytesToRemember
  73204. Maximum number of bytes we need to remember at the beginning of
  73205. the stream. If {@link #rewind()} is called after so many bytes are
  73206. read from the stream, {@link #rewind()} would fail.]]>
  73207. </doc>
  73208. </constructor>
  73209. <method name="read" return="int"
  73210. abstract="false" native="false" synchronized="false"
  73211. static="false" final="false" visibility="public"
  73212. deprecated="not deprecated">
  73213. <exception name="IOException" type="java.io.IOException"/>
  73214. </method>
  73215. <method name="read" return="int"
  73216. abstract="false" native="false" synchronized="false"
  73217. static="false" final="false" visibility="public"
  73218. deprecated="not deprecated">
  73219. <param name="buffer" type="byte[]"/>
  73220. <param name="offset" type="int"/>
  73221. <param name="length" type="int"/>
  73222. <exception name="IOException" type="java.io.IOException"/>
  73223. </method>
  73224. <method name="close"
  73225. abstract="false" native="false" synchronized="false"
  73226. static="false" final="false" visibility="public"
  73227. deprecated="not deprecated">
  73228. <exception name="IOException" type="java.io.IOException"/>
  73229. </method>
  73230. <method name="rewind" return="java.io.InputStream"
  73231. abstract="false" native="false" synchronized="false"
  73232. static="false" final="false" visibility="public"
  73233. deprecated="not deprecated">
  73234. <exception name="IOException" type="java.io.IOException"/>
  73235. </method>
  73236. <doc>
  73237. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  73238. made more memory efficient by grow the internal buffer adaptively.]]>
  73239. </doc>
  73240. </class>
  73241. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  73242. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  73243. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  73244. abstract="false"
  73245. static="false" final="false" visibility="public"
  73246. deprecated="not deprecated">
  73247. <constructor name="Task20LineHistoryEventEmitter"
  73248. static="false" final="false" visibility="protected"
  73249. deprecated="not deprecated">
  73250. </constructor>
  73251. </class>
  73252. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  73253. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  73254. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  73255. abstract="true"
  73256. static="false" final="false" visibility="public"
  73257. deprecated="not deprecated">
  73258. <constructor name="TaskAttempt20LineEventEmitter"
  73259. static="false" final="false" visibility="protected"
  73260. deprecated="not deprecated">
  73261. </constructor>
  73262. </class>
  73263. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  73264. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  73265. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  73266. abstract="false"
  73267. static="false" final="false" visibility="public"
  73268. deprecated="not deprecated">
  73269. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73270. <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"
  73271. static="false" final="false" visibility="public"
  73272. deprecated="not deprecated">
  73273. <doc>
  73274. <![CDATA[Create an event to record successful finishes for setup and cleanup
  73275. attempts
  73276. @param id Attempt ID
  73277. @param taskType Type of task
  73278. @param taskStatus Status of task
  73279. @param finishTime Finish time of attempt
  73280. @param hostname Host where the attempt executed
  73281. @param state State string
  73282. @param counters Counters for the attempt]]>
  73283. </doc>
  73284. </constructor>
  73285. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73286. abstract="false" native="false" synchronized="false"
  73287. static="false" final="false" visibility="public"
  73288. deprecated="not deprecated">
  73289. <doc>
  73290. <![CDATA[Get the task ID]]>
  73291. </doc>
  73292. </method>
  73293. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73294. abstract="false" native="false" synchronized="false"
  73295. static="false" final="false" visibility="public"
  73296. deprecated="not deprecated">
  73297. <doc>
  73298. <![CDATA[Get the task attempt id]]>
  73299. </doc>
  73300. </method>
  73301. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73302. abstract="false" native="false" synchronized="false"
  73303. static="false" final="false" visibility="public"
  73304. deprecated="not deprecated">
  73305. <doc>
  73306. <![CDATA[Get the task type]]>
  73307. </doc>
  73308. </method>
  73309. <method name="getTaskStatus" return="java.lang.String"
  73310. abstract="false" native="false" synchronized="false"
  73311. static="false" final="false" visibility="public"
  73312. deprecated="not deprecated">
  73313. <doc>
  73314. <![CDATA[Get the task status]]>
  73315. </doc>
  73316. </method>
  73317. <method name="getFinishTime" return="long"
  73318. abstract="false" native="false" synchronized="false"
  73319. static="false" final="false" visibility="public"
  73320. deprecated="not deprecated">
  73321. <doc>
  73322. <![CDATA[Get the attempt finish time]]>
  73323. </doc>
  73324. </method>
  73325. <method name="getHostname" return="java.lang.String"
  73326. abstract="false" native="false" synchronized="false"
  73327. static="false" final="false" visibility="public"
  73328. deprecated="not deprecated">
  73329. <doc>
  73330. <![CDATA[Get the host where the attempt executed]]>
  73331. </doc>
  73332. </method>
  73333. <method name="getState" return="java.lang.String"
  73334. abstract="false" native="false" synchronized="false"
  73335. static="false" final="false" visibility="public"
  73336. deprecated="not deprecated">
  73337. <doc>
  73338. <![CDATA[Get the state string]]>
  73339. </doc>
  73340. </method>
  73341. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  73342. abstract="false" native="false" synchronized="false"
  73343. static="false" final="false" visibility="public"
  73344. deprecated="not deprecated">
  73345. <doc>
  73346. <![CDATA[Get the counters for the attempt]]>
  73347. </doc>
  73348. </method>
  73349. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73350. abstract="false" native="false" synchronized="false"
  73351. static="false" final="false" visibility="public"
  73352. deprecated="not deprecated">
  73353. <doc>
  73354. <![CDATA[Get the event type]]>
  73355. </doc>
  73356. </method>
  73357. <doc>
  73358. <![CDATA[Event to record successful task completion]]>
  73359. </doc>
  73360. </class>
  73361. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  73362. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  73363. <class name="TaskAttemptInfo" extends="java.lang.Object"
  73364. abstract="true"
  73365. static="false" final="false" visibility="public"
  73366. deprecated="not deprecated">
  73367. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  73368. static="false" final="false" visibility="protected"
  73369. deprecated="not deprecated">
  73370. </constructor>
  73371. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  73372. abstract="false" native="false" synchronized="false"
  73373. static="false" final="false" visibility="public"
  73374. deprecated="not deprecated">
  73375. <doc>
  73376. <![CDATA[Get the final {@link TaskStatus.State} of the task-attempt.
  73377. @return the final <code>State</code> of the task-attempt]]>
  73378. </doc>
  73379. </method>
  73380. <method name="getRuntime" return="long"
  73381. abstract="true" native="false" synchronized="false"
  73382. static="false" final="false" visibility="public"
  73383. deprecated="not deprecated">
  73384. <doc>
  73385. <![CDATA[Get the total runtime for the task-attempt.
  73386. @return the total runtime for the task-attempt]]>
  73387. </doc>
  73388. </method>
  73389. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  73390. abstract="false" native="false" synchronized="false"
  73391. static="false" final="false" visibility="public"
  73392. deprecated="not deprecated">
  73393. <doc>
  73394. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  73395. @return the <code>TaskInfo</code> for the given task-attempt]]>
  73396. </doc>
  73397. </method>
  73398. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  73399. transient="false" volatile="false"
  73400. static="false" final="true" visibility="protected"
  73401. deprecated="not deprecated">
  73402. </field>
  73403. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  73404. transient="false" volatile="false"
  73405. static="false" final="true" visibility="protected"
  73406. deprecated="not deprecated">
  73407. </field>
  73408. <doc>
  73409. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  73410. task-attempt gleaned from job-history of the job.]]>
  73411. </doc>
  73412. </class>
  73413. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  73414. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  73415. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  73416. abstract="false"
  73417. static="false" final="false" visibility="public"
  73418. deprecated="not deprecated">
  73419. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73420. <constructor name="TaskAttemptStartedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, long, java.lang.String, int"
  73421. static="false" final="false" visibility="public"
  73422. deprecated="not deprecated">
  73423. <doc>
  73424. <![CDATA[Create an event to record the start of an attempt
  73425. @param attemptId Id of the attempt
  73426. @param taskType Type of task
  73427. @param startTime Start time of the attempt
  73428. @param trackerName Name of the Task Tracker where attempt is running
  73429. @param httpPort The port number of the tracker]]>
  73430. </doc>
  73431. </constructor>
  73432. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73433. abstract="false" native="false" synchronized="false"
  73434. static="false" final="false" visibility="public"
  73435. deprecated="not deprecated">
  73436. <doc>
  73437. <![CDATA[Get the task id]]>
  73438. </doc>
  73439. </method>
  73440. <method name="getTrackerName" return="java.lang.String"
  73441. abstract="false" native="false" synchronized="false"
  73442. static="false" final="false" visibility="public"
  73443. deprecated="not deprecated">
  73444. <doc>
  73445. <![CDATA[Get the tracker name]]>
  73446. </doc>
  73447. </method>
  73448. <method name="getStartTime" return="long"
  73449. abstract="false" native="false" synchronized="false"
  73450. static="false" final="false" visibility="public"
  73451. deprecated="not deprecated">
  73452. <doc>
  73453. <![CDATA[Get the start time]]>
  73454. </doc>
  73455. </method>
  73456. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73457. abstract="false" native="false" synchronized="false"
  73458. static="false" final="false" visibility="public"
  73459. deprecated="not deprecated">
  73460. <doc>
  73461. <![CDATA[Get the task type]]>
  73462. </doc>
  73463. </method>
  73464. <method name="getHttpPort" return="int"
  73465. abstract="false" native="false" synchronized="false"
  73466. static="false" final="false" visibility="public"
  73467. deprecated="not deprecated">
  73468. <doc>
  73469. <![CDATA[Get the HTTP port]]>
  73470. </doc>
  73471. </method>
  73472. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73473. abstract="false" native="false" synchronized="false"
  73474. static="false" final="false" visibility="public"
  73475. deprecated="not deprecated">
  73476. <doc>
  73477. <![CDATA[Get the attempt id]]>
  73478. </doc>
  73479. </method>
  73480. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73481. abstract="false" native="false" synchronized="false"
  73482. static="false" final="false" visibility="public"
  73483. deprecated="not deprecated">
  73484. <doc>
  73485. <![CDATA[Get the event type]]>
  73486. </doc>
  73487. </method>
  73488. <doc>
  73489. <![CDATA[Event to record start of a task attempt]]>
  73490. </doc>
  73491. </class>
  73492. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  73493. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  73494. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  73495. abstract="false"
  73496. static="false" final="false" visibility="public"
  73497. deprecated="not deprecated">
  73498. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73499. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  73500. static="false" final="false" visibility="public"
  73501. deprecated="not deprecated">
  73502. <doc>
  73503. <![CDATA[Create an event to record the unsuccessful completion of attempts
  73504. @param id Attempt ID
  73505. @param taskType Type of the task
  73506. @param status Status of the attempt
  73507. @param finishTime Finish time of the attempt
  73508. @param hostname Name of the host where the attempt executed
  73509. @param error Error string]]>
  73510. </doc>
  73511. </constructor>
  73512. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73513. abstract="false" native="false" synchronized="false"
  73514. static="false" final="false" visibility="public"
  73515. deprecated="not deprecated">
  73516. <doc>
  73517. <![CDATA[Get the task id]]>
  73518. </doc>
  73519. </method>
  73520. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73521. abstract="false" native="false" synchronized="false"
  73522. static="false" final="false" visibility="public"
  73523. deprecated="not deprecated">
  73524. <doc>
  73525. <![CDATA[Get the task type]]>
  73526. </doc>
  73527. </method>
  73528. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73529. abstract="false" native="false" synchronized="false"
  73530. static="false" final="false" visibility="public"
  73531. deprecated="not deprecated">
  73532. <doc>
  73533. <![CDATA[Get the attempt id]]>
  73534. </doc>
  73535. </method>
  73536. <method name="getFinishTime" return="long"
  73537. abstract="false" native="false" synchronized="false"
  73538. static="false" final="false" visibility="public"
  73539. deprecated="not deprecated">
  73540. <doc>
  73541. <![CDATA[Get the finish time]]>
  73542. </doc>
  73543. </method>
  73544. <method name="getHostname" return="java.lang.String"
  73545. abstract="false" native="false" synchronized="false"
  73546. static="false" final="false" visibility="public"
  73547. deprecated="not deprecated">
  73548. <doc>
  73549. <![CDATA[Get the name of the host where the attempt executed]]>
  73550. </doc>
  73551. </method>
  73552. <method name="getError" return="java.lang.String"
  73553. abstract="false" native="false" synchronized="false"
  73554. static="false" final="false" visibility="public"
  73555. deprecated="not deprecated">
  73556. <doc>
  73557. <![CDATA[Get the error string]]>
  73558. </doc>
  73559. </method>
  73560. <method name="getTaskStatus" return="java.lang.String"
  73561. abstract="false" native="false" synchronized="false"
  73562. static="false" final="false" visibility="public"
  73563. deprecated="not deprecated">
  73564. <doc>
  73565. <![CDATA[Get the task status]]>
  73566. </doc>
  73567. </method>
  73568. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73569. abstract="false" native="false" synchronized="false"
  73570. static="false" final="false" visibility="public"
  73571. deprecated="not deprecated">
  73572. <doc>
  73573. <![CDATA[Get the event type]]>
  73574. </doc>
  73575. </method>
  73576. <doc>
  73577. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  73578. </doc>
  73579. </class>
  73580. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  73581. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  73582. <class name="TaskFailedEvent" extends="java.lang.Object"
  73583. abstract="false"
  73584. static="false" final="false" visibility="public"
  73585. deprecated="not deprecated">
  73586. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73587. <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"
  73588. static="false" final="false" visibility="public"
  73589. deprecated="not deprecated">
  73590. <doc>
  73591. <![CDATA[Create an event to record task failure
  73592. @param id Task ID
  73593. @param finishTime Finish time of the task
  73594. @param taskType Type of the task
  73595. @param error Error String
  73596. @param status Status
  73597. @param failedDueToAttempt The attempt id due to which the task failed]]>
  73598. </doc>
  73599. </constructor>
  73600. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73601. abstract="false" native="false" synchronized="false"
  73602. static="false" final="false" visibility="public"
  73603. deprecated="not deprecated">
  73604. <doc>
  73605. <![CDATA[Get the task id]]>
  73606. </doc>
  73607. </method>
  73608. <method name="getError" return="java.lang.String"
  73609. abstract="false" native="false" synchronized="false"
  73610. static="false" final="false" visibility="public"
  73611. deprecated="not deprecated">
  73612. <doc>
  73613. <![CDATA[Get the error string]]>
  73614. </doc>
  73615. </method>
  73616. <method name="getFinishTime" return="long"
  73617. abstract="false" native="false" synchronized="false"
  73618. static="false" final="false" visibility="public"
  73619. deprecated="not deprecated">
  73620. <doc>
  73621. <![CDATA[Get the finish time of the attempt]]>
  73622. </doc>
  73623. </method>
  73624. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73625. abstract="false" native="false" synchronized="false"
  73626. static="false" final="false" visibility="public"
  73627. deprecated="not deprecated">
  73628. <doc>
  73629. <![CDATA[Get the task type]]>
  73630. </doc>
  73631. </method>
  73632. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  73633. abstract="false" native="false" synchronized="false"
  73634. static="false" final="false" visibility="public"
  73635. deprecated="not deprecated">
  73636. <doc>
  73637. <![CDATA[Get the attempt id due to which the task failed]]>
  73638. </doc>
  73639. </method>
  73640. <method name="getTaskStatus" return="java.lang.String"
  73641. abstract="false" native="false" synchronized="false"
  73642. static="false" final="false" visibility="public"
  73643. deprecated="not deprecated">
  73644. <doc>
  73645. <![CDATA[Get the task status]]>
  73646. </doc>
  73647. </method>
  73648. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73649. abstract="false" native="false" synchronized="false"
  73650. static="false" final="false" visibility="public"
  73651. deprecated="not deprecated">
  73652. <doc>
  73653. <![CDATA[Get the event type]]>
  73654. </doc>
  73655. </method>
  73656. <doc>
  73657. <![CDATA[Event to record the failure of a task]]>
  73658. </doc>
  73659. </class>
  73660. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  73661. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  73662. <class name="TaskFinishedEvent" extends="java.lang.Object"
  73663. abstract="false"
  73664. static="false" final="false" visibility="public"
  73665. deprecated="not deprecated">
  73666. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73667. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  73668. static="false" final="false" visibility="public"
  73669. deprecated="not deprecated">
  73670. <doc>
  73671. <![CDATA[Create an event to record the successful completion of a task
  73672. @param id Task ID
  73673. @param finishTime Finish time of the task
  73674. @param taskType Type of the task
  73675. @param status Status string
  73676. @param counters Counters for the task]]>
  73677. </doc>
  73678. </constructor>
  73679. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73680. abstract="false" native="false" synchronized="false"
  73681. static="false" final="false" visibility="public"
  73682. deprecated="not deprecated">
  73683. <doc>
  73684. <![CDATA[Get task id]]>
  73685. </doc>
  73686. </method>
  73687. <method name="getFinishTime" return="long"
  73688. abstract="false" native="false" synchronized="false"
  73689. static="false" final="false" visibility="public"
  73690. deprecated="not deprecated">
  73691. <doc>
  73692. <![CDATA[Get the task finish time]]>
  73693. </doc>
  73694. </method>
  73695. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  73696. abstract="false" native="false" synchronized="false"
  73697. static="false" final="false" visibility="public"
  73698. deprecated="not deprecated">
  73699. <doc>
  73700. <![CDATA[Get task counters]]>
  73701. </doc>
  73702. </method>
  73703. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73704. abstract="false" native="false" synchronized="false"
  73705. static="false" final="false" visibility="public"
  73706. deprecated="not deprecated">
  73707. <doc>
  73708. <![CDATA[Get task type]]>
  73709. </doc>
  73710. </method>
  73711. <method name="getTaskStatus" return="java.lang.String"
  73712. abstract="false" native="false" synchronized="false"
  73713. static="false" final="false" visibility="public"
  73714. deprecated="not deprecated">
  73715. <doc>
  73716. <![CDATA[Get task status]]>
  73717. </doc>
  73718. </method>
  73719. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73720. abstract="false" native="false" synchronized="false"
  73721. static="false" final="false" visibility="public"
  73722. deprecated="not deprecated">
  73723. <doc>
  73724. <![CDATA[Get event type]]>
  73725. </doc>
  73726. </method>
  73727. <doc>
  73728. <![CDATA[Event to record the successful completion of a task]]>
  73729. </doc>
  73730. </class>
  73731. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  73732. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  73733. <class name="TaskInfo" extends="java.lang.Object"
  73734. abstract="false"
  73735. static="false" final="false" visibility="public"
  73736. deprecated="not deprecated">
  73737. <constructor name="TaskInfo" type="long, int, long, int, long"
  73738. static="false" final="false" visibility="public"
  73739. deprecated="not deprecated">
  73740. </constructor>
  73741. <method name="getInputBytes" return="long"
  73742. abstract="false" native="false" synchronized="false"
  73743. static="false" final="false" visibility="public"
  73744. deprecated="not deprecated">
  73745. <doc>
  73746. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  73747. may not always match the input bytes to the task.]]>
  73748. </doc>
  73749. </method>
  73750. <method name="getInputRecords" return="int"
  73751. abstract="false" native="false" synchronized="false"
  73752. static="false" final="false" visibility="public"
  73753. deprecated="not deprecated">
  73754. <doc>
  73755. <![CDATA[@return Number of records input to this task.]]>
  73756. </doc>
  73757. </method>
  73758. <method name="getOutputBytes" return="long"
  73759. abstract="false" native="false" synchronized="false"
  73760. static="false" final="false" visibility="public"
  73761. deprecated="not deprecated">
  73762. <doc>
  73763. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  73764. not match output bytes.]]>
  73765. </doc>
  73766. </method>
  73767. <method name="getOutputRecords" return="int"
  73768. abstract="false" native="false" synchronized="false"
  73769. static="false" final="false" visibility="public"
  73770. deprecated="not deprecated">
  73771. <doc>
  73772. <![CDATA[@return Number of records output from this task.]]>
  73773. </doc>
  73774. </method>
  73775. <method name="getTaskMemory" return="long"
  73776. abstract="false" native="false" synchronized="false"
  73777. static="false" final="false" visibility="public"
  73778. deprecated="not deprecated">
  73779. <doc>
  73780. <![CDATA[@return Memory used by the task leq the heap size.]]>
  73781. </doc>
  73782. </method>
  73783. </class>
  73784. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  73785. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  73786. <class name="TaskStartedEvent" extends="java.lang.Object"
  73787. abstract="false"
  73788. static="false" final="false" visibility="public"
  73789. deprecated="not deprecated">
  73790. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73791. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  73792. static="false" final="false" visibility="public"
  73793. deprecated="not deprecated">
  73794. <doc>
  73795. <![CDATA[Create an event to record start of a task
  73796. @param id Task Id
  73797. @param startTime Start time of the task
  73798. @param taskType Type of the task
  73799. @param splitLocations Split locations, applicable for map tasks]]>
  73800. </doc>
  73801. </constructor>
  73802. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73803. abstract="false" native="false" synchronized="false"
  73804. static="false" final="false" visibility="public"
  73805. deprecated="not deprecated">
  73806. <doc>
  73807. <![CDATA[Get the task id]]>
  73808. </doc>
  73809. </method>
  73810. <method name="getSplitLocations" return="java.lang.String"
  73811. abstract="false" native="false" synchronized="false"
  73812. static="false" final="false" visibility="public"
  73813. deprecated="not deprecated">
  73814. <doc>
  73815. <![CDATA[Get the split locations, applicable for map tasks]]>
  73816. </doc>
  73817. </method>
  73818. <method name="getStartTime" return="long"
  73819. abstract="false" native="false" synchronized="false"
  73820. static="false" final="false" visibility="public"
  73821. deprecated="not deprecated">
  73822. <doc>
  73823. <![CDATA[Get the start time of the task]]>
  73824. </doc>
  73825. </method>
  73826. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  73827. abstract="false" native="false" synchronized="false"
  73828. static="false" final="false" visibility="public"
  73829. deprecated="not deprecated">
  73830. <doc>
  73831. <![CDATA[Get the task type]]>
  73832. </doc>
  73833. </method>
  73834. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73835. abstract="false" native="false" synchronized="false"
  73836. static="false" final="false" visibility="public"
  73837. deprecated="not deprecated">
  73838. <doc>
  73839. <![CDATA[Get the event type]]>
  73840. </doc>
  73841. </method>
  73842. <doc>
  73843. <![CDATA[Event to record the start of a task]]>
  73844. </doc>
  73845. </class>
  73846. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  73847. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  73848. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  73849. abstract="false"
  73850. static="false" final="false" visibility="public"
  73851. deprecated="not deprecated">
  73852. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73853. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  73854. static="false" final="false" visibility="public"
  73855. deprecated="not deprecated">
  73856. <doc>
  73857. <![CDATA[Create an event to record task updates
  73858. @param id Id of the task
  73859. @param finishTime Finish time of the task]]>
  73860. </doc>
  73861. </constructor>
  73862. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  73863. abstract="false" native="false" synchronized="false"
  73864. static="false" final="false" visibility="public"
  73865. deprecated="not deprecated">
  73866. <doc>
  73867. <![CDATA[Get the task ID]]>
  73868. </doc>
  73869. </method>
  73870. <method name="getFinishTime" return="long"
  73871. abstract="false" native="false" synchronized="false"
  73872. static="false" final="false" visibility="public"
  73873. deprecated="not deprecated">
  73874. <doc>
  73875. <![CDATA[Get the task finish time]]>
  73876. </doc>
  73877. </method>
  73878. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  73879. abstract="false" native="false" synchronized="false"
  73880. static="false" final="false" visibility="public"
  73881. deprecated="not deprecated">
  73882. <doc>
  73883. <![CDATA[Get the event type]]>
  73884. </doc>
  73885. </method>
  73886. <doc>
  73887. <![CDATA[Event to record updates to a task]]>
  73888. </doc>
  73889. </class>
  73890. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  73891. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  73892. <class name="TopologyBuilder" extends="java.lang.Object"
  73893. abstract="false"
  73894. static="false" final="false" visibility="public"
  73895. deprecated="not deprecated">
  73896. <constructor name="TopologyBuilder"
  73897. static="false" final="false" visibility="public"
  73898. deprecated="not deprecated">
  73899. </constructor>
  73900. <method name="process"
  73901. abstract="false" native="false" synchronized="false"
  73902. static="false" final="false" visibility="public"
  73903. deprecated="not deprecated">
  73904. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  73905. <doc>
  73906. <![CDATA[Process one {@link HistoryEvent}
  73907. @param event
  73908. The {@link HistoryEvent} to be processed.]]>
  73909. </doc>
  73910. </method>
  73911. <method name="process"
  73912. abstract="false" native="false" synchronized="false"
  73913. static="false" final="false" visibility="public"
  73914. deprecated="not deprecated">
  73915. <param name="conf" type="java.util.Properties"/>
  73916. <doc>
  73917. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  73918. to be called once.
  73919. @param conf
  73920. The job conf properties to be added.]]>
  73921. </doc>
  73922. </method>
  73923. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  73924. abstract="false" native="false" synchronized="false"
  73925. static="false" final="false" visibility="public"
  73926. deprecated="not deprecated">
  73927. <doc>
  73928. <![CDATA[Request the builder to build the final object. Once called, the
  73929. {@link TopologyBuilder} would accept no more events or job-conf properties.
  73930. @return Parsed {@link LoggedNetworkTopology} object.]]>
  73931. </doc>
  73932. </method>
  73933. <doc>
  73934. <![CDATA[Building the cluster topology.]]>
  73935. </doc>
  73936. </class>
  73937. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  73938. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  73939. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  73940. abstract="false"
  73941. static="false" final="false" visibility="public"
  73942. deprecated="not deprecated">
  73943. <implements name="org.apache.hadoop.util.Tool"/>
  73944. <constructor name="TraceBuilder"
  73945. static="false" final="false" visibility="public"
  73946. deprecated="not deprecated">
  73947. </constructor>
  73948. <method name="main"
  73949. abstract="false" native="false" synchronized="false"
  73950. static="true" final="false" visibility="public"
  73951. deprecated="not deprecated">
  73952. <param name="args" type="java.lang.String[]"/>
  73953. </method>
  73954. <method name="run" return="int"
  73955. abstract="false" native="false" synchronized="false"
  73956. static="false" final="false" visibility="public"
  73957. deprecated="not deprecated">
  73958. <param name="args" type="java.lang.String[]"/>
  73959. <exception name="Exception" type="java.lang.Exception"/>
  73960. </method>
  73961. <doc>
  73962. <![CDATA[The main driver of the Rumen Parser.]]>
  73963. </doc>
  73964. </class>
  73965. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  73966. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  73967. <class name="TreePath" extends="java.lang.Object"
  73968. abstract="false"
  73969. static="false" final="false" visibility="public"
  73970. deprecated="not deprecated">
  73971. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  73972. static="false" final="false" visibility="public"
  73973. deprecated="not deprecated">
  73974. </constructor>
  73975. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  73976. static="false" final="false" visibility="public"
  73977. deprecated="not deprecated">
  73978. </constructor>
  73979. <method name="toString" return="java.lang.String"
  73980. abstract="false" native="false" synchronized="false"
  73981. static="false" final="false" visibility="public"
  73982. deprecated="not deprecated">
  73983. </method>
  73984. <doc>
  73985. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  73986. trees during rumen unit tests. If the trees are not identical, this chain
  73987. will be converted to a string which describes the path from the root to the
  73988. fields that did not compare.]]>
  73989. </doc>
  73990. </class>
  73991. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  73992. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  73993. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  73994. abstract="false"
  73995. static="false" final="false" visibility="public"
  73996. deprecated="not deprecated">
  73997. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  73998. static="false" final="false" visibility="public"
  73999. deprecated="not deprecated">
  74000. <doc>
  74001. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  74002. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  74003. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  74004. @param topology
  74005. The network topology.
  74006. @param defaultNode
  74007. The default node setting.]]>
  74008. </doc>
  74009. </constructor>
  74010. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  74011. static="false" final="false" visibility="public"
  74012. deprecated="not deprecated">
  74013. <exception name="IOException" type="java.io.IOException"/>
  74014. <doc>
  74015. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  74016. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  74017. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  74018. @param path Path to the JSON-encoded topology file.
  74019. @param conf
  74020. @param defaultNode
  74021. The default node setting.
  74022. @throws IOException]]>
  74023. </doc>
  74024. </constructor>
  74025. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  74026. static="false" final="false" visibility="public"
  74027. deprecated="not deprecated">
  74028. <exception name="IOException" type="java.io.IOException"/>
  74029. <doc>
  74030. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  74031. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  74032. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  74033. @param input The input stream for the JSON-encoded topology file.
  74034. @param defaultNode
  74035. The default node setting.
  74036. @throws IOException]]>
  74037. </doc>
  74038. </constructor>
  74039. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  74040. abstract="false" native="false" synchronized="false"
  74041. static="false" final="false" visibility="public"
  74042. deprecated="not deprecated">
  74043. </method>
  74044. <doc>
  74045. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  74046. obtained from job history logs.]]>
  74047. </doc>
  74048. </class>
  74049. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  74050. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  74051. <class name="ZombieJob" extends="java.lang.Object"
  74052. abstract="false"
  74053. static="false" final="false" visibility="public"
  74054. deprecated="not deprecated">
  74055. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  74056. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  74057. static="false" final="false" visibility="public"
  74058. deprecated="not deprecated">
  74059. <doc>
  74060. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  74061. {@link LoggedJob} passed in this parameter
  74062. @param job
  74063. The dead job this ZombieJob instance is based on.
  74064. @param cluster
  74065. The cluster topology where the dead job ran on. This argument can
  74066. be null if we do not have knowledge of the cluster topology.
  74067. @param seed
  74068. Seed for the random number generator for filling in information
  74069. not available from the ZombieJob.]]>
  74070. </doc>
  74071. </constructor>
  74072. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  74073. static="false" final="false" visibility="public"
  74074. deprecated="not deprecated">
  74075. <doc>
  74076. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  74077. {@link LoggedJob} passed in this parameter
  74078. @param job
  74079. The dead job this ZombieJob instance is based on.
  74080. @param cluster
  74081. The cluster topology where the dead job ran on. This argument can
  74082. be null if we do not have knowledge of the cluster topology.]]>
  74083. </doc>
  74084. </constructor>
  74085. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  74086. abstract="false" native="false" synchronized="true"
  74087. static="false" final="false" visibility="public"
  74088. deprecated="not deprecated">
  74089. </method>
  74090. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  74091. abstract="false" native="false" synchronized="false"
  74092. static="false" final="false" visibility="public"
  74093. deprecated="not deprecated">
  74094. </method>
  74095. <method name="getName" return="java.lang.String"
  74096. abstract="false" native="false" synchronized="false"
  74097. static="false" final="false" visibility="public"
  74098. deprecated="not deprecated">
  74099. </method>
  74100. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  74101. abstract="false" native="false" synchronized="false"
  74102. static="false" final="false" visibility="public"
  74103. deprecated="not deprecated">
  74104. </method>
  74105. <method name="getNumberMaps" return="int"
  74106. abstract="false" native="false" synchronized="false"
  74107. static="false" final="false" visibility="public"
  74108. deprecated="not deprecated">
  74109. </method>
  74110. <method name="getNumberReduces" return="int"
  74111. abstract="false" native="false" synchronized="false"
  74112. static="false" final="false" visibility="public"
  74113. deprecated="not deprecated">
  74114. </method>
  74115. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  74116. abstract="false" native="false" synchronized="false"
  74117. static="false" final="false" visibility="public"
  74118. deprecated="not deprecated">
  74119. </method>
  74120. <method name="getSubmissionTime" return="long"
  74121. abstract="false" native="false" synchronized="false"
  74122. static="false" final="false" visibility="public"
  74123. deprecated="not deprecated">
  74124. </method>
  74125. <method name="getQueueName" return="java.lang.String"
  74126. abstract="false" native="false" synchronized="false"
  74127. static="false" final="false" visibility="public"
  74128. deprecated="not deprecated">
  74129. </method>
  74130. <method name="getNumLoggedMaps" return="int"
  74131. abstract="false" native="false" synchronized="false"
  74132. static="false" final="false" visibility="public"
  74133. deprecated="not deprecated">
  74134. <doc>
  74135. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  74136. @return The number of map tasks that are actually logged in the trace.]]>
  74137. </doc>
  74138. </method>
  74139. <method name="getNumLoggedReduces" return="int"
  74140. abstract="false" native="false" synchronized="false"
  74141. static="false" final="false" visibility="public"
  74142. deprecated="not deprecated">
  74143. <doc>
  74144. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  74145. @return The number of map tasks that are actually logged in the trace.]]>
  74146. </doc>
  74147. </method>
  74148. <method name="getUser" return="java.lang.String"
  74149. abstract="false" native="false" synchronized="false"
  74150. static="false" final="false" visibility="public"
  74151. deprecated="not deprecated">
  74152. </method>
  74153. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  74154. abstract="false" native="false" synchronized="false"
  74155. static="false" final="false" visibility="public"
  74156. deprecated="not deprecated">
  74157. <doc>
  74158. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  74159. This is mainly for debugging.
  74160. @return the underlining {@link LoggedJob} object]]>
  74161. </doc>
  74162. </method>
  74163. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  74164. abstract="false" native="false" synchronized="false"
  74165. static="false" final="false" visibility="public"
  74166. deprecated="not deprecated">
  74167. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  74168. <param name="taskNumber" type="int"/>
  74169. <param name="taskAttemptNumber" type="int"/>
  74170. <doc>
  74171. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  74172. taskType, taskNumber, and taskAttemptNumber. This function does not care
  74173. about locality, and follows the following decision logic: 1. Make up a
  74174. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  74175. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  74176. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  74177. {@link TaskAttemptInfo} from the trace.]]>
  74178. </doc>
  74179. </method>
  74180. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  74181. abstract="false" native="false" synchronized="false"
  74182. static="false" final="false" visibility="public"
  74183. deprecated="not deprecated">
  74184. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  74185. <param name="taskNumber" type="int"/>
  74186. </method>
  74187. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  74188. abstract="false" native="false" synchronized="false"
  74189. static="false" final="false" visibility="public"
  74190. deprecated="not deprecated">
  74191. <param name="taskNumber" type="int"/>
  74192. <param name="taskAttemptNumber" type="int"/>
  74193. <param name="locality" type="int"/>
  74194. <doc>
  74195. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  74196. taskType, taskNumber, and taskAttemptNumber. This function considers
  74197. locality, and follows the following decision logic: 1. Make up a
  74198. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  74199. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  74200. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  74201. from the trace, without considering locality. 4. If final state is
  74202. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  74203. scaled according to locality in simulation and locality in trace.]]>
  74204. </doc>
  74205. </method>
  74206. <doc>
  74207. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  74208. Each {@link ZombieJob} object represents a job in job history. For everything
  74209. that exists in job history, contents are returned unchanged faithfully. To
  74210. get input splits of a non-exist task, a non-exist task attempt, or an
  74211. ill-formed task attempt, proper objects are made up from statistical
  74212. sketches.]]>
  74213. </doc>
  74214. </class>
  74215. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  74216. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  74217. <class name="ZombieJobProducer" extends="java.lang.Object"
  74218. abstract="false"
  74219. static="false" final="false" visibility="public"
  74220. deprecated="not deprecated">
  74221. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  74222. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  74223. static="false" final="false" visibility="public"
  74224. deprecated="not deprecated">
  74225. <exception name="IOException" type="java.io.IOException"/>
  74226. <doc>
  74227. <![CDATA[Constructor
  74228. @param path
  74229. Path to the JSON trace file, possibly compressed.
  74230. @param cluster
  74231. The topology of the cluster that corresponds to the jobs in the
  74232. trace. The argument can be null if we do not have knowledge of the
  74233. cluster topology.
  74234. @param conf
  74235. @throws IOException]]>
  74236. </doc>
  74237. </constructor>
  74238. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  74239. static="false" final="false" visibility="public"
  74240. deprecated="not deprecated">
  74241. <exception name="IOException" type="java.io.IOException"/>
  74242. <doc>
  74243. <![CDATA[Constructor
  74244. @param path
  74245. Path to the JSON trace file, possibly compressed.
  74246. @param cluster
  74247. The topology of the cluster that corresponds to the jobs in the
  74248. trace. The argument can be null if we do not have knowledge of the
  74249. cluster topology.
  74250. @param conf
  74251. @param randomSeed
  74252. use a deterministic seed.
  74253. @throws IOException]]>
  74254. </doc>
  74255. </constructor>
  74256. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  74257. static="false" final="false" visibility="public"
  74258. deprecated="not deprecated">
  74259. <exception name="IOException" type="java.io.IOException"/>
  74260. <doc>
  74261. <![CDATA[Constructor
  74262. @param input
  74263. The input stream for the JSON trace.
  74264. @param cluster
  74265. The topology of the cluster that corresponds to the jobs in the
  74266. trace. The argument can be null if we do not have knowledge of the
  74267. cluster topology.
  74268. @throws IOException]]>
  74269. </doc>
  74270. </constructor>
  74271. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  74272. static="false" final="false" visibility="public"
  74273. deprecated="not deprecated">
  74274. <exception name="IOException" type="java.io.IOException"/>
  74275. <doc>
  74276. <![CDATA[Constructor
  74277. @param input
  74278. The input stream for the JSON trace.
  74279. @param cluster
  74280. The topology of the cluster that corresponds to the jobs in the
  74281. trace. The argument can be null if we do not have knowledge of the
  74282. cluster topology.
  74283. @param randomSeed
  74284. use a deterministic seed.
  74285. @throws IOException]]>
  74286. </doc>
  74287. </constructor>
  74288. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  74289. abstract="false" native="false" synchronized="false"
  74290. static="false" final="false" visibility="public"
  74291. deprecated="not deprecated">
  74292. <exception name="IOException" type="java.io.IOException"/>
  74293. </method>
  74294. <method name="close"
  74295. abstract="false" native="false" synchronized="false"
  74296. static="false" final="false" visibility="public"
  74297. deprecated="not deprecated">
  74298. <exception name="IOException" type="java.io.IOException"/>
  74299. </method>
  74300. <doc>
  74301. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  74302. </doc>
  74303. </class>
  74304. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  74305. </package>
  74306. </api>